一键导入
speckit-tasks
Generate an actionable, dependency-ordered set of Beads via 'br' CLI for the feature based on available design artifacts.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate an actionable, dependency-ordered set of Beads via 'br' CLI for the feature based on available design artifacts.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create or update the feature specification from a natural language feature description.
Execute the implementation plan by processing and executing all tasks via the Beads issue tracker (br/bv)
Perform a non-destructive cross-artifact consistency, quality analysis, and validation across spec.md, plan.md, and open beads (via br/bv).
Generate a custom checklist for the current feature based on user requirements.
Create or update the project constitution from interactive or provided principle inputs, ensuring all dependent templates stay in sync.
Execute the implementation planning workflow using the plan template to generate design artifacts.
| name | speckit-tasks |
| description | Generate an actionable, dependency-ordered set of Beads via 'br' CLI for the feature based on available design artifacts. |
| compatibility | Requires spec-kit project structure with .specify/ directory and Beads (br) CLI |
| metadata | {"author":"github-spec-kit","source":"templates/commands/tasks.md"} |
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty).
Check for extension hooks (before Bead generation):
.specify/extensions.yml exists in the project root.hooks.before_tasks keyenabled is explicitly false. Treat hooks without an enabled field as enabled by default.condition expressions:
condition field, or it is null/empty, treat the hook as executablecondition, skip the hook and leave condition evaluation to the HookExecutor implementationoptional flag:
optional: true):
## Extension Hooks
**Optional Pre-Hook**: {extension}
Command: `/{command}`
Description: {description}
Prompt: {prompt}
To execute: `/{command}`
optional: false):
## Extension Hooks
**Automatic Pre-Hook**: {extension}
Executing: `/{command}`
EXECUTE_COMMAND: {command}
Wait for the result of the hook command before proceeding to the Outline.
.specify/extensions.yml does not exist, skip silentlySetup: Run .specify/scripts/bash/check-prerequisites.sh --json from repo root and parse FEATURE_DIR and AVAILABLE_DOCS list. All paths must be absolute. For single quotes in args like "I'm Groot", use escape syntax: e.g 'I'''m Groot' (or double-quote if possible: "I'm Groot").
Load design documents: Read from FEATURE_DIR:
Execute Bead generation workflow:
SPEC_ID from the FEATURE_DIR basename (e.g., if path is specs/003-user-auth, SPEC_ID is 003-user-auth)direct_task, spike, small_change, standard_feature, or high_risk_feature.Create Beads (PHASE BY PHASE): To avoid exceeding context limits and to provide immediate value, you MUST ACTUALLY EXECUTE the br create commands ONE PHASE AT A TIME using your terminal/command tools, instead of just printing the scripts in the chat for the user to review.
br list. Should I proceed to create the beads for Phase Y?"br dep add commands to establish dependencies if applicable.br list --status=open) to find any beads of type chore or checklist generated by speckit-checklist. If any exist, you MUST execute br dep add commands to make your Phase 1 or Phase 2 implementation beads depend on those checklist beads.Report: After ALL phases have been created and confirmed, output a summary:
Check for extension hooks: After Beads are generated, check if .specify/extensions.yml exists in the project root.
hooks.after_tasks keyenabled is explicitly false. Treat hooks without an enabled field as enabled by default.condition expressions:condition field, or it is null/empty, treat the hook as executablecondition, skip the hook and leave condition evaluation to the HookExecutor implementationoptional flag:
optional: true):
## Extension Hooks
**Optional Hook**: {extension}
Command: `/{command}`
Description: {description}
Prompt: {prompt}
To execute: `/{command}`
optional: false):
## Extension Hooks
**Automatic Hook**: {extension}
Executing: `/{command}`
EXECUTE_COMMAND: {command}
.specify/extensions.yml does not exist, skip silentlyContext for task generation: $ARGUMENTS
The br CLI commands should be immediately executable - each bead must be specific enough that an LLM can complete it without additional context.
CRITICAL: You MUST use /effort max (or act with maximal effort) and elaborate extensively to create a comprehensive and granular set of beads with tasks, subtasks, and dependency structure overlaid. The whole thing must be totally self-contained and self-documenting.
direct_task (obvious), spike (assumption validation), small_change (low risk), standard_feature (ordered capability), high_risk_feature (broad blast radius).spike bead or validation bead (Phase 0) before any execution beads to prove feasibility.For every bead generated, you MUST include a detailed description (e.g., using a --description or --body flag as supported by the tool, or via a multi-line string) that contains:
You MUST NOT generate a markdown checklist like - [ ]. Instead, you MUST use the br tool repeatedly to output br create commands directly.
Every actionable item MUST strictly follow this command format. Notice how the command output is captured into a variable to allow for automated dependency linking:
BEAD_ID_NAME=$(br create --title="[P?] [Story?] [Mode: {MODE}] [Phase: {PHASE_NAME}] [Spec: {SPEC_ID}] Title" --type=task --priority=2 --description="
### Spec Reference
- **Spec ID**: {SPEC_ID} (Derived from the FEATURE_DIR basename)
- **Phase**: {PHASE_NAME}
### Background & Reasoning
[Detailed self-contained documentation, reasoning, considerations, and how it serves over-arching goals]
### Exit State & Verification
[Observable truth: What must be true after execution? How to verify/test it?]
### Granular Subtasks
- Subtask 1
- Subtask 2
") | grep -o 'br-[0-9]\+')
Format Components:
BEAD_SETUP_1=$(br create ... | grep -o 'br-[0-9]\+')) to enable automated dependency linking via br dep add.003-user-auth) and include it in the title.--priority=... (Default to 2 unless otherwise specified).You MUST overlay a clear dependency structure. Establish the exact sequence and blocking relationships between beads by generating br dep add $DEPENDENT_BEAD $BLOCKING_BEAD commands using the variables you captured during creation.
Ensure you group the br create and br dep add commands clearly under their respective phase headings.