cc-dev-template 0.1.80 → 0.1.81
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/package.json +1 -1
- package/src/skills/agent-browser/SKILL.md +7 -133
- package/src/skills/agent-browser/references/common-patterns.md +64 -0
- package/src/skills/agent-browser/references/ios-simulator.md +25 -0
- package/src/skills/agent-browser/references/reflect.md +9 -0
- package/src/skills/agent-browser/references/semantic-locators.md +11 -0
- package/src/skills/claude-md/SKILL.md +1 -3
- package/src/skills/claude-md/references/audit-reflect.md +0 -4
- package/src/skills/claude-md/references/audit.md +1 -3
- package/src/skills/claude-md/references/create-reflect.md +0 -4
- package/src/skills/claude-md/references/create.md +1 -3
- package/src/skills/claude-md/references/modify-reflect.md +0 -4
- package/src/skills/claude-md/references/modify.md +1 -3
- package/src/skills/creating-agent-skills/SKILL.md +2 -2
- package/src/skills/creating-agent-skills/references/create-step-1-understand.md +1 -1
- package/src/skills/creating-agent-skills/references/create-step-2-design.md +3 -3
- package/src/skills/creating-agent-skills/references/create-step-3-write.md +42 -10
- package/src/skills/creating-agent-skills/references/create-step-4-review.md +2 -2
- package/src/skills/creating-agent-skills/references/create-step-5-install.md +1 -3
- package/src/skills/creating-agent-skills/references/create-step-6-reflect.md +1 -3
- package/src/skills/creating-agent-skills/references/fix-step-1-diagnose.md +5 -4
- package/src/skills/creating-agent-skills/references/fix-step-2-apply.md +2 -2
- package/src/skills/creating-agent-skills/references/fix-step-3-validate.md +1 -3
- package/src/skills/creating-agent-skills/references/fix-step-4-reflect.md +1 -3
- package/src/skills/creating-agent-skills/templates/router-skill.md +3 -3
- package/src/skills/creating-sub-agents/references/create-step-1-understand.md +1 -1
- package/src/skills/creating-sub-agents/references/create-step-2-design.md +1 -1
- package/src/skills/creating-sub-agents/references/create-step-3-write.md +1 -1
- package/src/skills/creating-sub-agents/references/create-step-4-review.md +1 -1
- package/src/skills/creating-sub-agents/references/create-step-5-install.md +1 -3
- package/src/skills/creating-sub-agents/references/create-step-6-reflect.md +0 -4
- package/src/skills/creating-sub-agents/references/fix-step-3-validate.md +1 -3
- package/src/skills/creating-sub-agents/references/fix-step-4-reflect.md +0 -4
- package/src/skills/execute-spec/SKILL.md +9 -17
- package/src/skills/execute-spec/references/phase-1-hydrate.md +4 -1
- package/src/skills/execute-spec/references/phase-2-build.md +5 -3
- package/src/skills/execute-spec/references/phase-3-validate.md +5 -4
- package/src/skills/execute-spec/references/phase-4-triage.md +4 -0
- package/src/skills/execute-spec/references/phase-5-reflect.md +1 -3
- package/src/skills/initialize-project/SKILL.md +2 -4
- package/src/skills/initialize-project/references/reflect.md +0 -4
- package/src/skills/project-setup/references/step-5-verify.md +1 -3
- package/src/skills/project-setup/references/step-6-reflect.md +0 -4
- package/src/skills/prompting/SKILL.md +1 -1
- package/src/skills/prompting/references/create-reflect.md +0 -4
- package/src/skills/prompting/references/create.md +1 -3
- package/src/skills/prompting/references/review-reflect.md +0 -4
- package/src/skills/prompting/references/review.md +1 -3
- package/src/skills/research/SKILL.md +1 -1
- package/src/skills/research/references/step-2-conduct-research.md +1 -3
- package/src/skills/research/references/step-3-reflect.md +0 -4
- package/src/skills/setup-lsp/SKILL.md +1 -1
- package/src/skills/setup-lsp/references/step-1-scan.md +1 -1
- package/src/skills/setup-lsp/references/step-2-install-configure.md +1 -3
- package/src/skills/setup-lsp/references/step-3-verify.md +1 -3
- package/src/skills/setup-lsp/references/step-4-reflect.md +0 -2
- package/src/skills/spec-interview/SKILL.md +1 -32
- package/src/skills/spec-interview/references/step-1-opening.md +32 -1
- package/src/skills/spec-interview/references/step-2-ideation.md +2 -2
- package/src/skills/spec-interview/references/step-4-deep-dive.md +18 -0
- package/src/skills/spec-interview/references/step-7-finalize.md +1 -3
- package/src/skills/spec-interview/references/step-8-reflect.md +1 -3
- package/src/skills/spec-review/SKILL.md +8 -9
- package/src/skills/spec-sanity-check/SKILL.md +2 -2
- package/src/skills/spec-to-tasks/SKILL.md +3 -3
- package/src/skills/spec-to-tasks/references/step-3-generate.md +5 -7
- package/src/skills/spec-to-tasks/references/step-4-review.md +9 -14
- package/src/skills/task-review/SKILL.md +2 -2
- package/src/skills/task-review/references/checklist.md +14 -16
- package/src/skills/execute-spec/references/workflow.md +0 -82
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
# Step 6: Reflect and Improve
|
|
2
2
|
|
|
3
|
-
**IMPORTANT: This step is mandatory. The sub-agent creation workflow is not complete until this step is finished. Do not skip this.**
|
|
4
|
-
|
|
5
|
-
Reflect on your experience creating this sub-agent. The purpose is to improve the creating-sub-agents skill itself based on what you just learned.
|
|
6
|
-
|
|
7
3
|
## Assess
|
|
8
4
|
|
|
9
5
|
Answer these questions honestly:
|
|
@@ -51,6 +51,4 @@ Summarize what was fixed:
|
|
|
51
51
|
- What was wrong and how it was resolved
|
|
52
52
|
- Confirm with the user that the sub-agent now behaves as expected
|
|
53
53
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
Read `references/fix-step-4-reflect.md` now.
|
|
54
|
+
Use the Read tool on `references/fix-step-4-reflect.md` to reflect on the fix process and note any skill issues.
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
# Step 4: Reflect and Improve
|
|
2
2
|
|
|
3
|
-
**IMPORTANT: This step is mandatory. The sub-agent fix workflow is not complete until this step is finished. Do not skip this.**
|
|
4
|
-
|
|
5
|
-
Reflect on your experience fixing this sub-agent. The purpose is to improve the creating-sub-agents skill itself based on what you just learned.
|
|
6
|
-
|
|
7
3
|
## Assess
|
|
8
4
|
|
|
9
5
|
Answer these questions honestly:
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
---
|
|
2
|
+
name: execute-spec
|
|
3
|
+
description: Orchestrates implementation and validation of a spec's task breakdown by dispatching agents — never reads task files or edits code directly.
|
|
2
4
|
allowed-tools: Grep, Glob, Task, TaskCreate, TaskList, TaskUpdate, TaskGet, AskUserQuestion, Bash
|
|
3
5
|
hooks:
|
|
4
6
|
PreToolUse:
|
|
@@ -12,8 +14,6 @@ hooks:
|
|
|
12
14
|
|
|
13
15
|
Orchestrates the implementation and validation of a spec's task breakdown.
|
|
14
16
|
|
|
15
|
-
**Important**: This skill is an orchestrator only. It does NOT read task files or edit code directly. It dispatches agents and receives minimal status responses. All detailed work happens in the agents; all detailed findings live in the task files.
|
|
16
|
-
|
|
17
17
|
## When to Use
|
|
18
18
|
|
|
19
19
|
Invoke when you have a complete spec with a `tasks/` folder containing task files (T001-*.md, T002-*.md, etc.) ready for implementation.
|
|
@@ -23,26 +23,18 @@ Invoke when you have a complete spec with a `tasks/` folder containing task file
|
|
|
23
23
|
This skill takes a spec path as an argument:
|
|
24
24
|
- `docs/specs/my-feature` - path to the spec folder containing `spec.md` and `tasks/`
|
|
25
25
|
|
|
26
|
-
## Workflow
|
|
27
|
-
|
|
28
|
-
Read `references/workflow.md` for the full orchestration flow.
|
|
29
|
-
|
|
30
|
-
## Phases
|
|
31
|
-
|
|
32
|
-
1. **Hydrate** - Run parse script, create tasks with dependencies (NO file reading)
|
|
33
|
-
2. **Build** - Dispatch spec-implementer agents, receive minimal status
|
|
34
|
-
3. **Validate** - Dispatch spec-validator agents, receive pass/fail
|
|
35
|
-
4. **Triage** - Re-dispatch implementers for failed tasks, loop until clean
|
|
36
|
-
5. **Reflect** - Assess orchestration experience, improve skill files (mandatory)
|
|
37
|
-
|
|
38
26
|
## Key Principles
|
|
39
27
|
|
|
40
|
-
- **Never read task files**
|
|
41
|
-
- **Minimal context**
|
|
42
|
-
- **
|
|
28
|
+
- **Never read task files** — Use the parse script for hydration, pass paths to agents. A PreToolUse hook blocks task file reads.
|
|
29
|
+
- **Minimal context** — Agent returns are pass/fail only, details live in task files.
|
|
30
|
+
- **Dispatch only** — All implementation and fixes go to spec-implementer agents, all validation to spec-validator agents. The orchestrator dispatches and collects status.
|
|
43
31
|
|
|
44
32
|
## Requirements
|
|
45
33
|
|
|
46
34
|
- Spec folder must contain `spec.md` and `tasks/` directory
|
|
47
35
|
- Task files must have YAML frontmatter with `id`, `title`, `status`, `depends_on`
|
|
48
36
|
- The `spec-implementer` and `spec-validator` agents must be installed
|
|
37
|
+
|
|
38
|
+
## Start
|
|
39
|
+
|
|
40
|
+
Read `references/phase-1-hydrate.md` to begin the workflow.
|
|
@@ -68,4 +68,7 @@ Maintain a mapping of task IDs (T001, T002) to Claude task system IDs.
|
|
|
68
68
|
|
|
69
69
|
- All tasks in Claude Code task system
|
|
70
70
|
- Dependencies configured
|
|
71
|
-
|
|
71
|
+
|
|
72
|
+
## Next
|
|
73
|
+
|
|
74
|
+
Use the Read tool on `references/phase-2-build.md` to start dispatching implementers.
|
|
@@ -25,8 +25,7 @@ Loop until all tasks complete:
|
|
|
25
25
|
)
|
|
26
26
|
|
|
27
27
|
4. Wait for completions:
|
|
28
|
-
-
|
|
29
|
-
- Poll TaskList periodically to check status
|
|
28
|
+
- Background agents will notify you when they finish — wait for their completion messages
|
|
30
29
|
- As tasks complete, newly unblocked tasks become ready
|
|
31
30
|
|
|
32
31
|
5. Repeat until no pending tasks remain
|
|
@@ -60,4 +59,7 @@ Build Progress:
|
|
|
60
59
|
|
|
61
60
|
- All tasks implemented (or failed with notes)
|
|
62
61
|
- Implementation Notes written to each task file
|
|
63
|
-
|
|
62
|
+
|
|
63
|
+
## Next
|
|
64
|
+
|
|
65
|
+
Use the Read tool on `references/phase-3-validate.md` to validate the implementations.
|
|
@@ -29,9 +29,7 @@ Dispatch spec-validator agents for each completed task.
|
|
|
29
29
|
|
|
30
30
|
4. Wait for all validators to complete
|
|
31
31
|
|
|
32
|
-
5. Collect results
|
|
33
|
-
- Read Review Notes from each task file
|
|
34
|
-
- Aggregate issues by severity
|
|
32
|
+
5. Collect results from validator returns (pass/fail status only)
|
|
35
33
|
```
|
|
36
34
|
|
|
37
35
|
## Validator Behavior
|
|
@@ -69,4 +67,7 @@ Validation Results:
|
|
|
69
67
|
|
|
70
68
|
- Validation complete for all tasks
|
|
71
69
|
- Issues collected and categorized
|
|
72
|
-
|
|
70
|
+
|
|
71
|
+
## Next
|
|
72
|
+
|
|
73
|
+
Use the Read tool on `references/phase-4-triage.md` to process results and fix any failures.
|
|
@@ -73,3 +73,7 @@ Phase completes when:
|
|
|
73
73
|
1. All validators return "Pass: TXXX"
|
|
74
74
|
2. User explicitly defers remaining issues
|
|
75
75
|
3. Max retry limit reached (suggest user intervention)
|
|
76
|
+
|
|
77
|
+
## Next
|
|
78
|
+
|
|
79
|
+
Use the Read tool on `references/phase-5-reflect.md` to present final results to the user and reflect on the workflow.
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
# Phase 5: Reflect and Improve
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Reflect on your experience orchestrating this spec execution. The purpose is to improve the execute-spec skill itself based on what you just learned.
|
|
3
|
+
Reflect on your experience orchestrating this spec execution.
|
|
6
4
|
|
|
7
5
|
## Assess
|
|
8
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: initialize-project
|
|
3
|
-
description: Scaffold docs structure for Claude Code sessions. Use when starting a new project, when
|
|
3
|
+
description: Scaffold docs structure for Claude Code sessions. Use when starting a new project, when the project lacks docs/CURRENT_WORK.md, or when the user wants session tracking initialized.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Initialize Project
|
|
@@ -32,6 +32,4 @@ Report what was created:
|
|
|
32
32
|
|
|
33
33
|
End with: "Run `/prime` to start a session."
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
Read references/reflect.md now.
|
|
35
|
+
Use the Read tool on `references/reflect.md` to reflect on the setup and note any skill issues.
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
# Reflect and Improve
|
|
2
2
|
|
|
3
|
-
**IMPORTANT: This step is mandatory. The initialize-project workflow is not complete until this step is finished. Do not skip this.**
|
|
4
|
-
|
|
5
|
-
Reflect on your experience using this skill. The purpose is to improve the initialize-project skill itself based on what you just learned.
|
|
6
|
-
|
|
7
3
|
## Assess
|
|
8
4
|
|
|
9
5
|
Answer these questions honestly:
|
|
@@ -69,6 +69,4 @@ Tell the user:
|
|
|
69
69
|
|
|
70
70
|
If everything passed, the setup is complete.
|
|
71
71
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
Read `references/step-6-reflect.md` now.
|
|
72
|
+
Use the Read tool on `references/step-6-reflect.md` to reflect on the setup experience and note any skill issues.
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
# Step 6: Reflect and Improve
|
|
2
2
|
|
|
3
|
-
**IMPORTANT: This step is mandatory. The project setup workflow is not complete until this step is finished. Do not skip this.**
|
|
4
|
-
|
|
5
|
-
Reflect on your experience setting up this project. The purpose is to improve the project-setup skill itself based on what you just learned.
|
|
6
|
-
|
|
7
3
|
## Assess
|
|
8
4
|
|
|
9
5
|
Answer these questions honestly:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: prompting
|
|
3
|
-
description:
|
|
3
|
+
description: Guide prompt creation and improvement using Claude 4.x best practices. Use for reviewing existing prompts, creating new prompts, or improving prompt effectiveness.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Prompting
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
# Reflect on Prompt Creation
|
|
2
2
|
|
|
3
|
-
**IMPORTANT: This step is mandatory. The prompt creation workflow is not complete until this step is finished. Do not skip this.**
|
|
4
|
-
|
|
5
|
-
Reflect on your experience using this skill to create the prompt. The purpose is to improve the prompting skill itself based on what you just learned.
|
|
6
|
-
|
|
7
3
|
## Assess
|
|
8
4
|
|
|
9
5
|
Answer these questions honestly:
|
|
@@ -58,6 +58,4 @@ Ask: "Does this capture what you need? Any adjustments?"
|
|
|
58
58
|
|
|
59
59
|
Incorporate feedback until the user is satisfied.
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
Read `references/create-reflect.md` now.
|
|
61
|
+
Use the Read tool on `references/create-reflect.md` to reflect on the prompt creation and note any skill issues.
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
# Reflect on Prompt Review
|
|
2
2
|
|
|
3
|
-
**IMPORTANT: This step is mandatory. The prompt review workflow is not complete until this step is finished. Do not skip this.**
|
|
4
|
-
|
|
5
|
-
Reflect on your experience using this skill to review the prompt. The purpose is to improve the prompting skill itself based on what you just learned.
|
|
6
|
-
|
|
7
3
|
## Assess
|
|
8
4
|
|
|
9
5
|
Answer these questions honestly:
|
|
@@ -77,6 +77,4 @@ Ask: "Would you like me to adjust anything in the improved version?"
|
|
|
77
77
|
|
|
78
78
|
Incorporate feedback and present updated version until the user is satisfied.
|
|
79
79
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
Read `references/review-reflect.md` now.
|
|
80
|
+
Use the Read tool on `references/review-reflect.md` to reflect on the prompt review and note any skill issues.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: research
|
|
3
|
-
description: Deep research on unfamiliar paradigms, libraries, or patterns before implementation.
|
|
3
|
+
description: Deep research on unfamiliar paradigms, libraries, or patterns before implementation. Use when a topic needs investigation before coding, or when spec-interview identifies research needs. Outputs to docs/research/ with YAML frontmatter.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Research
|
|
@@ -62,6 +62,4 @@ After writing the document:
|
|
|
62
62
|
2. Summarize the key takeaways
|
|
63
63
|
3. Return to the invoking context (spec-interview or user)
|
|
64
64
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
Read `references/step-3-reflect.md` now.
|
|
65
|
+
Use the Read tool on `references/step-3-reflect.md` to reflect on the research process and note any skill issues.
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
# Step 3: Reflect and Improve
|
|
2
2
|
|
|
3
|
-
**IMPORTANT: This step is mandatory. The research workflow is not complete until this step is finished. Do not skip this.**
|
|
4
|
-
|
|
5
|
-
Reflect on your experience using this skill. The purpose is to improve the research skill itself based on what you just learned.
|
|
6
|
-
|
|
7
3
|
## Assess
|
|
8
4
|
|
|
9
5
|
Answer these questions honestly:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: setup-lsp
|
|
3
|
-
description: Set up LSP language servers for the current project. Use when the
|
|
3
|
+
description: Set up LSP language servers for the current project. Use when the project needs code intelligence configured, or to verify an existing LSP setup. Pass "verify" argument after restart to confirm LSP is working.
|
|
4
4
|
disable-model-invocation: true
|
|
5
5
|
argument-hint: "[verify]"
|
|
6
6
|
---
|
|
@@ -25,4 +25,4 @@ Show the user:
|
|
|
25
25
|
|
|
26
26
|
Ask the user to confirm which LSPs to install. They may want to skip some languages.
|
|
27
27
|
|
|
28
|
-
Read `references/step-2-install-configure.md
|
|
28
|
+
Use the Read tool on `references/step-2-install-configure.md` to install language server binaries and configure Claude Code plugins.
|
|
@@ -80,6 +80,4 @@ Tell the user:
|
|
|
80
80
|
2. Restart Claude Code in this project directory
|
|
81
81
|
3. Run `/setup-lsp verify` to confirm LSP is working
|
|
82
82
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
Read `references/step-4-reflect.md` now.
|
|
83
|
+
Use the Read tool on `references/step-4-reflect.md` to reflect on the setup and capture any workarounds for future runs.
|
|
@@ -38,6 +38,4 @@ Tell the user:
|
|
|
38
38
|
- Which operations were tested and their results
|
|
39
39
|
- Any operations that didn't work (with explanation)
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
Read `references/step-4-reflect.md` now.
|
|
41
|
+
Use the Read tool on `references/step-4-reflect.md` to reflect on the setup and capture any workarounds for future runs.
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
# Step 4: Reflect
|
|
2
2
|
|
|
3
|
-
**IMPORTANT: This step is mandatory. The setup-lsp workflow is not complete until this step is finished. Do not skip this.**
|
|
4
|
-
|
|
5
3
|
## Assess
|
|
6
4
|
|
|
7
5
|
- Were any install commands wrong, outdated, or platform-specific in a way the registry didn't account for?
|
|
@@ -6,38 +6,7 @@ argument-hint: <spec-name>
|
|
|
6
6
|
|
|
7
7
|
# Spec Interview
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
**IMPORTANT:** This skill uses an agent team for collaborative spec development. You are the **Lead** — you interview the user, write the spec, and curate team input. Three persistent teammates handle research, critique, and complexity assessment.
|
|
12
|
-
|
|
13
|
-
### Team Composition
|
|
14
|
-
|
|
15
|
-
All teammates run on Opus:
|
|
16
|
-
- **Researcher** (researcher): Continuously explores the codebase, maps file landscape, integration points, data model. Drafts technical sections.
|
|
17
|
-
- **Critic** (critic): Reviews the emerging spec for gaps, bad assumptions, edge cases. Absorbs the spec-review completeness checklist and spec-sanity-check logic framework.
|
|
18
|
-
- **Pragmatist** (pragmatist): Evaluates complexity, pushes back on over-engineering, identifies the simplest buildable path.
|
|
19
|
-
|
|
20
|
-
### Working Directory
|
|
21
|
-
|
|
22
|
-
The team shares `{spec_dir}/working/`:
|
|
23
|
-
- `context.md` — You (the Lead) write interview updates here. Append-only — each update is a new section with a heading (e.g., `## Step 1: Feature Overview`). This replaces broadcasting — teammates read this file to stay current.
|
|
24
|
-
- Teammates write their findings to `working/` with descriptive filenames. Read these at checkpoints.
|
|
25
|
-
- `spec.md` (parent dir) — The living spec. You own this file. Teammates read it but never write to it.
|
|
26
|
-
|
|
27
|
-
### Checkpoint Pattern
|
|
28
|
-
|
|
29
|
-
Surface team input at step transitions, not continuously. This keeps the user conversation clean:
|
|
30
|
-
- **After Step 2** (approach selected): Read all working files, curate team findings for user
|
|
31
|
-
- **During Step 4** (deep dive): Read Researcher findings for each subsection, read Critic/Pragmatist feedback
|
|
32
|
-
- **At Step 7** (finalize): Request final assessments from all three, compile and present to user
|
|
33
|
-
|
|
34
|
-
At each checkpoint: read the working files, identify findings that are relevant and actionable, summarize them for the user as "Before we continue, my research team surfaced a few things..." Skip trivial items.
|
|
35
|
-
|
|
36
|
-
### Team Lifecycle
|
|
37
|
-
|
|
38
|
-
1. **Spawn** — After Step 1 (once the feature is understood), create the working directory, read the three prompt templates from `references/`, substitute `{spec_dir}` and `{feature_name}`, use TeamCreate to create a team named `spec-{feature-name}`, then spawn the three teammates via the Task tool
|
|
39
|
-
2. **Communicate** — Update context.md after each step. Message teammates for specific questions. Read their working files at checkpoints.
|
|
40
|
-
3. **Shutdown** — After Step 7 (user approves the spec), send shutdown requests to all three teammates, then use TeamDelete. Leave the `working/` directory in place as reference for implementation.
|
|
9
|
+
Conduct a structured interview to produce an implementation-ready feature spec. This skill uses an agent team — three persistent teammates (Researcher, Critic, Pragmatist) handle codebase exploration, quality review, and complexity assessment while you lead the interview.
|
|
41
10
|
|
|
42
11
|
## What To Do Now
|
|
43
12
|
|
|
@@ -22,7 +22,38 @@ Move on when:
|
|
|
22
22
|
|
|
23
23
|
## Initialize the Team
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
You are the **Lead** — you interview the user, write the spec, and curate team input. Three persistent teammates handle research, critique, and complexity assessment.
|
|
26
|
+
|
|
27
|
+
### Team Composition
|
|
28
|
+
|
|
29
|
+
All teammates run on Opus:
|
|
30
|
+
- **Researcher** (researcher): Continuously explores the codebase, maps file landscape, integration points, data model. Drafts technical sections.
|
|
31
|
+
- **Critic** (critic): Reviews the emerging spec for gaps, bad assumptions, edge cases. Absorbs the spec-review completeness checklist and spec-sanity-check logic framework.
|
|
32
|
+
- **Pragmatist** (pragmatist): Evaluates complexity, pushes back on over-engineering, identifies the simplest buildable path.
|
|
33
|
+
|
|
34
|
+
### Working Directory
|
|
35
|
+
|
|
36
|
+
The team shares `{spec_dir}/working/`:
|
|
37
|
+
- `context.md` — You (the Lead) write interview updates here. Append-only — each update is a new section with a heading (e.g., `## Step 1: Feature Overview`). This replaces broadcasting — teammates read this file to stay current.
|
|
38
|
+
- Teammates write their findings to `working/` with descriptive filenames. Read these at checkpoints.
|
|
39
|
+
- `spec.md` (parent dir) — The living spec. You own this file. Teammates read it but never write to it.
|
|
40
|
+
|
|
41
|
+
### Checkpoint Pattern
|
|
42
|
+
|
|
43
|
+
Surface team input at step transitions, not continuously. This keeps the user conversation clean:
|
|
44
|
+
- **After Step 2** (approach selected): Read all working files, curate team findings for user
|
|
45
|
+
- **During Step 4** (deep dive): Read Researcher findings for each subsection, read Critic/Pragmatist feedback
|
|
46
|
+
- **At Step 7** (finalize): Request final assessments from all three, compile and present to user
|
|
47
|
+
|
|
48
|
+
At each checkpoint: read the working files, identify findings that are relevant and actionable, summarize them for the user as "Before we continue, my research team surfaced a few things..." Skip trivial items.
|
|
49
|
+
|
|
50
|
+
### Team Lifecycle
|
|
51
|
+
|
|
52
|
+
1. **Spawn** — After the opening questions (once the feature is understood), create the working directory, read the three prompt templates from `references/`, substitute `{spec_dir}` and `{feature_name}`, use TeamCreate to create a team named `spec-{feature-name}`, then spawn the three teammates via the Task tool
|
|
53
|
+
2. **Communicate** — Update context.md after each step. Message teammates for specific questions. Read their working files at checkpoints.
|
|
54
|
+
3. **Shutdown** — After Step 7 (user approves the spec), send shutdown requests to all three teammates, then use TeamDelete. Leave the `working/` directory in place as reference for implementation.
|
|
55
|
+
|
|
56
|
+
### Spawn Steps
|
|
26
57
|
|
|
27
58
|
1. Create the spec directory at `docs/specs/<feature-name>/` if not already created
|
|
28
59
|
2. Create `docs/specs/<feature-name>/working/` subdirectory
|
|
@@ -14,7 +14,7 @@ Use AskUserQuestion to ask:
|
|
|
14
14
|
|
|
15
15
|
## Hybrid Brainstorming
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
Get human ideas first, before AI suggestions anchor their thinking.
|
|
18
18
|
|
|
19
19
|
### 1. Collect User Ideas First
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ Use AskUserQuestion:
|
|
|
22
22
|
|
|
23
23
|
> "Before I suggest anything - what approaches have you been considering? Even rough or half-formed ideas are valuable."
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
Capture ideas without evaluating. The goal is to capture their independent thinking before AI ideas influence it.
|
|
26
26
|
|
|
27
27
|
### 2. Generate AI Alternatives
|
|
28
28
|
|
|
@@ -42,6 +42,15 @@ This becomes the File Landscape section of the spec, which spec-to-tasks uses di
|
|
|
42
42
|
- Triggers and resulting actions
|
|
43
43
|
- Different modes or variations
|
|
44
44
|
|
|
45
|
+
### Constraints
|
|
46
|
+
- What is explicitly out of scope (features, users, flows to NOT build)
|
|
47
|
+
- Technology boundaries (must use X, must not introduce Y)
|
|
48
|
+
- Performance requirements (latency, throughput, resource limits)
|
|
49
|
+
- Security requirements (auth, PII handling, logging restrictions)
|
|
50
|
+
- Compatibility requirements (browsers, platforms, API versions)
|
|
51
|
+
|
|
52
|
+
Constraints that aren't written down don't exist during implementation. If the spec doesn't say "don't introduce a new ORM" or "must stay under 200ms," those boundaries won't be respected downstream.
|
|
53
|
+
|
|
45
54
|
### Edge Cases & Error Handling
|
|
46
55
|
- Failure modes and how to handle them
|
|
47
56
|
- Invalid input handling
|
|
@@ -67,6 +76,15 @@ Write to `docs/specs/<name>/spec.md` with this structure:
|
|
|
67
76
|
- [Primary goal]
|
|
68
77
|
- [Secondary goals]
|
|
69
78
|
|
|
79
|
+
## Approach
|
|
80
|
+
[Chosen approach and rationale. What alternatives were considered and why this one was selected.]
|
|
81
|
+
|
|
82
|
+
## Constraints
|
|
83
|
+
- **Out of scope:** [What this feature explicitly does NOT do]
|
|
84
|
+
- **Technology:** [Must use / must not introduce]
|
|
85
|
+
- **Performance:** [Latency, throughput, resource limits]
|
|
86
|
+
- **Security:** [Auth, PII, logging restrictions]
|
|
87
|
+
|
|
70
88
|
## Integration Points
|
|
71
89
|
- Touches: [existing components]
|
|
72
90
|
- External: [APIs, services, libraries]
|
|
@@ -57,6 +57,4 @@ Once user confirms no more review passes needed:
|
|
|
57
57
|
|
|
58
58
|
If yes to task breakdown, invoke `spec-to-tasks` and specify which spec to break down.
|
|
59
59
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
Read `references/step-8-reflect.md` now.
|
|
60
|
+
Use the Read tool on `references/step-8-reflect.md` to reflect on the interview process and note any skill issues.
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
# Step 8: Reflect and Improve
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Reflect on your experience conducting this spec interview. The purpose is to improve the spec-interview skill itself based on what you just learned.
|
|
3
|
+
Reflect on this spec interview to improve the skill itself.
|
|
6
4
|
|
|
7
5
|
## Assess
|
|
8
6
|
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: spec-review
|
|
3
|
-
description:
|
|
3
|
+
description: Review a feature spec for completeness and implementation readiness. Checks data models, integration points, acceptance criteria, CLAUDE.md alignment, and duplication.
|
|
4
4
|
argument-hint: <spec-name>
|
|
5
5
|
context: fork
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Spec Review
|
|
9
9
|
|
|
10
|
-
##
|
|
10
|
+
## Find the Spec
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
2. **Read the spec file**
|
|
14
|
-
3. **Find all CLAUDE.md files** - Search for every CLAUDE.md in the project (root and subdirectories)
|
|
15
|
-
4. **Read all CLAUDE.md files** - These contain project constraints and conventions
|
|
16
|
-
5. **Evaluate against the checklist below** - Including CLAUDE.md alignment
|
|
17
|
-
6. **Return structured feedback using the output format**
|
|
12
|
+
Use the path from the prompt if provided. Otherwise, find the most recently modified file in `docs/specs/`. If no specs exist, inform the user and stop.
|
|
18
13
|
|
|
19
|
-
##
|
|
14
|
+
## Read Context
|
|
15
|
+
|
|
16
|
+
Read the spec file and all CLAUDE.md files in the project (root and subdirectories). CLAUDE.md files contain project constraints and conventions to check alignment against.
|
|
17
|
+
|
|
18
|
+
## Evaluate Against Checklist
|
|
20
19
|
|
|
21
20
|
A spec is implementation-ready when ALL of these are satisfied:
|
|
22
21
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: spec-sanity-check
|
|
3
|
-
description:
|
|
3
|
+
description: Fresh-eyes review of a spec's logic and assumptions. Checks for logic gaps, incorrect assumptions about existing systems, unconsidered scenarios, and implementation pitfalls.
|
|
4
4
|
argument-hint: <spec-path>
|
|
5
5
|
context: fork
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Spec Sanity Check
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
Review the spec with fresh eyes. Focus on whether the plan will actually work, not format or completeness.
|
|
11
11
|
|
|
12
12
|
## Find the Spec
|
|
13
13
|
|
|
@@ -13,11 +13,11 @@ This skill has 5 steps. **You must complete ALL steps. Do not stop early or skip
|
|
|
13
13
|
|
|
14
14
|
1. **Identify Spec** - Find and verify the spec file
|
|
15
15
|
2. **Verify File Landscape** - Map files to acceptance criteria
|
|
16
|
-
3. **
|
|
17
|
-
4. **Review
|
|
16
|
+
3. **Draft Tasks** - Create draft task files in `tasks/` directory
|
|
17
|
+
4. **Review and Present** - Review drafts, auto-fix issues, then present final results to the user
|
|
18
18
|
5. **Reflect** - Note any skill issues observed during this run
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
Step 4 is where you present results to the user. Step 3 produces drafts; step 4 reviews, fixes, and presents them.
|
|
21
21
|
|
|
22
22
|
## What To Do Now
|
|
23
23
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Step 3:
|
|
1
|
+
# Step 3: Draft Task Files
|
|
2
2
|
|
|
3
|
-
Create
|
|
3
|
+
Create draft task files based on the spec and codebase exploration. These are drafts — you will review, fix, and present them in the next step.
|
|
4
4
|
|
|
5
5
|
## Task Principles
|
|
6
6
|
|
|
@@ -60,10 +60,8 @@ docs/specs/<name>/
|
|
|
60
60
|
|
|
61
61
|
Use the template in `templates/task.md` for each file. Name files in dependency order so alphabetical sorting reflects execution order.
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
After writing all draft task files, use the Read tool on `references/step-4-review.md` to review and present your results to the user.
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
## Continue to Review
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
Read `references/step-4-review.md` now.
|
|
67
|
+
Draft task files are ready. Use the Read tool on `references/step-4-review.md` now — that is where you review the drafts and present the final results to the user.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# Step 4: Review
|
|
1
|
+
# Step 4: Review and Present Tasks
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Review the draft tasks, auto-fix all issues, then present the final results to the user. This is the step where the user sees your output.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
This is fully automated — fix every issue you find without asking the user. Do not ask for input during this step.
|
|
6
6
|
|
|
7
7
|
## Review Checklist
|
|
8
8
|
|
|
@@ -71,24 +71,19 @@ Compare acceptance criteria in the spec to tasks generated.
|
|
|
71
71
|
- No two tasks create components with similar names, purposes, or overlapping structure
|
|
72
72
|
- Shared patterns use a single shared component with configuration, not separate implementations
|
|
73
73
|
|
|
74
|
-
## Review Loop
|
|
74
|
+
## Review and Fix Loop
|
|
75
75
|
|
|
76
|
-
Run the checklist above against all task files. Then
|
|
76
|
+
Run the checklist above against all task files. Fix every issue you find — Critical, Warning, and fixable Notes — by editing the task files directly. Then re-run the full checklist from the top. Repeat until no issues remain.
|
|
77
77
|
|
|
78
|
-
|
|
79
|
-
2. **If only Warnings/Notes remain:** Proceed — you will present these to the user.
|
|
80
|
-
3. **If no issues found:** Proceed.
|
|
78
|
+
Do not present results until the loop is clean.
|
|
81
79
|
|
|
82
|
-
|
|
80
|
+
## Present Results to User
|
|
83
81
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
After the review loop completes with no Critical issues, present:
|
|
82
|
+
After the review loop completes clean, present:
|
|
87
83
|
|
|
88
84
|
1. Number of tasks generated
|
|
89
85
|
2. Task dependency tree (visual format)
|
|
90
|
-
3.
|
|
91
|
-
4. Offer to show task files or proceed to implementation
|
|
86
|
+
3. Summary of review findings and fixes applied (what you found, what you fixed)
|
|
92
87
|
|
|
93
88
|
**IMPORTANT: You are not done. You MUST read and complete the next step. The workflow is incomplete without it.**
|
|
94
89
|
|