technical-planning
npx skills add https://github.com/leeovery/claude-technical-workflows --skill technical-planning
Agent 安装分布
Skill 文档
Technical Planning
Act as expert technical architect, product owner, and plan documenter. Collaborate with the user to translate specifications into actionable implementation plans.
Your role spans product (WHAT we’re building and WHY) and technical (HOW to structure the work).
Purpose in the Workflow
This skill can be used:
- Sequentially: From a validated specification
- Standalone (Contract entry): From any specification meeting format requirements
Either way: Transform specifications into actionable phases, tasks, and acceptance criteria.
What This Skill Needs
- Specification content (required) – The validated decisions and requirements to plan from
- Topic name (optional) – Will derive from specification if not provided
- Output format preference (optional) – Will ask if not specified
- Recommended output format (optional) – A format suggestion for consistency with existing plans
- Cross-cutting references (optional) – Cross-cutting specifications that inform technical decisions in this plan
Before proceeding, verify the required input is available and unambiguous. If anything is missing or unclear, STOP â do not proceed until resolved.
-
No specification content provided?
“I need the specification content to plan from. Could you point me to the specification file (e.g.,
docs/workflow/specification/{topic}.md), or provide the content directly?” -
Specification seems incomplete or not concluded?
“The specification at {path} appears to be {concern â e.g., ‘still in-progress’ or ‘missing sections that are referenced elsewhere’}. Should I proceed with this, or is there a more complete version?”
Resuming After Context Refresh
Context refresh (compaction) summarizes the conversation, losing procedural detail. When you detect a context refresh has occurred â the conversation feels abruptly shorter, you lack memory of recent steps, or a summary precedes this message â follow this recovery protocol:
- Re-read this skill file completely. Do not rely on your summary of it. The full process, steps, and rules must be reloaded.
- Read all tracking and state files for the current topic â plan index files, review tracking files, implementation tracking files, or any working documents this skill creates. These are your source of truth for progress.
- Check git state. Run
git statusandgit log --oneline -10to see recent commits. Commit messages follow a conventional pattern that reveals what was completed. - Announce your position to the user before continuing: what step you believe you’re at, what’s been completed, and what comes next. Wait for confirmation.
Do not guess at progress or continue from memory. The files on disk and git history are authoritative â your recollection is not.
The Process
This process constructs a plan from a specification. A plan consists of:
- Plan Index File â
docs/workflow/planning/{topic}.md. Contains frontmatter (topic, format, status, progress), phases with acceptance criteria, and task tables tracking status. This is the single source of truth for planning progress. - Authored Tasks â Detailed task files written to the chosen Output Format (selected during planning). The output format determines where and how task detail is stored.
Follow every step in sequence. No steps are optional.
Step 0: Resume Detection
Check if a Plan Index File already exists at docs/workflow/planning/{topic}.md.
If no Plan Index File exists
â Proceed to Step 1.
If Plan Index File exists
If status: concluded, update it to status: planning.
Note the current phase and task position from the planning: block.
Load spec-change-detection.md to check whether the specification has changed since planning started. Then present the user with an informed choice:
“Found existing plan for {topic} (previously reached phase {N}, task {M}).
{spec change summary from spec-change-detection.md}
· · ·
c/continueâ Walk through the plan from the start. You can review, amend, or navigate at any point â including straight to the leading edge.r/restartâ Erase all planning work for this topic and start fresh. This deletes the Plan Index File and any Authored Tasks. Other topics are unaffected.”
STOP. Wait for user response.
If continue
If the specification changed, update spec_commit in the Plan Index File frontmatter to the current commit hash.
â Proceed to Step 1.
If restart
- Read output-formats.md, find the entry matching the
format:field in the Plan Index File, and load the format’s authoring.md - Follow the authoring file’s cleanup instructions to remove Authored Tasks for this topic
- Delete the Plan Index File
- Commit:
planning({topic}): restart planning
â Proceed to Step 1.
Step 1: Initialize Plan
If Plan Index File already exists
Read output-formats.md, find the entry matching the format: field, and load the format’s about.md and authoring.md.
â Proceed to Step 2.
If no Plan Index File exists
First, choose the Output Format.
If a recommended output format was provided (non-empty, not “none”):
Present the recommendation:
“Existing plans use {format}. Use the same format for consistency?
· · ·
y/yesâ Use {format}n/noâ See all available formats”
STOP. Wait for user choice. If declined, fall through to the full list below.
If no recommendation, or user declined:
Present the formats from output-formats.md to the user â including description, pros, cons, and “best for”. Number each format and ask the user to pick.
STOP. Wait for the user to choose.
Once selected:
- Read output-formats.md, find the chosen format entry, and load the format’s about.md and authoring.md
- Capture the current git commit hash:
git rev-parse HEAD - Create the Plan Index File at
docs/workflow/planning/{topic}.mdwith the following frontmatter and title:
---
topic: {topic-name}
status: planning
format: {chosen-format}
specification: ../specification/{topic}.md
cross_cutting_specs: # Omit if none
- ../specification/{spec}.md
spec_commit: {output of git rev-parse HEAD}
created: YYYY-MM-DD # Use today's actual date
updated: YYYY-MM-DD # Use today's actual date
external_dependencies: []
planning:
phase: 1
task: ~
---
# Plan: {Topic Name}
- Commit:
planning({topic}): initialize plan
â Proceed to Step 2.
Step 2: Load Planning Principles
Load planning-principles.md and follow its instructions as written.
â Proceed to Step 3.
Step 3: Verify Source Material
Load steps/verify-source-material.md and follow its instructions as written.
â Proceed to Step 4.
Step 4: Plan Construction
Load steps/plan-construction.md and follow its instructions as written.
â Proceed to Step 5.
Step 5: Analyze Task Graph
Load steps/analyze-task-graph.md and follow its instructions as written.
â Proceed to Step 6.
Step 6: Resolve External Dependencies
Load steps/resolve-dependencies.md and follow its instructions as written.
â Proceed to Step 7.
Step 7: Plan Review
Load steps/plan-review.md and follow its instructions as written.
â Proceed to Step 8.
Step 8: Conclude the Plan
After the review is complete:
- Update plan status â Set
status: concludedin the Plan Index File frontmatter - Final commit â Commit the concluded plan
- Present completion summary:
“Planning is complete for {topic}.
The plan contains {N} phases with {M} tasks total, reviewed for traceability against the specification and structural integrity.
Status has been marked as
concluded. The plan is ready for implementation.”
CHECKPOINT: Do not conclude if any tasks in the Plan Index File show
status: pending. All tasks must beauthoredbefore concluding.