@leeovery/claude-technical-workflows 2.0.45 → 2.0.47

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.
Files changed (34) hide show
  1. package/commands/link-dependencies.md +2 -2
  2. package/commands/workflow/start-discussion.md +5 -1
  3. package/commands/workflow/start-implementation.md +5 -1
  4. package/commands/workflow/start-planning.md +12 -21
  5. package/commands/workflow/start-research.md +5 -1
  6. package/commands/workflow/start-review.md +5 -1
  7. package/commands/workflow/start-specification.md +11 -2
  8. package/commands/workflow/status.md +5 -1
  9. package/commands/workflow/view-plan.md +1 -9
  10. package/package.json +1 -1
  11. package/skills/technical-discussion/SKILL.md +7 -1
  12. package/skills/technical-implementation/SKILL.md +13 -2
  13. package/skills/technical-implementation/references/environment-setup.md +1 -1
  14. package/skills/technical-planning/SKILL.md +83 -20
  15. package/skills/technical-planning/references/{output-backlog-md.md → output-formats/output-backlog-md.md} +4 -4
  16. package/skills/technical-planning/references/{output-beads.md → output-formats/output-beads.md} +4 -4
  17. package/skills/technical-planning/references/{output-linear.md → output-formats/output-linear.md} +4 -4
  18. package/skills/technical-planning/references/{output-local-markdown.md → output-formats/output-local-markdown.md} +3 -3
  19. package/skills/technical-planning/references/output-formats.md +33 -6
  20. package/skills/technical-planning/references/phase-design.md +146 -0
  21. package/skills/technical-planning/references/planning-principles.md +44 -0
  22. package/skills/technical-planning/references/steps/author-tasks.md +63 -0
  23. package/skills/technical-planning/references/steps/define-phases.md +40 -0
  24. package/skills/technical-planning/references/steps/define-tasks.md +43 -0
  25. package/skills/technical-planning/references/steps/plan-review.md +96 -0
  26. package/skills/technical-planning/references/steps/resolve-dependencies.md +56 -0
  27. package/skills/technical-planning/references/steps/review-integrity.md +217 -0
  28. package/skills/technical-planning/references/steps/review-traceability.md +194 -0
  29. package/skills/technical-planning/references/task-design.md +158 -0
  30. package/skills/technical-research/SKILL.md +9 -1
  31. package/skills/technical-research/references/template.md +1 -0
  32. package/skills/technical-review/SKILL.md +9 -1
  33. package/skills/technical-specification/SKILL.md +10 -1
  34. package/skills/technical-planning/references/formal-planning.md +0 -235
