一键导入
planning
Use when planning multi-step tasks, writing implementation plans, or starting new feature work before touching code
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when planning multi-step tasks, writing implementation plans, or starting new feature work before touching code
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Execute safe Git workflows — branching, committing, resolving conflicts, and managing PRs
Use when controlling AI spend, token budgets, model routing, or workflow efficiency before scaling usage
Use when handling incidents, outages, severe regressions, or operational emergencies before attempting broad fixes
Use when investigating latency, throughput, resource saturation, or performance regressions before changing implementation details
Use when reviewing code, preparing a PR for review, or processing review feedback
Use when diagnosing bugs, test failures, or unexpected behavior before attempting any fix
| name | planning |
| description | Use when planning multi-step tasks, writing implementation plans, or starting new feature work before touching code |
Announce at start: "Following the planning skill — mapping before editing."
No edits before understanding. MAP first, then plan, then implement.
Before any change, build a mental model:
Output a repo map:
## Repo Map: [project-name]
### Build & Test
- Build: `[command]` | Test: `[command]`
- CI: [platform] on [trigger]
### Structure
- `src/[dir]/` - [purpose]
- `tests/[dir]/` - [purpose]
### Invariants
- [architectural constraint]
Write a change plan before implementing:
Each step should be one action (2-5 minutes):
| Step | Example |
|---|---|
| Write the failing test | One step |
| Run it to verify it fails | One step |
| Implement minimal code to pass | One step |
| Run tests to verify they pass | One step |
| Commit | One step |
Not: "Implement the feature and write tests" (too large, not reversible).
# [Feature Name] Implementation Plan
**Goal:** [One sentence]
**Architecture:** [2-3 sentences about approach]
---
### Task N: [Component Name]
**Files:**
- Create: `exact/path/to/file`
- Modify: `exact/path/to/existing`
- Test: `tests/exact/path/to/test`
**Step 1:** Write the failing test
**Step 2:** Run test to verify it fails
**Step 3:** Write minimal implementation
**Step 4:** Run test to verify it passes
**Step 5:** Commit
| Signal | Action |
|---|---|
| Editing before understanding | Go back to MAP |
| "This is too simple to need a plan" | It's not — follow the process |
| Task is larger than 5 minutes | Break it down further |
| Blocked on unclear requirements | Ask before guessing |
| When | Invoke |
|---|---|
| Ready to start implementation | refactoring (for restructuring) or begin coding |
| Need to write tests first | testing |
| Plan involves security-sensitive changes | secure-coding |
| Ready to submit changes | pr-writing |
For principles, rationale, anti-patterns, and examples:
guides/planning-documentation/planning-documentation.mdguides/agentic-workflow/agentic-workflow.md