From dotdotgod
Use this skill when the user asks Claude Code to plan a feature, refactor, migration, architecture change, test strategy, or multi-step task using dotdotgod docs before implementation; when docs/spec, docs/test, docs/arch, docs/plan, or dd:plan are mentioned.
How this skill is triggered — by the user, by Claude, or both
Slash command
/dotdotgod:doc-first-planningThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Create implementation plans from the repository's documented design sources before changing source/config files. Treat planning as a managed artifact under `docs/plan`.
Create implementation plans from the repository's documented design sources before changing source/config files. Treat planning as a managed artifact under docs/plan.
Do not start implementation until the plan has a clear evidence trail and the user has asked to execute it. Treat the written plan file as the durable review artifact; do not rely on transient chat previews.
Prefer live repository docs in this order:
AGENTS.md, CLAUDE.md, CODEX.md, README.md, and docs/README.md for working rules and project map.docs/spec/ for behavior, domain rules, API contracts, and acceptance criteria.docs/test/ for verification strategy, regression cases, fixtures, and manual checks.docs/arch/ for architecture decisions, module boundaries, integration constraints, and runtime assumptions.docs/plan/README.md and matching active plans under docs/plan/.docs/archive/plan/ or reports under docs/archive/report/ only when directly useful.Establish current state.
Gather evidence before planning.
[[PLAN_MODE]], run dotdotgod expand <root> "<request>" --json before broad grep or find scans, then read the resolved candidates selectively.PLAN_MODE, docs/spec/PLAN_MODE.md, or quoted doc names, run dotdotgod expand <root> "<request>" --fuzzy --json; skip fuzzy expansion for generic low-signal words alone and respect configured fuzzy low-signal add/remove terms.json dotdotgod traceability blocks in the final section; use their source, test, related-doc, and verification-command mappings before editing code.dotdotgod graph impact <root> --changed <path> --compact --json for a small bounded set of those files. Use the related specs, tests, docs, commands, scores, and reasons to strengthen target files, risks, and verification steps. If impact lookup fails or the CLI is unavailable, continue with README-index and traceability fallback evidence.grep or find after reference expansion, impact, and targeted reads when the task needs fallback discovery or raw source text search.Create or update the active plan at:
docs/plan/<task-slug>/README.md
Use supporting files in the same task directory only when useful, with UPPER_SNAKE_CASE markdown names such as RESEARCH_NOTES.md or VERIFICATION.md.
Include:
docs/archive/plan/<task-slug>/Update docs/plan/README.md if the repository keeps active plan entries there.
Use repository-local package manager evidence for verification commands. In this repository, prefer pnpm run verify, pnpm run pack:dry-run, and .husky/pre-push when applicable.
After creating or updating behavior specs, run project validation when possible. For dotdotgod projects, dotdotgod validate enforces machine-readable json dotdotgod traceability blocks as the final section in specs. Use dotdotgod validate --check-index when you need to confirm markdown fingerprints match the graph index. If validation fails, use the schema, property guidance, and example shown in the validation error to repair the spec.
Stop after presenting the plan unless the user explicitly asks for execution.
After implementation and verification, archive completed or superseded plan directories under docs/archive/plan/<task-slug>/; remove stale local plan artifacts only when the project policy allows plan/archive housekeeping.
Plan: steps only when a real active plan artifact is being created or updated.npx claudepluginhub dotdotgod/dotdotgod-kit --plugin dotdotgodGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.