@@ -0,0 +1,146 @@
1
+ # Phase Design
2
+
3
+ *Reference for **[technical-planning](../SKILL.md)***
4
+
5
+ ---
6
+
7
+ This reference defines the principles for breaking specifications into implementation phases. It is loaded when phases are first proposed and stays in context through phase approval.
8
+
9
+ ## What Makes a Good Phase
10
+
11
+ Each phase should:
12
+
13
+ - **Deliver a working increment** — not a technical layer, but functionality that can be used or tested end-to-end
14
+ - **Have clear acceptance criteria** — checkboxes that are pass/fail verifiable
15
+ - **Follow natural boundaries** — domain, feature, or capability boundaries, not architectural layers
16
+ - **Leave the system working** — every phase ends with a green test suite and deployable code
17
+ - **Be independently valuable** — if the project stopped after this phase, something useful would exist
18
+
19
+ ---
20
+
21
+ ## The Walking Skeleton
22
+
23
+ Phase 1 is always a **walking skeleton** — the thinnest possible end-to-end slice that threads through all system layers and proves the architecture works.
24
+
25
+ The walking skeleton:
26
+
27
+ - Touches every architectural component the system needs (database, API, UI, external services)
28
+ - Delivers one complete flow, however minimal
29
+ - Establishes the patterns subsequent phases will follow
30
+ - Is production code, not throwaway — it becomes the foundation
31
+
32
+ **Example** (Slack clone):
33
+
34
+ > Phase 1: "Any unauthenticated person can post messages in a hardcoded #general room. Messages persist through page refreshes."
35
+ >
36
+ > No auth, no accounts, no multiple rooms. Just the thinnest thread through the entire stack.
37
+
38
+ **Example** (Calendar app):
39
+
40
+ > Phase 1: "A single event can be created with title, start, and end time, persisted, and retrieved by ID."
41
+ >
42
+ > No recurrence, no sharing, no notifications. Just one thing working end-to-end.
43
+
44
+ The skeleton validates architecture assumptions at the cheapest possible moment. If the end-to-end flow doesn't work, you discover it in Phase 1 — not after building three phases of isolated components.
45
+
46
+ This is the **steel thread** principle: never have big-bang integration. By threading through all layers immediately, integration is the first thing you solve, not the last.
47
+
48
+ ---
49
+
50
+ ## Vertical Phases
51
+
52
+ After the walking skeleton, each subsequent phase adds complete functionality — a vertical slice through the relevant layers.
53
+
54
+ **Vertical (prefer):**
55
+
56
+ ```
57
+ Phase 1: Walking skeleton — single event CRUD, end-to-end
58
+ Phase 2: Recurring events — rules, instance generation, single-instance editing
59
+ Phase 3: Sharing and permissions — invite users, permission levels, shared calendars
60
+ Phase 4: Notifications — email and push notifications for event changes
61
+ ```
62
+
63
+ Each phase delivers something a user or test suite can validate independently.
64
+
65
+ **Horizontal (avoid):**
66
+
67
+ ```
68
+ Phase 1: All database models and migrations
69
+ Phase 2: All service classes and business logic
70
+ Phase 3: All API endpoints
71
+ Phase 4: All UI components
72
+ Phase 5: Wire everything together
73
+ ```
74
+
75
+ Nothing works until Phase 5. No phase is independently testable. Integration risk concentrates at the end.
76
+
77
+ A phase may touch multiple architectural layers — that's expected. The test is: **does this phase deliver working functionality, or does it deliver infrastructure that only becomes useful later?**
78
+
79
+ ### Progression
80
+
81
+ **Skeleton → Core features → Edge cases → Refinement**
82
+
83
+ - **Skeleton** (Phase 1): Thinnest end-to-end slice proving the architecture
84
+ - **Core features**: Each phase adds a complete capability, building on what exists
85
+ - **Edge cases**: Handling boundary conditions, error scenarios, unusual inputs
86
+ - **Refinement**: Performance optimisation, UX polish, hardening
87
+
88
+ This ordering means each phase builds on a working system. The skeleton establishes the pattern; core features flesh it out; edge cases harden it; refinement polishes it.
89
+
90
+ ---
91
+
92
+ ## Phase Boundaries
93
+
94
+ A phase boundary belongs where:
95
+
96
+ - **A meaningful state change occurs** — the system gains a new capability
97
+ - **Human validation is needed** — the approach should be confirmed before building more
98
+ - **The risk profile shifts** — different concerns, different complexity, different unknowns
99
+ - **The work's nature changes** — from core functionality to edge cases, from features to optimisation
100
+
101
+ ### When to split
102
+
103
+ - The combined work exceeds what can be reasoned about in a single focused session
104
+ - An intermediate state is independently valuable or testable
105
+ - You need a checkpoint to validate before investing further
106
+ - Different parts have different risk or uncertainty levels
107
+
108
+ ### When to keep together
109
+
110
+ - High cohesion — changes to one part directly affect the other
111
+ - The intermediate state has no independent value
112
+ - Splitting would create phases that aren't meaningful milestones
113
+ - The overhead of phase management exceeds the benefit
114
+
115
+ ### Granularity check
116
+
117
+ If a phase has only 1-2 trivial tasks, it's probably too thin — merge it. If a phase has 8+ tasks spanning multiple concerns, it's probably too thick — split it. Most phases land at 3-6 focused tasks.
118
+
119
+ ---
120
+
121
+ ## Cross-Phase Coupling
122
+
123
+ **Maximize cohesion within a phase, minimize dependencies between phases.**
124
+
125
+ A well-bounded phase could theoretically be reordered or dropped without cascading failures across other phases. In practice, phases have a natural sequence (the skeleton must come first), but each phase should be as self-contained as possible.
126
+
127
+ Strategies:
128
+
129
+ - **Walking skeleton first** — subsequent phases add to a working system rather than depending on future phases
130
+ - **Clear interfaces between phases** — each phase produces defined contracts (API shapes, data models, test suites) that subsequent phases consume
131
+ - **Shared infrastructure in Phase 1** — if multiple phases need the same foundation, it belongs in the skeleton
132
+ - **No forward references** — a phase should never depend on something that hasn't been built yet
133
+
134
+ ---
135
+
136
+ ## Anti-Patterns
137
+
138
+ **Horizontal phases** — organising by technical layer ("all models, then all services, then all controllers"). Defers integration risk, produces phases that aren't independently valuable. The walking skeleton eliminates this by integrating from the start.
139
+
140
+ **God phase** — one massive phase covering too many concerns. Results in unclear success criteria, inability to track progress, and cognitive overload. If you can't summarise a phase's goal in one sentence, it needs splitting.
141
+
142
+ **Trivial phases** — phases so small they're just individual tasks wearing a trenchcoat. Phase management has overhead; don't pay it for work that doesn't warrant a checkpoint.
143
+
144
+ **Infrastructure-only phases** (after Phase 1) — phases that deliver tooling, configuration, or refactoring with no user-facing value. These should be folded into the phase that needs them, unless they're genuinely cross-cutting prerequisites.
145
+
146
+ **Speculative phases** — phases planned for hypothetical future requirements. Plan what the specification defines, not what might be needed later.
@@ -0,0 +1,44 @@
1
+ # Planning Principles
2
+
3
+ *Reference for **[technical-planning](../SKILL.md)***
4
+
5
+ ---
6
+
7
+ This reference defines the principles, rules, and quality standards for creating implementation plans. It is loaded at the start of the planning process and stays in context throughout.
8
+
9
+ ## Planning is a Gated Process
10
+
11
+ Planning translates the specification into actionable structure. This translation requires judgment, and the process is designed to ensure that judgment is exercised carefully and collaboratively — not rushed.
12
+
13
+ ### Process Expectations
14
+
15
+ **This is a step-by-step process with mandatory stop points.** You must work through each step sequentially. Steps end with **STOP** — you must present your work, wait for explicit user confirmation, and only then proceed to the next step.
16
+
17
+ **Never one-shot the plan.** Do not write the entire plan document in a single operation. The plan is built incrementally — one phase at a time, with the user confirming the structure at each stage. A one-shot plan that misses requirements, hallucinates content, or structures tasks poorly wastes more time than a careful, step-by-step process. Go slow to go fast.
18
+
19
+ **Stop and ask when judgment is needed.** Planning is collaborative — not in the sense that every line needs approval, but in the sense that the user guides structural decisions and resolves ambiguity. You must stop and ask when:
20
+
21
+ - The specification is ambiguous about implementation approach
22
+ - Multiple valid ways to structure phases or tasks exist
23
+ - You're uncertain whether a task is appropriately scoped
24
+ - Edge cases aren't fully addressed in the specification
25
+ - You need to make any decision the specification doesn't cover
26
+ - Something doesn't add up or feels like a gap
27
+
28
+ **Never invent to fill gaps.** If the specification doesn't address something, flag it with `[needs-info]` and ask the user. The specification is the golden document — everything in the plan must trace back to it. Assuming or guessing — even when it seems reasonable — is not acceptable. Surface the problem immediately rather than continuing and hoping to address it later.
29
+
30
+ ## Rules
31
+
32
+ **Capture immediately**: After each user response, update the planning document BEFORE your next question. Never let more than 2-3 exchanges pass without writing.
33
+
34
+ **Commit frequently**: Commit at natural breaks, after significant exchanges, and before any context refresh. Context refresh = lost work.
35
+
36
+ **Create plans, not code**: Your job is phases, tasks, and acceptance criteria — not implementation.
37
+
38
+ ## Plan as Source of Truth
39
+
40
+ The plan IS the source of truth. Every phase, every task must contain all information needed to execute it.
41
+
42
+ - **Self-contained**: Each task executable without external context
43
+ - **No assumptions**: Spell out the context, don't assume implementer knows it
44
+
@@ -0,0 +1,63 @@
1
+ # Author Tasks
2
+
3
+ *Reference for **[technical-planning](../../SKILL.md)***
4
+
5
+ ---
6
+
7
+ Load **[task-design.md](../task-design.md)** — the task design principles, template structure, and quality standards for writing task detail.
8
+
9
+ ---
10
+
11
+ Orient the user:
12
+
13
+ > "Task list for Phase {N} is agreed. I'll work through each task one at a time — presenting the full detail, discussing if needed, and logging it to the plan once approved."
14
+
15
+ Work through the agreed task list **one task at a time**.
16
+
17
+ #### Present
18
+
19
+ Write the complete task using the task template — Problem, Solution, Outcome, Do, Acceptance Criteria, Tests, Context.
20
+
21
+ Present it to the user **in the format it will be written to the plan**. The output format adapter determines the exact format. What the user sees is what gets logged — no changes between approval and writing.
22
+
23
+ After presenting, ask:
24
+
25
+ > **Task {M} of {total}: {Task Name}**
26
+ >
27
+ > **To proceed, choose one:**
28
+ > - **"Approve"** — Task is confirmed. I'll log it to the plan verbatim.
29
+ > - **"Adjust"** — Tell me what to change.
30
+
31
+ **STOP.** Wait for the user's response.
32
+
33
+ #### If adjust
34
+
35
+ The user may:
36
+ - Request changes to the task content
37
+ - Ask questions about scope, granularity, or approach
38
+ - Flag that something doesn't match the specification
39
+ - Identify missing edge cases or acceptance criteria
40
+
41
+ Incorporate feedback and re-present the updated task **in full**. Then ask the same choice again. Repeat until approved.
42
+
43
+ #### If approved
44
+
45
+ Log the task to the plan — verbatim, as presented. Do not modify content between approval and writing. The output format adapter determines how tasks are written (appending markdown, creating issues, etc.).
46
+
47
+ After logging, confirm:
48
+
49
+ > "Task {M} of {total}: {Task Name} — logged."
50
+
51
+ #### Next task or phase complete
52
+
53
+ **If tasks remain in this phase:** → Return to the top of **Step 6** with the next task. Present it, ask, wait.
54
+
55
+ **If all tasks in this phase are logged:**
56
+
57
+ ```
58
+ Phase {N}: {Phase Name} — complete ({M} tasks logged).
59
+ ```
60
+
61
+ → Return to **Step 5** for the next phase.
62
+
63
+ **If all phases are complete:** → Proceed to **Step 7**.
@@ -0,0 +1,40 @@
1
+ # Define Phases
2
+
3
+ *Reference for **[technical-planning](../../SKILL.md)***
4
+
5
+ ---
6
+
7
+ Load **[phase-design.md](../phase-design.md)** — the principles for structuring phases as independently valuable, testable increments built on a walking skeleton.
8
+
9
+ ---
10
+
11
+ Orient the user:
12
+
13
+ > "I've read the full specification. I'm going to propose a phase structure — how we break this into independently testable stages. Once we agree on the phases, we'll take each one and break it into tasks."
14
+
15
+ With the full specification understood, break it into logical phases. Understanding what tasks belong in each phase is necessary to determine the right ordering.
16
+
17
+ Present the proposed phase structure using this format:
18
+
19
+ ```
20
+ Phase {N}: {Phase Name}
21
+ Goal: {What this phase accomplishes}
22
+ Why this order: {Why this phase comes at this position in the sequence}
23
+ Acceptance criteria:
24
+ - [ ] {First verifiable criterion}
25
+ - [ ] {Second verifiable criterion}
26
+ ```
27
+
28
+ **STOP.** Present your proposed phase structure and ask:
29
+
30
+ > **To proceed, choose one:**
31
+ > - **"Approve"** — Phase structure is confirmed. I'll proceed to task breakdown.
32
+ > - **"Adjust"** — Tell me what to change: reorder, split, merge, add, or remove phases.
33
+
34
+ #### If Adjust
35
+
36
+ Incorporate feedback, re-present the updated phase structure, and ask again. Repeat until approved.
37
+
38
+ #### If Approved
39
+
40
+ → Proceed to **Step 5**.
@@ -0,0 +1,43 @@
1
+ # Define Tasks
2
+
3
+ *Reference for **[technical-planning](../../SKILL.md)***
4
+
5
+ ---
6
+
7
+ Load **[task-design.md](../task-design.md)** — the principles for breaking phases into well-scoped, vertically-sliced tasks.
8
+
9
+ ---
10
+
11
+ Orient the user:
12
+
13
+ > "Taking Phase {N}: {Phase Name} and breaking it into tasks. Here's the overview — once we agree on the list, I'll write each task out in full detail."
14
+
15
+ Take the first (or next) phase and break it into tasks. Present a high-level overview so the user can see the shape of the phase before committing to the detail of each task.
16
+
17
+ Present the task overview using this format:
18
+
19
+ ```
20
+ Phase {N}: {Phase Name}
21
+
22
+ 1. {Task Name} — {One-line summary}
23
+ Edge cases: {comma-separated list, or "none"}
24
+
25
+ 2. {Task Name} — {One-line summary}
26
+ Edge cases: {comma-separated list, or "none"}
27
+ ```
28
+
29
+ This overview establishes the scope and ordering. The user should be able to see whether the phase is well-structured, whether tasks are in the right order, and whether anything is missing or unnecessary — before investing time in writing out full task detail.
30
+
31
+ **STOP.** Present the phase task overview and ask:
32
+
33
+ > **To proceed, choose one:**
34
+ > - **"Approve"** — Task list is confirmed. I'll begin writing full task detail.
35
+ > - **"Adjust"** — Tell me what to change: reorder, split, merge, add, or remove tasks.
36
+
37
+ #### If Adjust
38
+
39
+ Incorporate feedback, re-present the updated task overview, and ask again. Repeat until approved.
40
+
41
+ #### If Approved
42
+
43
+ → Proceed to **Step 6**.
@@ -0,0 +1,96 @@
1
+ # Plan Review
2
+
3
+ *Reference for **[technical-planning](../../SKILL.md)***
4
+
5
+ ---
6
+
7
+ After completing the plan, perform a comprehensive two-part review before handing off to implementation.
8
+
9
+ **Why this matters**: The plan is what gets built. If content was hallucinated into the plan, it will be implemented — building something that was never discussed or validated. If specification content was missed, it won't be built. The entire purpose of this workflow is that artifacts carry validated decisions through to implementation. The plan is the final gate before code is written.
10
+
11
+ ## Review Tracking Files
12
+
13
+ To ensure analysis isn't lost during context refresh, create tracking files that capture findings. These files persist analysis so work can continue across sessions.
14
+
15
+ **Location**: Store tracking files alongside the plan file:
16
+ - `{topic}-review-traceability-tracking.md` — Traceability findings
17
+ - `{topic}-review-integrity-tracking.md` — Integrity findings
18
+
19
+ **Format**:
20
+ ```markdown
21
+ ---
22
+ status: in-progress | complete
23
+ created: YYYY-MM-DD
24
+ phase: Traceability Review | Plan Integrity Review
25
+ topic: [Topic Name]
26
+ ---
27
+
28
+ # Review Tracking: [Topic Name] - [Phase]
29
+
30
+ ## Findings
31
+
32
+ ### 1. [Brief Title]
33
+
34
+ **Type**: Missing from plan | Hallucinated content | Incomplete coverage | Structural issue | Weak criteria | ...
35
+ **Spec Reference**: [Section/decision in specification, or "N/A" for integrity findings]
36
+ **Plan Reference**: [Phase/task in plan, or "N/A" for missing content]
37
+
38
+ **Details**:
39
+ [What was found and why it matters]
40
+
41
+ **Proposed Fix**:
42
+ [What should change in the plan — leave blank until discussed]
43
+
44
+ **Resolution**: Pending | Fixed | Adjusted | Skipped
45
+ **Notes**: [Discussion notes or adjustments]
46
+
47
+ ---
48
+
49
+ ### 2. [Next Finding]
50
+ ...
51
+ ```
52
+
53
+ **Why tracking files**: If context refreshes mid-review, you can read the tracking file and continue where you left off. The tracking file shows which items are resolved and which remain.
54
+
55
+ ---
56
+
57
+ ## Traceability Review
58
+
59
+ Compare the plan against the specification in both directions — checking that everything from the spec is in the plan, and everything in the plan traces back to the spec.
60
+
61
+ Load **[review-traceability.md](review-traceability.md)** and follow its instructions as written.
62
+
63
+ ---
64
+
65
+ ## Plan Integrity Review
66
+
67
+ Review the plan as a standalone document for structural quality, implementation readiness, and adherence to planning standards.
68
+
69
+ Load **[review-integrity.md](review-integrity.md)** and follow its instructions as written.
70
+
71
+ ---
72
+
73
+ ## Completion
74
+
75
+ After both reviews:
76
+
77
+ 1. **Verify tracking files are deleted** — Both traceability and integrity tracking files must be gone
78
+
79
+ 2. **Final quality confirmation**:
80
+ - All specification content has plan coverage (Traceability)
81
+ - No hallucinated content remains (Traceability)
82
+ - All tasks follow the required template (Integrity)
83
+ - Dependencies are documented and ordered (Integrity)
84
+ - External dependencies match specification (Integrity)
85
+
86
+ 3. **Confirm with the user**:
87
+
88
+ > "The plan has passed both reviews:
89
+ > - **Traceability**: All specification content is covered; no hallucinated content
90
+ > - **Integrity**: Plan structure, tasks, and dependencies are implementation-ready
91
+ >
92
+ > Review is complete."
93
+
94
+ > **CHECKPOINT**: Do not confirm completion if tracking files still exist. They indicate incomplete review work.
95
+
96
+ → Proceed to **Step 9**.
@@ -0,0 +1,56 @@
1
+ # Resolve External Dependencies
2
+
3
+ *Reference for **[technical-planning](../../SKILL.md)***
4
+
5
+ ---
6
+
7
+ Orient the user:
8
+
9
+ > "All phases and tasks are written. Now I'll check for external dependencies — things this plan needs from other topics or systems."
10
+
11
+ After all phases are detailed and written, handle external dependencies — things this plan needs from other topics or systems.
12
+
13
+ #### If the specification has a Dependencies section
14
+
15
+ The specification's Dependencies section lists what this feature needs from outside its own scope. These must be documented in the plan so implementation knows what is blocked and what is available.
16
+
17
+ 1. **Document each dependency** in the plan's External Dependencies section using the format described in [dependencies.md](../dependencies.md). Initially, record each as unresolved.
18
+
19
+ 2. **Resolve where possible** — For each dependency, check whether a plan already exists for that topic:
20
+ - If a plan exists, identify the specific task(s) that satisfy the dependency. Query the output format to find relevant tasks. If ambiguous, ask the user which tasks apply. Update the dependency entry from unresolved → resolved with the task reference.
21
+ - If no plan exists, leave the dependency as unresolved. It will be linked later via `/link-dependencies` or when that topic is planned.
22
+
23
+ 3. **Reverse check** — Check whether any existing plans have unresolved dependencies that reference *this* topic. Now that this plan exists with specific tasks:
24
+ - Scan other plan files for External Dependencies entries that mention this topic
25
+ - For each match, identify which task(s) in the current plan satisfy that dependency
26
+ - Update the other plan's dependency entry with the task reference (unresolved → resolved)
27
+
28
+ #### If the specification has no Dependencies section
29
+
30
+ Document this explicitly in the plan:
31
+
32
+ ```markdown
33
+ ## External Dependencies
34
+
35
+ No external dependencies.
36
+ ```
37
+
38
+ This makes it clear that dependencies were considered and none exist — not that they were overlooked.
39
+
40
+ #### If no other plans exist
41
+
42
+ Skip the resolution and reverse check — there is nothing to resolve against. Document the dependencies as unresolved. They will be linked when other topics are planned, or via `/link-dependencies`.
43
+
44
+ **STOP.** Present a summary of the dependency state: what was documented, what was resolved, what remains unresolved, and any reverse resolutions made.
45
+
46
+ > **To proceed, choose one:**
47
+ > - **"Approve"** — Dependency state is confirmed. Proceed to plan review.
48
+ > - **"Adjust"** — Tell me what to change.
49
+
50
+ #### If Adjust
51
+
52
+ Incorporate feedback, re-present the updated dependency state, and ask again. Repeat until approved.
53
+
54
+ #### If Approved
55
+
56
+ → Proceed to **Step 8**.