From codespec
Execute implementation planning workflow using plan template, generate design artifacts.
How this command is triggered — by the user, by Claude, or both
Slash command
/codespec:planThe summary Claude sees in its command listing — used to decide when to auto-load this command
## User Input You **MUST** consider user input (if not empty) before proceeding. > General rules (output language, specification references, etc.) see [`../shared/shared-instructions.md`](../shared/shared-instructions.md) Output contract see [`../shared/command-contracts.md`](../shared/command-contracts.md). ## Plugin Root Resolution Before calling any `scripts/bash/*` or `templates/*`, ensure `CLAUDE_PLUGIN_ROOT` is valid: ## Execution Flow **Input**: spec.md path (contains requirement anchors) **Prerequisites**: clarify-done gate passed **Execution Steps**: 1. **Initialize**...
$ARGUMENTS
You MUST consider user input (if not empty) before proceeding.
General rules (output language, specification references, etc.) see
../shared/shared-instructions.md
Output contract see ../shared/command-contracts.md.
Before calling any scripts/bash/* or templates/*, ensure CLAUDE_PLUGIN_ROOT is valid:
# If CLAUDE_PLUGIN_ROOT is not set or invalid, try to resolve
if [[ -z "${CLAUDE_PLUGIN_ROOT:-}" || ! -d "$CLAUDE_PLUGIN_ROOT/scripts/bash" ]]; then
source "$(dirname "$(dirname "${BASH_SOURCE[0]}")")/scripts/bash/common.sh"
resolve_plugin_root || exit 1
fi
Input: spec.md path (contains requirement anchors)
Prerequisites: clarify-done gate passed
Execution Steps:
Initialize
check-prerequisites.sh --json --setup-plangate-check.sh clarify-doneLoad context
Plan Step 1: Technical research
Plan Step 2: Code exploration
Plan Step 3: Technical clarification (conditional execution)
Plan Step 4: Architecture design
Artifacts:
research.md - Technical research reportcode-exploration.md - Code exploration reportdata-model.md - Data model designcontracts/ - API contract filesquickstart.md - Quick start guideplan.md - Implementation plan (updated)User Interaction:
Next Steps: /codespec:tasks
Key Rules:
npx claudepluginhub lucivhuang/codespec --plugin codespec/planCreates a step-by-step implementation plan from requirements or a PRD markdown file, then waits for user confirmation before any code changes.
/planBreaks project into small verifiable tasks with acceptance criteria, dependencies, checkpoints. Reads spec/codebase, presents plan for review, saves to tasks/plan.md and tasks/todo.md.
/planStarts Manus-style file-based planning: creates task_plan.md, findings.md, progress.md if missing, invokes planning skill, and guides through workflow.
/planInteractively builds Goal, Scope, Metric, and Verify command for an autoresearch run from provided goal description.
/planRestates requirements, assesses risks, creates step-by-step implementation plan with phases, dependencies, complexity estimates, and waits for user confirmation.
/planCaptures user intent, analyzes requirements, and generates a weighted execution plan saved to .claude/session-plan.md. Does not execute — plans are saved for review or later execution via /octo:embrace.