Blueprint

affaan-m/ECC/pi/core/skills/blueprint

作者 affaan-mef648e01899ba3e8dc6371642deaaf64b4477775無授權條款275K 個星標收錄於 2026年10月9日更新於 2026年10月9日儲存庫4 天前更新

Turn a one-line objective into a step-by-step construction plan for multi-session, multi-agent engineering projects: one-PR-sized steps with self-contained context briefs, dependency graph with parallel-step detection, adversarial review gate, and plan mutation protocol. Use when planning a large feature, refactor, or roadmap that spans multiple PRs or sessions; not for single-PR tasks or when the user says "just do it".

AI 產生的概覽

把一行目標轉換成適用於多工作階段、多代理工程專案的分步建構計畫。

功能
Blueprint 執行研究、設計、起草、審查、登錄五個階段的流程,把簡短目標轉換成寫入 plans/ 目錄的 Markdown 計畫檔案。每個步驟以單一 PR 的規模切分,包含自足的脈絡簡報、任務清單、驗證指令與結束條件,並提供相依關係、平行步驟偵測、模型層級指派與回復策略。計畫定稿前會經過對抗式審查關卡,依檢查清單與反模式目錄進行核對;變更協定則允許將步驟拆分、插入、略過、重排或放棄,並保留稽核紀錄。
適用情境
適用於大型功能、重構、移轉或路線圖橫跨多個 PR 或多個工作階段、需要明確相依順序的情況。也用於協調多個子代理之間的平行工作流程,或任何工作階段之間脈絡遺失會導致重工的工作。不適用於單一 PR 即可完成的工作、少於三次工具呼叫的工作,或使用者表示「直接做」的情況。
執行需求
需要 Claude Code 才能使用 /blueprint 斜線指令。Git 與 GitHub CLI 為選用項目:具備時會產生完整的分支/PR/CI 工作流程計畫,缺少時會自動切換為就地直接編輯模式。此技能為純 Markdown,不附帶指令碼或可執行程式碼。

Blueprint — Construction Plan Generator

Turn a one-line objective into a step-by-step construction plan that any coding agent can execute cold.

When to Use

  • Breaking a large feature into multiple PRs with clear dependency order
  • Planning a refactor or migration that spans multiple sessions
  • Coordinating parallel workstreams across sub-agents
  • Any task where context loss between sessions would cause rework

Do not use for tasks completable in a single PR, fewer than 3 tool calls, or when the user says "just do it."

How It Works

Blueprint runs a 5-phase pipeline:

  1. Research — Pre-flight checks (git, gh auth, remote, default branch), then reads project structure, existing plans, and memory files to gather context.
  2. Design — Breaks the objective into one-PR-sized steps (3–12 typical). Assigns dependency edges, parallel/serial ordering, model tier (strongest vs default), and rollback strategy per step.
  3. Draft — Writes a self-contained Markdown plan file to plans/. Every step includes a context brief, task list, verification commands, and exit criteria — so a fresh agent can execute any step without reading prior steps.
  4. Review — Delegates adversarial review to a strongest-model sub-agent (e.g., Opus) against a checklist and anti-pattern catalog. Fixes all critical findings before finalizing.
  5. Register — Saves the plan, updates memory index, and presents the step count and parallelism summary to the user.

Blueprint detects git/gh availability automatically. With git + GitHub CLI, it generates full branch/PR/CI workflow plans. Without them, it switches to direct mode (edit-in-place, no branches).

Examples

Basic usage

/blueprint myapp "migrate database to PostgreSQL"

Produces plans/myapp-migrate-database-to-postgresql.md with steps like:

  • Step 1: Add PostgreSQL driver and connection config
  • Step 2: Create migration scripts for each table
  • Step 3: Update repository layer to use new driver
  • Step 4: Add integration tests against PostgreSQL
  • Step 5: Remove old database code and config

Multi-agent project

/blueprint chatbot "extract LLM providers into a plugin system"

Produces a plan with parallel steps where possible (e.g., "implement Anthropic plugin" and "implement OpenAI plugin" run in parallel after the plugin interface step is done), model tier assignments (strongest for the interface design step, default for implementation), and invariants verified after every step (e.g., "all existing tests pass", "no provider imports in core").

Key Features

  • Cold-start execution — Every step includes a self-contained context brief. No prior context needed.
  • Adversarial review gate — Every plan is reviewed by a strongest-model sub-agent against a checklist covering completeness, dependency correctness, and anti-pattern detection.
  • Branch/PR/CI workflow — Built into every step. Degrades gracefully to direct mode when git/gh is absent.
  • Parallel step detection — Dependency graph identifies steps with no shared files or output dependencies.
  • Plan mutation protocol — Steps can be split, inserted, skipped, reordered, or abandoned with formal protocols and audit trail.
  • Zero runtime risk — Pure Markdown skill. The entire repository contains only .md files — no hooks, no shell scripts, no executable code, no package.json, no build step. Nothing runs on install or invocation beyond Claude Code's native Markdown skill loader.

Installation

This skill ships with ECC. No separate installation is needed when ECC is installed.

Full ECC install

If you are working from the ECC repository checkout, verify the skill is present with:

bash
test -f skills/blueprint/SKILL.md

To update later, review the ECC diff before updating:

bash
cd /path/to/ECCgit fetch origin maingit log --oneline HEAD..origin/main       # review new commits before updatinggit checkout <reviewed-full-sha>          # pin to a specific reviewed commit

Vendored standalone install

If you are vendoring only this skill outside the full ECC install, copy the reviewed file from the ECC repository into ~/.claude/skills/blueprint/SKILL.md. Vendored copies do not have a git remote, so update them by re-copying the file from a reviewed ECC commit rather than running git pull.

Requirements

  • Claude Code (for /blueprint slash command)
  • Git + GitHub CLI (optional — enables full branch/PR/CI workflow; Blueprint detects absence and auto-switches to direct mode)

Source

Inspired by antbotlab/blueprint — upstream project and reference design.

來源與署名

來源:affaan-m/ECC位於pi/core/skills/blueprint提交ef648e0

授權條款: 無授權條款

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

檢舉或申請下架