@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.
@@ -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 before planning, or the user describes a new idea/product.
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
- - Start with `start` operation: present initial analysis and open questions.
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 the artifact focused on **what** should be built, not implementation details by default.
22
- - Write the result to `docs/brainstorms/` as a durable requirements document.
23
- - End by recommending `02-plan` when the requirements are ready.
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 gathering, determine which mode to use. Use `ask_user_question`:
23
+ After initial context, determine mode via `ask_user_question`:
29
24
 
30
- > Before we dig in, what's your goal with this?
31
- >
32
- > - **Building a startup** (or thinking about it)
33
- > - **Intrapreneurship** internal project, need to ship fast
34
- > - **Side project / hackathon / learning** building for fun or exploration
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
- **Mode mapping:**
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
- After the diagnostic, run Premise Challenge (see `references/premise-challenge.md`), then proceed to Alternatives Generation and design checklist.
55
-
56
- ## Builder Mode
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
- ## CE Brainstorm mode (existing flow)
38
+ ## Mode summaries
69
39
 
70
- This is the original Compound Engineering brainstorm. Use when adding a feature to an existing project.
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
- 1. Scan the repository for nearby context.
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 (all modes)
48
+ ## Premise Challenge
79
49
 
80
- After the mode-specific questions are complete, run the Premise Challenge. See `references/premise-challenge.md`.
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 are likely to change?
88
- - What are the boundaries between responsibilities?
89
- - What can fail, and how should failure be handled?
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 the user instead of guessing when:
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
- Before handing off to `02-plan`:
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 the repository for nearby context.
110
- 2. Determine mode (Startup / Builder / CE) via the mode selection step.
111
- 3. Run mode-specific questions using the appropriate reference file.
112
- 4. Run Premise Challenge.
113
- 5. Generate 2-3 alternatives (at least one "minimal viable" and one "ideal architecture").
114
- 6. Validate against the design checklist.
115
- 7. Use `brainstorm_dialog` `summarize` to finalize the conversation.
116
- 8. Capture the agreed direction in a requirements artifact under `docs/brainstorms/`.
117
- 9. Get explicit user approval before handing off.
118
- 10. Hand off to `02-plan` using `references/handoff.md`.
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 requirements document. Keep implementation details out unless the brainstorm is specifically about architecture or technical direction.
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 |
@@ -11,77 +11,58 @@ See [shared pipeline instructions](../references/pipeline-config.md) for model r
11
11
 
12
12
  ## Core rules
13
13
 
