Create Plan

davila7/claude-code-templates/cli-tool/components/skills/development/create-plan

作者 davila78da17d671b6f無授權條款32K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫今天更新

Create a concise plan. Use when a user explicitly asks for a plan related to a coding task.

AI 產生的概覽

將編碼任務提示轉為最終訊息中的一份精簡可執行計畫,全程唯讀。

功能
此技能引導代理快速掃描程式庫脈絡(例如 README 與文件),並辨識語言、框架、測試指令等限制條件。接著依固定範本在最終回覆中輸出一份計畫:一段簡短意圖說明、範圍內與範圍外清單、6 至 10 項依序排列的動詞開頭行動項目,以及最多三個待解決問題。它全程唯讀,不寫入或更新檔案,僅在受阻時最多提出一兩個追問。
適用情境
當使用者明確要求針對編碼任務擬定計畫時使用。適用於在動手改程式碼之前,需要一份精簡、有序的實作計畫的情境。
執行需求
無需指令碼或特殊工具,僅為指示。代理需要對其掃描的專案檔案與文件具備讀取權限,並以唯讀模式運作。

Create Plan

Goal

Turn a user prompt into a single, actionable plan delivered in the final assistant message.

Minimal workflow

Throughout the entire workflow, operate in read-only mode. Do not write or update files.

  1. Scan context quickly

    • Read README.md and any obvious docs (docs/, CONTRIBUTING.md, ARCHITECTURE.md).
    • Skim relevant files (the ones most likely touched).
    • Identify constraints (language, frameworks, CI/test commands, deployment shape).
  2. Ask follow-ups only if blocking

    • Ask at most 1–2 questions.
    • Only ask if you cannot responsibly plan without the answer; prefer multiple-choice.
    • If unsure but not blocked, make a reasonable assumption and proceed.
  3. Create a plan using the template below

    • Start with 1 short paragraph describing the intent and approach.
    • Clearly call out what is in scope and what is not in scope in short.
    • Then provide a small checklist of action items (default 6–10 items).
      • Each checklist item should be a concrete action and, when helpful, mention files/commands.
      • Make items atomic and ordered: discovery → changes → tests → rollout.
      • Verb-first: "Add…", "Refactor…", "Verify…", "Ship…".
    • Include at least one item for tests/validation and one for edge cases/risk when applicable.
    • If there are unknowns, include a tiny Open questions section (max 3).
  4. Do not preface the plan with meta explanations; output only the plan as per template

Plan template (follow exactly)

markdown
# Plan
<1–3 sentences: what we're doing, why, and the high-level approach.>
## Scope- In:- Out:
## Action items[ ] <Step 1>[ ] <Step 2>[ ] <Step 3>[ ] <Step 4>[ ] <Step 5>[ ] <Step 6>
## Open questions- <Question 1>- <Question 2>- <Question 3>

Checklist item guidance

Good checklist items:

  • Point to likely files/modules: src/..., app/..., services/...
  • Name concrete validation: "Run npm test", "Add unit tests for X"
  • Include safe rollout when relevant: feature flag, migration plan, rollback note

Avoid:

  • Vague steps ("handle backend", "do auth")
  • Too many micro-steps
  • Writing code snippets (keep the plan implementation-agnostic)

來源與署名

來源:davila7/claude-code-templates位於cli-tool/components/skills/development/create-plan提交8da17d6

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架