executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
plan-tasks在执行复杂任务前,按 Rumelt《好战略,坏战略》全书的动态模块生成可审阅、可证伪的战略方案。用户调用 /plan-tasks,要求先给方案、实施计划、任务拆解、防跑偏方案,或任务涉及多个文件或模块、架构变化、重构、竞争路线、关键未知、强依赖、多人或多代理协作、高影响、高风险或高返工成本时使用。
Independent GitHub snapshot · Automated classification · Original documentation governs
name: plan-tasks description: "在执行复杂任务前,按 Rumelt《好战略,坏战略》全书的动态模块生成可审阅、可证伪的战略方案。用户调用 /plan-tasks,要求先给方案、实施计划、任务拆解、防跑偏方案,或任务涉及多个文件或模块、架构变化、重构、竞争路线、关键未知、强依赖、多人或多代理协作、高影响、高风险或高返工成本时使用。" when_to_use: "显式规划请求始终触发;复杂或高代价任务自动触发。对单文件小修、简单 bug、配置微调、纯解释或状态查询不自动触发;用户明确调用时才以 compact 模式规划。" argument-hint: "[任务描述] [--modules M-03,M-07] [--exclude M-04]" disable-model-invocation: false user-invocable: true allowed-tools:
Build a causal strategy before execution, then track only work the user explicitly approves. Treat $ARGUMENTS as the task when present; otherwise use the current request and relevant conversation context.
There are two phases:
DRAFT or READY_FOR_REVIEW, then stop.A-* actions; create or update a TASK/ tracker and execute only inside that scope.During planning, never edit target files, create a tracker, run mutating commands, publish, deploy, commit, send an external message, or take an irreversible action. allowed-tools pre-approves read tools; it is not a security sandbox. Continue to obey Claude Code permissions, project instructions, protected paths, privacy rules, and the user's authorization.
Accept an optional override in the task text:
--modules M-03,M-07 adds requested modules.--exclude M-04 requests removal of conditional modules.Before planning, always read these files completely:
Classify the task with routing.md, record the route, then read every selected module below. Do not load unselected method files merely to appear comprehensive.
| Module | Read when selected |
|---|---|
M-02 | leverage-and-proximate-objectives.md |
M-03 | system-design-and-focus.md |
M-04 | scope-and-advantage.md |
M-05 | dynamics-and-inertia.md |
M-06 | integrated-action-design.md |
M-07 | hypothesis-and-learning.md |
M-08, M-09 | alternatives-and-reality-check.md |
Read references/examples.md only when the task is vague, conflicting, exploratory, or difficult to classify. Keep [GSBS] author claims separate from [AI-EXT] AI-collaboration controls. Never attribute prompts, permissions, validators, schemas, or approval gates to Richard Rumelt.
full for complex, ambiguous, multi-stage, high-impact, cross-module, or costly-to-reverse work;diagnostic-exploration when evidence cannot support one primary diagnosis;compact only for an explicitly requested, simple, low-risk, reversible task.addresses, implements, input, output, dependencies, permissions, and observable acceptance. Put gates before weak links and keep only causally coherent work.rumelt-task-plan/v2 from the contract. Use DRAFT for unresolved hard errors or material decisions; otherwise use READY_FOR_REVIEW. Never set APPROVED for the user.If a plan is saved to an authorized path, run:
python "${CLAUDE_SKILL_DIR}/scripts/validate-plan.py" <plan.md>
Fix every ERROR; expose any WARN as a review question or an accepted risk. Present the plan version, selected modules, pivotal assumption, approval scope, and remaining user decisions. Stop without executing the target task.
Treat approval as valid only when the user has seen the current version and explicitly approves the whole plan or named A-* actions. Silence, the original request, READY_FOR_REVIEW, low apparent risk, or self-judgment is never approval. Approval never expands tools, directories, data access, external sends, destructive operations, or privacy permissions.
After valid approval:
TASK/TASK_<descriptive-name>.md only if no tracker exists.A-* actions into verifiable T-* checkbox items. Update each item immediately after its acceptance condition passes.READY_FOR_REVIEW plan if strategy, selected modules, scope, permissions, acceptance, or external effects change materially.python "${CLAUDE_SKILL_DIR}/scripts/validate-task-tracker.py" <TASK-file.md> [--plan <approved-plan.md>]
M-01 or a high-risk mandatory module.TASK/ before explicit approval of the current plan.