AGENT SKILL

PRD 任务分解

decompose

使用曳光弹式(tracer-bullet)垂直切片,将一项倡议、计划或 PRD 分解为可被独立认领的 Kairos 任务。

适用职业项目经理
License 许可
Apache-2.0
所属仓库
colliery-io/kairos
最近更新
2026-11-13
Stars
★ 1
Forks
4

01 前言 Front Matter

name
decompose
description
Break an initiative, plan, or PRD into independently-grabbable Kairos tasks using tracer-bullet vertical slices.
argument-hint
Initiative or document short code (optional if it's already in the conversation)
disable-model-invocation
true

03 SKILL.md 正文

Decompose

Break a plan into independently-grabbable Kairos tasks using vertical slices (tracer bullets).

Process

1. Gather context

Work from whatever is already in the conversation. If the user passes a short code as an argument, get_item it — and if it's an initiative whose relationships list an attached PRD, get_item that too — and read the full content. If neither an argument nor a plan in the conversation exists, ask the user what to decompose.

2. Ground, then explore the codebase

First read the record: GROUND.md. The ADRs and the documents that impact the repository, the documents of the initiative, related_work on the initiative. Write its "Read: ..." sentence before you draft a task. A task that contradicts an ADR says so in its body, and you ask the user before you publish it.

If you have not already explored the codebase, do so to understand the current state of the code. Task titles and descriptions should use the project's domain glossary vocabulary, and respect ADRs in the area you're touching.

Code index first. Find code with the tools of the kairos-code MCP server before you read a file. code_search finds what the code does; symbol finds one name. callers and references find its uses; path finds how one symbol reaches another. Then read only the files that they name. grep is for literal text only: a log line, a config key, an error message. After you change code, run kairos index update.

Check the names. List each symbol, file, crate and dependency that the plan names, and check each one with the code tools (symbol, code_search, path). A name that is not in the code goes into no task: write "Stale: <name> is not in the code" on the initiative, and ask the user what the plan meant. A blocker that the plan names: get_item it, and check that it is open and that its scope blocks this work. A claim that you make without evidence carries the marker "not checked".

Look for opportunities to prefactor the code to make the implementation easier. "Make the change easy, then make the easy change."

3. Draft the tasks

Break the plan into tracer bullet tasks, following the Vertical slice rules. A wide refactor is the exception to that rule — slice it by expand–contract instead (see Wide refactors). Prefactoring becomes its own leading task(s) that the slices it enables block on. Every user story in the source material maps to a slice or goes on an explicit uncovered list.

4. Quiz the user

Present the proposed breakdown as a list of quoted titles, each marked "not yet created". The tasks do not exist yet, so they have no short code. Do not give them a temporary name ("Slice 1", "T1", "task A"). A number in the list is for the user's answer in this message only. For each proposed task, show:

  • Title: the full title in quotes, in the domain glossary's words
  • Blocked by: the quoted titles of the proposed tasks that must complete first, or the short codes of existing items
  • User stories covered: the user stories that the task covers, as the short code of the PRD and the story number. Also show the stories that no task covers, so that nothing vanishes silently

Ask the user:

  • Does the granularity feel right? (too coarse / too fine)
  • Are the dependency relationships correct?
  • Should any tasks be merged or split further?

Iterate until the user approves the breakdown. The naming rules are in the kairos-vocabulary skill.

5. Publish the tasks to Kairos

Every task names a board (COLLIERY-A-0023): the team decides the board, and the board decides the team of the task. Default to the session's team_board (SessionStart context). With no team_board, find the board with my_boards. If more than one can hold the work, ask the user which. A slice for a different team is a request: name the delivery board of that team, and follow CROSS-TEAM-FILING.md.

The repository is an optional link to the repo where an agent implements the task. It does not choose the board. Default to the session's repository. When the initiative spans repositories, ask the user which repo holds each slice. A slice that "touches both" is two slices, one per repo, joined by a blocks edge. list_repositories shows the directory.

Publish in dependency order — blockers first — so every blocking edge names a real short code. For each approved slice:

  • create_item(item_type: task, board: <delivery board>, repository: <slug>, parent: <initiative short code>, title: ..., content: ...) using the Task body template (omit repository when the task has no code). The parent edge links the task to its initiative — the body carries no parent section.
  • For each of its blockers: link_items(source: <blocker short code>, target: <this task's short code>, relationship: blocks).
  • Add a blocks edge only when a task must wait for another task. Give no edge to tasks that can go in parallel. The graph view shows serial work as a row and parallel work in one column.
  • Write the order in the ## Order section of the task.

Columns and blocking edges are native to Kairos — new tasks go to the entry column of the board, and that's where they belong; leave them for the team to pull. The initiative itself stays untouched: decompose only adds children.

From here on, name each task only by the short code in the result of its create_item. Do not use its working title or its number in the step 4 list.

Finish by listing the created short codes in dependency order, each with its board and its repository (and, for a request, a note that it is in the support lane of that team).

Then offer /kairos:grill-decomposition <initiative short code>. It reviews the tasks as a set before a Ralph loop runs them: the slice boundaries, the blocks edges, criteria that the loop can check, and scope leaks.

Reference

Vertical slice rules

Each task is a thin vertical slice that cuts through ALL integration layers end-to-end, NOT a horizontal slice of one layer.

  • Each slice delivers a narrow but COMPLETE path through every layer (schema, API, UI, tests)
  • A completed slice is demoable or verifiable on its own
  • Any prefactoring should be done first

Wide refactors

A wide refactor is one mechanical change — rename a column, retype a shared symbol — whose blast radius fans across the whole codebase, so a single edit breaks thousands of call sites at once and no vertical slice can land green. Don't force it into a tracer bullet; sequence it as expand–contract. First expand: add the new form beside the old so nothing breaks. Then migrate the call sites over in batches sized by blast radius (per package, per directory), each batch its own task blocked by the expand, keeping CI green batch to batch because the old form still exists. Finally contract: delete the old form once no caller remains, in a task blocked by every migrate batch. When even the batches can't stay green alone, keep the sequence but let them share an integration branch that all block a final integrate-and-verify task — green is promised only there.

Task body template

<task-template>

What to build

A concise description of this vertical slice. Describe the end-to-end behavior, not layer-by-layer implementation.

Avoid specific file paths or code snippets — they go stale fast. Exception: if a prototype produced code that encodes a decision more precisely than prose can (state machine, reducer, schema, type shape), add a context pointer to where that prototype code lives rather than inlining it.

Order

Blocked by: the short codes of the tasks that must complete first. Or: "none, this task can go in parallel".

Acceptance criteria

Write them in Simplified Technical English: The Simplified Technical English reference (KAIROS-S-0009) is the source of truth. A criterion is a testable instruction, so it is procedural text — one instruction per criterion, active voice, present tense, 20 words or fewer, and the domain terms from section 4 rather than a synonym. A criterion nobody can read twice the same way is not a contract.

  • [ ] Criterion 1
  • [ ] Criterion 2
  • [ ] Criterion 3 </task-template>

04 同仓库更多 Skills

colliery-io
colliery-io/kairos

交付看板梳理

triage

梳理交付看板——细化验收标准、确定缺陷优先级、权衡技术债务、归档过期条目、补充待办事项、上报跨团队阻碍。

项目经理工单与问题跟踪管理
★ 1
colliery-io
colliery-io/kairos

对话转行动项 PRD

to-initiative

将当前对话转化为一个附带 PRD 的 Kairos 行动项——无需访谈,仅综合已经讨论过的内容。

产品经理任务规划与分解
★ 1
colliery-io
colliery-io/kairos

Ralph 循环执行任务

ralph

以 Ralph 循环的方式逐个运行 Kairos 任务,依次执行 `/kairos:implement` 的各个步骤。

软件开发工程师定时任务与自动化编排
★ 1
colliery-io
colliery-io/kairos

Ralph 循环执行行动项

ralph-initiative

以 Ralph 循环的方式运行 Kairos 行动项中的未完成任务,按照其 blocks(阻塞)边的顺序执行。

软件开发工程师定时任务与自动化编排
★ 1
colliery-io
colliery-io/kairos

交付团队组建配置

onboard-team

带领一个新的或设置了一半的交付团队与相关人员一起进入可工作状态——包括其团队、成员、看板、代码仓库、团队页面和章程、任务派发以及本地配置连接。先读取、列出缺口、每次写入前先询问;可安全重复运行。

项目经理办公管理与协作
★ 1
colliery-io
colliery-io/kairos

Kairos 任务实现

implement

将一个 Kairos 任务从 Todo(待办)推进到 Completed(已完成)。当用户指定要实现的具体任务或短代码、要求接手下一个待办项,或经过梳理(groomed)的工作被移交执行时使用。

软件开发工程师代码实现
★ 1