.claude/skills/plan/SKILL.md
Create execution plan for a phase. Creates ./.gtd/<task_name>/{phase}/PLAN.md
npx skillsauth add Hoang604/get-thing-done planInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Core responsibilities:
Default flow: Research (if needed) → Plan → Verify → Write </objective>
<context> **Phase number:** $ARGUMENTS (optional — auto-detects next unplanned phase)Flags:
--research — Force re-research even if RESEARCH.md exists--skip-research — Skip research, go straight to planning--test — Add a "Create Failing Test" task, TDD styleRequired files:
./.gtd/<task_name>/SPEC.md — Must be FINALIZED./.gtd/<task_name>/ROADMAP.md — Must have phases definedOutput:
./.gtd/<task_name>/{phase}/PLAN.md./.gtd/<task_name>/{phase}/RESEARCH.md (if research performed)Agents used:
research — During research phase
</context><standards_and_constraints>
<philosophy>PLAN.md IS the prompt. It contains:
Each plan: 2-3 tasks max. No exceptions.
| Level | When | Action | | ------------ | --------------------------------------- | ---------------------------- | | 0 - Skip | Pure internal work, no new dependencies | No research | | 1 - Quick | Single known library, low risk | Quick search, no RESEARCH.md | | 2 - Standard | 2-3 options, new integration | Create RESEARCH.md | | 3 - Deep | Architectural decision, high risk | Full research |
</philosophy><design_principles>
Mantra: "Optimize for Evolution, not just Implementation."
<task_types> Automation-first rule: If agent CAN do it, agent MUST do it. Checkpoints are for verification AFTER automation.
| Type | Use For | Autonomy |
| ------------------------- | ------------------------------------- | ---------------- |
| auto | Everything agent can do independently | Fully autonomous |
| checkpoint:human-verify | Visual/functional verification | Pauses for user |
| checkpoint:decision | Implementation choices | Pauses for user |
<complexity_rubric>
Before planning, you must assess the Risk Profile of this phase. Do not rely on a fixed list of keywords. Instead, simulate the implementation in your head and ask:
"What is the probability that a Junior Developer would break the system implementing this?"
| Level | Internal Monologue Guide | Action | | :--------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------- | | Low | "I can see the entire solution clearly. It is boilerplate or standard CRUD. I have 100% certainty." | Standard flow. | | Medium | "I know the pattern, but there are edge cases (null checks, state sync) I need to be careful about." | Standard flow, but detailed tasks. | | High | "This is tricky. It involves critical state transitions, ambiguous requirements, or I have to invent a new pattern. There is a >10% chance I might misunderstand the intent." | MANDATORY CHECKPOINT. |
Rule for High Complexity:
checkpoint:human-verify task immediately after the High Complexity task.</complexity_rubric>
</task_types>
</standards_and_constraints>
<process>Bash:
if ! test -f "./.gtd/<task_name>/ROADMAP.md"; then
echo "Error: ROADMAP.md must exist"
exit 1
fi
Extract from $ARGUMENTS:
--research flag--skip-research flag--test flagIf no phase number: Detect next unplanned phase from ROADMAP.md.
Bash:
grep "## Phase $PHASE:" "./.gtd/<task_name>/ROADMAP.md"
If not found: Error with available phases. If found: Extract phase name and objective.
Bash:
mkdir -p "./.gtd/<task_name>/$PHASE"
If --skip-research: Skip to step 6.
Check for existing research:
test -f "./.gtd/<task_name>/$PHASE/RESEARCH.md"
If exists AND --research NOT set:
If research needed: Display:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
GTD ► RESEARCHING PHASE {N}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Spawn researcher agent:
Trigger: If need to trigger research. Concurrency: As many as needed.
Fill prompt and spawn:
<objective>
Research implementation details for Phase {phase}: {phase_name}
**Goal:** {phase_objective}
</objective>
<context>
- Spec: ./.gtd/<task_name>/SPEC.md
- Roadmap: ./.gtd/<task_name>/ROADMAP.md
- Phase Dir: ./.gtd/<task_name>/{phase}/
</context>
<research_checklist>
1. Identify existing components to modify
2. Find similar patterns to reuse
3. Check for specific constraints (types, schemas, config)
4. Verify dependency versions/availability
</research_checklist>
<output_format>
Research Notes (RESEARCH.md) covering:
- Technical Approach
- Key Files to Touch
- Pseudo-code/Snippets
- Potential Pitfalls
</output_format>
Task(
prompt=filled_prompt,
subagent_type="researcher",
description="Researching phase implementation details"
)
Write subagent output to ./.gtd/<task_name>/$PHASE/RESEARCH.md.
Display:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
GTD ► PLANNING PHASE {N}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Load SPEC.md, ROADMAP.md, and RESEARCH.md (if exists). Use research findings to inform design constraints defined in <design_principles>.
Perform Task-Level Self-Calibration:
<complexity_rubric>.Handle TDD:
--test flag is active:
Decompose deliverables into remaining atomic tasks (total 2-3 max).
Apply Safety Brakes:
checkpoint:human-verify task immediately after it.Define done criteria for each.
Write to ./.gtd/<task_name>/$PHASE/PLAN.md using this template:
phase: { N }
created: { date }
is_tdd: { true/false }
---
# Plan: Phase {N} - {Name}
## Objective
{What this phase delivers and why}
## Context
- ./.gtd/<task_name>/SPEC.md
- ./.gtd/<task_name>/ROADMAP.md
- {relevant source files}
## Architecture Constraints
- **Single Source:** {Where is the authoritative data?}
- **Invariants:** {What must ALWAYS be true?}
- **Resilience:** {How do we handle failures?}
- **Testability:** {What needs to be injected/mocked?}
## Tasks
<task id="1" type="auto" complexity="Low/Medium/High">
<name>{Task name}</name>
<risk>{One sentence rationale if complexity > Low}</risk>
<files>{exact file paths}</files>
<action>
{Specific implementation instructions}
- What to do
- What to avoid and WHY
</action>
<done>{How we know this task is complete}</done>
</task>
<task id="2" type="checkpoint:human-verify">
<name>STOP. Review the implementation of {file} for {specific_risk}</name>
<risk>{One sentence rationale if complexity > Low}</risk>
<files>{exact file paths}</files>
<action>
{Specific review instructions}
</action>
<done>{How we know this task is complete}</done>
</task>
<task id="3" type="auto">
...
</task>
## Success Criteria
- [ ] {Measurable outcome 1}
- [ ] {Measurable outcome 2}
Check:
<prohibitions>If issues found: Fix before writing.
</process><offer_next>
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
GTD ► PHASE {N} PLANNED ✓
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Plan written to ./.gtd/<task_name>/{phase}/PLAN.md
{X} tasks defined
| Task | Name |
|------|------|
| 1 | {name} |
| 2 | {name} |
─────────────────────────────────────────────────────
▶ Next Up
/execute {N} — run this plan
─────────────────────────────────────────────────────
Also available:
/discuss-plan {N} — review plan before executing
─────────────────────────────────────────────────────
</offer_next>
<forced_stop> STOP. The workflow is complete. Do NOT automatically run the next command. Wait for the user. </forced_stop>
testing
manual trigger by user, do not auto invoke
tools
manual trigger by user, do not auto invoke
development
Trace execution paths and document how code actually behaves. Use when you need to understand how features work, walk through code flows, explain component behavior, trace where data comes from, understand relationships between components, or audit for orphaned events and dead code.
testing
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.