一键导入
task-spec
Generate or append a task entry into tasks-pX.md following the task-list field standard defined in docs/claude/standards.md.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate or append a task entry into tasks-pX.md following the task-list field standard defined in docs/claude/standards.md.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Produce a QA acceptance report for a task or change set following the acceptance-document field standard in docs/claude/standards.md.
Run a pre-QA implementation self-check against task scope, acceptance criteria, validation evidence, and pending diff.
Produce a read-only release readiness recommendation from implementation results, QA evidence, environment details, and rollback conditions.
Read pending diff, PRs, task results, or selected files and produce a structured review without modifying code.
Read OPC run artifacts and summarize token, API call, duration, and cost-related usage without invoking models or tools.
Convert a PRD, bug report, or task description into structured test points and targeted validation commands.
| name | task-spec |
| description | Generate or append a task entry into tasks-pX.md following the task-list field standard defined in docs/claude/standards.md. |
按 docs/claude/standards.md#任务清单应至少包含 字段,生成单条任务条目并追加到指定 tasks-pX.md 文件。
/task-spec <文件名> <任务描述>
示例:/task-spec tasks-p5.md 给 RAG 加中文分词器
每条任务必须包含基础字段和长任务可恢复字段:
id:稳定任务编号;无现有编号时按目标任务文件的编号风格生成。depends_on:前置任务 ID;无依赖时写 none。read_before_start:开始或继续前必须读取的任务条目、依赖产物、相关文件、pending diff 或验收记录。execution:执行主体,取值参考 main、explore、skill、manual_review、qa_acceptance。evidence:完成时填写产物、验证方式、验证结果或未验证原因;新任务可写 pending。handoff:跨会话时填写当前状态、下一步、阻塞项、需重读文件和最近验证结果;新任务可写 pending。遵循项目现行任务条目格式,并显式写入长任务字段;不得只依赖 files/context 注释承载恢复信息:
- [ ] <id> <任务名称> <!-- files: <受影响文件列表> --> <!-- context: <责任角色 / 输入 / 输出 / 完成标准> --> <!-- depends_on: <none|任务ID列表> --> <!-- read_before_start: <必读条目/文件/证据> --> <!-- execution: <main|explore|skill|manual_review|qa_acceptance> --> <!-- evidence: <pending|产物+验证+结果> --> <!-- handoff: <pending|当前状态+下一步+阻塞项+需重读文件+最近验证> --> <!-- auto|review|order|decision -->
执行标注:
auto — 可由 Agent 直接小步执行review — 需要人工取舍/评审order — 必须在前置任务后顺序执行decision — 已确认的决策tasks-pX.md 现有结构,保持分组(P0/P1/P2... 或自定义分组)一致。depends_on;多个前置任务用逗号分隔,例如 depends_on: LT-07, LT-08。order、review、auto、decision 只是执行或审批标注,不能替代 depends_on;有先后关系时两者应同时存在。depends_on: none,不得写“无依赖”“见上文”或只在 context 中描述。无前置依赖示例:
- [ ] LT-01 定义长任务字段标准 <!-- files: docs/claude/standards.md --> <!-- context: 责任角色=PM/Architect;输入=现有任务清单字段;输出=长任务字段说明;完成标准=standards.md 明确字段含义和必填性 --> <!-- depends_on: none --> <!-- read_before_start: tasks-p8.md LT-01 条目、docs/claude/standards.md --> <!-- execution: main --> <!-- evidence: pending --> <!-- handoff: pending --> <!-- review -->
有前置依赖示例:
- [ ] LT-07 更新 task-spec 字段要求 <!-- files: .claude/skills/task-spec/SKILL.md --> <!-- context: 责任角色=PM/Engineer;输入=LT-01 到 LT-06 字段标准;输出=task-spec 支持长任务字段;完成标准=新生成任务包含可恢复字段 --> <!-- depends_on: LT-01, LT-02, LT-03, LT-04, LT-05, LT-06 --> <!-- read_before_start: tasks-p8.md LT-07 条目、docs/claude/standards.md 长任务字段规则、.claude/skills/task-spec/SKILL.md --> <!-- execution: main --> <!-- evidence: pending --> <!-- handoff: pending --> <!-- order -->
depends_on,执行/审批属性写入 auto、review、order 或 decision