superkit-mcp-server 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ARCHITECTURE.md +102 -102
- package/README.md +71 -71
- package/SUPERKIT.md +168 -168
- package/agents/code-archaeologist.md +106 -106
- package/agents/coder.md +90 -90
- package/agents/data-engineer.md +28 -28
- package/agents/devops-engineer.md +242 -242
- package/agents/git-manager.md +203 -203
- package/agents/orchestrator.md +420 -420
- package/agents/penetration-tester.md +188 -188
- package/agents/performance-optimizer.md +187 -187
- package/agents/planner.md +270 -270
- package/agents/qa-automation-engineer.md +103 -103
- package/agents/quant-developer.md +32 -32
- package/agents/reviewer.md +100 -100
- package/agents/scout.md +222 -222
- package/agents/security-auditor.md +3 -2
- package/agents/tester.md +274 -274
- package/agents/ui-designer.md +208 -208
- package/build/index.js +18 -9
- package/build/tools/__tests__/loggerTools.test.js +5 -5
- package/build/tools/archTools.js +2 -19
- package/build/tools/autoPreview.js +2 -2
- package/build/tools/compoundTools.js +4 -4
- package/build/tools/docsTools.js +5 -10
- package/build/tools/loggerTools.js +1 -1
- package/build/tools/todoTools.js +39 -39
- package/build/tools/validators/__tests__/apiSchema.test.js +23 -23
- package/build/tools/validators/__tests__/convertRules.test.js +5 -5
- package/build/tools/validators/__tests__/frontendDesign.test.js +12 -12
- package/build/tools/validators/__tests__/geoChecker.test.js +19 -19
- package/build/tools/validators/__tests__/mobileAudit.test.js +12 -12
- package/build/tools/validators/__tests__/reactPerformanceChecker.test.js +17 -17
- package/build/tools/validators/__tests__/securityScan.test.js +6 -6
- package/build/tools/validators/__tests__/seoChecker.test.js +16 -16
- package/build/tools/validators/__tests__/typeCoverage.test.js +14 -14
- package/build/tools/validators/convertRules.js +2 -2
- package/commands/README.md +122 -122
- package/commands/ask.toml +72 -72
- package/commands/brainstorm.toml +119 -119
- package/commands/chat.toml +77 -77
- package/commands/code-preview.toml +37 -37
- package/commands/code.toml +28 -28
- package/commands/content.toml +200 -200
- package/commands/cook.toml +77 -77
- package/commands/copywrite.toml +131 -131
- package/commands/db.toml +192 -192
- package/commands/debug.toml +166 -166
- package/commands/design.toml +158 -158
- package/commands/dev-rules.toml +14 -14
- package/commands/do.toml +117 -117
- package/commands/doc-rules.toml +14 -14
- package/commands/docs.toml +148 -148
- package/commands/fix.toml +440 -440
- package/commands/fullstack.toml +175 -175
- package/commands/git.toml +235 -235
- package/commands/help.toml +84 -84
- package/commands/integrate.toml +127 -127
- package/commands/journal.toml +136 -136
- package/commands/kit-setup.toml +40 -40
- package/commands/mcp.toml +183 -183
- package/commands/orchestration.toml +15 -15
- package/commands/plan.toml +171 -171
- package/commands/pm.toml +148 -148
- package/commands/pr.toml +50 -50
- package/commands/project.toml +32 -32
- package/commands/research.toml +117 -117
- package/commands/review-pr.toml +63 -63
- package/commands/review.toml +190 -190
- package/commands/scout-ext.toml +97 -97
- package/commands/scout.toml +79 -79
- package/commands/screenshot.toml +65 -65
- package/commands/session.toml +102 -102
- package/commands/skill.toml +384 -384
- package/commands/status.toml +22 -22
- package/commands/team.toml +56 -56
- package/commands/test.toml +164 -164
- package/commands/ticket.toml +70 -70
- package/commands/use.toml +106 -106
- package/commands/video.toml +83 -83
- package/commands/watzup.toml +71 -71
- package/commands/workflow.toml +14 -14
- package/package.json +35 -35
- package/skills/meta/README.md +30 -30
- package/skills/meta/api-design/SKILL.md +134 -134
- package/skills/meta/code-review/SKILL.md +44 -44
- package/skills/meta/code-review/checklists/pre-merge.md +25 -25
- package/skills/meta/code-review/workflows/architecture-pass.md +26 -26
- package/skills/meta/code-review/workflows/performance-pass.md +27 -27
- package/skills/meta/code-review/workflows/security-pass.md +29 -29
- package/skills/meta/compound-docs/SKILL.md +133 -133
- package/skills/meta/debug/SKILL.md +40 -40
- package/skills/meta/debug/templates/bug-report.template.md +31 -31
- package/skills/meta/debug/workflows/reproduce-issue.md +20 -20
- package/skills/meta/docker/SKILL.md +126 -126
- package/skills/meta/examples/supabase/SKILL.md +46 -46
- package/skills/meta/examples/supabase/references/best-practices.md +319 -319
- package/skills/meta/examples/supabase/references/common-patterns.md +373 -373
- package/skills/meta/examples/supabase/templates/migration-template.sql +49 -49
- package/skills/meta/examples/supabase/templates/rls-policy-template.sql +77 -77
- package/skills/meta/examples/supabase/workflows/debugging.md +260 -260
- package/skills/meta/examples/supabase/workflows/migration-workflow.md +211 -211
- package/skills/meta/examples/supabase/workflows/rls-policies.md +244 -244
- package/skills/meta/examples/supabase/workflows/schema-design.md +321 -321
- package/skills/meta/file-todos/SKILL.md +88 -88
- package/skills/meta/mobile/SKILL.md +140 -140
- package/skills/meta/nextjs/SKILL.md +101 -101
- package/skills/meta/performance/SKILL.md +130 -130
- package/skills/meta/react-patterns/SKILL.md +83 -83
- package/skills/meta/security/SKILL.md +114 -114
- package/skills/meta/session-resume/SKILL.md +96 -96
- package/skills/meta/tailwind/SKILL.md +139 -139
- package/skills/meta/testing/SKILL.md +43 -43
- package/skills/meta/testing/references/vitest-patterns.md +45 -45
- package/skills/meta/testing/templates/component-test.template.tsx +37 -37
- package/skills/tech/alpha-vantage/SKILL.md +142 -142
- package/skills/tech/alpha-vantage/references/commodities.md +153 -153
- package/skills/tech/alpha-vantage/references/economic-indicators.md +158 -158
- package/skills/tech/alpha-vantage/references/forex-crypto.md +154 -154
- package/skills/tech/alpha-vantage/references/fundamentals.md +223 -223
- package/skills/tech/alpha-vantage/references/intelligence.md +138 -138
- package/skills/tech/alpha-vantage/references/options.md +93 -93
- package/skills/tech/alpha-vantage/references/technical-indicators.md +374 -374
- package/skills/tech/alpha-vantage/references/time-series.md +157 -157
- package/skills/tech/doc.md +6 -6
- package/skills/tech/financial-modeling/SKILL.md +18 -18
- package/skills/tech/financial-modeling/skills/3-statements/SKILL.md +368 -368
- package/skills/tech/financial-modeling/skills/3-statements/references/formatting.md +118 -118
- package/skills/tech/financial-modeling/skills/3-statements/references/formulas.md +292 -292
- package/skills/tech/financial-modeling/skills/3-statements/references/sec-filings.md +125 -125
- package/skills/tech/financial-modeling/skills/dcf-model/SKILL.md +1210 -1210
- package/skills/tech/financial-modeling/skills/dcf-model/TROUBLESHOOTING.md +40 -40
- package/skills/tech/financial-modeling/skills/dcf-model/requirements.txt +8 -8
- package/skills/tech/financial-modeling/skills/dcf-model/scripts/validate_dcf.py +292 -292
- package/skills/tech/financial-modeling/skills/lbo-model/SKILL.md +236 -236
- package/skills/tech/financial-modeling/skills/merger-model/SKILL.md +108 -108
- package/skills/workflows/README.md +203 -203
- package/skills/workflows/adr.md +174 -174
- package/skills/workflows/changelog.md +74 -74
- package/skills/workflows/compound.md +323 -323
- package/skills/workflows/compound_health.md +74 -74
- package/skills/workflows/create-agent-skill.md +138 -139
- package/skills/workflows/cycle.md +144 -144
- package/skills/workflows/deploy-docs.md +84 -84
- package/skills/workflows/development-rules.md +42 -42
- package/skills/workflows/doc.md +95 -95
- package/skills/workflows/documentation-management.md +34 -34
- package/skills/workflows/explore.md +146 -146
- package/skills/workflows/generate_command.md +106 -106
- package/skills/workflows/heal-skill.md +97 -97
- package/skills/workflows/housekeeping.md +229 -229
- package/skills/workflows/kit-setup.md +102 -102
- package/skills/workflows/map-codebase.md +78 -78
- package/skills/workflows/orchestration-protocol.md +43 -43
- package/skills/workflows/plan-compound.md +439 -439
- package/skills/workflows/plan_review.md +269 -269
- package/skills/workflows/primary-workflow.md +37 -37
- package/skills/workflows/promote_pattern.md +86 -86
- package/skills/workflows/release-docs.md +82 -82
- package/skills/workflows/report-bug.md +135 -135
- package/skills/workflows/reproduce-bug.md +118 -118
- package/skills/workflows/resolve_pr.md +133 -133
- package/skills/workflows/resolve_todo.md +128 -128
- package/skills/workflows/review-compound.md +376 -376
- package/skills/workflows/skill-review.md +127 -127
- package/skills/workflows/specs.md +257 -257
- package/skills/workflows/triage-sprint.md +102 -102
- package/skills/workflows/triage.md +152 -152
- package/skills/workflows/work.md +399 -399
- package/skills/workflows/xcode-test.md +93 -93
package/skills/workflows/work.md
CHANGED
|
@@ -1,399 +1,399 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Execute work plans systematically while maintaining quality. Use after /plan to implement features.
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# /work - Systematic Plan Execution
|
|
6
|
-
|
|
7
|
-
Execute a work plan efficiently while maintaining quality and finishing features completely.
|
|
8
|
-
|
|
9
|
-
> **Why systematic execution?** Random implementation leads to incomplete features. Following a plan with continuous testing ships complete, working code.
|
|
10
|
-
|
|
11
|
-
## When To Use
|
|
12
|
-
|
|
13
|
-
- After creating a plan with `/plan`
|
|
14
|
-
- When working from a specification or todo file
|
|
15
|
-
- For any multi-step implementation
|
|
16
|
-
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
## Workflow
|
|
20
|
-
|
|
21
|
-
### Step -1: Resume Context (If New Session)
|
|
22
|
-
|
|
23
|
-
> [!CAUTION]
|
|
24
|
-
> **BLOCKING STEP.** If this is a NEW CONVERSATION, follow the session-resume skill first.
|
|
25
|
-
|
|
26
|
-
```bash
|
|
27
|
-
cat skills/session-resume/SKILL.md
|
|
28
|
-
Call MCP `call_tool_logger_manager` { action: "logSkill", name: "session-resume", outcome: "workflow" }
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
### Step 0: Search Before Solving
|
|
32
|
-
|
|
33
|
-
Before diving in, check if similar problems were solved:
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
// turbo
|
|
37
|
-
Call MCP `call_tool_logger_manager` { action: "logWorkflow", name: "/work", outcome: "success" }
|
|
38
|
-
Call MCP `call_tool_compound_manager` { action: "search", terms: [ "{relevant keywords}"] }
|
|
39
|
-
Call MCP `call_tool_logger_manager` { action: "logSkill", name: "compound-docs", outcome: "workflow" }
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
This 30-second search can save hours of reinventing solutions.
|
|
43
|
-
|
|
44
|
-
**See also:** `skills/compound-docs/SKILL.md` for solution investigation.
|
|
45
|
-
|
|
46
|
-
> [!IMPORTANT]
|
|
47
|
-
> **Implicit Workflow Triggers (Pattern #13)**
|
|
48
|
-
> This workflow should be triggered automatically when users approve a plan with phrases like "Proceed", "Go ahead", or "LGTM". Do not execute plans ad-hoc—always use this workflow protocol.
|
|
49
|
-
>
|
|
50
|
-
> See [Critical Patterns](file:///Users/macbookair/Documents/GitHub/[PROJECT_NAME]/docs/solutions/patterns/critical-patterns.md#pattern-13-implicit-workflow-triggers) for full trigger table.
|
|
51
|
-
|
|
52
|
-
---
|
|
53
|
-
|
|
54
|
-
### Step 0.5: Planning Rigor Check (MANDATORY)
|
|
55
|
-
|
|
56
|
-
> [!CAUTION]
|
|
57
|
-
> **BLOCKING STEP.** Before diving into execution, verify the plan is rigorous.
|
|
58
|
-
|
|
59
|
-
If working from a plan file, confirm it addresses:
|
|
60
|
-
|
|
61
|
-
- [ ] **Multi-Order Effects:** Are 2nd–4th order effects documented?
|
|
62
|
-
- [ ] **Stakeholder Impact:** Are End Users, Devs, and Ops impacts considered?
|
|
63
|
-
|
|
64
|
-
**If missing:** Add a brief analysis before proceeding, or flag for `/plan` revision.
|
|
65
|
-
|
|
66
|
-
**See also:** Pattern #9 in `docs/solutions/patterns/critical-patterns.md`
|
|
67
|
-
|
|
68
|
-
---
|
|
69
|
-
|
|
70
|
-
### Phase 1: Quick Start
|
|
71
|
-
|
|
72
|
-
#### Step 1: Read and Clarify
|
|
73
|
-
|
|
74
|
-
```
|
|
75
|
-
Before starting, I'll review the plan and ask any clarifying questions.
|
|
76
|
-
|
|
77
|
-
[Read the plan file]
|
|
78
|
-
|
|
79
|
-
Questions about this plan:
|
|
80
|
-
1. [Any unclear requirement]
|
|
81
|
-
2. [Any ambiguity]
|
|
82
|
-
|
|
83
|
-
Should I proceed, or do you want to clarify anything first?
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
**Do not skip this** - better to ask questions now than build the wrong thing.
|
|
87
|
-
|
|
88
|
-
#### Step 2: Setup Environment
|
|
89
|
-
|
|
90
|
-
**Option A: Live work on current branch**
|
|
91
|
-
```bash
|
|
92
|
-
git checkout main && git pull origin main
|
|
93
|
-
git checkout -b feature/{feature-name}
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
**Option B: Isolated worktree (recommended for parallel work)**
|
|
97
|
-
```bash
|
|
98
|
-
git worktree add ../feature-{name} -b feature/{name}
|
|
99
|
-
cd ../feature-{name}
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
**Use worktree if:**
|
|
103
|
-
- Working on multiple features simultaneously
|
|
104
|
-
- Want to keep main clean while experimenting
|
|
105
|
-
- Plan to switch between branches frequently
|
|
106
|
-
|
|
107
|
-
#### Step 3: Create Todo List
|
|
108
|
-
|
|
109
|
-
Break the plan into actionable tasks:
|
|
110
|
-
|
|
111
|
-
```
|
|
112
|
-
## Implementation Tasks
|
|
113
|
-
|
|
114
|
-
- [ ] Task 1: [Specific action]
|
|
115
|
-
- [ ] Task 2: [Specific action]
|
|
116
|
-
- [ ] Task 3: [Specific action]
|
|
117
|
-
- [ ] Run full test suite
|
|
118
|
-
- [ ] Final review
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
**Tip:** Use `skills/file-todos/SKILL.md` to manage these tasks if they evolve into standalone work items.
|
|
122
|
-
|
|
123
|
-
### Phase 2: Execute
|
|
124
|
-
|
|
125
|
-
#### Task Execution Loop
|
|
126
|
-
|
|
127
|
-
```
|
|
128
|
-
while (tasks remain):
|
|
129
|
-
1. Mark current task as in_progress
|
|
130
|
-
2. Read referenced files from plan
|
|
131
|
-
3. Look for similar patterns in codebase
|
|
132
|
-
4. Implement following existing conventions
|
|
133
|
-
5. Write tests for new functionality
|
|
134
|
-
6. Run tests after changes
|
|
135
|
-
7. Mark task as completed
|
|
136
|
-
```
|
|
137
|
-
|
|
138
|
-
#### Follow Existing Patterns
|
|
139
|
-
|
|
140
|
-
- [ ] Read similar code referenced in plan first
|
|
141
|
-
- [ ] Match naming conventions exactly
|
|
142
|
-
- [ ] Reuse existing components where possible
|
|
143
|
-
- [ ] Follow project coding standards
|
|
144
|
-
- [ ] When in doubt, grep for similar implementations:
|
|
145
|
-
```bash
|
|
146
|
-
grep -r "similar_pattern" --include="*.ts" src/
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
#### Test Continuously
|
|
150
|
-
|
|
151
|
-
- [ ] Run relevant tests after each significant change
|
|
152
|
-
- [ ] Don't wait until the end to test
|
|
153
|
-
- [ ] Fix failures immediately
|
|
154
|
-
- [ ] Add new tests for new functionality
|
|
155
|
-
|
|
156
|
-
```bash
|
|
157
|
-
# Run tests frequently
|
|
158
|
-
npm test -- --watch
|
|
159
|
-
# or
|
|
160
|
-
pytest -x # stop on first failure
|
|
161
|
-
```
|
|
162
|
-
|
|
163
|
-
#### Track Progress
|
|
164
|
-
|
|
165
|
-
Update task list as you work:
|
|
166
|
-
```
|
|
167
|
-
- [x] Task 1: Completed
|
|
168
|
-
- [/] Task 2: In progress ← current
|
|
169
|
-
- [ ] Task 3: Not started
|
|
170
|
-
```
|
|
171
|
-
|
|
172
|
-
### Phase 3: Quality Check
|
|
173
|
-
|
|
174
|
-
#### Run Core Checks
|
|
175
|
-
|
|
176
|
-
```bash
|
|
177
|
-
# Run full test suite
|
|
178
|
-
npm test
|
|
179
|
-
# or
|
|
180
|
-
pytest
|
|
181
|
-
|
|
182
|
-
# Run linting
|
|
183
|
-
npm run lint
|
|
184
|
-
# or
|
|
185
|
-
ruff check .
|
|
186
|
-
```
|
|
187
|
-
|
|
188
|
-
#### Optional Reviewer Checks
|
|
189
|
-
|
|
190
|
-
For complex/risky changes, consider review passes:
|
|
191
|
-
|
|
192
|
-
| Check | When To Use |
|
|
193
|
-
|-------|-------------|
|
|
194
|
-
| Simplicity review | Large changes, refactors |
|
|
195
|
-
| Security review | Auth, data handling |
|
|
196
|
-
| Performance review | Database, loops, APIs |
|
|
197
|
-
|
|
198
|
-
#### Final Validation Checklist
|
|
199
|
-
|
|
200
|
-
- [ ] All tasks marked completed
|
|
201
|
-
- [ ] All tests pass
|
|
202
|
-
- [ ] Linting passes
|
|
203
|
-
- [ ] Code follows existing patterns
|
|
204
|
-
- [ ] No console.log/print statements left
|
|
205
|
-
- [ ] No TODO comments left unaddressed
|
|
206
|
-
|
|
207
|
-
#### Convert Remaining Tasks to Todos
|
|
208
|
-
|
|
209
|
-
If any implementation tasks remain unchecked (scope reduced, deferred, etc.):
|
|
210
|
-
|
|
211
|
-
```bash
|
|
212
|
-
# Create todo for each uncompleted task
|
|
213
|
-
Call MCP `call_tool_todo_manager` { action: "create", priority: "p2", title: "{description}", description: "TODO description" }
|
|
214
|
-
"Task from /work workflow that was not completed: {description}." \
|
|
215
|
-
"Complete task" "Verify implementation"
|
|
216
|
-
```
|
|
217
|
-
|
|
218
|
-
**Note:** Reference `skills/file-todos/SKILL.md` for standard todo statuses and prioritization.
|
|
219
|
-
|
|
220
|
-
> [!NOTE]
|
|
221
|
-
> Don't close `/work` with unchecked tasks in your inline list. Either complete them or convert to todos.
|
|
222
|
-
|
|
223
|
-
### Phase 3.5: Documentation Update (MANDATORY)
|
|
224
|
-
|
|
225
|
-
> [!IMPORTANT]
|
|
226
|
-
> Code without documentation is incomplete work.
|
|
227
|
-
|
|
228
|
-
**Checklist:**
|
|
229
|
-
- [ ] Did this change add/modify user-facing functionality?
|
|
230
|
-
- [ ] If yes: Update relevant docs (README, API docs, etc.)
|
|
231
|
-
- [ ] If yes: Add entry to CHANGELOG
|
|
232
|
-
|
|
233
|
-
**Common docs to update:**
|
|
234
|
-
| Change Type | Update Target |
|
|
235
|
-
|-------------|---------------|
|
|
236
|
-
| New
|
|
237
|
-
| New workflow | Add to
|
|
238
|
-
| New API endpoint | Update API documentation |
|
|
239
|
-
| New component | Update component docs |
|
|
240
|
-
| Config change | Update setup/installation docs |
|
|
241
|
-
|
|
242
|
-
> [!TIP]
|
|
243
|
-
> Ask: "If a new developer joins tomorrow, what would they need to know about this change?"
|
|
244
|
-
|
|
245
|
-
### Phase 4: Ship
|
|
246
|
-
|
|
247
|
-
#### Update Changelog
|
|
248
|
-
|
|
249
|
-
If this work includes user-facing changes:
|
|
250
|
-
|
|
251
|
-
```bash
|
|
252
|
-
# Generate changelog entry
|
|
253
|
-
npm run changelog:gen
|
|
254
|
-
```
|
|
255
|
-
|
|
256
|
-
#### Update Source Todo Status (MANDATORY)
|
|
257
|
-
|
|
258
|
-
> [!CAUTION]
|
|
259
|
-
> **BLOCKING STEP:** You must run this BEFORE committing user-facing changes if working from a todo.
|
|
260
|
-
|
|
261
|
-
```bash
|
|
262
|
-
Call MCP `call_tool_todo_manager` { action: "complete", todoId: "todos/{todo-filename}.md" }
|
|
263
|
-
Call MCP `call_tool_logger_manager` { action: "logSkill", name: "file-todos", outcome: "workflow" }
|
|
264
|
-
```
|
|
265
|
-
|
|
266
|
-
#### Commit Changes
|
|
267
|
-
|
|
268
|
-
Use conventional commits:
|
|
269
|
-
```bash
|
|
270
|
-
git add -A
|
|
271
|
-
git commit -m "feat: {feature description}
|
|
272
|
-
|
|
273
|
-
- Implemented X
|
|
274
|
-
- Added tests for Y
|
|
275
|
-
- Updated Z
|
|
276
|
-
|
|
277
|
-
Generated with /work"
|
|
278
|
-
```
|
|
279
|
-
|
|
280
|
-
#### Create Pull Request
|
|
281
|
-
|
|
282
|
-
```bash
|
|
283
|
-
git push -u origin feature/{name}
|
|
284
|
-
gh pr create --title "feat: {feature}" --body "
|
|
285
|
-
## Summary
|
|
286
|
-
{What this PR does}
|
|
287
|
-
|
|
288
|
-
## Changes
|
|
289
|
-
- {Change 1}
|
|
290
|
-
- {Change 2}
|
|
291
|
-
|
|
292
|
-
## Testing
|
|
293
|
-
- {How it was tested}
|
|
294
|
-
|
|
295
|
-
## Screenshots
|
|
296
|
-
{If UI changes}
|
|
297
|
-
"
|
|
298
|
-
```
|
|
299
|
-
|
|
300
|
-
#### Update Spec Status (if working from a spec specific plan)
|
|
301
|
-
|
|
302
|
-
If your plan is located in `docs/specs/{name}/plans/`:
|
|
303
|
-
|
|
304
|
-
> [!IMPORTANT]
|
|
305
|
-
> **Spec Phase Completion Protocol**
|
|
306
|
-
|
|
307
|
-
1. **Run Automation Script:**
|
|
308
|
-
```bash
|
|
309
|
-
// turbo
|
|
310
|
-
Call MCP `call_tool_arch_manager` { action: "updatePhase", specName: "{spec_name}", phaseNum: "{phase_num}", status: "complete" }
|
|
311
|
-
```
|
|
312
|
-
*This single command updates `03-tasks.md`, `README.md`, and `00-START-HERE.md` ensuring they are perfectly in sync.*
|
|
313
|
-
|
|
314
|
-
2. **Verify Consistency:**
|
|
315
|
-
- Run `ls docs/specs/{name}/` to ensure structure is clean
|
|
316
|
-
|
|
317
|
-
#### Update Plan Status (if working from a plan)
|
|
318
|
-
|
|
319
|
-
If you executed a plan from `plans/`:
|
|
320
|
-
|
|
321
|
-
```bash
|
|
322
|
-
# Update plan status manually
|
|
323
|
-
# Change: Status: Draft → Status: Implemented
|
|
324
|
-
```
|
|
325
|
-
|
|
326
|
-
> [!NOTE]
|
|
327
|
-
> Plans don't have automated completion scripts (unlike todos). Update the status line manually when all acceptance criteria are checked.
|
|
328
|
-
|
|
329
|
-
### Phase 5: Completion & Handoff
|
|
330
|
-
|
|
331
|
-
#### Step 1: Establish Terminal UI State
|
|
332
|
-
|
|
333
|
-
> [!IMPORTANT]
|
|
334
|
-
> **Visual Completion Signal**
|
|
335
|
-
> Call `task_boundary` one last time to signal completion in the user's UI. This prevents the "task" from appearing active after you've finished.
|
|
336
|
-
|
|
337
|
-
```javascript
|
|
338
|
-
await task_boundary({
|
|
339
|
-
TaskName: "[COMPLETED] {Feature/Task Name}",
|
|
340
|
-
TaskStatus: "Work verified and documented. Offering next steps.",
|
|
341
|
-
Mode: "VERIFICATION",
|
|
342
|
-
TaskSummary: "Summary of accomplishments..."
|
|
343
|
-
});
|
|
344
|
-
```
|
|
345
|
-
|
|
346
|
-
#### Step 2: Mandatory Handoff
|
|
347
|
-
|
|
348
|
-
> [!IMPORTANT]
|
|
349
|
-
> **Exit Transition**
|
|
350
|
-
> Do not stop here. Offer the user clear paths to the next logical workflow.
|
|
351
|
-
|
|
352
|
-
```bash
|
|
353
|
-
✓ Work complete
|
|
354
|
-
|
|
355
|
-
Next steps:
|
|
356
|
-
1. /review - Get feedback on changes
|
|
357
|
-
2. /compound - Document interesting solutions/patterns discovered
|
|
358
|
-
3. /housekeeping - Cleanup and archive if no more work remains
|
|
359
|
-
4. Continue working - More tasks to complete
|
|
360
|
-
```
|
|
361
|
-
|
|
362
|
-
#### Offer Next Steps
|
|
363
|
-
|
|
364
|
-
```
|
|
365
|
-
✓ Work complete
|
|
366
|
-
|
|
367
|
-
What's next?
|
|
368
|
-
1. Create PR - Push and open pull request
|
|
369
|
-
2. Run review - Get /review feedback on changes
|
|
370
|
-
3. Document solution - Run /compound if you solved interesting problems
|
|
371
|
-
4. Continue working - More tasks to complete
|
|
372
|
-
```
|
|
373
|
-
|
|
374
|
-
---
|
|
375
|
-
|
|
376
|
-
## Quality Guidelines
|
|
377
|
-
|
|
378
|
-
**Good execution:**
|
|
379
|
-
- ✅ Follow the plan, don't improvise
|
|
380
|
-
- ✅ Test after every change
|
|
381
|
-
- ✅ Commit frequently with clear messages
|
|
382
|
-
- ✅ Ask before deviating from plan
|
|
383
|
-
|
|
384
|
-
**Avoid:**
|
|
385
|
-
- ❌ Skipping tests until the end
|
|
386
|
-
- ❌ Large uncommitted changes
|
|
387
|
-
- ❌ Ignoring existing patterns
|
|
388
|
-
- ❌ Scope creep without updating plan
|
|
389
|
-
|
|
390
|
-
---
|
|
391
|
-
|
|
392
|
-
## References
|
|
393
|
-
|
|
394
|
-
- Create plans: `/plan`
|
|
395
|
-
- Review plans: `/plan_review`
|
|
396
|
-
- Review changes: `/review`
|
|
397
|
-
- Document solutions: `/compound`
|
|
398
|
-
- Triage remaining work: `/triage`
|
|
399
|
-
- Archive when done: `/housekeeping`
|
|
1
|
+
---
|
|
2
|
+
description: Execute work plans systematically while maintaining quality. Use after /plan to implement features.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /work - Systematic Plan Execution
|
|
6
|
+
|
|
7
|
+
Execute a work plan efficiently while maintaining quality and finishing features completely.
|
|
8
|
+
|
|
9
|
+
> **Why systematic execution?** Random implementation leads to incomplete features. Following a plan with continuous testing ships complete, working code.
|
|
10
|
+
|
|
11
|
+
## When To Use
|
|
12
|
+
|
|
13
|
+
- After creating a plan with `/plan`
|
|
14
|
+
- When working from a specification or todo file
|
|
15
|
+
- For any multi-step implementation
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Workflow
|
|
20
|
+
|
|
21
|
+
### Step -1: Resume Context (If New Session)
|
|
22
|
+
|
|
23
|
+
> [!CAUTION]
|
|
24
|
+
> **BLOCKING STEP.** If this is a NEW CONVERSATION, follow the session-resume skill first.
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
cat skills/session-resume/SKILL.md
|
|
28
|
+
Call MCP `call_tool_logger_manager` { action: "logSkill", name: "session-resume", outcome: "workflow" }
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Step 0: Search Before Solving
|
|
32
|
+
|
|
33
|
+
Before diving in, check if similar problems were solved:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
// turbo
|
|
37
|
+
Call MCP `call_tool_logger_manager` { action: "logWorkflow", name: "/work", outcome: "success" }
|
|
38
|
+
Call MCP `call_tool_compound_manager` { action: "search", terms: [ "{relevant keywords}"] }
|
|
39
|
+
Call MCP `call_tool_logger_manager` { action: "logSkill", name: "compound-docs", outcome: "workflow" }
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
This 30-second search can save hours of reinventing solutions.
|
|
43
|
+
|
|
44
|
+
**See also:** `skills/compound-docs/SKILL.md` for solution investigation.
|
|
45
|
+
|
|
46
|
+
> [!IMPORTANT]
|
|
47
|
+
> **Implicit Workflow Triggers (Pattern #13)**
|
|
48
|
+
> This workflow should be triggered automatically when users approve a plan with phrases like "Proceed", "Go ahead", or "LGTM". Do not execute plans ad-hoc—always use this workflow protocol.
|
|
49
|
+
>
|
|
50
|
+
> See [Critical Patterns](file:///Users/macbookair/Documents/GitHub/[PROJECT_NAME]/docs/solutions/patterns/critical-patterns.md#pattern-13-implicit-workflow-triggers) for full trigger table.
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
### Step 0.5: Planning Rigor Check (MANDATORY)
|
|
55
|
+
|
|
56
|
+
> [!CAUTION]
|
|
57
|
+
> **BLOCKING STEP.** Before diving into execution, verify the plan is rigorous.
|
|
58
|
+
|
|
59
|
+
If working from a plan file, confirm it addresses:
|
|
60
|
+
|
|
61
|
+
- [ ] **Multi-Order Effects:** Are 2nd–4th order effects documented?
|
|
62
|
+
- [ ] **Stakeholder Impact:** Are End Users, Devs, and Ops impacts considered?
|
|
63
|
+
|
|
64
|
+
**If missing:** Add a brief analysis before proceeding, or flag for `/plan` revision.
|
|
65
|
+
|
|
66
|
+
**See also:** Pattern #9 in `docs/solutions/patterns/critical-patterns.md`
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
### Phase 1: Quick Start
|
|
71
|
+
|
|
72
|
+
#### Step 1: Read and Clarify
|
|
73
|
+
|
|
74
|
+
```
|
|
75
|
+
Before starting, I'll review the plan and ask any clarifying questions.
|
|
76
|
+
|
|
77
|
+
[Read the plan file]
|
|
78
|
+
|
|
79
|
+
Questions about this plan:
|
|
80
|
+
1. [Any unclear requirement]
|
|
81
|
+
2. [Any ambiguity]
|
|
82
|
+
|
|
83
|
+
Should I proceed, or do you want to clarify anything first?
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
**Do not skip this** - better to ask questions now than build the wrong thing.
|
|
87
|
+
|
|
88
|
+
#### Step 2: Setup Environment
|
|
89
|
+
|
|
90
|
+
**Option A: Live work on current branch**
|
|
91
|
+
```bash
|
|
92
|
+
git checkout main && git pull origin main
|
|
93
|
+
git checkout -b feature/{feature-name}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
**Option B: Isolated worktree (recommended for parallel work)**
|
|
97
|
+
```bash
|
|
98
|
+
git worktree add ../feature-{name} -b feature/{name}
|
|
99
|
+
cd ../feature-{name}
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
**Use worktree if:**
|
|
103
|
+
- Working on multiple features simultaneously
|
|
104
|
+
- Want to keep main clean while experimenting
|
|
105
|
+
- Plan to switch between branches frequently
|
|
106
|
+
|
|
107
|
+
#### Step 3: Create Todo List
|
|
108
|
+
|
|
109
|
+
Break the plan into actionable tasks:
|
|
110
|
+
|
|
111
|
+
```
|
|
112
|
+
## Implementation Tasks
|
|
113
|
+
|
|
114
|
+
- [ ] Task 1: [Specific action]
|
|
115
|
+
- [ ] Task 2: [Specific action]
|
|
116
|
+
- [ ] Task 3: [Specific action]
|
|
117
|
+
- [ ] Run full test suite
|
|
118
|
+
- [ ] Final review
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
**Tip:** Use `skills/file-todos/SKILL.md` to manage these tasks if they evolve into standalone work items.
|
|
122
|
+
|
|
123
|
+
### Phase 2: Execute
|
|
124
|
+
|
|
125
|
+
#### Task Execution Loop
|
|
126
|
+
|
|
127
|
+
```
|
|
128
|
+
while (tasks remain):
|
|
129
|
+
1. Mark current task as in_progress
|
|
130
|
+
2. Read referenced files from plan
|
|
131
|
+
3. Look for similar patterns in codebase
|
|
132
|
+
4. Implement following existing conventions
|
|
133
|
+
5. Write tests for new functionality
|
|
134
|
+
6. Run tests after changes
|
|
135
|
+
7. Mark task as completed
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
#### Follow Existing Patterns
|
|
139
|
+
|
|
140
|
+
- [ ] Read similar code referenced in plan first
|
|
141
|
+
- [ ] Match naming conventions exactly
|
|
142
|
+
- [ ] Reuse existing components where possible
|
|
143
|
+
- [ ] Follow project coding standards
|
|
144
|
+
- [ ] When in doubt, grep for similar implementations:
|
|
145
|
+
```bash
|
|
146
|
+
grep -r "similar_pattern" --include="*.ts" src/
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
#### Test Continuously
|
|
150
|
+
|
|
151
|
+
- [ ] Run relevant tests after each significant change
|
|
152
|
+
- [ ] Don't wait until the end to test
|
|
153
|
+
- [ ] Fix failures immediately
|
|
154
|
+
- [ ] Add new tests for new functionality
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
# Run tests frequently
|
|
158
|
+
npm test -- --watch
|
|
159
|
+
# or
|
|
160
|
+
pytest -x # stop on first failure
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
#### Track Progress
|
|
164
|
+
|
|
165
|
+
Update task list as you work:
|
|
166
|
+
```
|
|
167
|
+
- [x] Task 1: Completed
|
|
168
|
+
- [/] Task 2: In progress ← current
|
|
169
|
+
- [ ] Task 3: Not started
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
### Phase 3: Quality Check
|
|
173
|
+
|
|
174
|
+
#### Run Core Checks
|
|
175
|
+
|
|
176
|
+
```bash
|
|
177
|
+
# Run full test suite
|
|
178
|
+
npm test
|
|
179
|
+
# or
|
|
180
|
+
pytest
|
|
181
|
+
|
|
182
|
+
# Run linting
|
|
183
|
+
npm run lint
|
|
184
|
+
# or
|
|
185
|
+
ruff check .
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
#### Optional Reviewer Checks
|
|
189
|
+
|
|
190
|
+
For complex/risky changes, consider review passes:
|
|
191
|
+
|
|
192
|
+
| Check | When To Use |
|
|
193
|
+
|-------|-------------|
|
|
194
|
+
| Simplicity review | Large changes, refactors |
|
|
195
|
+
| Security review | Auth, data handling |
|
|
196
|
+
| Performance review | Database, loops, APIs |
|
|
197
|
+
|
|
198
|
+
#### Final Validation Checklist
|
|
199
|
+
|
|
200
|
+
- [ ] All tasks marked completed
|
|
201
|
+
- [ ] All tests pass
|
|
202
|
+
- [ ] Linting passes
|
|
203
|
+
- [ ] Code follows existing patterns
|
|
204
|
+
- [ ] No console.log/print statements left
|
|
205
|
+
- [ ] No TODO comments left unaddressed
|
|
206
|
+
|
|
207
|
+
#### Convert Remaining Tasks to Todos
|
|
208
|
+
|
|
209
|
+
If any implementation tasks remain unchecked (scope reduced, deferred, etc.):
|
|
210
|
+
|
|
211
|
+
```bash
|
|
212
|
+
# Create todo for each uncompleted task
|
|
213
|
+
Call MCP `call_tool_todo_manager` { action: "create", priority: "p2", title: "{description}", description: "TODO description" }
|
|
214
|
+
"Task from /work workflow that was not completed: {description}." \
|
|
215
|
+
"Complete task" "Verify implementation"
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
**Note:** Reference `skills/file-todos/SKILL.md` for standard todo statuses and prioritization.
|
|
219
|
+
|
|
220
|
+
> [!NOTE]
|
|
221
|
+
> Don't close `/work` with unchecked tasks in your inline list. Either complete them or convert to todos.
|
|
222
|
+
|
|
223
|
+
### Phase 3.5: Documentation Update (MANDATORY)
|
|
224
|
+
|
|
225
|
+
> [!IMPORTANT]
|
|
226
|
+
> Code without documentation is incomplete work.
|
|
227
|
+
|
|
228
|
+
**Checklist:**
|
|
229
|
+
- [ ] Did this change add/modify user-facing functionality?
|
|
230
|
+
- [ ] If yes: Update relevant docs (README, API docs, etc.)
|
|
231
|
+
- [ ] If yes: Add entry to CHANGELOG
|
|
232
|
+
|
|
233
|
+
**Common docs to update:**
|
|
234
|
+
| Change Type | Update Target |
|
|
235
|
+
|-------------|---------------|
|
|
236
|
+
| New MCP tool | Update relevant README |
|
|
237
|
+
| New workflow | Add to `skills/workflows/README.md` |
|
|
238
|
+
| New API endpoint | Update API documentation |
|
|
239
|
+
| New component | Update component docs |
|
|
240
|
+
| Config change | Update setup/installation docs |
|
|
241
|
+
|
|
242
|
+
> [!TIP]
|
|
243
|
+
> Ask: "If a new developer joins tomorrow, what would they need to know about this change?"
|
|
244
|
+
|
|
245
|
+
### Phase 4: Ship
|
|
246
|
+
|
|
247
|
+
#### Update Changelog
|
|
248
|
+
|
|
249
|
+
If this work includes user-facing changes:
|
|
250
|
+
|
|
251
|
+
```bash
|
|
252
|
+
# Generate changelog entry
|
|
253
|
+
npm run changelog:gen
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
#### Update Source Todo Status (MANDATORY)
|
|
257
|
+
|
|
258
|
+
> [!CAUTION]
|
|
259
|
+
> **BLOCKING STEP:** You must run this BEFORE committing user-facing changes if working from a todo.
|
|
260
|
+
|
|
261
|
+
```bash
|
|
262
|
+
Call MCP `call_tool_todo_manager` { action: "complete", todoId: "todos/{todo-filename}.md" }
|
|
263
|
+
Call MCP `call_tool_logger_manager` { action: "logSkill", name: "file-todos", outcome: "workflow" }
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
#### Commit Changes
|
|
267
|
+
|
|
268
|
+
Use conventional commits:
|
|
269
|
+
```bash
|
|
270
|
+
git add -A
|
|
271
|
+
git commit -m "feat: {feature description}
|
|
272
|
+
|
|
273
|
+
- Implemented X
|
|
274
|
+
- Added tests for Y
|
|
275
|
+
- Updated Z
|
|
276
|
+
|
|
277
|
+
Generated with /work"
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
#### Create Pull Request
|
|
281
|
+
|
|
282
|
+
```bash
|
|
283
|
+
git push -u origin feature/{name}
|
|
284
|
+
gh pr create --title "feat: {feature}" --body "
|
|
285
|
+
## Summary
|
|
286
|
+
{What this PR does}
|
|
287
|
+
|
|
288
|
+
## Changes
|
|
289
|
+
- {Change 1}
|
|
290
|
+
- {Change 2}
|
|
291
|
+
|
|
292
|
+
## Testing
|
|
293
|
+
- {How it was tested}
|
|
294
|
+
|
|
295
|
+
## Screenshots
|
|
296
|
+
{If UI changes}
|
|
297
|
+
"
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
#### Update Spec Status (if working from a spec specific plan)
|
|
301
|
+
|
|
302
|
+
If your plan is located in `docs/specs/{name}/plans/`:
|
|
303
|
+
|
|
304
|
+
> [!IMPORTANT]
|
|
305
|
+
> **Spec Phase Completion Protocol**
|
|
306
|
+
|
|
307
|
+
1. **Run Automation Script:**
|
|
308
|
+
```bash
|
|
309
|
+
// turbo
|
|
310
|
+
Call MCP `call_tool_arch_manager` { action: "updatePhase", specName: "{spec_name}", phaseNum: "{phase_num}", status: "complete" }
|
|
311
|
+
```
|
|
312
|
+
*This single command updates `03-tasks.md`, `README.md`, and `00-START-HERE.md` ensuring they are perfectly in sync.*
|
|
313
|
+
|
|
314
|
+
2. **Verify Consistency:**
|
|
315
|
+
- Run `ls docs/specs/{name}/` to ensure structure is clean
|
|
316
|
+
|
|
317
|
+
#### Update Plan Status (if working from a plan)
|
|
318
|
+
|
|
319
|
+
If you executed a plan from `plans/`:
|
|
320
|
+
|
|
321
|
+
```bash
|
|
322
|
+
# Update plan status manually
|
|
323
|
+
# Change: Status: Draft → Status: Implemented
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
> [!NOTE]
|
|
327
|
+
> Plans don't have automated completion scripts (unlike todos). Update the status line manually when all acceptance criteria are checked.
|
|
328
|
+
|
|
329
|
+
### Phase 5: Completion & Handoff
|
|
330
|
+
|
|
331
|
+
#### Step 1: Establish Terminal UI State
|
|
332
|
+
|
|
333
|
+
> [!IMPORTANT]
|
|
334
|
+
> **Visual Completion Signal**
|
|
335
|
+
> Call `task_boundary` one last time to signal completion in the user's UI. This prevents the "task" from appearing active after you've finished.
|
|
336
|
+
|
|
337
|
+
```javascript
|
|
338
|
+
await task_boundary({
|
|
339
|
+
TaskName: "[COMPLETED] {Feature/Task Name}",
|
|
340
|
+
TaskStatus: "Work verified and documented. Offering next steps.",
|
|
341
|
+
Mode: "VERIFICATION",
|
|
342
|
+
TaskSummary: "Summary of accomplishments..."
|
|
343
|
+
});
|
|
344
|
+
```
|
|
345
|
+
|
|
346
|
+
#### Step 2: Mandatory Handoff
|
|
347
|
+
|
|
348
|
+
> [!IMPORTANT]
|
|
349
|
+
> **Exit Transition**
|
|
350
|
+
> Do not stop here. Offer the user clear paths to the next logical workflow.
|
|
351
|
+
|
|
352
|
+
```bash
|
|
353
|
+
✓ Work complete
|
|
354
|
+
|
|
355
|
+
Next steps:
|
|
356
|
+
1. /review - Get feedback on changes
|
|
357
|
+
2. /compound - Document interesting solutions/patterns discovered
|
|
358
|
+
3. /housekeeping - Cleanup and archive if no more work remains
|
|
359
|
+
4. Continue working - More tasks to complete
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
#### Offer Next Steps
|
|
363
|
+
|
|
364
|
+
```
|
|
365
|
+
✓ Work complete
|
|
366
|
+
|
|
367
|
+
What's next?
|
|
368
|
+
1. Create PR - Push and open pull request
|
|
369
|
+
2. Run review - Get /review feedback on changes
|
|
370
|
+
3. Document solution - Run /compound if you solved interesting problems
|
|
371
|
+
4. Continue working - More tasks to complete
|
|
372
|
+
```
|
|
373
|
+
|
|
374
|
+
---
|
|
375
|
+
|
|
376
|
+
## Quality Guidelines
|
|
377
|
+
|
|
378
|
+
**Good execution:**
|
|
379
|
+
- ✅ Follow the plan, don't improvise
|
|
380
|
+
- ✅ Test after every change
|
|
381
|
+
- ✅ Commit frequently with clear messages
|
|
382
|
+
- ✅ Ask before deviating from plan
|
|
383
|
+
|
|
384
|
+
**Avoid:**
|
|
385
|
+
- ❌ Skipping tests until the end
|
|
386
|
+
- ❌ Large uncommitted changes
|
|
387
|
+
- ❌ Ignoring existing patterns
|
|
388
|
+
- ❌ Scope creep without updating plan
|
|
389
|
+
|
|
390
|
+
---
|
|
391
|
+
|
|
392
|
+
## References
|
|
393
|
+
|
|
394
|
+
- Create plans: `/plan`
|
|
395
|
+
- Review plans: `/plan_review`
|
|
396
|
+
- Review changes: `/review`
|
|
397
|
+
- Document solutions: `/compound`
|
|
398
|
+
- Triage remaining work: `/triage`
|
|
399
|
+
- Archive when done: `/housekeeping`
|