Feature Planning AutoPilot
This Skill standardizes the "analyze first → plan next → implement last" approach. It applies to frontend, backend, full-stack, API integration, SQL migrations, and mobile page refactoring tasks.
1) When to Use
Activate this Skill when the user expresses any of the following intentions:
- - "Analyze before writing code"
- "Give me a plan first" / "Break it into steps" / "Execute in phases"
- "Ensure correctness and feasibility"
- "Create a reusable implementation blueprint"
2) Expected Outputs
Every planning session must produce the following four deliverables:
- 1. Scope Definition: Clearly state what is and is not included in this task.
- Execution Plan: 3–9 verifiable steps in clear sequence.
- Risks & Rollback: Key risk points and a minimal rollback strategy.
- Acceptance Checklist: Actionable verification items (APIs, pages, logs, builds, tests).
3) Standard Workflow (Must Follow in Order)
Phase A – Quick Clarification
- - Restate the goal in 1–2 sentences
- Confirm constraints: tech stack, directory, whether API/DB changes are allowed, timeline
- If information is missing: ask at most 1–3 key questions; default when possible
Phase B – Context Scan
Complete at minimum the following checks before producing a plan:
- - Location of relevant pages / APIs / services
- Data sources and state transitions (e.g.,
Pending Delivery → Pending Inbound → Completed) - Existing similar implementations (prefer reuse)
- List of files likely to be affected
Phase C – Plan Drafting
Plan requirements:
- - 3–9 steps, each with a concise 3–7 word action title
- Every step must be verifiable (has a "definition of done")
- Only 1 step may be
in-progress at a time - State prerequisites for external dependencies or database changes
Phase D – Implementation & Validation
- - Execute the plan step by step; update status after each step
- Perform at least one local validation per phase
- Before finishing, run a minimum viable acceptance check (build / key path click-through / API response)
Phase E – Lessons Captured (Auto-Iterate)
At the end of the conversation, append three categories of experience to evolution.json:
- -
preferences: User's preferred output style or delivery format - INLINECODE4 : Issues encountered this session and how they were resolved
- INLINECODE5 : Strong prompts that can be reused directly next time
Also sync the learnings back into the "Experience Enhancements" section of SKILL.md.
4) Plan Template (Ready to Reuse)
CODEBLOCK0
5) High-Quality Plan Rules (Hard Constraints)
- - No "hollow steps" (e.g., "implement feature")
- Never omit "data source" or "state transitions"
- No unrelated large-scale changes (only minimal changes relevant to the task)
- Never skip validation (at least one local check + one result check)
- Never overstate conclusions (explicitly say so when something cannot be verified)
6) Common Task Mappings
A. Mobile Page Optimization
Must include:
- - Visual layer (spacing, overflow, readability, tap target size)
- Interaction layer (default state, disabled state, loading state, empty state)
- Data layer (API fields consistent with rendered output)
B. List / Stats Consistency
Must include:
- - Confirm same source API
- Confirm same filtering criteria
- Verify homepage numbers match detail list
C. State-Driven Workflows (e.g., Inbound)
Must include:
- - Define initial state
- Define conditions that trigger state transitions
- Intercept and prompt for invalid states
7) Auto-Iteration Protocol
Trigger an experience update for this Skill when any of the following conditions are met:
- - User explicitly responds with "this is great" or "this isn't working"
- A build error occurs and is resolved
- A deviation between the plan and the actual implementation is corrected
Update Structure
INLINECODE7 follows this structure:
CODEBLOCK1
Principles for Writing Learnings
- - Preferences → write abstract rules (reusable across projects)
- Fixes → write "trigger condition + resolution approach"
- Prompts → write instructions that can be pasted directly
8) Recommended Trigger Commands
- -
/plan-auto — Generate a standard execution plan - INLINECODE9 — Output a full plan including risks and rollback
- INLINECODE10 — Focus on mobile page and interaction refactoring
- INLINECODE11 — Automatically capture learnings at the end of the session
9) Experience Enhancements (Synced from evolution.json)
This section is auto-updated by the iteration process to prevent experience loss.
User-Learned Best Practices & Constraints
- - Plan conclusions must align with the current implementation scope; avoid overreaching beyond applicable scenarios.
- Before presenting an implementation plan, cross-check existing code and database state to ensure the plan is logically sound and actionable.
- Before outputting a plan, clearly define the applicable scope and state transition conditions, and state all necessary prerequisites.
功能规划自动导航
该技能标准化了先分析→再规划→后实施的方法。适用于前端、后端、全栈、API集成、SQL迁移和移动页面重构任务。
1) 何时使用
当用户表达以下任一意图时,激活此技能:
- - 写代码前先分析
- 先给我一个计划/分解成步骤/分阶段执行
- 确保正确性和可行性
- 创建可复用的实施蓝图
2) 预期输出
每次规划会话必须生成以下四个交付物:
- 1. 范围定义:明确说明此任务包含和不包含的内容。
- 执行计划:3-9个按清晰顺序排列的可验证步骤。
- 风险与回滚:关键风险点和最小回滚策略。
- 验收清单:可操作的验证项(API、页面、日志、构建、测试)。
3) 标准工作流程(必须按顺序执行)
阶段A – 快速澄清
- - 用1-2句话重述目标
- 确认约束条件:技术栈、目录、是否允许API/数据库变更、时间线
- 如果信息缺失:最多提出1-3个关键问题;尽可能使用默认值
阶段B – 上下文扫描
在制定计划前至少完成以下检查:
- - 相关页面/API/服务的位置
- 数据源和状态转换(例如:待配送→待入库→已完成)
- 现有的类似实现(优先复用)
- 可能受影响的文件列表
阶段C – 计划起草
计划要求:
- - 3-9个步骤,每个步骤有简洁的3-7字操作标题
- 每个步骤必须可验证(有完成定义)
- 一次只能有1个步骤处于进行中状态
- 说明外部依赖或数据库变更的前提条件
阶段D – 实施与验证
- - 逐步执行计划;每完成一步更新状态
- 每个阶段至少进行一次本地验证
- 完成前,运行最小可行验收检查(构建/关键路径点击/API响应)
阶段E – 经验捕获(自动迭代)
在对话结束时,将三类经验追加到evolution.json中:
- - preferences:用户偏好的输出风格或交付格式
- fixes:本次会话遇到的问题及解决方法
- custom_prompts:下次可直接复用的强提示
同时将学习内容同步回SKILL.md的经验增强部分。
4) 计划模板(可直接复用)
markdown
功能开发计划(自动导航)
0. 目标与范围
- - 目标:
- 包含在此任务中:
- 不包含在此任务中:
- 前提条件:
1. 执行步骤
- 1. [ ] 审查当前状态和依赖
- 完成定义:找到相关文件和数据流
- 2. [ ] 设计最小变更方案
- 完成定义:确认修改点和影响范围
- 3. [ ] 实施核心变更
- 完成定义:核心路径代码完成
- 4. [ ] 处理边界情况和错误
- 完成定义:空状态/失败状态/权限状态均正常
- 5. [ ] 验证和回归测试
- 完成定义:关键路径通过,结果可复现
2. 风险与回滚
3. 验收标准
- - [ ] 功能行为符合需求
- [ ] 未引入新的构建错误
- [ ] 关键UI/API路径已验证
5) 高质量计划规则(硬性约束)
- - 无空洞步骤(例如:实现功能)
- 绝不省略数据源或状态转换
- 无无关的大规模变更(仅做与任务相关的最小变更)
- 绝不跳过验证(至少一次本地检查+一次结果检查)
- 绝不夸大结论(当某些内容无法验证时明确说明)
6) 常见任务映射
A. 移动页面优化
必须包含:
- - 视觉层(间距、溢出、可读性、点击目标大小)
- 交互层(默认状态、禁用状态、加载状态、空状态)
- 数据层(API字段与渲染输出一致)
B. 列表/统计一致性
必须包含:
- - 确认使用同一源API
- 确认使用相同筛选条件
- 验证首页数字与详情列表一致
C. 状态驱动工作流(例如:入库)
必须包含:
- - 定义初始状态
- 定义触发状态转换的条件
- 拦截无效状态并提示
7) 自动迭代协议
当满足以下任一条件时,触发此技能的经验更新:
- - 用户明确回应这很好或这不行
- 出现构建错误并已解决
- 计划与实际实施之间的偏差已纠正
更新结构
evolution.json遵循以下结构:
json
{
lastupdated: ISODATETIME,
preferences: [],
fixes: [],
custom_prompts:
}
编写学习内容的原则
- - 偏好→编写抽象规则(可跨项目复用)
- 修复→编写触发条件+解决方法
- 提示→编写可直接粘贴的指令
8) 推荐触发命令
- - /plan-auto — 生成标准执行计划
- /plan-auto deep — 输出包含风险和回滚的完整计划
- /plan-auto mobile — 专注于移动页面和交互重构
- /plan-auto evolve — 在会话结束时自动捕获学习内容
9) 经验增强(从evolution.json同步)
此部分由迭代过程自动更新,防止经验丢失。
用户习得的最佳实践与约束
- - 计划结论必须与当前实施范围一致;避免超出适用场景。
- 在呈现实施计划前,交叉检查现有代码和数据库状态,确保计划逻辑合理且可执行。
- 在输出计划前,明确定义适用范围和状态转换条件,并说明所有必要的前提条件。