跳到正文

spec-write-tasks ​

把已定稿的本地 spec-plan 编译成可选的派生 task pack,或校验已有 task pack。

ASCII 链路图 ​

text
Codebase -> Spec -> Plan -> Tasks -> Code -> Review -> Knowledge
                              |
                              v
                              spec-write-tasks
                              entry: spec-write-tasks
                              type: workflow command

链路图表示该技能在研发阶段上的位置;阶段之间不是必经顺序,按当前任务直接进入最匹配的入口即可。

基本信息 ​

字段内容
Skillspec-write-tasks
类型workflow command
研发链路位置Tasks
当前入口spec-write-tasks
兼容别名/spec:write-tasks、$spec-write-tasks
宿主投递Claude Code: command · Codex: skill · Cursor: skill · Kiro: skill · Qoder: command · OpenCode: command · ZCode: skill · Pi: skill
Sourceskills/spec-write-tasks/SKILL.md

源码描述(原文) ​

Public workflow entrypoint (spec-write-tasks): compile a settled local spec-plan into an optional derived task pack for spec-work, or validate an existing local task pack before execution. Use for explicit plan-splitting/task-doc requests or high-complexity work suitability; do not use for plan authoring, implementation execution, unresolved scope, small low-risk plans, progress/approval state, remote/generic task lists, or generated runtime mirror edits. Keep the plan as single source of truth; tasks are derived and optional.

Source 契约摘要 ​

以下各条摘自上游 SKILL.md 的契约摘要小节(Workflow Contract Summary 或 Contract Summary),过长时截断。

  • 何时使用 — Use when a settled local source plan is too large or dependent for direct execution, when the user explicitly asks to split a plan into tasks, or when an existing local task pack needs validation before spec-work.
  • 何时不使用 — Do not use for unresolved product or architecture scope, small changes that do not need a derived layer, remote repositories or package names, marketplace skill lookup, or implementation prompts that should go directly to spec-work.
  • 输入 — A local source plan path, existing task-pack path, or clear task-splitting request that resolves to one local source plan. Inputs must stay local and source-owned; remote repos, packages, marketplace identifiers, and generic task lists are rejected.
  • 输出 — One of: executable derived task pack, validated existing task-pack handoff, skip, return-to-plan, draft-only, or validate-only envelope. Task packs are derived execution indexes and never replace the source plan.
  • 产物 — Executable task packs live under docs/tasks/ and must carry an artifact-root-relative POSIX source_plan, canonical source_plan_hash, generated_by: spec-write-tasks, mode: derived, and a valid Task Pack Contract JSON block. Executable identity is source-plan-path+body-hash; spec_id is an optional compatibility trace rather than a required identity field.
  • 失败模式 — Use machine-readable reason codes: source_plan_missing, ambiguous_plan, wrong_chain, stale_hash, unverifiable_hash, invalid_contract, repo_scope_missing, or scope_gap.
  • 流程 — Classify input, verify plan identity and repo scope, choose one branch (compile, skip, return-to-plan, draft-only, validate-only), use bounded source orientation only when it improves task boundaries, write or validate the task pack, then return the final decision envelope.
  • 下游消费者 — spec-work, high-risk spec-doc-review handoff, human reviewers, and later code-review/compound workflows.

何时使用 ​

  • 计划过大或依赖复杂,不适合直接执行。
  • 用户明确要求拆分任务。
  • 已有 task pack 需要在 spec-work 之前校验。

边界 ​

  • 输入必须是本地的、源仓库拥有的计划;不接受远程仓库、包名或通用任务清单。
  • 计划保持唯一事实源,task pack 只是派生物。

源码校准 ​

本页由脚本从上游 skills/spec-write-tasks/SKILL.md 生成;入口、兼容别名与宿主投递以 src/cli/contracts/dual-host-governance/skills-governance.json 为准。