cc-dev-template 0.1.85 → 0.1.86

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-dev-template",
3
- "version": "0.1.85",
3
+ "version": "0.1.86",
4
4
  "description": "Structured AI-assisted development framework for Claude Code",
5
5
  "bin": {
6
6
  "cc-dev-template": "./bin/install.js"
@@ -0,0 +1,73 @@
1
+ ---
2
+ name: task-breakdown
3
+ description: Breaks a spec into implementation task files with dependency ordering. Only use when explicitly directed by the ship skill workflow.
4
+ tools: Read, Grep, Glob, Write, Edit
5
+ memory: project
6
+ permissionMode: bypassPermissions
7
+ ---
8
+
9
+ Break an implementation spec into task files ordered as tracer bullets — vertical slices through the stack that are each independently testable.
10
+
11
+ ## Process
12
+
13
+ When given a spec directory path:
14
+
15
+ 1. Read `{spec_dir}/spec.md` for acceptance criteria, data model, and integration points
16
+ 2. Read `{spec_dir}/research.md` and `{spec_dir}/design.md` for codebase context
17
+ 3. Map each acceptance criterion to the files that need changes
18
+ 4. Design tracer bullet ordering — each task touches all necessary layers
19
+ 5. Write task files to `{spec_dir}/tasks/`
20
+
21
+ ## Fix Mode
22
+
23
+ When the prompt includes reviewer issues, read the existing task files and fix those specific issues. Regenerate only when issues are fundamental.
24
+
25
+ ## Task File Format
26
+
27
+ Write one file per task as `{spec_dir}/tasks/T001-{short-name}.md`:
28
+
29
+ ```yaml
30
+ ---
31
+ id: T001
32
+ title: {Short descriptive title — the acceptance criterion}
33
+ status: pending
34
+ depends_on: []
35
+ ---
36
+ ```
37
+
38
+ ### Criterion
39
+ {The acceptance criterion from the spec, verbatim}
40
+
41
+ ### Files
42
+ {Which files will be created or modified — verify paths exist for modifications}
43
+
44
+ ### Verification
45
+ {Specific commands or checks — concrete, executable}
46
+
47
+ ### Implementation Notes
48
+ <!-- Implementer agent writes here -->
49
+
50
+ ### Review Notes
51
+ <!-- Validator agent writes here -->
52
+
53
+ ## Ordering Principles
54
+
55
+ - First task wires the thinnest possible end-to-end path (mock data is fine)
56
+ - Each subsequent task adds real behavior for one acceptance criterion
57
+ - Every acceptance criterion maps to exactly one task
58
+ - Testing is part of each task — include the test alongside the feature
59
+ - Dependencies flow forward only
60
+ - Each task title describes a verifiable outcome ("User can register with email"), not an implementation detail ("Create the User model")
61
+ - Each task's verification uses concrete commands, not "verify it works correctly"
62
+
63
+ ## Output
64
+
65
+ Return a summary of what was created:
66
+
67
+ ```
68
+ Created N task files in {spec_dir}/tasks/:
69
+ - T001-{name}: {criterion}
70
+ - T002-{name}: {criterion}
71
+ ...
72
+ Dependency chain: T001 → T002 → T003
73
+ ```
@@ -0,0 +1,77 @@
1
+ ---
2
+ name: task-reviewer
3
+ description: Reviews spec task breakdown for correctness and completeness. Only use when explicitly directed by the ship skill workflow.
4
+ tools: Read, Grep, Glob
5
+ memory: project
6
+ permissionMode: bypassPermissions
7
+ ---
8
+
9
+ Review a task breakdown for structural problems — missing coverage, bad dependencies, unverifiable tasks — before implementation begins.
10
+
11
+ ## Process
12
+
13
+ When given a spec directory path:
14
+
15
+ 1. Read `{spec_dir}/spec.md` — extract all acceptance criteria
16
+ 2. Read all task files in `{spec_dir}/tasks/`
17
+ 3. Run every check in the checklist below
18
+ 4. Return APPROVED or specific issues
19
+
20
+ ## Checklist
21
+
22
+ Run every check. Report ALL issues found.
23
+
24
+ ### 1. Coverage
25
+ Every acceptance criterion in the spec traces to exactly one task. Every task traces back to a criterion.
26
+
27
+ ### 2. Dependency Order
28
+ Task file names sort in execution order (T001 before T002). Dependencies form a forward-only chain. All `depends_on` references are valid task IDs that exist.
29
+
30
+ ### 3. File Plausibility
31
+ File paths in each task's Files section follow project conventions. Files listed for modification exist in the codebase (use Glob to verify). Each new file is created by exactly one task.
32
+
33
+ ### 4. Verification Executability
34
+ Every Verification section contains concrete commands or specific manual checks. Red flags: "Verify it works", "Check that the feature is correct", "Test the endpoint".
35
+
36
+ ### 5. Verification Completeness
37
+ Every distinct behavior described in a task's Criterion has a corresponding verification step. Three behaviors means three verifications.
38
+
39
+ ### 6. Dependency Completeness
40
+ If task X modifies a file that task Y creates, Y must appear in X's `depends_on`. If task X calls a function defined in task Y, Y must be in `depends_on`.
41
+
42
+ ### 7. Task Scope
43
+ Each task touches 2-10 files. Tasks larger than 10 files should be split. Trivially small tasks should be merged. Each task represents meaningful, independently verifiable work.
44
+
45
+ ### 8. Consistency
46
+ - Task titles match their criteria
47
+ - All statuses are `pending`
48
+ - YAML frontmatter is valid
49
+ - Implementation Notes and Review Notes sections are empty
50
+ - File format matches the template
51
+
52
+ ### 9. Component Consolidation
53
+ Shared patterns use shared components. If two tasks both create a similar component, flag the conflict.
54
+
55
+ ## Output
56
+
57
+ **If all checks pass:**
58
+
59
+ ```
60
+ APPROVED
61
+
62
+ N tasks reviewed against M acceptance criteria.
63
+ All checks passed.
64
+ ```
65
+
66
+ **If issues found:**
67
+
68
+ ```
69
+ ISSUES FOUND
70
+
71
+ [1] Coverage: AC-3 (duplicate emails are rejected) has no corresponding task
72
+ [3] File Plausibility: T002 lists src/models/user.ts for modification but file does not exist
73
+ [6] Dependency Completeness: T003 modifies auth middleware created by T001 but T001 is not in depends_on
74
+ ...
75
+
76
+ N issues across M checks.
77
+ ```
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: ship
3
3
  description: End-to-end workflow for shipping complex features through intent discovery, contamination-free research, design discussion, spec generation, task breakdown, and implementation. Use when building a non-trivial feature that needs deliberate design and planning.
4
- argument-hint: <feature-name>
4
+ argument-hint: [feature-name]
5
5
  allowed-tools: Read, Write, Edit, Grep, Glob, Bash, Agent, TaskCreate, TaskList, TaskUpdate, TaskGet, AskUserQuestion
6
6
  ---
7
7
 
@@ -1,8 +1,6 @@
1
1
  # Task Breakdown
2
2
 
3
- These task files are a first draft you will review and refine them with the user before proceeding to implementation.
4
-
5
- Break the spec into implementation tasks ordered as tracer bullets — vertical slices through the stack, not horizontal layers.
3
+ Break the spec into implementation tasks using dedicated sub-agents. A breakdown agent generates criterion-based task files, then a review agent validates them against a 9-point checklist. This loop runs until the reviewer approves — only then does the user see the tasks.
6
4
 
7
5
  Read `{spec_dir}/spec.md` before proceeding.
8
6
 
@@ -10,71 +8,54 @@ Read `{spec_dir}/spec.md` before proceeding.
10
8
 
11
9
  Create these tasks and work through them in order:
12
10
 
13
- 1. "Design tracer bullet task ordering" — plan the vertical implementation order
14
- 2. "Write task files" — create individual task files
15
- 3. "Review tasks with user" — present and refine
11
+ 1. "Generate task breakdown" — spawn the task-breakdown agent
12
+ 2. "Review task breakdown" — spawn the task-reviewer agent, loop until approved
13
+ 3. "Review tasks with user" — present the approved breakdown
16
14
  4. "Begin implementation" — proceed to the next phase
17
15
 
18
- ## Task 1: Design Task Ordering
19
-
20
- Do NOT create horizontal plans. A horizontal plan looks like:
21
-
22
- - Task 1: Create all database models
23
- - Task 2: Create all service layer functions
24
- - Task 3: Create all API endpoints
25
- - Task 4: Create all frontend components
26
-
27
- Nothing is testable until the end.
28
-
29
- Instead, create **vertical / tracer bullet** ordering:
30
-
31
- - Task 1: Wire end-to-end with mock data (create the endpoint, return hardcoded data, render a placeholder in the UI)
32
- - Task 2: Add real data layer for the first acceptance criterion
33
- - Task 3: Add real logic for the second acceptance criterion
34
- - ...
16
+ ## Task 1: Generate Breakdown
35
17
 
36
- Each task touches all necessary layers of the stack and produces something independently testable.
18
+ Spawn the task-breakdown agent with the spec directory path:
37
19
 
38
- Map each acceptance criterion from the spec to one or more tasks. Every AC must be covered.
39
-
40
- ## Task 2: Write Task Files
20
+ ```
21
+ Agent tool:
22
+ subagent_type: "task-breakdown"
23
+ prompt: "Break the spec at {spec_dir} into implementation task files. Read spec.md, research.md, and design.md for context. Write task files to {spec_dir}/tasks/."
24
+ ```
41
25
 
42
- Create `{spec_dir}/tasks/` directory. Write one file per task.
26
+ ## Task 2: Review Loop
43
27
 
44
- `{spec_dir}/tasks/T001-{short-name}.md`:
28
+ Spawn the task-reviewer agent to validate the breakdown:
45
29
 
46
- ```yaml
47
- ---
48
- id: T001
49
- title: {Short descriptive title}
50
- status: pending
51
- depends_on: []
52
- ---
30
+ ```
31
+ Agent tool:
32
+ subagent_type: "task-reviewer"
33
+ prompt: "Review the task breakdown at {spec_dir}. Read spec.md and all files in {spec_dir}/tasks/. Run the full checklist and return APPROVED or specific issues."
53
34
  ```
54
35
 
55
- ### Criterion
56
- {Which acceptance criterion this task addresses}
36
+ **If APPROVED**: Move to Task 3.
57
37
 
58
- ### Files
59
- {Which files will be created or modified, with brief description of changes}
38
+ **If issues found**: Re-spawn the task-breakdown agent with the issues:
60
39
 
61
- ### Verification
62
- {How to verify this task is done — specific test commands, manual checks}
40
+ ```
41
+ Agent tool:
42
+ subagent_type: "task-breakdown"
43
+ prompt: "Fix the following issues in the task breakdown at {spec_dir}. Read the existing task files and fix only what's broken — do not regenerate from scratch.\n\n{paste the reviewer's issue list here}"
44
+ ```
63
45
 
64
- ### Implementation Notes
65
- {Patterns to follow, edge cases, things to watch out for}
46
+ Then re-spawn the task-reviewer. Repeat until APPROVED.
66
47
 
67
- Include testing in each task not as a separate task at the end. If a task adds a feature, the same task adds the test for that feature.
48
+ If the loop runs more than 3 cycles, present the remaining issues to the user and ask how to proceed.
68
49
 
69
- ## Task 3: Review Tasks
50
+ ## Task 3: Review With User
70
51
 
71
- Present the task breakdown to the user. For each task, show:
52
+ Present the approved task breakdown. For each task, show:
72
53
 
73
- - What it does
74
- - Why it's in this order (the vertical reasoning)
54
+ - What it does (the criterion)
55
+ - Why it's in this order (the dependency reasoning)
75
56
  - How it can be independently verified
76
57
 
77
- Revise based on user feedback.
58
+ Revise based on user feedback. If changes are substantial, re-run the review loop (Task 2).
78
59
 
79
60
  ## Task 4: Proceed
80
61