plan
GitHub将需求与系统设计转化为可执行的实施计划和工作订单,指导开发团队按序完成交付。
Trigger Scenarios
Install
npx skills add kdlbs/kandev --skill plan -g -y
SKILL.md
Frontmatter
{
"name": "plan",
"description": "Create a committed implementation plan and work orders from approved requirements and current system designs. Use after specification work and before implementation."
}
Create an Implementation Plan
Translate requirements and system designs into a delivery plan under
docs/plans/<initiative>/. The plan and its work-order files are implementation
records. They are not product specifications.
Read docs/specs/guide/plans-and-work-orders.md and
docs/specs/guide/traceability-and-lifecycle.md before you write the plan.
Inputs
Read these sources in full:
- The applicable requirement documents and
REQ-*orAC-*IDs. - The applicable system-design documents.
- Related ADRs.
- The relevant source, tests, and one similar implementation.
Use the legacy feature specification during migration only when no replacement requirement or design exists.
Outputs
Create:
docs/plans/<initiative>/plan.md
docs/plans/<initiative>/task-<NN>-<short-slug>.md
plan.md is the work-package manifest. Each task-*.md file is one work order.
Workflow
1. Map the change
Identify:
- The required outcomes and acceptance criteria.
- The design boundaries that implementation must preserve.
- Existing models, repositories, services, handlers, clients, stores, and UI.
- Existing tests and end-to-end patterns.
- The dependency order for implementation.
Check docs/decisions/INDEX.md for relevant decisions. Stop when the
requirements, system design, ADRs, and code disagree on a material boundary.
2. Write plan.md
Use this structure:
---
created: YYYY-MM-DD
status: draft
requirements:
- REQ-<SYSTEM>-<CAPABILITY>-001
system_design:
- ../../specs/<system>/system-design/<capability>.md
legacy_specs: []
---
# Implementation Plan: <Initiative>
## Overview
State the result, the implementation order, and the reason for that order.
## Scope
### In scope
- List the owned outcomes.
### Out of scope
- List explicit exclusions.
## Technical approach
Name exact files, symbols, schema changes, contracts, and integration points.
Organize this section by implementation boundary or vertical slice.
## Tests
Map every relevant acceptance criterion to its unit or integration evidence.
Name the exact test file and method.
## E2E tests
Include this section when the change has user-visible behavior. Map each flow
to the applicable `AC-*` IDs and name the Playwright file and project.
## Work orders
- [ ] [Task 01: <Title>](task-01-<slug>.md)
## Verification results
Pending.
## Risks
- Name concrete delivery or compatibility risks.
## Open questions
Delete this section when it is empty.
Do not place complete work-order bodies in plan.md.
3. Write work orders
Use this structure:
---
id: "01-<slug>"
title: "<Title>"
status: pending
wave: 1
depends_on: []
plan: "plan.md"
requirements:
- REQ-<SYSTEM>-<CAPABILITY>-001
acceptance_criteria:
- AC-<SYSTEM>-<CAPABILITY>-001.1
system_design:
- ../../specs/<system>/system-design/<capability>.md
---
# Task 01: <Title>
## Summary
State the implementation outcome in two or three sentences.
## In scope
- List the responsibilities that this work order owns.
## Out of scope
- List adjacent work that this work order does not own.
## Acceptance
- Give one to three concrete implementation conditions.
## Verification
```bash
<exact targeted command>
```
## Files likely touched
- `path/to/file`
## Dependencies
Name prior work orders or write `None`.
## Risks
- Name concrete implementation or compatibility risks, or write `None`.
## Parallelism
`sequential`
## Inputs
- Requirement and system-design sections.
- Existing code and test patterns.
## Results
Pending.
Each work order must fit one focused implementation pass. Split work that has unrelated outcomes, independent verification, or a title that contains “and.”
Use parallel-safe only when files are disjoint and the tasks share no schema,
migration, generated contract, lockfile, or package configuration. A wave does
not authorize subagents.
4. Define verification
Every work order needs exact commands. Use repository make targets when they
exist. Frontend work in a fresh worktree includes the workspace dependency
installation before the first package command.
User-facing behavior needs end-to-end evidence somewhere in the work package. A low-level work order does not need an artificial browser test.
Do not add generic QA, review, simplify, security, or full-verification tasks. Task checks provide pre-PR evidence. Configured PR reviewers provide semantic review after the PR opens.
5. End the design turn
Report the requirement IDs, system designs, plan, work orders, dependency order, exact checks, and open risks. Then end the turn.
Do not ask for plan approval or a model switch. The user reviews the artifacts and sends a later explicit implementation request.
Version History
-
0e4ae86
Current 2026-08-27 18:28
新增对系统设计方案、ADRs及相关代码的读取要求;优化了计划文档结构,增加测试映射和风险评估部分。
-
1578843
2026-08-16 08:47
更新描述为主会话工件技能;细化前端状态和测试章节要求;强调依赖映射与垂直切片优先策略。
- b4239d8 2026-07-24 17:32


