@leing2021/super-pi 0.23.0 → 0.23.1
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/README.md +55 -324
- package/extensions/ce-core/index.ts +86 -41
- package/package.json +1 -1
- package/skills/01-brainstorm/SKILL.md +42 -79
- package/skills/01-brainstorm/references/ce-brainstorm-mode.md +47 -0
- package/skills/02-plan/SKILL.md +43 -62
- package/skills/02-plan/references/solution-search.md +46 -0
- package/skills/03-work/SKILL.md +34 -55
- package/skills/03-work/references/completion-report.md +51 -0
- package/skills/04-review/SKILL.md +44 -52
- package/skills/04-review/references/solution-search.md +46 -0
- package/skills/06-next/SKILL.md +15 -28
- package/skills/06-next/references/recommendation-logic.md +45 -0
- package/skills/07-worktree/SKILL.md +20 -20
- package/skills/08-help/SKILL.md +37 -28
- package/skills/08-help/references/workflow-sequence.md +128 -3
|
@@ -5,120 +5,83 @@ description: "Brainstorm requirements with three modes: CE discovery, Startup Di
|
|
|
5
5
|
|
|
6
6
|
# Brainstorm
|
|
7
7
|
|
|
8
|
-
Use this skill when the request is ambiguous, needs requirements discovery
|
|
8
|
+
Use this skill when the request is ambiguous, needs requirements discovery, or the user describes a new idea/product.
|
|
9
9
|
|
|
10
10
|
See [shared pipeline instructions](../references/pipeline-config.md) for model routing and pipeline behavior.
|
|
11
11
|
|
|
12
12
|
## Core rules
|
|
13
13
|
|
|
14
|
-
- Use **`brainstorm_dialog`** to manage multi-round conversations.
|
|
15
|
-
-
|
|
16
|
-
- Use `refine` operation: incorporate user responses and produce refined analysis with new questions.
|
|
17
|
-
- Repeat refine rounds until all open questions are resolved.
|
|
18
|
-
- End with `summarize` operation: finalize into a requirements-ready artifact.
|
|
19
|
-
- Ask **one question at a time** within each round.
|
|
14
|
+
- Use **`brainstorm_dialog`** to manage multi-round conversations (`start` → `refine` → `summarize`).
|
|
15
|
+
- Ask **one question at a time**.
|
|
20
16
|
- Compare **2-3 approaches** when multiple directions are plausible.
|
|
21
|
-
- Keep
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
- **Do not proceed to planning without explicit user approval** of the design.
|
|
17
|
+
- Keep focused on **what** to build, not implementation details.
|
|
18
|
+
- **Explicit user approval required** before handoff to `02-plan`.
|
|
19
|
+
- Write result to `docs/brainstorms/` as durable requirements document.
|
|
25
20
|
|
|
26
21
|
## Mode selection
|
|
27
22
|
|
|
28
|
-
After initial context
|
|
23
|
+
After initial context, determine mode via `ask_user_question`:
|
|
29
24
|
|
|
30
|
-
>
|
|
31
|
-
>
|
|
32
|
-
> - **
|
|
33
|
-
> - **
|
|
34
|
-
> - **
|
|
35
|
-
> - **Adding a feature** — already have a project, need to design a change
|
|
25
|
+
> What's your goal?
|
|
26
|
+
> - **Building a startup** → Startup Diagnostic
|
|
27
|
+
> - **Intrapreneurship** → Startup Diagnostic
|
|
28
|
+
> - **Side project / hackathon** → Builder Mode
|
|
29
|
+
> - **Adding a feature** → CE Brainstorm
|
|
36
30
|
|
|
37
|
-
|
|
38
|
-
- Startup, intrapreneurship → **Startup Diagnostic** (see `references/startup-diagnostic.md`)
|
|
39
|
-
- Side project, hackathon, learning → **Builder Mode** (see `references/builder-mode.md`)
|
|
40
|
-
- Adding a feature → **CE Brainstorm** (the existing requirements discovery flow below)
|
|
41
|
-
|
|
42
|
-
If the user's request already makes the mode obvious (e.g., "I have a startup idea"), skip the question and go directly to the matching mode.
|
|
43
|
-
|
|
44
|
-
## Startup Diagnostic mode
|
|
45
|
-
|
|
46
|
-
Read `references/startup-diagnostic.md` for the full YC-style forcing questions, pushback patterns, and anti-sycophancy rules.
|
|
47
|
-
|
|
48
|
-
Key differences from CE mode:
|
|
49
|
-
- **Operating principles:** Specificity is the only currency. Interest is not demand. The status quo is your real competitor. Narrow beats wide, early.
|
|
50
|
-
- **Ask the six forcing questions** one at a time, pushing until answers are specific and uncomfortable.
|
|
51
|
-
- **Smart routing:** Pre-product (Q1-Q3), Has users (Q2, Q4, Q5), Paying customers (Q4, Q5, Q6).
|
|
52
|
-
- **End with the assignment:** One concrete action the founder should take next.
|
|
31
|
+
Skip question if mode is obvious from request.
|
|
53
32
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
Read `references/builder-mode.md` for the full generative question set and response posture.
|
|
59
|
-
|
|
60
|
-
Key differences from CE mode:
|
|
61
|
-
- **Operating principles:** Delight is the currency. Ship something you can show. Solve your own problem. Explore before you optimize.
|
|
62
|
-
- **Ask generative questions** one at a time (coolest version, who would you show, fastest path, what's different, 10x version).
|
|
63
|
-
- **End with concrete build steps**, not business validation tasks.
|
|
64
|
-
- **Vibe shift detection:** If the user starts talking about customers/revenue, upgrade to Startup Diagnostic.
|
|
65
|
-
|
|
66
|
-
After the questions, run Premise Challenge (see `references/premise-challenge.md`), then proceed to Alternatives Generation and design checklist.
|
|
33
|
+
**Mode mapping:**
|
|
34
|
+
- Startup / intrapreneurship → **Startup Diagnostic** (see `references/startup-diagnostic.md`)
|
|
35
|
+
- Side project / hackathon → **Builder Mode** (see `references/builder-mode.md`)
|
|
36
|
+
- Feature addition → **CE Brainstorm** (see `references/ce-brainstorm-mode.md`)
|
|
67
37
|
|
|
68
|
-
##
|
|
38
|
+
## Mode summaries
|
|
69
39
|
|
|
70
|
-
|
|
40
|
+
| Mode | Key principle | End goal |
|
|
41
|
+
|---|---|---|
|
|
42
|
+
| Startup Diagnostic | Specificity is currency, narrow beats wide | One concrete next action |
|
|
43
|
+
| Builder Mode | Delight is currency, ship something showable | Concrete build steps |
|
|
44
|
+
| CE Brainstorm | Requirements clarity | Implementation-ready spec |
|
|
71
45
|
|
|
72
|
-
|
|
73
|
-
2. Use `brainstorm_dialog` `start` to begin multi-round refinement.
|
|
74
|
-
3. Present initial analysis and open questions to the user.
|
|
75
|
-
4. Use `brainstorm_dialog` `refine` to incorporate user responses and refine analysis.
|
|
76
|
-
5. Repeat step 4 until all questions are resolved.
|
|
46
|
+
See reference files for full question sets and patterns.
|
|
77
47
|
|
|
78
|
-
## Premise Challenge
|
|
48
|
+
## Premise Challenge
|
|
79
49
|
|
|
80
|
-
After
|
|
50
|
+
After mode-specific questions, run Premise Challenge. See `references/premise-challenge.md`.
|
|
81
51
|
|
|
82
52
|
## Design checklist
|
|
83
53
|
|
|
84
54
|
Before summarizing, ensure the design answers:
|
|
85
55
|
- What are we building?
|
|
86
56
|
- Why does it exist?
|
|
87
|
-
- What files/modules
|
|
88
|
-
- What are the boundaries
|
|
89
|
-
- What can fail, and how
|
|
57
|
+
- What files/modules will change?
|
|
58
|
+
- What are the responsibility boundaries?
|
|
59
|
+
- What can fail, and how?
|
|
90
60
|
- How will we verify success?
|
|
91
61
|
|
|
92
62
|
## Stop conditions
|
|
93
63
|
|
|
94
|
-
Stop and ask
|
|
95
|
-
- requirements conflict
|
|
96
|
-
- success criteria are unclear
|
|
97
|
-
- the task spans multiple independent systems
|
|
98
|
-
- the user has not approved the design yet
|
|
64
|
+
Stop and ask instead of guessing when: requirements conflict, success criteria unclear, task spans multiple systems, or user hasn't approved design.
|
|
99
65
|
|
|
100
66
|
## Approval gate
|
|
101
67
|
|
|
102
|
-
|
|
103
|
-
1. Present the final design to the user.
|
|
104
|
-
2. Ask for explicit approval.
|
|
105
|
-
3. Only proceed after the user confirms.
|
|
68
|
+
**Required:** Explicit user approval before handoff to `02-plan`.
|
|
106
69
|
|
|
107
70
|
## Workflow
|
|
108
71
|
|
|
109
|
-
1. Scan
|
|
110
|
-
2. Determine mode (Startup / Builder / CE)
|
|
111
|
-
3. Run mode-specific questions
|
|
112
|
-
4. Run Premise Challenge
|
|
113
|
-
5. Generate 2-3 alternatives (
|
|
114
|
-
6. Validate against
|
|
115
|
-
7. Use `brainstorm_dialog` `summarize` to finalize
|
|
116
|
-
8. Capture
|
|
117
|
-
9. Get explicit user approval
|
|
118
|
-
10.
|
|
72
|
+
1. Scan repository for nearby context
|
|
73
|
+
2. Determine mode (Startup / Builder / CE)
|
|
74
|
+
3. Run mode-specific questions (use reference files)
|
|
75
|
+
4. Run Premise Challenge
|
|
76
|
+
5. Generate 2-3 alternatives (minimal viable + ideal architecture)
|
|
77
|
+
6. Validate against design checklist
|
|
78
|
+
7. Use `brainstorm_dialog` `summarize` to finalize
|
|
79
|
+
8. Capture requirements in `docs/brainstorms/`
|
|
80
|
+
9. Get explicit user approval
|
|
81
|
+
10. Handoff to `02-plan` using `references/handoff.md`
|
|
119
82
|
|
|
120
83
|
## Artifact contract
|
|
121
84
|
|
|
122
|
-
Use `references/requirements-template.md` to structure the
|
|
85
|
+
Use `references/requirements-template.md` to structure the document. Keep implementation details out unless specifically about architecture.
|
|
123
86
|
|
|
124
87
|
Before finishing this skill, apply the completion checklist in [shared pipeline instructions](../references/pipeline-config.md).
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# CE Brainstorm Mode
|
|
2
|
+
|
|
3
|
+
Standard requirements discovery flow for feature additions to existing projects.
|
|
4
|
+
|
|
5
|
+
## When to use
|
|
6
|
+
|
|
7
|
+
- Adding a feature to an existing project
|
|
8
|
+
- User has a project but unclear about what to build
|
|
9
|
+
- Request is somewhat specific but needs elaboration
|
|
10
|
+
|
|
11
|
+
## Operating principle
|
|
12
|
+
|
|
13
|
+
**Requirements clarity** — the goal is to produce implementation-ready specifications.
|
|
14
|
+
|
|
15
|
+
## Workflow
|
|
16
|
+
|
|
17
|
+
1. Scan the repository for nearby context
|
|
18
|
+
2. Use `brainstorm_dialog` `start` to begin multi-round refinement
|
|
19
|
+
3. Present initial analysis and open questions to the user
|
|
20
|
+
4. Use `brainstorm_dialog` `refine` to incorporate user responses and refine analysis
|
|
21
|
+
5. Repeat step 4 until all questions are resolved
|
|
22
|
+
|
|
23
|
+
## Key questions
|
|
24
|
+
|
|
25
|
+
Ask one at a time:
|
|
26
|
+
- What problem does this feature solve?
|
|
27
|
+
- Who is the user/consumer?
|
|
28
|
+
- What does success look like?
|
|
29
|
+
- What are the boundaries?
|
|
30
|
+
- What could go wrong?
|
|
31
|
+
|
|
32
|
+
## End state
|
|
33
|
+
|
|
34
|
+
Requirements document covering:
|
|
35
|
+
- Feature purpose and scope
|
|
36
|
+
- User-facing behavior
|
|
37
|
+
- Edge cases and failure modes
|
|
38
|
+
- Success criteria
|
|
39
|
+
- Likely file changes
|
|
40
|
+
|
|
41
|
+
## Difference from other modes
|
|
42
|
+
|
|
43
|
+
| Aspect | CE Brainstorm | Startup Diagnostic | Builder Mode |
|
|
44
|
+
|---|---|---|---|
|
|
45
|
+
| Goal | Implementation clarity | Business validation | Buildable prototype |
|
|
46
|
+
| Questions | Requirements-focused | Problem-first | Solution-first |
|
|
47
|
+
| Output | Spec document | One action | Build steps |
|
package/skills/02-plan/SKILL.md
CHANGED
|
@@ -11,77 +11,58 @@ See [shared pipeline instructions](../references/pipeline-config.md) for model r
|
|
|
11
11
|
|
|
12
12
|
## Core rules
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
|
|
14
|
+
1. Load project rules (4 steps):
|
|
15
|
+
- Load `rules/common/development-workflow.md` and `rules/common/testing.md`
|
|
16
|
+
- Detect project language via [language detection](../references/language-detection.md)
|
|
17
|
+
- Load matching language-specific rules (e.g., `rules/typescript/`)
|
|
18
|
+
- If frontend/browser concerns, also load `rules/web/` files
|
|
19
|
+
2. **Priority:** project-level `{repo-root}/rules/` overrides package defaults
|
|
20
|
+
3. Search `docs/brainstorms/` for relevant requirements first
|
|
21
|
+
4. Run solution search (see `references/solution-search.md`):
|
|
22
|
+
- Extract keywords → `grep -rl "tags:.*keyword" docs/solutions/ ~/.pi/agent/docs/solutions/`
|
|
23
|
+
- Read **frontmatter** only (first 15 lines) of matches → score by severity + tag relevance
|
|
24
|
+
- Fully read top 3 candidates
|
|
25
|
+
5. Write plan to `docs/plans/`
|
|
26
|
+
6. If plan exists, use **`plan_diff`** to compare and patch incrementally
|
|
27
|
+
7. End by recommending `03-work`
|
|
26
28
|
|
|
27
29
|
## Hard gates — TDD enforcement
|
|
28
30
|
|
|
29
|
-
Every
|
|
30
|
-
- No production code step may appear before a failing test step.
|
|
31
|
-
- Every unit must include exact verification commands.
|
|
32
|
-
- No placeholders allowed — replace "handle edge cases" with concrete steps.
|
|
31
|
+
Every unit follows **RED → GREEN → REFACTOR**:
|
|
33
32
|
|
|
34
|
-
**TDD violation rejection criteria** —
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
33
|
+
**TDD violation rejection criteria** — reject and revise if any unit:
|
|
34
|
+
- Implements code before failing test
|
|
35
|
+
- Lacks RED step verification
|
|
36
|
+
- Lacks GREEN step verification
|
|
37
|
+
- Skips verification
|
|
38
|
+
- Uses placeholders or unstated assumptions
|
|
40
39
|
|
|
41
40
|
## Planning flow
|
|
42
41
|
|
|
43
|
-
1. Read
|
|
44
|
-
2.
|
|
45
|
-
3. Gather repository context
|
|
46
|
-
4. If
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
5. If no plan exists, write a new plan artifact under `docs/plans/` using `references/plan-template.md`.
|
|
51
|
-
6. Structure the work using `references/implementation-unit-template.md`.
|
|
52
|
-
7. Verify every unit follows strict TDD — reject units that violate the gates above.
|
|
42
|
+
1. Read relevant brainstorm from `docs/brainstorms/`
|
|
43
|
+
2. Run solution search (keywords → grep frontmatter → read top 3)
|
|
44
|
+
3. Gather repository context
|
|
45
|
+
4. If plan exists: use `plan_diff` `compare` → review with user → `patch`
|
|
46
|
+
5. If no plan: write new plan under `docs/plans/` using `references/plan-template.md`
|
|
47
|
+
6. Structure work using `references/implementation-unit-template.md`
|
|
48
|
+
7. Verify every unit follows TDD gates
|
|
53
49
|
|
|
54
50
|
## Optional: CEO Review
|
|
55
51
|
|
|
56
|
-
After
|
|
57
|
-
|
|
58
|
-
> Plan ready. How
|
|
59
|
-
>
|
|
60
|
-
> - **
|
|
61
|
-
> - **
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
## Implementation unit format
|
|
73
|
-
|
|
74
|
-
Every unit must include:
|
|
75
|
-
- **Purpose**: what this unit accomplishes
|
|
76
|
-
- **Files**: exact paths to create, modify, or test
|
|
77
|
-
- **Steps** as checkboxes:
|
|
78
|
-
1. Write or update a failing test
|
|
79
|
-
2. Run the targeted test and confirm it fails for the expected reason (RED)
|
|
80
|
-
3. Write the minimal implementation needed to pass
|
|
81
|
-
4. Run the targeted test and confirm it passes (GREEN)
|
|
82
|
-
5. Refactor if needed while keeping tests green
|
|
83
|
-
6. Run unit-level verification
|
|
84
|
-
- **Verification commands**: exact commands to run
|
|
85
|
-
- **Expected results**: what success looks like
|
|
52
|
+
After plan is written, offer strategic review:
|
|
53
|
+
|
|
54
|
+
> Plan ready. How to review?
|
|
55
|
+
> - **A) Just go** — trust the plan
|
|
56
|
+
> - **B) CEO Review** — challenge premises, dream-state mapping
|
|
57
|
+
> - **C) Strict Review** — CEO + error maps, failure modes, test diagrams
|
|
58
|
+
|
|
59
|
+
If B or C: read `references/ceo-review-mode.md` and execute review flow.
|
|
60
|
+
After review: update plan artifact, then handoff to `03-work`.
|
|
61
|
+
|
|
62
|
+
## Artifact output
|
|
63
|
+
|
|
64
|
+
- Plan: `docs/plans/<slug>.md`
|
|
65
|
+
- Use `references/plan-template.md` structure
|
|
66
|
+
- Implementation units follow `references/implementation-unit-template.md`
|
|
86
67
|
|
|
87
68
|
Before finishing this skill, apply the completion checklist in [shared pipeline instructions](../references/pipeline-config.md).
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Solution Search Strategy
|
|
2
|
+
|
|
3
|
+
Grep-first strategy for finding relevant solutions before planning or reviewing.
|
|
4
|
+
|
|
5
|
+
## Steps
|
|
6
|
+
|
|
7
|
+
1. **Extract keywords** from the task description
|
|
8
|
+
2. **Grep frontmatter** fields (tags, title) in both locations:
|
|
9
|
+
```bash
|
|
10
|
+
grep -rl "tags:.*keyword" docs/solutions/ ~/.pi/agent/docs/solutions/
|
|
11
|
+
```
|
|
12
|
+
3. **Read frontmatter only** (first 15 lines) of matching files
|
|
13
|
+
4. **Score by:**
|
|
14
|
+
- Severity match (higher severity = higher priority)
|
|
15
|
+
- Tag relevance (exact matches rank higher)
|
|
16
|
+
5. **Fully read top 3** candidates
|
|
17
|
+
6. If no matches: report "No relevant solutions found" and proceed
|
|
18
|
+
|
|
19
|
+
## Search locations
|
|
20
|
+
|
|
21
|
+
| Level | Path | Use for |
|
|
22
|
+
|---|---|---|
|
|
23
|
+
| Project | `docs/solutions/` | Project-specific learnings |
|
|
24
|
+
| Global | `~/.pi/agent/docs/solutions/` | Cross-project patterns |
|
|
25
|
+
|
|
26
|
+
## Scoring rubric
|
|
27
|
+
|
|
28
|
+
| Score | Criteria |
|
|
29
|
+
|---|---|
|
|
30
|
+
| 5 | Exact tag match + high severity + same language |
|
|
31
|
+
| 4 | Tag match + same category |
|
|
32
|
+
| 3 | Partial tag match |
|
|
33
|
+
| 2 | Same category, no tag match |
|
|
34
|
+
| 1 | Worth reading for context |
|
|
35
|
+
| 0 | No relevance |
|
|
36
|
+
|
|
37
|
+
## Output
|
|
38
|
+
|
|
39
|
+
- List of relevant solutions with paths and relevance scores
|
|
40
|
+
- Key takeaways from top solutions
|
|
41
|
+
- How they apply to current task
|
|
42
|
+
|
|
43
|
+
## When to use
|
|
44
|
+
|
|
45
|
+
- `02-plan`: Before creating implementation units, check for existing patterns
|
|
46
|
+
- `04-review`: Before reviewing, check for known failure modes or solutions
|
package/skills/03-work/SKILL.md
CHANGED
|
@@ -5,73 +5,52 @@ description: Execute plan-driven work in a controlled Phase 1 workflow.
|
|
|
5
5
|
|
|
6
6
|
# Work
|
|
7
7
|
|
|
8
|
-
Use this skill when there is a plan path or
|
|
8
|
+
Use this skill when there is a plan path or tightly scoped bare prompt ready for execution.
|
|
9
9
|
|
|
10
10
|
See [shared pipeline instructions](../references/pipeline-config.md) for model routing and pipeline behavior.
|
|
11
11
|
|
|
12
12
|
## Core rules
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
- End by recommending `04-review`.
|
|
14
|
+
1. Load project rules (4 steps):
|
|
15
|
+
- Load `rules/common/development-workflow.md` and `rules/common/testing.md`
|
|
16
|
+
- Detect project language via [language detection](../references/language-detection.md)
|
|
17
|
+
- Load matching language-specific rules
|
|
18
|
+
- If frontend/browser concerns, also load `rules/web/` files
|
|
19
|
+
2. **Priority:** project-level `{repo-root}/rules/` overrides package defaults
|
|
20
|
+
3. **Distinguish input:** plan path vs bare prompt
|
|
21
|
+
4. Derive tasks from plan **implementation units**
|
|
22
|
+
5. **Execution mode:**
|
|
23
|
+
- **Inline mode** for small/scoped units
|
|
24
|
+
- **`ce_parallel_subagent`** for independent CE skill units
|
|
25
|
+
- **`ce_subagent`** only for dependent serial chains
|
|
26
|
+
6. Use **`session_checkpoint`** to track progress and enable resume
|
|
27
|
+
7. Use **`task_splitter`** to analyze dependencies before execution
|
|
28
|
+
8. If in **worktree** (via `07-worktree`), execute inside it
|
|
29
|
+
9. End by recommending `04-review`
|
|
31
30
|
|
|
32
31
|
## Hard gates — TDD enforcement
|
|
33
32
|
|
|
34
|
-
Every
|
|
35
|
-
- No production code before a verified failing test.
|
|
36
|
-
- No skipping RED or GREEN verification.
|
|
37
|
-
- No completion claim without command output evidence.
|
|
38
|
-
- Evidence before assertions — always.
|
|
33
|
+
Every step follows **RED → GREEN → REFACTOR**:
|
|
39
34
|
|
|
40
35
|
**Blocking violations** — stop and ask if:
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
-
|
|
36
|
+
- Code written before RED test
|
|
37
|
+
- RED fails for wrong reason
|
|
38
|
+
- Missing evidence test failed before implementation
|
|
39
|
+
- Missing evidence test passed after implementation
|
|
40
|
+
- Tests added only after code
|
|
46
41
|
|
|
47
42
|
## Workflow
|
|
48
43
|
|
|
49
|
-
1. Detect
|
|
50
|
-
2.
|
|
51
|
-
3.
|
|
52
|
-
4. Use `
|
|
53
|
-
5.
|
|
54
|
-
6.
|
|
55
|
-
7.
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
e. Run unit-level verification.
|
|
61
|
-
8. Record progress using `references/progress-update-format.md`.
|
|
62
|
-
9. After each unit, save `session_checkpoint`.
|
|
63
|
-
10. On failure, use `session_checkpoint` `fail` then `retry`.
|
|
64
|
-
11. Provide a **completion report** when done.
|
|
65
|
-
12. Hand off to `04-review` using `references/handoff.md`.
|
|
66
|
-
|
|
67
|
-
## Completion report
|
|
68
|
-
|
|
69
|
-
When all units are done, provide:
|
|
70
|
-
|
|
71
|
-
- **Completed units**: list of unit names
|
|
72
|
-
- **Files changed**: all files created or modified
|
|
73
|
-
- **Commands run**: all verification commands executed
|
|
74
|
-
- **Verification results**: pass/fail status for each
|
|
75
|
-
- **Follow-up work**: any remaining risks or open questions
|
|
44
|
+
1. Detect input type (plan path vs bare prompt)
|
|
45
|
+
2. Read implementation units if plan path
|
|
46
|
+
3. Load `session_checkpoint` to skip completed units
|
|
47
|
+
4. Use `task_splitter` for dependency analysis
|
|
48
|
+
5. Execute: **inline mode** by default, `ce_parallel_subagent` for independent units
|
|
49
|
+
6. Follow TDD per unit: RED → minimal code → GREEN → refactor → unit-level **verification**
|
|
50
|
+
7. Record progress via `references/progress-update-format.md`
|
|
51
|
+
8. Save `session_checkpoint` after each unit
|
|
52
|
+
9. On failure: `session_checkpoint` `fail` → `retry` → follow strategy
|
|
53
|
+
10. Provide completion report (see `references/completion-report.md`)
|
|
54
|
+
11. Handoff to `04-review` using `references/handoff.md`
|
|
76
55
|
|
|
77
56
|
Before finishing this skill, apply the completion checklist in [shared pipeline instructions](../references/pipeline-config.md).
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Completion Report Template
|
|
2
|
+
|
|
3
|
+
When all implementation units are complete, provide this report:
|
|
4
|
+
|
|
5
|
+
## Summary
|
|
6
|
+
|
|
7
|
+
Brief description of what was completed.
|
|
8
|
+
|
|
9
|
+
## Completed units
|
|
10
|
+
|
|
11
|
+
| Unit | Status | Verification |
|
|
12
|
+
|---|---|---|
|
|
13
|
+
| unit-name-1 | ✅ Done | command output |
|
|
14
|
+
| unit-name-2 | ✅ Done | command output |
|
|
15
|
+
|
|
16
|
+
## Files changed
|
|
17
|
+
|
|
18
|
+
- Created: `path/to/file`
|
|
19
|
+
- Modified: `path/to/file`
|
|
20
|
+
|
|
21
|
+
## Commands run
|
|
22
|
+
|
|
23
|
+
| Command | Result |
|
|
24
|
+
|---|---|
|
|
25
|
+
| `npm test` | ✅ Pass |
|
|
26
|
+
| `npm run build` | ✅ Pass |
|
|
27
|
+
|
|
28
|
+
## Verification results
|
|
29
|
+
|
|
30
|
+
All tests pass. Build succeeds. No regressions.
|
|
31
|
+
|
|
32
|
+
## Follow-up work
|
|
33
|
+
|
|
34
|
+
- Any remaining risks
|
|
35
|
+
- Open questions
|
|
36
|
+
- Suggested next steps
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Report format for skill output
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
## Completion Report
|
|
44
|
+
|
|
45
|
+
**Completed:** list of unit names
|
|
46
|
+
**Files changed:** all created/modified files
|
|
47
|
+
**Commands run:** all verification commands
|
|
48
|
+
**Verification:** pass/fail status for each
|
|
49
|
+
|
|
50
|
+
**Next:** `/skill:04-review`
|
|
51
|
+
```
|