一键导入
feature-planning
Use when a request needs system-level planning before implementation, especially for cross-module, high-risk, or ambiguous work.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when a request needs system-level planning before implementation, especially for cross-module, high-risk, or ambiguous work.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use for general product implementation work that is not primarily backend architecture, pure integration wiring, or screenshot-driven design-to-code.
Use when backend work requires contract-first thinking, schema changes, permission checks, side-effect analysis, or test planning.
Use immediately after codebase discovery to classify task scale and determine which workflow steps are required vs. optional.
Use when the user provides screenshots, mockups, or design assets and wants implementation that stays visually close to the source.
Use when the main deliverable is maintainable documentation such as repository rules, onboarding guides, runbooks, ADRs, or architecture notes.
Use when encountering compile errors, test failures, runtime exceptions, or unexpected behavior during implementation.
| name | feature-planning |
| description | Use when a request needs system-level planning before implementation, especially for cross-module, high-risk, or ambiguous work. |
Use this skill to turn a request into a concrete implementation plan before code changes start.
Before producing the plan:
DECISIONS.md — check for prior decisions that affect this workAlways produce:
Every item must be addressed. If an item does not apply, write "N/A — [reason]" instead of omitting it.
This checklist should remain consistent with the planning guidance in .claude/agents/feature-planner.md and docs/agent-templates.md, while allowing this skill to keep its own structure. If guidance differs, follow the documented precedence order: docs/operating-rules.md for mandatory rules first, then docs/agent-playbook.md for playbook guidance.
When identifying impacted modules (checklist item 3), follow this process:
Output format:
### Impacted modules
| Module / path | Role in change | Depends on | Depended on by |
|------------------------|-------------------------|------------------|--------------------|
| src/api/orders.ts | New endpoint | src/services/... | (external clients) |
| src/services/order.ts | New business logic | src/repos/... | src/api/orders.ts |
| ... | ... | ... | ... |
When producing the test plan (checklist item 10), go beyond "write tests". Define:
Output format:
### Test plan
| Scenario | Type | Input / precondition | Expected outcome |
|------------------------|-------------|-------------------------------|---------------------------|
| Create order (happy) | Unit | Valid payload, auth'd user | 201, order in DB |
| Create order (no auth) | Unit | Valid payload, no token | 401 Unauthorized |
| Create order (dup) | Integration | Same idempotency key twice | 409 or same response |
| ... | ... | ... | ... |
Include a dedicated Risks section before the separate Open questions section, and evaluate each risk with:
Common risk categories to check:
Output format:
### Risks
| Risk | Likelihood | Impact | Mitigation | Owner |
|--------------------------------|------------|--------|-----------------------------------|----------|
| Migration drops column in use | Low | High | Add column first, backfill, then remove | Backend |
| New endpoint lacks rate limit | Medium | Medium | Add rate limit before launch | Reviewer |
| ... | ... | ... | ... | ... |
When specifying the implementation order (checklist item 9):
Numbering the steps ensures implementation agents know "do not start step N until step N-1 passes validation."
For plans that involve any of the following, request a risk-reviewer assessment before presenting the plan to the user for approval:
This is in addition to the regular risk-reviewer pass that happens after implementation.
After producing the plan:
STOP. Present the plan to the user and wait for explicit approval. Do not pass the plan to implementation agents until the user confirms.
If the user requests changes, revise and present again.
Before presenting the plan to the user, verify:
DECISIONS.md was read and no contradictions exist