执行
MVPavan2026-10-25查看 513复制 1729
用于执行受跟踪的多步骤工作、独立计划或路线图阶段。清晰且有边界的实施可直接在 AGENTS.md 下进行。
📘如何使用这个技能
- 1复制技能内容·点击上方「Copy SKILL.md」复制全部内容,或 Download 下载到本地
- 2打开你的 AI 客户端·支持 Claude Code、Trae、Cursor、ChatGPT、DeepSeek、Kimi 等任意 AI 助手
- 3粘贴为系统提示/知识文件·Claude Code:放入 .claude/skills/ 目录;普通对话:作为首条消息发送并说「请严格按这份技能文档执行」
- 4直接提出你的需求·AI 会按技能定义的工作流、格式和约束来处理,无需再解释背景
💡 提示:技能生效后,每次对话只需一句需求,AI 会按 SKILL.md 的流程执行。
SKILL.md4603 chars
--- name: execution description: Use to execute tracked multi-step work, a standalone plan, or a roadmap phase. Clear bounded implementation can proceed directly under AGENTS.md. --- # Execution Execute authorized work through acceptance, verification and recovery. Beads owns durable task state; a plan document is not a prerequisite for a clear task. ## Scope selector | Request | Scope | |---|---| | Explicit run-all-remaining-phases request or `/run-phases` | Workstream; read `references/workstream-mode.md` | | Execute a named roadmap phase | Phase | | Task, standalone plan, or single-phase epic | Task | | Clear bounded implementation without a plan | Task; use the request and acceptance as the packet | | Material scope/behavior unresolved | Resolve that gap through planning or brainstorming | Carry authorization through necessary fixes; a review finding cannot authorize scope expansion. Follow the delegation policy in `AGENTS.md`. Risk labels: `small` is bounded, low-risk work; `standard` is a bounded behavior change; `deep` is cross-cutting, high-risk, or materially unresolved work. Small work stays inline. Standard work may stay inline or use one bounded worker when beneficial. Deep work needs risk-appropriate independent review; separate spec and quality reviewers only when the task requires them or the risks justify both. Use configured models/effort; if dispatch is unavailable, continue useful local work and state any required review that remains unperformed. For delegated units or multi-round review, read `references/task-engine.md`. Workspace: `scratchpad/execution/<slug>/`, with a slug that distinguishes full plan/workstream paths. Capture the starting revision and dirty-file baseline; pre-existing edits are not automatically part of the task. ## Task loop 1. Read the request, existing plan if any, and Beads description/acceptance. Claim the exact task with `--actor "<runtime>:<session-or-purpose>"`. 2. Implement in dependency order, within owned paths. Use test-first or characterization when risk calls for it; apply security to material boundary changes and debugging when a failure's cause is unclear. 3. Validate findings as they arrive. Fix confirmed in-scope defects, answer incorrect findings with evidence, and record unresolved decisions. Do not spend fix rounds implementing unverified feedback. 4. Run applicable project/plan checks and inspect the scoped final diff. Reuse valid evidence while its code, inputs and environment remain applicable. Small work needs no mandatory reviewer pair. Independent review is driven by explicit requirements or unresolved risk, not the act of closing a task. 5. Close with evidence and material limitations in `--reason`; report the result. Create durable follow-up work for discoveries outside scope, linked to origin. For a task epic, map plan tasks to its stage IDs and use the phase close gate. ## Phase loop 1. Resolve the supplied or unambiguous roadmap and read this phase's deliverables, spec references, acceptance, risk and exit criterion. Query `bd list -t epic -l ws-<name> --json`: exactly one epic title must start with `[<phase-id>]`. Legacy records may use `bd list --spec <roadmap.md> --json`. Zero/duplicate matches are a tracking defect; do not silently re-seed. 2. Confirm the epic is not already closed, check blockers and claim the phase. Elaborate a deep phase when its packet needs a plan; reuse approval covering this work rather than pausing again. 3. Select a ready direct child from `bd ready --parent <epic> --json`, claim that exact ID, and execute its mapped plan tasks in dependency order. Missing or unmatched `Stage:` mappings require plan correction before dependent work. 4. Verify each stage's acceptance before closing it. Regenerate tracking with the beads skill's `scripts/bd-render-tracking.sh` where available and authorized; report a missing renderer instead of editing generated tracking by hand. 5. **Close gate:** query `bd list --parent <epic> --all --json`; require at least one stage and every stage closed. Name unclosed stages on failure. Then run the roadmap exit criterion. Close the epic only after both conditions hold, recording the actual exit evidence. If the governing plan changes or code invalidates the chosen approach, reconcile before dependent work continues. Preserve completed work on failure. An unresolved stage or failed phase exit blocks phase completion and any dependent phase. Commits, publication and broader work retain their existing authorization gates.