AGENT SKILL

实现计划制定

create_plan

通过交互式研究创建详细的实现计划。当用户要求在实施前规划某个功能、epic(大型用户故事)或重构,或使用 /create_plan 并提供工单/规格说明时使用。

License 许可
Apache-2.0
最近更新
2026-11-14
Stars
★ 0
Forks
0

01 前言 Front Matter

name
create_plan
model
opus
description
Create detailed implementation plans through interactive research. Use when the user asks to plan a feature/epic/refactor before implementing, or invokes /create_plan with a ticket/spec.
argument-hint
[optional: ticket #1234 or spec path]
disable-model-invocation
true

02 资源文件 3

03 SKILL.md 正文

Create Plan

You are tasked with creating detailed implementation plans through an interactive, iterative process. You should be skeptical, thorough, and work collaboratively with the user to produce high-quality technical specifications.

Initial Response

When this command is invoked:

  1. Check if parameters were provided:

    • If a file path or ticket reference was provided as a parameter, skip the default message
    • Immediately read any provided files FULLY
    • Begin the research process
  2. If no parameters provided, respond with:

I'll help you create a detailed implementation plan. Let me start by understanding what we're building.

Please provide:
1. The task/ticket description (or reference to a ticket file)
2. Any relevant context, constraints, or specific requirements
3. Links to related research or previous implementations

Tip: You can also invoke this command with a GitHub issue or spec directly: `/create_plan #1234` or `/create_plan v2/docs/specs/backend/imports.spec.md`
For deeper analysis, try: `/create_plan think deeply about #1234`

Then wait for the user's input.

Process Steps

Step 0: Discuss Phase

Before any research or planning, identify gray areas that need user decisions.

  1. Scan for ambiguity — Read the task/ticket and identify:

    • Decisions that affect architecture (which approach? which library?)
    • UX choices (behavior on edge cases, error states)
    • Scope boundaries (what's in, what's deliberately out)
  2. Present gray areas — Show max 5 items:

Before I research, I need your input on these decisions:

1. [Decision A] — Option X vs Option Y
2. [Decision B] — Include or exclude?
3. [Decision C] — Approach 1 vs Approach 2

Which would you like to discuss? (or "skip" to let me decide)
  1. Capture decisions — Record each decision in the plan under a ## Decisions section. Mark user choices explicitly and "Claude's discretion" for delegated items.

  2. Scope guardrail — If the user suggests additions beyond the original scope, flag it:

"[Feature X] would be a new capability — that's its own phase/ticket.
Let's keep this focused on [original scope]."

Step 1: Context Gathering & Initial Analysis

  1. Read all mentioned files immediately and FULLY:

    • Primary context source: living specs in v2/docs/specs/ (SDD model, ADR-017) — start at v2/docs/specs/INDEX_SDD.md, then read the relevant spec (specs/domain/, specs/backend/, specs/frontend/, specs/infra/)
    • Ticket files, research documents, related plans
    • CONTEXT.md files in relevant directories (services/, dev_tools/), if present
    • IMPORTANT: Use the Read tool WITHOUT limit/offset parameters
    • CRITICAL: DO NOT spawn sub-tasks before reading these files yourself
  2. Spawn initial research tasks to gather context: Before asking the user any questions, use specialized agents to research in parallel:

    • Use Explore agents to find related code, patterns, and potential conflicts
    • Use Context7 MCP to fetch current docs for libraries involved
    • Check existing tests that cover the area being modified
  3. Present findings to the user before proceeding to planning

Step 2: Write the Plan

Write the plan to thoughts/shared/plans/PLAN-{name}.md. Use the structure and context-rot rules in reference/plan-template.md.

Step 3: Review & Iteration

Present the plan to the user. Iterate until approved. On approval, the plan is ready for /implement_plan.

AS-Specific Rules

  • Always check aprender-domain skill for RF/RD/PA/CP compliance
  • Always check django-patterns skill for Django/DRF conventions
  • Plans touching availability must reference RD-01~08
  • Plans touching approval must reference PA-01~07
  • Plans must specify which tests to run for verification
  • Plans for epics should use wave-based execution (Wave 1, 2, 3...)

04 同仓库更多 Skills

matheusnorjosa
matheusnorjosa/aprender_sistema

技术文档写作规范

writing-standards

遵循 AS v2 技术写作规范(清晰、简洁、主动语态、Python/Django 惯例)。适用于撰写 README、文档字符串(PEP 257)、提交信息、PR 描述、错误信息或任何技术文档。

技术文档工程师技术文档编写
★ 0
matheusnorjosa
matheusnorjosa/aprender_sistema

成果验证关卡

verification-gate

在宣称成功之前先进行验证。适用于准备表示某功能可用/已完成、实现功能后、修复缺陷后,或推送代码前——先运行验证命令并确认输出。

测试工程师成果验证与价值评估
★ 0
matheusnorjosa
matheusnorjosa/aprender_sistema

测试驱动开发

test-driven-development

在 AS v2(pytest + Django/DRF)中先编写失败的测试,再进行实现。适用于实现功能或修复缺陷时,在编写任何生产代码之前使用。

测试工程师测试与质量保障
★ 0
matheusnorjosa
matheusnorjosa/aprender_sistema

子智能体编排开发

subagent-development

在 AS v2 中编排子智能体——将任务拆解为相互独立的领域,并行处理并进行两阶段审查。适用于委派探索、实现或跨文件验证,以加快工作进度并节省主上下文。

AI 工程师编码任务委派
★ 0
matheusnorjosa
matheusnorjosa/aprender_sistema

自动化安全扫描

security-scan

为 AS v2 提供自动化安全扫描。在提交前或审查变更中的漏洞时使用。执行依赖审计(pip-audit、npm audit)、密钥检测(grep 模式)和代码模式扫描(SQL 注入、XSS、eval、pickle、硬编码密钥)。与项目 hooks 系统集成。

安全工程师安全检测工程
★ 0
matheusnorjosa
matheusnorjosa/aprender_sistema

交接文档恢复工作

resume-handoff

从保存的交接文档恢复工作,在继续之前先根据当前代码库验证其状态。适用于上下文清空后或在新会话中(通过路径、会话名称或 GitHub issue)从保存的交接文档恢复工作。

软件开发工程师会话上下文交接
★ 0