14
- - Before planning, load project rules:
15
- 1. `rules/common/development-workflow.md` and `rules/common/testing.md`
16
- 2. Detect the project's primary language using [language detection](../references/language-detection.md)
17
- 3. Load all files in the matching language-specific rules directory (e.g. `rules/typescript/`)
18
- 4. If the task involves frontend/browser concerns, also load `rules/web/` files
19
- - Priority: project-level `{repo-root}/rules/` overrides package-level defaults
20
- - Search `docs/brainstorms/` for a relevant requirements artifact first.
21
- - Search solutions with grep-first strategy: extract keywords from the task → `bash grep -rl "tags:.*keyword" docs/solutions/ ~/.pi/agent/docs/solutions/` → read only frontmatter (first 15 lines) of matching files → score by severity + tag relevance → fully read top 3. Search both project-level (`docs/solutions/`) and global-level (`~/.pi/agent/docs/solutions/`). If no matches, report "No relevant solutions found" and proceed.
22
- - Write the final plan to `docs/plans/`.
23
- - Break the work into implementation units instead of writing an execution script.
24
- - If a plan already exists, use **`plan_diff`** to compare existing units with new requirements and apply incremental changes instead of rewriting.
25
- - End by recommending `03-work` once the plan is ready.
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 implementation unit must follow **RED, GREEN, REFACTOR**:
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** — stop and revise the plan if any unit:
35
- - implements code before a failing test
36
- - lacks a command proving the RED step
37
- - lacks a command proving the GREEN step
38
- - skips verification
39
- - relies on unstated tools or assumptions
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 the most relevant brainstorm artifact from `docs/brainstorms/` when one exists.
44
- 2. Execute the solution search strategy: extract keywords → grep frontmatter fields (tags, title) in `docs/solutions/` and `~/.pi/agent/docs/solutions/` → read frontmatter of candidates only → score and rank → fully read top 3.
45
- 3. Gather repository context from the affected areas.
46
- 4. If a plan already exists:
47
- a. Use `plan_diff` `compare` to identify added, removed, modified, and unchanged units.
48
- b. Review the diff with the user.
49
- c. Use `plan_diff` `patch` to apply approved changes.
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 the plan artifact is written (step 5 or 6 above), offer the user a strategic review:
57
-
58
- > Plan ready. How do you want to review it?
59
- >
60
- > - **A) Just go** — trust the plan, skip review
61
- > - **B) CEO Review** — challenge premises, check for better alternatives, dream-state mapping
62
- > - **C) Strict Review** — full CEO Review plus error maps, failure modes, test diagrams
63
-
64
- If the user picks A, proceed directly to the `03-work` handoff.
65
- If the user picks B or C, read `references/ceo-review-mode.md` and execute the review flow.
66
-
67
- After CEO/Strict Review:
68
- 1. Update the plan artifact with any changes the user approved.
69
- 2. Note the review mode and key decisions in the plan.
70
- 3. Proceed to the `03-work` handoff.
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
@@ -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 a tightly scoped bare prompt ready for execution.
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
- - Before execution, load project rules:
15
- 1. `rules/common/development-workflow.md` and `rules/common/testing.md`
16
- 2. Detect the project's primary language using [language detection](../references/language-detection.md)
17
- 3. Load all files in the matching language-specific rules directory (e.g. `rules/typescript/`)
18
- 4. If the task involves frontend/browser concerns, also load `rules/web/` files
19
- - Priority: project-level `{repo-root}/rules/` overrides package-level defaults
20
- - Distinguish between a **plan path** input and a **bare prompt** input before doing work.
21
- - Prefer deriving execution tasks from plan **implementation units**.
22
- - Prefer inline execution for small or tightly scoped units.
23
- - Use **`ce_parallel_subagent`** for independent CE skill-based units that can run concurrently.
24
- - Use **`ce_subagent`** only for dependent serial chains that benefit from isolated context or specialized CE skill execution.
25
- - Note: the generic `subagent` / `parallel_subagent` tool names are reserved for third-party agent extensions (e.g. `pi-subagents`); CE skill-router uses the `ce_`-prefixed names to avoid tool-name conflicts.
26
- - Use **`session_checkpoint`** to track plan execution progress. On start, load the checkpoint and skip completed units. After each unit, save the checkpoint.
27
- - On execution failure, use `session_checkpoint` `fail` to record the error, then `retry` to get a retry strategy. Follow the suggested strategy to recover.
28
- - Use **`task_splitter`** to analyze implementation units for file-level dependencies before execution. Run independent units via `ce_parallel_subagent` and dependent units serially.
29
- - If inside a **worktree** (created via `07-worktree`), execute within it. Otherwise, consider recommending `07-worktree` for isolation.
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 execution step must follow **RED → GREEN → REFACTOR**:
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
- - code is written before the RED test
42
- - a RED step fails for the wrong reason
43
- - missing evidence that the test failed before implementation
44
- - missing evidence that the test passed after implementation
45
- - tests added only after code
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 whether the input is a plan path or a bare prompt.
50
- 2. If it is a plan path, read the implementation units and execute from them.
51
- 3. If it is a bare prompt, do a small scope scan before deciding whether to proceed.
52
- 4. Use `session_checkpoint` to load progress and skip completed units.
53
- 5. Use `task_splitter` to identify parallel-safe vs dependent units.
54
- 6. Execute in inline mode by default; use `ce_parallel_subagent` for independent CE skill units and `ce_subagent` only for valuable dependent serial chains.
55
- 7. For each unit, follow strict TDD:
56
- a. Run the RED test and confirm expected failure.
57
- b. Apply minimal implementation.
58
- c. Run the GREEN test and confirm pass.
59
- d. Refactor only while tests stay green.
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
+ ```