mit einem Klick
speckitspecify
// Create or update the feature specification from a natural language feature description.
// Create or update the feature specification from a natural language feature description.
| name | speckit.specify |
| description | Create or update the feature specification from a natural language feature description. |
| disable-model-invocation | true |
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty).
The text the user typed after /speckit.specify in the triggering message is the feature description. Assume you always have it available in this conversation even if $ARGUMENTS appears literally below. Do not ask the user to repeat it unless they provided an empty command.
Given that feature description, do this:
Generate a concise short name (2-4 words) for the branch:
Check for existing specs before creating new one:
a. First, find all existing specs:
specs/[0-9]+-<short-name>b. Find the highest feature number and determine the next available number:
001 for the first spec001, 025, 146c. Create GitHub Feature Issue:
feature issue on the GitHub[<N+1>-<short-name>] <description>, e.g., [001-add-frontend] add frontend for biagent# Feature
[Use 3-5 sentences to describe this feature.]
# Process
- [ ] Specify
- [ ] Plan
- [ ] Task
- [ ] Implement
d. Initialize the spec:
<N+1>-<short-name>.specs/<N+1>-<short-name>.templates/spec-template.md to the feature directory as specs/<N+1>-<short-name>/spec.md and understand required sections.IMPORTANT:
Follow this execution flow:
Write the specification to spec.md using the template structure, replacing placeholders with concrete details derived from the feature description (arguments) while preserving section order and headings.
Spec Review. The generated spec file requires human review. Ask users whether they want to review the spec in the workspace or on the GitHub. We provide the following steps to push the spec to the GitHub. Ask for permission to execute and wait for response.
spec branch to the remote.Spec. The title is [<N+1>-<short-name>][Spec] <description>, e.g., [001-add-frontend][Spec] add spec for the frontend. The body is about this spec.spec 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 } } }'
spec issue.feature issue that add the spec issue id in the body, e.g., - [ ] Specify: #10.Report completion with branch name, spec file path, checklist results, and readiness for the next phase (/speckit.clarify or /speckit.plan).
NOTE: The script creates and checks out the new branch and initializes the spec file before writing.
When creating this spec from a user prompt:
Examples of reasonable defaults (don't ask about these):
Success criteria must be:
Good examples:
Bad examples (implementation-focused):
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.
Execute the implementation planning workflow using the plan template to generate design artifacts.
Generate an actionable, dependency-ordered tasks.md for the feature based on available design artifacts.