一键导入
planning
Plan implementation strategy for non-trivial tasks. Use before implementing features, refactors, or multi-file changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Plan implementation strategy for non-trivial tasks. Use before implementing features, refactors, or multi-file changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | planning |
| description | Plan implementation strategy for non-trivial tasks. Use before implementing features, refactors, or multi-file changes. |
First: invoke EnterPlanMode to activate the built-in plan mode.
This restricts you to read-only tools until the plan is approved,
preventing premature changes.
Then follow these steps within plan mode.
Skip or abbreviate planning for trivial changes such as fixing typos, changing constants, adding log lines, or single-file edits where the change is obvious. Use judgement — if the change is straightforward and low-risk, proceed directly without plan mode.
Understand the user's real intention and requirements before starting the actual planning. If the user's prompt is too vague to grasp the reason for the changes, ask clarifying questions before proceeding.
Understand the parts of the codebase that will be affected by the change before planning. Focus on the modules, types, and interaction patterns that the change touches — not the entire project. Invest effort proportional to the complexity of the task:
The user may not have full visibility into the current codebase. If the requirements conflict with existing solutions, raise this before planning:
If the user still wants to proceed with their original vision, respect that — user is in control.
Present both the high-level summary and the detailed plan to the user. If the user requests changes, go back to step 4 and iterate until approved.
After user approval and before starting implementation, save the
plan to: docs/plans/<YYYY-MM-DD>-<title>.md
IMPORTANT: The built-in plan mode uses a temporary file under
.claude/plans/. After ExitPlanMode is approved, you MUST copy
the plan content to docs/plans/<YYYY-MM-DD>-<title>.md as your
FIRST action before writing any code. Do not skip this step.
The key issue is making it clear this is a post-approval action that
happens after exiting plan mode (when write permissions are restored),
not during plan mode where only the .claude/plans/ file is writable.