بنقرة واحدة
speckitplan
// Execute the implementation planning workflow using the plan template to generate design artifacts.
// Execute the implementation planning workflow using the plan template to generate design artifacts.
Analyze indexed codebases via graph database (neug) and vector index (zvec). Covers call graphs, dependencies, dead code, hotspots, module coupling, architecture reports, semantic search, impact analysis, bug root cause from GitHub issues, class diagrams (UML), and PR review (risk scoring, conflict detection, auto-merge candidates, labeling). Also covers creating, inspecting, and repairing a CodeScope index. Use for: code structure, who calls what, why something changed, similar functions, module boundaries, bug tracing, class relationships, PR risk/conflicts, or any question benefiting from a code knowledge graph. Applies when a `.codegraph` index exists in the workspace, or when the user wants to create one.
Submit a new issue to the project.
Submit a new Pull Request to the project.
Analyze new commits and generate related test cases.
Create or update the feature specification from a natural language feature description.
Generate an actionable, dependency-ordered tasks.md for the feature based on available design artifacts.
| name | speckit.plan |
| description | Execute the implementation planning workflow using the plan template to generate design artifacts. |
| disable-model-invocation | true |
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty).
Locate Feature:
###-feature-name, e.g., 001-feature-name../specs/[###-feature-name]. The feature id and name must be exact match.Pre-check & Load Feature Documents:
./specs/[###-feature-name], otherwise ERROR "Feature directory not found: ./specs/[###-feature-name]"../specs/[###-feature-name]/spec.md, otherwise ERROR "Spec file not found: ./specs/[###-feature-name]/spec.md".Load Template: Copy the templatetemplates/plan-template.md to the feature directory as specs/[###-feature-name]/plan.md and understand required sections.
Execute plan workflow: Follow the structure in plan.md to:
Review the current repository structure:
Plan the feature position:
Extract data model from feature spec:
Plan each data model:
Extract algorithm model from feature spec:
Plan each algorithm model:
The generated plan file requires human review. Ask users whether they want to review the plan in the workspace or on the GitHub. We provide the following steps to push the plan to the GitHub. Ask for permission to execute and wait for response.
plan branch to the remote.Plan. The title is [###-feature-name][Plan] <description>, e.g., [001-add-frontend][Plan] generate plan for the frontend. The body is about this plan.plan issue as the sub-issue of the feature issue. The command is:gh api graphql -f query='mutation { addSubIssue(input: {issueId: "xxx", subIssueId: "xxx"}) { issue { id title } subIssue { id title } } }'
plan issue.feature issue that add the plan issue id in the body, e.g., - [ ] Plan: #13.