plan
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese[IMPORTANT] Useto break ALL work into small tasks BEFORE starting — including tasks for each file read. This prevents context loss from long files. For simple tasks, AI MUST ask user whether to skip.TaskCreate
Prerequisites: MUST READ before executing.
.claude/skills/shared/understand-code-first-protocol.md- — Domain entity catalog, relationships, cross-service sync (read when task involves business entities/models)
docs/project-reference/domain-entities-reference.md - — Anti-evasion rebuttals (prevents "too simple for a plan" shortcuts)
.claude/skills/shared/rationalization-prevention-protocol.md - — Test specifications by module (read existing TCs to include test strategy in plan)
docs/test-specs/
Iterative Quality Gate: MUST READ. Before routing, assess complexity score. Score ≥3 → plan MUST produce multiple phases with per-phase quality cycles..claude/skills/shared/iterative-phase-quality-protocol.md
[重要提示] 使用在开始前将所有工作拆分为小任务——包括每个文件读取的任务。这可以避免长文件导致的上下文丢失。对于简单任务,AI必须询问用户是否跳过。TaskCreate
前置要求: 执行前必须阅读 。
.claude/skills/shared/understand-code-first-protocol.md- —— 领域实体目录、关系、跨服务同步(当任务涉及业务实体/模型时阅读)
docs/project-reference/domain-entities-reference.md - —— 反规避反驳机制(防止"计划太简单无需制定"的捷径)
.claude/skills/shared/rationalization-prevention-protocol.md - —— 按模块划分的测试规范(阅读现有测试用例以在计划中纳入测试策略)
docs/test-specs/
迭代质量关卡: 必须阅读。 在分流前,评估复杂度得分。得分≥3 → 计划必须拆分为多个阶段,每个阶段包含质量循环。.claude/skills/shared/iterative-phase-quality-protocol.md
Quick Summary
快速概述
Goal: Intelligently create implementation plans by analyzing task complexity and routing to or .
/plan-fast/plan-hardWorkflow:
- Analyze — Understand task, ask clarifying questions via AskUserQuestion
- Route — Decide (simple) or
/plan-fast(complex) based on scope/plan-hard - Create — Execute chosen plan variant, write plan to directory
plans/ - Validate — Offer and
/plan-reviewfor quality assurance/plan-validate
Key Rules:
- PLANNING-ONLY: never implement, never use EnterPlanMode tool
- Parent skill for all plan-* variants (plan-fast, plan-hard, plan-ci, plan-cro, plan-two, plan-parallel)
- Always collaborate with user; ask decision questions, present options
- Always add final and
/plan-validatetasks/plan-review
目标: 通过分析任务复杂度并分流至或,智能创建实施计划。
/plan-fast/plan-hard工作流:
- 分析 —— 理解任务,通过AskUserQuestion工具提出澄清问题
- 分流 —— 根据范围决定使用(简单任务)或
/plan-fast(复杂任务)/plan-hard - 创建 —— 执行选定的计划变体,将计划写入目录
plans/ - 验证 —— 提供和
/plan-review以保障质量/plan-validate
核心规则:
- 仅负责规划:绝不执行开发,绝不使用EnterPlanMode工具
- 是所有plan-*变体的父级技能(plan-fast、plan-hard、plan-ci、plan-cro、plan-two、plan-parallel)
- 始终与用户协作:询问决策类问题,提供选项
- 始终添加最终的和
/plan-validate任务/plan-review
Greenfield Mode
全新项目模式(Greenfield Mode)
Auto-detected: If no existing codebase is found (no code directories like,src/,app/,lib/,server/, etc., no manifest files likepackages//package.json/*.sln, no populatedgo.mod), this skill switches to greenfield mode automatically. Planning artifacts (docs/, plans/, .claude/) don't count — the project must have actual code directories with content.project-config.json
When greenfield is detected:
- ALWAYS route to — greenfield planning requires deep research, never fast plans
/plan-hard - Skip "MUST READ project-structure-reference.md" step (file won't exist or is placeholder)
- Enable web research for tech landscape analysis (WebSearch + WebFetch)
- Delegate architecture decisions to agent
solution-architect - Increase user interview frequency (AskUserQuestion at each major decision)
- If workflow is not already active, suggest it via AskUserQuestion:
/greenfield- "Activate Greenfield Project Init workflow (Recommended)" — full waterfall inception
- "Continue with standalone /plan-hard" — planning only, no full workflow
Be skeptical. Apply critical thinking, sequential thinking. Every claim needs traced proof, confidence percentages (Idea should be more than 80%).
自动检测: 如果未发现现有代码库(无、src/、app/、lib/、server/等代码目录,无packages//package.json/*.sln等清单文件,无已填充的go.mod),此技能将自动切换为全新项目模式。规划产物(docs/、plans/、.claude/)不计入在内——项目必须包含有内容的实际代码目录。project-config.json
检测到全新项目时:
- 必须分流至—— 全新项目规划需要深度调研,绝不使用快速计划
/plan-hard - 跳过"必须阅读project-structure-reference.md"步骤(该文件不存在或为占位符)
- 启用技术格局分析的网络调研功能(WebSearch + WebFetch)
- 将架构决策委托给Agent
solution-architect - 增加用户访谈频率(在每个重大决策点使用AskUserQuestion)
- 如果工作流尚未激活,通过AskUserQuestion工具建议用户:
/greenfield- "激活Greenfield项目初始化工作流(推荐)" —— 完整的瀑布式启动流程
- "继续使用独立的/plan-hard" —— 仅规划,不使用完整工作流
保持质疑,运用批判性思维和顺序思维。每一个结论都需要可追溯的依据,置信度需超过80%。
Variant Decision Guide
变体决策指南
| If the task is... | Use | Why |
|---|---|---|
| Simple, clear scope (<5 files) | | Lightweight plan, faster output |
| Complex, multi-layer, many files | | Deep research, comprehensive plan |
| CI/CD pipeline changes | | CI-specific context and validation |
| Cross-cutting refactor | | Cross-service impact analysis |
| Parallel implementation possible | | Splits plan into parallelizable phases |
| Two competing approaches | | Creates 2 plans for comparison |
| Analyzing existing plan | | Reviews/critiques an existing plan |
| Archiving completed plan | | Moves plan to archive |
| General/unknown | | Routes automatically |
| 如果任务是... | 使用方案 | 原因 |
|---|---|---|
| 简单、范围明确(<5个文件) | | 轻量级计划,输出更快 |
| 复杂、多层级、涉及多文件 | | 深度调研,全面规划 |
| CI/CD流水线变更 | | CI专属上下文与验证 |
| 跨领域重构 | | 跨服务影响分析 |
| 可并行实施 | | 将计划拆分为可并行的阶段 |
| 存在两种竞争方案 | | 创建两个计划用于对比 |
| 分析现有计划 | | 评审/批判现有计划 |
| 归档已完成计划 | | 将计划移至归档 |
| 通用/未知类型 | | 自动分流 |
PLANNING-ONLY — Collaboration Required
仅负责规划 — 需协作
DO NOT use thetool — you are ALREADY in a planning workflow. DO NOT implement or execute any code changes. COLLABORATE with the user: ask decision questions, present options with recommendations. After plan creation, ALWAYS useEnterPlanModetool to offerAskUserQuestionvalidation. ASK user to confirm the plan before any next step./plan-review
禁止 使用工具 —— 您已处于规划工作流中。 禁止 执行任何代码变更或开发工作。 必须 与用户协作:询问决策类问题,提供带建议的选项。 计划创建完成后,必须 使用EnterPlanMode工具提供AskUserQuestion验证选项。 在进行任何下一步前,必须 询问用户确认计划。/plan-review
Your mission
您的任务
<task>
$ARGUMENTS
</task>
<task>
$ARGUMENTS
</task>
Pre-Creation Check (Active vs Suggested Plan Detection)
创建前检查(活跃计划与建议计划检测)
Check the section in the injected context:
## Plan Context- If "Plan:" shows a path → Active plan exists. Ask user: "Active plan found: {path}. Continue with this? [Y/n]"
- If "Suggested:" shows a path → Branch-matched plan hint only. Ask user if they want to activate it or create new.
- If "Plan: none" → Proceed to create new plan using naming pattern from section.
## Naming
检查注入上下文中的部分:
## Plan Context- 如果显示"Plan: 路径" → 存在活跃计划。询问用户:"检测到活跃计划:{path}。是否继续使用该计划?[是/否]"
- 如果显示"Suggested: 路径" → 仅为分支匹配的计划提示。询问用户是否激活该计划或创建新计划。
- 如果显示"Plan: none" → 按照部分的命名规则创建新计划。
## Naming
Workflow
工作流
- Analyze the given task and use tool to ask for more details if needed.
AskUserQuestion - Decide to use or
/plan-fastSlashCommands based on the complexity./plan-hard - Execute SlashCommand: or
/plan-fast <detailed-instructions-prompt>/plan-hard <detailed-instructions-prompt> - Activate skill.
planning - Note: is an enhanced prompt that describes the task in detail based on the provided task description.
detailed-instructions-prompt
- 分析给定任务,若需更多细节,使用工具询问用户。
AskUserQuestion - 根据复杂度决定使用或
/plan-fast斜杠命令。/plan-hard - 执行斜杠命令:或
/plan-fast <详细指令提示词>/plan-hard <详细指令提示词> - 激活技能。
planning - 注意:是经过优化的提示词,基于提供的任务描述详细说明任务内容。
详细指令提示词
IMPORTANT Task Planning Notes (MUST FOLLOW)
重要的任务规划注意事项(必须遵守)
- Always plan and break work into many small todo tasks using
TaskCreate - Always add a final review todo task to verify work quality and identify fixes/enhancements
- MANDATORY FINAL TASKS: After creating all planning todo tasks, ALWAYS add these two final tasks:
- Task: "Run /plan-validate" — Trigger skill to interview the user with critical questions and validate plan assumptions
/plan-validate - Task: "Run /plan-review" — Trigger skill to auto-review plan for validity, correctness, and best practices
/plan-review
- Task: "Run /plan-validate" — Trigger
- 始终使用规划并将工作拆分为多个待办小任务
TaskCreate - 始终添加最终的评审待办任务,以验证工作质量并识别需要修复/优化的内容
- 强制要求的最终任务: 创建所有规划待办任务后,必须添加以下两个最终任务:
- 任务:"运行/plan-validate" —— 触发技能,通过关键问题访谈用户并验证计划假设
/plan-validate - 任务:"运行/plan-review" —— 触发技能,自动评审计划的有效性、正确性与最佳实践
/plan-review
- 任务:"运行/plan-validate" —— 触发
Important Notes
重要说明
IMPORTANT: Analyze the skills catalog and activate the skills that are needed for the task during the process.
IMPORTANT: Sacrifice grammar for the sake of concision when writing reports.
IMPORTANT: Ensure token efficiency while maintaining high quality.
IMPORTANT: In reports, list any unresolved questions at the end, if any.
重要提示: 分析技能目录,在过程中激活任务所需的技能。
重要提示: 撰写报告时,为简洁性可牺牲语法。
重要提示: 在保证高质量的同时,确保令牌使用效率。
重要提示: 在报告末尾列出所有未解决的问题(如有)。
REMINDER — Planning-Only Command
提醒 — 仅规划命令
DO NOT usetool. DO NOT start implementing. ALWAYS useEnterPlanModetool to offerAskUserQuestionvalidation after plan creation. ASK user to confirm the plan before any implementation begins. ASK user decision questions using/plan-reviewtool when multiple approaches exist.AskUserQuestion
禁止 使用工具。 禁止 开始实施。 计划创建完成后,必须 使用EnterPlanMode工具提供AskUserQuestion验证选项。 在开始任何实施前,必须 询问用户确认计划。 当存在多种方案时,必须 使用/plan-review工具询问用户决策类问题。AskUserQuestion
Workflow Recommendation
工作流推荐
IMPORTANT MUST: If you are NOT already in a workflow, useto ask the user:AskUserQuestion
- Activate
workflow (Recommended) — quality-gate → plan → plan-review → plan-validatepre-development- Execute
directly — run this skill standalone/plan
必须遵守: 如果您尚未处于任何工作流中,使用工具询问用户:AskUserQuestion
- 激活
工作流(推荐)—— 质量关卡 → 规划 → 计划评审 → 计划验证pre-development- 直接执行
—— 独立运行本技能/plan