ワンクリックで
writing-plans
当拿到多步骤任务的规格说明或需求、准备动手写代码前,必须使用本技能制定完整实现计划
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
当拿到多步骤任务的规格说明或需求、准备动手写代码前,必须使用本技能制定完整实现计划
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Update Kimi Code CLI user documentation after meaningful code changes that affect product behavior or user experience.
Map systematic debugging onto Ganymede Code native Debug / 排障 surfaces (probes, user verification bar, TodoList).
Map KimiCodeBoost engineering workflows onto Ganymede Code native UI and host tools (AskUserQuestion, TodoList, Agent, Plans panel, GanymedeBrowser, Worktree, Review).
在开展任何创造性工作之前必须使用:创建功能、构建组件、添加能力或修改行为。在动手实现前,先探索用户意图、需求并制定设计。
当同时面对 2 个及以上相互独立、无共享状态且无顺序依赖的任务时必须使用本技能
当需要在一个独立会话中执行已撰写的实现计划,并通过检查点进行复核时必须使用
| name | writing-plans |
| description | 当拿到多步骤任务的规格说明或需求、准备动手写代码前,必须使用本技能制定完整实现计划 |
撰写详尽的实现计划,并假设执行工程师对我们的代码库一无所知,且品味堪忧。需要记录他们所需的一切信息:每个任务要改动哪些文件、代码、测试、需要查阅的文档,以及如何进行测试。把整个计划拆成一口一个的小任务。遵循 DRY、YAGNI、TDD,频繁提交。
假设执行者是一位熟练的开发者,但几乎不了解我们的工具链或问题域,也不太擅长设计良好的测试。
开始时声明:"我正在使用 writing-plans 技能来创建实现计划。"
上下文: 如果在隔离 worktree 中工作,该 worktree 应在使用时通过 using-git-worktrees 技能创建。
计划保存路径(CLI / 非 Ganymede): docs/kimicodeboost/plans/YYYY-MM-DD-<feature-name>.md
进入 Plan 模式后,将当前会话 TodoList checklist(若有)一次性迁入 plan frontmatter todos[],之后 Composer 待办与 Plans 面板共用该列表。
---
name: Feature Name
overview: One-sentence goal for the plan
todos:
- id: task-1
content: Short task title
status: pending
- id: task-2
content: Next task title
status: pending
---
# Feature Name Implementation Plan
...
todos[].status 取值:pending | in_progress | completed | cancelledGanymedeWorktree 或 Composer 执行目标「Worktree」如果规格说明涉及多个相互独立的子系统,它本应在头脑风暴阶段被拆分为子项目规格。如果尚未拆分,建议将其拆分为独立的计划——每个子系统一份。每份计划都应能独立产出可运行、可测试的软件。
在定义任务之前,先梳理将要创建或修改哪些文件,以及每个文件的职责。这里是分解决策被确定下来的地方。
这一结构会指导任务分解。每个任务都应产出独立自洽、可独立理解的变更。
任务应是最小可独立测试循环单元,并且值得一次新的评审关口。划分任务边界时:把搭建、配置、脚手架和文档步骤合并到真正需要它们的交付任务中;只在评审者可能拒绝任务 A 同时批准相邻任务 B 的地方进行拆分。每个任务都以一个可独立测试的交付物结束。
每一步都是单个动作(2-5 分钟):
每份计划必须以该头部开头:
# [Feature Name] Implementation Plan
> **For agentic workers:** REQUIRED SUB-SKILL: Use subagent-driven-development (recommended) or executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
**Goal:** [One sentence describing what this builds]
**Architecture:** [2-3 sentences about approach]
**Tech Stack:** [Key technologies/libraries]
## Global Constraints
[The spec's project-wide requirements — version floors, dependency limits,
naming and copy rules, platform requirements — one line each, with exact
values copied verbatim from the spec. Every task's requirements implicitly
include this section.]
---
### Task N: [Component Name]
**Files:**
- Create: `exact/path/to/file.py`
- Modify: `exact/path/to/existing.py:123-145`
- Test: `tests/exact/path/to/test.py`
**Interfaces:**
- Consumes: [what this task uses from earlier tasks — exact signatures]
- Produces: [what later tasks rely on — exact function names, parameter
and return types. A task's implementer sees only their own task; this
block is how they learn the names and types neighboring tasks use.]
**Complex-Task Analysis (required for large refactoring / wide bugfix / cross-module changes):**
- 功能收益:[具体模块与收益]
- 问题风险:[潜在回归与兼容性问题]
- 组件配合:[与上下游模块的交互方式]
- 组件耦合:[新增或加重的依赖关系]
- [ ] **Step 1: Write the failing test**
```python
def test_specific_behavior():
result = function(input)
assert result == expected
```
- [ ] **Step 2: Run test to verify it fails**
Run: `pytest tests/path/test.py::test_name -v`
Expected: FAIL with "function not defined"
- [ ] **Step 3: Write minimal implementation**
```python
def function(input):
return expected
```
- [ ] **Step 4: Run test to verify it passes**
Run: `pytest tests/path/test.py::test_name -v`
Expected: PASS
- [ ] **Step 5: Commit**
```bash
git add tests/path/test.py src/path/file.py
git commit -m "feat: add specific feature"
```
在把任务拆成步骤之前,先判断它是否需要收益/风险/耦合分析。以下类型必须进行分析:
以下类型不需要进行分析:
如果任务属于必须分析的类型,在 Task Structure 的 Interfaces 之后、Steps 之前追加 Complex-Task Analysis 块,并填写以下四个字段:
每一步都必须包含工程师实际需要的具体内容。以下内容是计划失败项——绝对不要写:
完成整个计划后,用全新的眼光对照规格说明检查计划。这是你自己运行的检查清单——不是派发给子代理的。
1. Spec coverage(规格覆盖): 浏览规格说明的每个章节/需求。你能否指出实现它的任务?列出任何缺口。
2. Placeholder scan(占位符扫描): 在计划中搜索危险信号——即上面"No Placeholders"部分列出的任何模式。修复它们。
3. Type consistency(类型一致性): 你在后续任务中使用的类型、方法签名和属性名是否与前面任务定义的一致?Task 3 中叫 clearLayers(),Task 7 中却叫 clearFullLayers(),这就是 bug。
如果发现问题,直接就地修复。无需重新审阅——直接修复并继续。如果发现某个规格需求没有对应任务,就补上该任务。
保存计划后,提供执行选项:
"Plan complete and saved to docs/kimicodeboost/plans/<filename>.md. Two execution options:
1. Subagent-Driven (recommended) - I dispatch a fresh subagent per task, review between tasks, fast iteration
2. Inline Execution - Execute tasks in this session using executing-plans, batch execution with checkpoints
Which approach?"
If Subagent-Driven chosen:
If Inline Execution chosen: