plugins/autonomous-dev/skills/planning-workflow/SKILL.md
7-step planning workflow for pre-implementation design. Enforced by plan_gate hook, critiqued by plan-critic agent. Use when creating plans, design documents, or architecture decisions before implementation. TRIGGER when: plan, planning, /plan, design document, architecture decision. DO NOT TRIGGER when: implementation, coding, testing.
npx skillsauth add akaszubski/autonomous-dev planning-workflowInstall 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.
A structured 7-step process for creating validated plans before implementation. Plans are critiqued adversarially by the plan-critic agent and enforced by the plan_gate hook.
| Step | Name | Description | Tools | |------|------|-------------|-------| | Step 1 | Problem Statement | Define WHY this change is needed and WHAT is in scope | Read, Grep | | Step 2 | Scope Check | Estimate files affected; halt if >50% drift from initial estimate | Glob, Grep | | Step 3 | Existing Solutions | Search codebase + web for prior art before building new | Grep, Glob, WebSearch | | Step 4 | Minimal Path | Design the smallest change that achieves the goal | Read | | Step 5 | Adversarial Critique | plan-critic agent reviews the plan (min 2 rounds) | plan-critic agent | | Step 6 | Issue Decomposition | Break into trackable issues if needed (via /create-issue) | Bash | | Step 7 | Plan Output | Write validated plan to .claude/plans/<slug>.md | Write |
Define:
Estimate the number of files that will be created or modified. If during planning the actual file count exceeds the Step 1 estimate by >50%, halt the workflow and re-scope. This prevents scope creep before it starts.
Before building anything new, search for existing solutions:
This step prevents reinventing the wheel and catches cases where a library or existing code already solves the problem.
Design the smallest change that achieves the goal:
The plan-critic agent reviews the plan across 5 axes:
Minimum 2 critique rounds before PROCEED verdict.
If the plan involves multiple independent work items, decompose into GitHub issues using /create-issue. Each issue should be independently implementable.
Write the final plan to .claude/plans/<slug>.md with all required sections.
# Plan: <Feature Name>
## WHY + SCOPE
Why this change is needed and what is in/out of scope.
## Existing Solutions
What was searched, what was found, why existing solutions do/don't apply.
## Minimal Path
The smallest set of changes to achieve the goal.
## Files to Create/Modify
Ordered list of files with brief description of changes.
## Risks and Unknowns
What might go wrong and how to mitigate.
## Critique History
Summary of plan-critic feedback and resolutions.
Every plan MUST contain these three sections (validated by plan_gate hook):
The plan-critic agent issues one of three verdicts:
| Verdict | Meaning | Action | |---------|---------|--------| | PROCEED | Plan is adequate | Continue to implementation | | REVISE | Plan has fixable issues | Address feedback and re-submit | | BLOCKED | Fundamental problems | Rethink the approach |
SKIP_PLAN_CHECK=1 environment variable disables the plan_gate hookdevelopment
One topic, one home. Routes content to its canonical store (CLAUDE.md, PROJECT.md, MEMORY.md, docs/, memory/) and audits for duplication. TRIGGER when: auditing CLAUDE.md/PROJECT.md/MEMORY.md sizes, deduplicating docs, applying the content-allocation pattern to a new repo, running /align --content. DO NOT TRIGGER when: implementing features, writing tests, routine code edits, debugging.
development
GenAI-first testing with structural assertions, congruence validation, and tier-based test structure. Use when writing tests, setting up test infrastructure, or validating coverage. TRIGGER when: test, pytest, coverage, TDD, test patterns, congruence, validation. DO NOT TRIGGER when: production code implementation, documentation, config-only changes.
testing
Prompt engineering patterns for writing agent prompts and skill files — constraint budgets, register shifting, HARD GATE patterns, anti-personas. Use when writing or reviewing agents/*.md or skills/*/SKILL.md. TRIGGER when: agent prompt, skill file, prompt engineering, model-tier compensation, HARD GATE, prompt quality. DO NOT TRIGGER when: user-facing docs, README, CHANGELOG, config files.
testing
JSON persistence, atomic writes, file locking, crash recovery, and state versioning patterns. Use when implementing stateful libraries or features requiring persistent state. TRIGGER when: state persistence, atomic write, file locking, crash recovery, checkpoint. DO NOT TRIGGER when: stateless utilities, pure functions, config reads, documentation.