cc-dev-template 0.1.78 → 0.1.79

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.78",
3
+ "version": "0.1.79",
4
4
  "description": "Structured AI-assisted development framework for Claude Code",
5
5
  "bin": {
6
6
  "cc-dev-template": "./bin/install.js"
@@ -9,14 +9,15 @@ context: fork
9
9
 
10
10
  ## Workflow Overview
11
11
 
12
- This skill has 4 steps. **You must complete ALL steps before presenting to the user.**
12
+ This skill has 5 steps. **You must complete ALL steps. Do not stop early or skip any step.**
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
16
  3. **Generate Tasks** - Create task files in `tasks/` directory
17
- 4. **Review Tasks** - Invoke `task-review` skill to validate, fix issues
17
+ 4. **Review Tasks** - Run review checklist in a loop until no critical issues remain
18
+ 5. **Reflect** - Note any skill issues observed during this run
18
19
 
19
- Do NOT skip step 4. The review catches dependency errors and coverage gaps.
20
+ Steps 4 and 5 are mandatory. The review loop in step 4 is automated — fix issues and re-check until clean, with no user input required.
20
21
 
21
22
  ## What To Do Now
22
23
 
@@ -60,13 +60,10 @@ 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
- ## REQUIRED: Run Review Before Presenting
63
+ ## Do NOT Present Results Yet
64
64
 
65
- **Do NOT present results to the user yet.** After generating task files, you MUST:
65
+ You have generated task files but you are NOT done. The review step is next and it is mandatory.
66
66
 
67
- 1. Read `references/step-4-review.md`
68
- 2. Invoke the `task-review` skill to validate the breakdown
69
- 3. Fix any critical issues found
70
- 4. Only then present results (including any warnings)
67
+ **IMPORTANT: You are not done. You MUST read and complete the next step. The workflow is incomplete without it.**
71
68
 
72
- This review step catches dependency errors, coverage gaps, and verification issues. Skipping it leads to broken task breakdowns that fail during implementation.
69
+ Read `references/step-4-review.md` now.
@@ -1,50 +1,95 @@
1
1
  # Step 4: Review Task Breakdown
2
2
 
3
- **This step is REQUIRED.** Do not present results until review is complete.
3
+ **IMPORTANT: This step is mandatory. The spec-to-tasks workflow is not complete until this step is finished. Do not skip this.**
4
4
 
5
- ## Run Task Review
5
+ You must review the generated tasks, fix any issues, and re-review until the breakdown is clean. This is fully automated — do not ask the user for input during this step.
6
6
 
7
- Invoke the task-review skill NOW:
7
+ ## Review Checklist
8
8
 
9
- ```
10
- Skill(skill: "task-review", args: "<spec-name>")
11
- ```
9
+ Read every task file and the spec. Evaluate each area below. For each issue found, note the severity:
10
+ - **Critical**: Must fix before proceeding
11
+ - **Warning**: Should fix, but could proceed
12
+ - **Note**: Minor suggestion
12
13
 
13
- Wait for the review to complete before proceeding.
14
+ ### 1. Coverage
14
15
 
15
- The review will check:
16
- - Coverage (all criteria have tasks)
17
- - Dependency order (tasks properly sequenced)
18
- - File plausibility (paths make sense)
19
- - Verification executability (concrete commands)
20
- - Task scope (appropriately sized)
21
- - Consistency (format, frontmatter)
16
+ Compare acceptance criteria in the spec to tasks generated.
22
17
 
23
- ## Handle Findings
18
+ - Every acceptance criterion has exactly one corresponding task
19
+ - No criteria were skipped or forgotten
20
+ - No phantom tasks that don't map to a criterion
24
21
 
25
- The review returns findings categorized as Critical, Warning, or Note.
22
+ **How to verify:** List each criterion from the spec's Acceptance Criteria section. For each, find the matching task file. Flag any orphans in either direction.
26
23
 
27
- **Critical issues**: Fix before proceeding. Update the affected task files.
24
+ ### 2. Dependency Order
28
25
 
29
- **Warnings**: Present to user with your recommendation (fix or skip).
26
+ - Task file names sort in valid execution order (T001, T002, etc.)
27
+ - Each task's `depends_on` references only earlier tasks
28
+ - No circular dependencies
29
+ - Foundation work comes before features that use it
30
30
 
31
- **Notes**: Mention briefly, no action required.
31
+ ### 3. File Plausibility
32
32
 
33
- ## Present to User
33
+ - File paths follow project conventions
34
+ - Files to modify actually exist in the codebase
35
+ - Files to create are in appropriate directories
36
+ - No duplicate files across tasks (each file appears in exactly one task)
34
37
 
35
- After addressing critical issues, present:
38
+ ### 4. Verification Executability
36
39
 
37
- 1. Number of tasks generated
38
- 2. Task titles in dependency order
39
- 3. Any warnings from the review (with recommendations)
40
- 4. Offer to show task files or proceed to implementation
40
+ - Verification is a specific command or script, not vague prose
41
+ - Test file paths exist or will be created by the task
42
+ - No "manually verify" without clear steps
43
+
44
+ **Red flags:** "Verify it works correctly", "Check that the feature functions", test commands for files not listed in the task.
45
+
46
+ ### 5. Verification Completeness
47
+
48
+ - Read the criterion text carefully — identify every distinct behavior or edge case mentioned
49
+ - For each behavior, confirm there's a corresponding verification step
50
+ - Flag any behaviors in the criterion that have no verification
51
+
52
+ ### 6. Dependency Completeness
53
+
54
+ - If task X modifies a file, check if another task creates it — that task must be in X's depends_on
55
+ - If task X uses a component/function/route, check if another task creates it — that task must be in X's depends_on
56
+
57
+ ### 7. Task Scope
58
+
59
+ - No task touches more than ~10 files (consider splitting)
60
+ - No trivially small tasks that could merge with related work
61
+ - Each task produces a verifiable outcome
62
+
63
+ ### 8. Consistency
41
64
 
42
- If the user wants changes, update the task files and re-run the review.
65
+ - Task titles match or closely reflect the acceptance criterion
66
+ - Status is `pending` for all new tasks
67
+ - Frontmatter format is consistent across all task files
43
68
 
44
- ## Skill Observations
69
+ ### 9. Component Consolidation
45
70
 
46
- If any task generation patterns, step instructions, or template formats in this skill were wrong, incomplete, or misleading during this run, include a note in your final output to the user. This helps the parent context decide whether to update the skill.
71
+ - No two tasks create components with similar names, purposes, or overlapping structure
72
+ - Shared patterns use a single shared component with configuration, not separate implementations
73
+
74
+ ## Review Loop
75
+
76
+ Run the checklist above against all task files. Then:
77
+
78
+ 1. **If Critical issues found:** Fix them by editing the task files. Then re-run the full checklist again from the top. Repeat until no Critical issues remain.
79
+ 2. **If only Warnings/Notes remain:** Proceed — you will present these to the user.
80
+ 3. **If no issues found:** Proceed.
81
+
82
+ Do NOT present results after a single pass if Critical issues exist. The loop must continue until clean.
83
+
84
+ ## Present to User
85
+
86
+ After the review loop completes with no Critical issues, present:
87
+
88
+ 1. Number of tasks generated
89
+ 2. Task dependency tree (visual format)
90
+ 3. Any Warnings from the review (with your recommendation)
91
+ 4. Offer to show task files or proceed to implementation
47
92
 
48
- ## Complete
93
+ **IMPORTANT: You are not done. You MUST read and complete the next step. The workflow is incomplete without it.**
49
94
 
50
- Once the user approves the task breakdown, the skill is complete. The tasks are ready for implementation.
95
+ Read `references/step-5-reflect.md` now.
@@ -0,0 +1,22 @@
1
+ # Step 5: Skill Reflection
2
+
3
+ **IMPORTANT: This step is mandatory. The spec-to-tasks workflow is not complete until this step is finished. Do not skip this.**
4
+
5
+ ## Reflect on This Run
6
+
7
+ Think about how this skill performed during this session. Consider:
8
+
9
+ 1. **Step instructions**: Were any steps unclear, misleading, or missing information?
10
+ 2. **Task template**: Did the template work well, or did you need to deviate from it?
11
+ 3. **Review checklist**: Did the checklist catch real issues? Were any checks unnecessary or missing?
12
+ 4. **Workflow flow**: Did the step order make sense? Were there unnecessary steps or missing ones?
13
+
14
+ ## Report Issues
15
+
16
+ If you identified any problems with the skill's instructions, templates, or workflow, include a brief note in your final output to the user under a "Skill Observations" heading. Keep it factual — what was wrong, what would be better.
17
+
18
+ If everything worked well, state: "No skill issues observed."
19
+
20
+ ## Complete
21
+
22
+ The spec-to-tasks workflow is now complete.