用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/opencobra/cobratoolbox --skill speckit-agent-assign-execute命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | speckit-agent-assign-execute |
| description | Execute tasks by spawning the assigned agent for each task |
| compatibility | Requires spec-kit project structure with .specify/ directory |
| metadata | {"author":"github-spec-kit","source":"agent-assign:commands/execute.md"} |
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty).
Setup: Run .specify/scripts/bash/check-prerequisites.sh --json --require-tasks --include-tasks 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").
Check Assignment File Exists: Verify agent-assignments.yml exists in FEATURE_DIR.
/speckit.agent-assign.assign first, then /speckit.agent-assign.validate to verify."Load Implementation Context:
tasks.md for the complete task list and execution planagent-assignments.yml for agent-to-task mappingplan.md for tech stack, architecture, and file structurespec.md for feature requirements and user storiesdata-model.md for entities and relationshipsresearch.md for technical decisions and constraintsquickstart.md for integration scenariosProject Setup Verification (same as /speckit.implement):
Detection & Creation Logic:
Check if the following command succeeds to determine if the repository is a git repo (create/verify .gitignore if so):
git rev-parse --git-dir 2>/dev/null
Check if Dockerfile* exists or Docker in plan.md → create/verify .dockerignore
Check if .eslintrc* exists → create/verify .eslintignore
Check if eslint.config.* exists → ensure the config's ignores entries cover required patterns
Check if .prettierrc* exists → create/verify .prettierignore
Check if .npmrc or package.json exists → create/verify .npmignore (if publishing)
Check if terraform files (*.tf) exist → create/verify .terraformignore
Check if .helmignore needed (helm charts present) → create/verify .helmignore
If ignore file already exists: Verify it contains essential patterns, append missing critical patterns only If ignore file missing: Create with full pattern set for detected technology
Parse Execution Plan: Parse tasks.md structure and extract:
agent-assignments.yml to get assigned agent nameExecute Tasks Phase by Phase: For each phase in tasks.md, process tasks in order:
For each task:
agent-assignments.ymlMode A — Default (no specialized agent):
If the task is assigned to default, execute the task directly in the current context, following the same implementation rules as /speckit.implement:
Mode B — Specialized Agent:
If the task is assigned to a named agent (not default), launch the assigned agent to handle the task:
Dependency and ordering rules:
Progress Tracking:
[X] in tasks.md✓ T001 (default) — Created project structure
✓ T002 (backend-dev) — Implemented User model
✗ T003 (frontend-dev) — FAILED: Component creation error
## Phase 1: Setup — Complete (3/3 tasks)
## Phase 2: Foundational — Complete (5/5 tasks)
## Phase 3: User Story 1 — In Progress (2/4 tasks)
Error Handling:
default mode and warn the userCompletion Validation:
## Execution Summary
| Phase | Total | Completed | Failed | Skipped |
|---------|-------|-----------|--------|---------|
| Setup | 3 | 3 | 0 | 0 |
| Found. | 5 | 5 | 0 | 0 |
| US1 | 4 | 4 | 0 | 0 |
| US2 | 3 | 3 | 0 | 0 |
| Polish | 2 | 2 | 0 | 0 |
| **Total** | **17** | **17** | **0** | **0** |
Agents used: backend-dev (6 tasks), frontend-dev (4 tasks), test-writer (3 tasks), default (4 tasks)
Note: This command requires both tasks.md and agent-assignments.yml to exist. If tasks.md is missing, suggest running /speckit.tasks first. If agent-assignments.yml is missing, suggest running /speckit.agent-assign.assign first.