Skip to content

@tank/planning

2.1.0

Planning methodology for complex tasks: decomposition, plan writing, execution, prioritization, estimation, risk assessment, and context management. Covers WBS, zero-context specs, batched execution, RICE/MoSCoW prioritization, and persistent state. Synthesized from Shape Up, Agile Estimating and Planning, ReAct.


name: "@tank/planning" description: | Comprehensive planning methodology for complex software tasks. Covers task decomposition (WBS, micro-tasks), plan writing (zero-context specs), plan execution (batched with checkpoints), prioritization (RICE, MoSCoW, ICE), estimation, risk assessment, and persistent context management.

Synthesized from: Shape Up (Basecamp), Agile Estimating and Planning (Cohn), obra/superpowers planning methodology, ReAct/Plan-and-Solve AI patterns.

Trigger phrases: "plan", "planning", "break down", "decompose", "task breakdown", "prioritize", "estimate", "risk assessment", "project plan", "implementation plan", "work breakdown", "what order", "dependencies", "scope", "how to approach", "complex task", "multi-step"

Planning

Core Philosophy

  1. Plan before code — Never start a complex task without a written plan. Non-negotiable.
  2. Zero-context plans — Write as if the reader has no project knowledge. Exact file paths, complete code, expected outputs.
  3. Micro-task granularity — Each step is 2-5 minutes of work. If you cannot estimate it, decompose further.
  4. Filesystem is memory — Context window is volatile RAM. Anything important goes to disk immediately.
  5. Adapt, don't abandon — Plans change when reality hits. Replan when blocked, never restart from scratch.

Quick-Start: Which Planning Level?

Task ComplexityPlanning LevelAction
Single file, known locationNoneExecute directly
2-3 files, clear approachLightMental plan, use TodoWrite
4+ files or uncertain approachStandardCreate task_plan.md with phases
Large feature or unfamiliar domainFullBrainstorm → Design doc → Implementation plan
Multi-day or multi-person effortComprehensiveFull plan + estimation + risk assessment

The Planning Workflow

Phase 1: Understand

  1. Parse the request — what is actually being asked?
  2. Identify constraints — time, dependencies, existing patterns, risks
  3. Clarify ambiguities — ask ONE focused question if unclear
  4. Explore codebase — understand existing patterns before planning

→ For context management techniques: See @references/context-management.md

Phase 2: Decompose

  1. Break into major components (top-down)
  2. Decompose each component into tasks
  3. Decompose each task into steps (2-5 minutes each)
  4. Map dependencies — what must happen first?
  5. Flag unknowns — mark tasks requiring research

→ For decomposition techniques: See @references/task-decomposition.md

Phase 3: Prioritize

  1. Identify the critical path (longest dependency chain)
  2. Separate must-have from nice-to-have
  3. Order by: dependencies first, then priority, then risk
  4. For competing priorities, apply a scoring framework

→ For prioritization frameworks: See @references/prioritization.md

Phase 4: Write the Plan

  1. Create plan document with header (goal, architecture, tech stack)
  2. Write each task with: files to touch, steps, verification, commit message
  3. Include complete code snippets — never write "add validation logic"
  4. Specify exact commands with expected outputs
  5. Save plan to task_plan.md in project root

→ For plan document structure: See @references/plan-writing.md → For plan template: Copy from @assets/task-plan-template.md

Phase 5: Execute

  1. Execute in batches of 3 tasks
  2. Verify after each task (run tests, check output)
  3. Report progress between batches
  4. Commit after each task passes verification

→ For execution workflow: See @references/plan-execution.md

Phase 6: Adapt

  1. After each batch, reassess the remaining plan
  2. If blocked: try an alternative approach, never repeat the same failing action
  3. After 3 failures on same task: stop, replan, or escalate
  4. Update plan document with actuals vs estimates

Decision Trees

When to Replan vs Push Forward

SignalAction
Task taking 2x estimated effortPause. Reassess approach
New dependency discoveredUpdate plan, adjust ordering
Approach fundamentally flawedReplan from Phase 2
3 consecutive failures on same taskStop. Escalate to user
Scope creep detectedFlag it. Get user approval before expanding
New information changes assumptionsUpdate plan, continue

Estimation Quick Reference

SizeEffortExample
XS< 30 minFix a typo, update config
S30 min - 2 hrAdd a simple endpoint
M2 - 8 hrNew feature with tests
L1 - 3 daysMulti-component feature
XL3+ daysArchitecture change

→ For detailed estimation: See @references/estimation-and-risk.md

Critical Rules

1. The 2-Action Rule

After every 2 tool operations, save key findings to disk.

Prevents information loss from context window overflow. Especially critical after viewing images, PDFs, or browser content.

2. Never Repeat Failures

if action_failed:
    next_action != same_action

Track what you tried. Mutate the approach each time.

3. Read Before Decide

Before major decisions, re-read the plan file. This refreshes goals in the attention window and prevents drift.

4. Log ALL Errors

Every error goes in the plan file with the attempted resolution. Builds knowledge and prevents repetition.

Anti-Patterns

Don'tDo Instead
Start coding without a planCreate plan first, even a minimal one
Write vague task descriptionsSpecify exact files, code, commands, expected output
Estimate in hoursUse relative sizing (XS/S/M/L/XL) or story points
Plan everything upfrontPlan one phase ahead in detail, sketch the rest
Skip verification stepsVerify after every task before moving on
Repeat failed approachesTrack attempts, change strategy each time
Keep plan only in context windowWrite to task_plan.md immediately
Ignore scope creepFlag every addition, get explicit approval

Integration with Other Skills

SituationSkill to Use
Writing tests for planned taskstdd-workflow
Debugging a failing tasksystematic-debugging
Committing completed tasksgit-master

AI Planning Patterns

For AI-specific planning strategies (ReAct, Chain-of-Thought, Plan-and-Solve, Tree-of-Thoughts):

→ See @references/ai-planning-patterns.md

Reference Files

FileWhen to Load
@references/task-decomposition.mdBreaking complex work into actionable micro-tasks
@references/plan-writing.mdCreating plan documents with proper structure and specs
@references/plan-execution.mdExecuting plans with batching, checkpoints, and review
@references/prioritization.mdDeciding what to do first (RICE, MoSCoW, ICE, Eisenhower)
@references/estimation-and-risk.mdEstimating effort and assessing risks
@references/context-management.mdManaging context with filesystem as working memory
@references/ai-planning-patterns.mdAI-specific planning strategies and reasoning patterns

Templates

TemplatePurpose
@assets/task-plan-template.mdPlan document with phases, tasks, and verification
@assets/findings-template.mdResearch findings storage
@assets/progress-template.mdSession progress logging

Command Palette

Search skills, docs, and navigate Tank