From godmode
Decomposes feature specs into ordered YAML tasks with dependencies, layered by data/API/UI/config/tests. Builds topological graph, validates, commits plan to git.
How this skill is triggered — by the user, by Claude, or both
Slash command
/godmode:planThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- `/godmode:plan`, "break down", "plan this"
/godmode:plan, "break down", "plan this".godmode/spec.md exists but no .godmode/plan.yamlcat .godmode/spec.md
git ls-files | head -200
find . -maxdepth 3 -type f \
\( -name "*.ts" -o -name "*.py" -o -name "*.go" \) \
| head -80
IF no spec: ask user or run /godmode:think first.
Priority: data -> API/service -> UI -> config -> tests. NEVER mix layers in a single task unless < 10 lines.
- id: "task-01"
title: "Add user preferences schema"
skill: "build"
files:
- src/models/preferences.ts
- src/migrations/003_add_preferences.sql
depends_on: []
agent: true
test: "npx vitest run src/models/..."
done_when: "npx vitest run ... | grep 'passed'"
Rules:
files[] max 5 (more = split into subtasks)done_when = shell command exiting 0 (never prose)Round 1 (parallel): task-01, task-02 (no deps)
Round 2 (parallel): task-03, task-04 (depend on R1)
Round 3 (sequential): task-05 (depends on 03+04)
Topological sort. Max 5 tasks per round. Enforce:
python3 -c "import yaml; yaml.safe_load(
open('.godmode/plan.yaml'))"
Checks: files exist or parent dir exists, depends_on IDs valid (no cycles), no file overlap within same round, max 2 tasks per file.
IF >20 tasks: split into phases.
git add .godmode/plan.yaml
git commit -m "plan: decompose {feature} into {N} tasks"
SKILL.md §14. Principles prelude, pre-commit audit, terse/stdio/tokens, DispatchContext validation, Progressive Disclosure routing, discard cost hierarchy all fire by default on every /godmode:plan invocation.docs/coordination-patterns.md: Pipeline, Fan-out/Fan-in, Expert Pool, Producer-Reviewer, Supervisor, Hierarchical Delegation. Plans without a declared pattern are invalid — the executor returns BLOCKED: invalid_plan. Example first line: Pattern: Producer-Reviewer.done_when is shell command exiting 0.Append .godmode/plan-log.tsv:
timestamp feature total_tasks total_rounds total_files max_parallelism
KEEP if: YAML parses AND no circular deps
AND no file overlaps AND all paths valid.
DISCARD if: validation fails on any check.
STOP when FIRST of:
- plan.yaml written, validated, committed
- >20 tasks (split into phases)
- Decomposition produces no new independent tasks
On failure: git reset --hard HEAD~1. Never pause.
| Failure | Action |
|---|---|
| No spec exists | Run /godmode:think first |
| YAML validation fails | Fix syntax, max 3 attempts |
| Circular dependency | Merge tasks or remove edge |
| File overlap in round | Move task to next round |
| >20 tasks | Split into phase-1 and phase-2 |
npx claudepluginhub arbazkhan971/godmodeCreates execution plans from feature specs by decomposing tasks, validating quality, analyzing dependencies, grouping into phases, and committing. Supports multi-repo workspaces via /spectacular:plan.
Breaks work into ordered tasks with acceptance criteria and dependency mapping. Useful for decomposing specs, estimating scope, and enabling parallel work.
Generates numbered task lists from specs before coding, detailing file paths, exact changes, tests, and success evidence for each task. Use for multi-file, multi-day, or team projects.