一键导入
plan-mode
Use when a task needs a written execution plan with explicit steps, risks, verification, and user approval before implementation starts.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when a task needs a written execution plan with explicit steps, risks, verification, and user approval before implementation starts.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when a GitHub issue should be handled end-to-end, including issue analysis, code changes, tests, verification, and an optional commit.
Use when working with GitHub repositories, issues, pull requests, branches, or commits and the task needs authenticated repository operations or GitHub metadata.
Use when a pull request needs one coordinated workflow covering review state, fixes, checks, branch updates, and merge readiness.
Use when a pull request already has review feedback that needs triage, code changes, verification, and clear replies back to reviewers.
Use when deciding whether a change is ready to merge and a concise cross-language checklist is more useful than a full narrative review.
Use when a pull request needs a serious pre-merge review covering correctness, edge cases, security, tests, documentation, and architecture.
| name | plan-mode |
| version | 0.1.0 |
| description | Use when a task needs a written execution plan with explicit steps, risks, verification, and user approval before implementation starts. |
| activation | {"keywords":["[PLAN MODE]","plan mode","create a plan"],"patterns":["enter.*plan.*mode","make.*a.*plan","plan.*this","write.*plan"],"tags":["planning","autonomous","task-management"],"max_context_tokens":2500} |
A structured lifecycle for breaking complex work into verifiable steps, writing them to a plan document, and executing them autonomously.
Before writing anything, collect the information needed to plan well:
Create a file at plans/<slug>.md using the format below. The slug should be a short, lowercase, hyphenated description (e.g., add-retry-logic).
After writing the plan file, print a numbered checklist summary so the user can review and approve it.
# Plan: <title>
plan_id: <slug>
status: draft | approved | in_progress | blocked | completed | abandoned
current_focus: <step number or none>
## Goal
One or two sentences describing the desired outcome.
## Success Criteria
- [ ] Criterion 1
- [ ] Criterion 2
## Steps
### Step 1 — <short description>
- **Tools**: <which tools or commands this step uses>
- **Risk**: low | medium | high
- **Estimate**: <time or effort estimate>
- **Details**: What to do and what "done" looks like.
### Step 2 — ...
## Risks
- Risk description → mitigation strategy.
## Progress Log
| Step | Status | Notes |
|------|-------------|-------|
| 1 | pending | |
| 2 | pending | |
The plan stays in draft status until the user explicitly approves it. Do not begin execution on a draft plan.
in_progress.current_focus to the step you are actively working on.pending:
current_focus — only work on one step at a time.done, failed, or skipped, and add notes.completed and current_focus to none.failed with a description of what went wrong.blocked and report to the user. Do not skip ahead to later steps that depend on the failed one.Re-read the plan file and print the Progress Log table. Highlight any steps that are failed or blocked.
List all files in the plans/ directory and print their plan_id and status.
If requirements change mid-execution:
draft.pending.current_focus to none.