skills/breakdown-tasks/SKILL.md
--- name: breakdown-tasks description: Break a design document into an executable task list with dependencies, acceptance criteria, and assignee or AI execution hints. Use when design is approved and you need an implementation plan. description_zh: 将设计文档拆解为可执行任务列表:依赖、验收标准、负责人或 AI 执行提示。 tags: [writing, documentation, workflow] version: 3.0.0 license: MIT recommended_scope: both metadata: author: ai-cortex triggers: [breakdown tasks, task breakdown, implementation plan, tasks from design] input_
npx skillsauth add nesnilnehc/ai-cortex skills/breakdown-tasksInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
将已验证设计文档变成有序的、可跟踪的任务列表。每个任务都有依赖性、验收标准和受让人(或人工智能执行提示),以便可以毫无歧义地进行实施。
任务目标:根据设计文档生成任务文档(例如tasks.md),以便每个可实施的单元都是一个具有明确依赖性、验收标准和所有权的任务。
成功标准(必须满足所有要求):
docs/process-management/tasks/YYYY-MM-DD-<topic>.md 或项目 tasks.md)并提交验收测试:执行者(人或代理)可以仅使用此文档和设计来选择下一个任务,实施它并验证完成情况吗?
本技能负责:
本技能不负责:
转交点:当任务列表被批准并保留后,移交给执行(例如按顺序运行任务,或输入待办/板)。
按 specs/artifact-contract.md §8 Runtime Norms Resolution Protocol 实现:
tasks artifact_type 的 path_pattern(默认:docs/tasks/{slug}.md;项目可覆盖为聚合式如 work/{parent_slug}/tasks.md)upstream_ref(应指向上游 design 文档):在产出制品的 frontmatter emit parent: <upstream_ref>docs/process-management/tasks/YYYY-MM-DD-<topic>.md 或项目约定 tasks.md。created_by:分解任务、lifecycle:living、设计源路径)。|角色 |内容 |
| :--- | :--- |
| 输入 |设计文档(路径或内容);用户的可选范围/优先级 |
| 输出 |任务文档位于 docs/process-management/tasks/YYYY-MM-DD-<topic>.md 或项目 tasks.md;每个任务都有 ID、标题、依赖项、接受标准、受让人/提示 |
# Implementation tasks: [Topic]
**Source design:** [path or title]
**Created:** YYYY-MM-DD
| Id | Task | Depends on | Acceptance criteria | Owner / Hint | Status |
| :--- | :--- | :--- | :--- | :--- | :--- |
| T1 | ... | — | ... | ... | Todo |
| T2 | ... | T1 | ... | ... | Todo |
本技能仅负责将所有派生任务的初始状态设置为 Todo。
下游实施与执行技能(如具体的开发执行 agent)、任务看板同步工具或开发人员,负责在实施期间维护并更新该状态(例如流转为 In Progress、Blocked、Done 或 Cancelled)。本技能不负责在此后持续变更任务状态。
可选:在顶部添加简短的“摘要”和“设计可追溯性”(任务 → 设计部分)。
不要做这些(其他技能可以处理它们):
设计解决方案Todo)并包含在表格状态列中调用:“我们在 docs/design-decisions/2026-03-16-core-v1.md 中有设计。将其分解为任务。”
代理:使用分解任务;读设计;导出具有部门和验收标准的有序任务;写入 docs/process-management/tasks/2026-03-16-core-v1.md;获得用户认可;建议从第一个任务开始。
调用:“我们的平台设计文档非常庞大(多个子系统)。我们现在只需要‘身份验证+用户入门’的任务。”
代理:
本技能产出 Task List Document:
| 元素 | 格式 | 必填字段 | 路径模式 | | :--- | :--- | :--- | :--- | | 文档主体 | Markdown | front-matter(artifact_type=tasks / created_by=breakdown-tasks / lifecycle=snapshot;upstream_ref 提供时含 parent);章节:上下文 / 任务列表 / 依赖图 | norms-resolved 路径(默认 docs/tasks/<slug>.md) | | 任务条目 | 列表项 | id(如 T01)/ title / description / depends_on[] / acceptance / status(默认 pending)/ effort_estimate(可选) | 「任务列表」节 | | 依赖图 | Mermaid 或表格 | edges 表达 depends_on 关系;环路必须为 0 | 「依赖图」节 |
development
Generate an LLM agent test suite (golden cases, mock-LLM unit tests, evaluator harness) from an agent implementation and its agent-test contract. Use when an agent has no tests, or a contract exists but the test code is missing.
development
After code changes, auto-detect the project's build system and local deployment method for a given directory, then build the project and restart its locally-deployed environment (Docker Compose / systemd / process manager). Never assumes — asks only when detection is ambiguous. Caches detected commands per project in .cortex/redeploy-local.yaml; re-invocations on the same project skip re-scanning until signal files change, the cache expires (30 days), or the skill version bumps.
tools
Publish a NATS message conforming to a cross-team contract, using NATS MCP tools. Authors the contract on first use if missing. Reads project-level cache (.cortex/nats.yaml) to avoid re-prompting basics across sessions.
tools
Drain pending NATS messages from a producer contract via NATS MCP tools (default batch / drain-style). Applies Tolerant Reader semantics and per-message ack/nak/term, returning aggregated stats. Reads project-level cache (.cortex/nats.yaml) to avoid re-prompting.