一键导入
spec-executor
Execute implementation specs with batched checkpoints. Follows specs exactly, stops on blockers, supports parallelization.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Execute implementation specs with batched checkpoints. Follows specs exactly, stops on blockers, supports parallelization.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Thoroughly reviews a GitHub pull request and posts inline review comments anchored to the exact lines it has feedback on. Spawns review sub-agents (parallel lenses for bugs, security, edge cases, tests, design), scores findings by confidence, filters false positives, and posts one PR review with per-line comments plus a summary. Works against github.com AND GitHub Enterprise Server. Use this whenever the user wants to review a PR, generate line-level feedback on a PR, "leave comments on" or "critique" a pull request, or produce actionable review comments to then process with pr-review-handler. Reach for this for arbitrary PR URLs and Enterprise hosts; for reviewing your own current branch on github.com, the built-in /code-review --comment is a lighter alternative.
Processes PR review comments by assessing feedback, planning actions, implementing changes, and responding to reviewers. Use when a PR has review comments that need to be addressed.
Rebases the current branch on the latest default branch (main, master, etc.), resolving any merge conflicts automatically. Detects the default branch and remote, fetches latest, performs rebase, and handles conflicts file-by-file.
You MUST use this skill for ANY changes you make within to the iOS app. Senior iOS engineer with visual feedback capabilities via simulator MCP tools.
Create and bootstrap a git worktree for isolated development work.
Collaborative exploration to refine ideas into clear requirements before spec writing. Explores user intent, requirements and design through iterative dialogue.
| name | spec-executor |
| description | Execute implementation specs with batched checkpoints. Follows specs exactly, stops on blockers, supports parallelization. |
| argument-hint | <spec-file> [--batch-size=<n>] [--no-checkpoint] [--dry-run] [--resume] |
Executes implementation specs (typically created by the spec-writer skill). Follows specs exactly with batched execution, checkpoints for user feedback, and parallelization support.
spec-file (required): Path to the spec file to execute--batch-size=<n>: Steps per checkpoint (overrides config)--no-checkpoint: Run without pausing for checkpoints--dry-run: Show what would be done without making changes--resume: Resume from last checkpoint--parallel=<true|false>: Enable/disable parallelizationCheck for .claude/spec-workflow/config.yaml:
paths:
worktrees: "./worktrees"
services:
backend:
path: "./backend"
build: "npm run build"
test: "npm test"
lint: "npm run lint"
frontend:
path: "./frontend"
build: "npm run build"
test: "npm test"
execution:
batchSize: 5
checkpoint:
behavior: "smart" # "pause" | "continue" | "smart"
parallel:
enabled: true
maxAgents: 3
If no config, auto-detect services and use defaults.
Follow the spec. Stop on blockers. Never guess.
This skill prioritizes:
Before executing, verify the environment is ready:
If spec frontmatter contains worktree:
./worktrees/[name])If worktree doesn't exist:
/create-worktree [name] --spec=[spec-path]Proceed in current directory, but warn user that changes won't be isolated.
Read the full spec file
Parse the spec
Review critically before starting
Present a summary:
**Spec Review: [Feature Name]**
**Tasks:** [N] implementation steps
**Parallelization:** [Yes/No - describe groups if present]
**Dependencies:** [List any external dependencies]
**Estimated scope:** [Small/Medium/Large based on task count]
**Concerns before starting:**
- [Any unclear instructions]
- [Any unresolved Open Questions from spec]
- [Any missing information]
**Parallelization Plan:**
[Describe how tasks will be parallelized if applicable]
Ready to proceed?
If --dry-run, stop here after showing the plan.
For each task in the current batch:
If spec includes a Sub-agent Parallelization Plan:
Launching parallel execution for Group 1:
Agent 1: Task 1.1 - [Description]
Agent 2: Task 1.2 - [Description]
Waiting for completion...
Respect execution.parallel.maxAgents from config.
DO:
DON'T:
After each batch (based on batchSize):
**Checkpoint: Batch [N] Complete**
**Completed tasks:**
- [x] Task 1: [Brief description of what was done]
- [x] Task 2: [Brief description of what was done]
**Verification results:**
- Tests: [Pass/Fail - details]
- Lint: [Pass/Fail]
- Build: [Pass/Fail]
**Files modified:**
- `path/to/file1` - [What changed]
- `path/to/file2` - [What changed]
**Next batch:** Tasks [N+1] through [N+3]
Checkpoint behavior (from config or argument):
pause: Always pause for user reviewcontinue: Auto-continue if no issuessmart: Pause on warnings/errors, continue otherwiseAfter all tasks complete:
Run full validation
For each service in spec's services frontmatter (or all configured services if not specified):
# Use commands from config, or auto-detect
[service.build command]
[service.lint command]
[service.test command]
Update spec status
Final summary
**Spec Execution Complete: [Feature Name]**
**Tasks completed:** [N] of [N]
**Files modified:** [Count]
**Tests:** [Pass/Fail]
**Build:** [Pass/Fail]
**Summary of changes:**
- [High-level description of what was implemented]
**Next steps:**
- [ ] Manual testing per spec's Validation Plan
- [ ] Code review
- [ ] Commit and PR
STOP and ask the user when:
Blockers encountered
Spec gaps
Scope questions
**Execution Paused: [Reason]**
**Context:** [What I was trying to do]
**Issue:** [What went wrong or is unclear]
**Question:** [Specific question for user]
Options:
A) [Suggested resolution 1]
B) [Suggested resolution 2]
C) Skip this task and continue
D) Stop execution entirely
How should I proceed?
Mirror spec's Implementation Steps in todo list:
Todos:
- [x] Step 1: [Task from spec]
- [x] Step 2: [Task from spec]
- [ ] Step 3: [Task from spec] (in_progress)
- [ ] Step 4: [Task from spec] (pending)
Update checkboxes in spec's Validation & Testing Plan as tests are written/pass.
spec-file
│
▼
┌─────────────────────────────────┐
│ PHASE 1: ENVIRONMENT SETUP │
│ • Check/create worktree │
│ • Verify environment ready │
└─────────────────────────────────┘
│
▼
┌─────────────────────────────────┐
│ PHASE 2: LOAD & REVIEW │
│ • Parse spec │
│ • Flag concerns │
│ • Confirm ready to proceed │
└─────────────────────────────────┘
│
▼
┌─────────────────────────────────┐
│ PHASE 3: EXECUTE BATCH │
│ • Follow spec exactly │
│ • Use sub-agents if parallel │
│ • Track tasks │
└─────────────────────────────────┘
│
▼
┌─────────────────────────────────┐
│ PHASE 4: CHECKPOINT │
│ • Report progress │
│ • Show verification results │
└─────────────────────────────────┘
│
▼
┌─────────────────────────────────┐
│ PHASE 5: CONTINUE │
│ • Next batch → Phase 3 │
└─────────────────────────────────┘
│
▼
┌─────────────────────────────────┐
│ PHASE 6: FINALIZE │
│ • Full validation │
│ • Update spec status │
│ • Summary & next steps │
└─────────────────────────────────┘
│
▼
Feature Implemented