blueprint
affaan-m/ECC
根據單一行目標,為多階段工程專案生成包含依賴關係圖、並行步驟偵測及對抗性審查功能的分步建構計畫。
...展開全部Blueprint — 建構計畫生成器
將一行目標語句轉化為逐步的建置計畫,讓任何程式設計人員都能毫不費力地執行。
何時使用
- 將大型功能拆分為多個拉取請求(PR),並明確其依賴順序
- 規劃橫跨多個工作時段的重構或遷移
- 協調子代理間的並行工作流程
- 任何因工作階段之間上下文遺失而可能導致返工的任務
請勿用於可在單一 PR 中完成、工具呼叫次數少於 3 次,或使用者表示「直接做就好」的任務。
運作原理
Blueprint 執行一個 5 階段的處理流程:
- 研究 — 執行預檢(git、gh 授權、遠端儲存庫、預設分支),接著讀取專案結構、現有計畫及記憶體檔案以蒐集背景資訊。
- 設計 — 將目標拆解為單一拉取請求(PR)可處理的步驟(通常為 3 至 12 個)。針對每個步驟指派依賴關係、並行/串行順序、模型層級(最嚴格 vs 預設)以及回滾策略。
- 草擬 — 將一個自包含的 Markdown 計畫檔案寫入
plans/。每個步驟皆包含背景簡報、任務清單、驗證指令及退出準則——因此新上任的代理程式無需閱讀先前步驟,即可執行任何步驟。 - 審查 — 將對立式審查任務委派給「最強模型」子代理(例如 Opus),並參照檢查清單與反模式目錄進行評估。在最終定稿前修正所有關鍵問題。
- 註冊 — 儲存計畫、更新記憶體索引,並向使用者呈現步驟數與平行處理摘要。
Blueprint 自動偵測 git/gh 的可用性。若使用 git + GitHub CLI,則會生成完整的分支/PR/CI 工作流程計畫;若未使用,則切換至直接模式(就地編輯,無分支)。
範例
基本用法
/blueprint myapp "migrate database to PostgreSQL"
產生 plans/myapp-migrate-database-to-postgresql.md 包含以下步驟:
- 步驟 1:新增 PostgreSQL 驅動程式與連線設定
- 步驟 2:為每個資料表建立遷移腳本
- 步驟 3:更新儲存庫層以使用新驅動程式
- 步驟 4:新增針對 PostgreSQL 的整合測試
- 步驟 5:移除舊的資料庫程式碼與設定
多代理專案
/blueprint chatbot "extract LLM providers into a plugin system"
生成一份計畫,在可能的情況下將步驟並行化(例如,在完成外掛程式介面步驟後,「實作 Anthropic 外掛程式」與「實作 OpenAI 外掛程式」將並行執行), 模型層的任務分配(介面設計步驟優先級最高,實作步驟則採用預設值),以及每個步驟完成後需驗證的不變條件(例如:「所有現有測試均通過」、「核心中無提供者導入」)。
主要功能
- 冷啟動執行 — 每個步驟皆包含自包含的背景簡報,無需任何先前的背景資訊。
- 對抗式審查關卡 — 每個計畫皆由最強模型子代理根據檢查清單進行審查,內容涵蓋完整性、依賴關係正確性及反模式偵測。
- 分支/PR/CI 工作流程 — 內建於每個步驟中。若未使用 git/gh,則會平穩降級至直接模式。
- 平行步驟偵測 — 依賴關係圖可識別沒有共用檔案或輸出依賴關係的步驟。
- 計畫變異協定 — 可透過正式協定與稽核軌跡,對步驟進行拆分、插入、跳過、重新排序或廢棄。
- 零執行時風險 — 純 Markdown 技術。整個儲存庫僅包含
.md檔案 — 無鉤子、無 Shell 腳本、無可執行程式碼、無package.json,亦無建置步驟。安裝或呼叫時,除了 Claude Code 的原生 Markdown 技能載入器外,不會執行任何內容。
安裝
此技能隨 Everything Claude Code 一併提供。安裝 ECC 時無需額外安裝。
完整 ECC 安裝
若您正在使用從 ECC 儲存庫檢出的版本,請透過以下指令確認該技能是否存在:
test -f skills/blueprint/SKILL.md
若需日後更新,請在更新前檢視 ECC 的 diff 檔案:
cd /path/to/everything-claude-code
git fetch origin main
git log --oneline HEAD..origin/main # review new commits before updating
git checkout # pin to a specific reviewed commit
獨立套件化安裝
若您僅在完整的 ECC 安裝範圍外將此技能作為獨立套件使用,請將經審查的檔案從 ECC 儲存庫複製至 ~/.claude/skills/blueprint/SKILL.md。Vendored 副本沒有 git remote,因此請透過從已審核的 ECC 提交中重新複製檔案來更新,而非執行 git pull.
需求
- Claude Code(適用於
/blueprint斜線指令) - Git + GitHub CLI(可選 — 啟用完整的分支/PR/CI 工作流程;Blueprint 會偵測是否缺失並自動切換至直接模式)
來源
靈感源自 antbotlab/blueprint — 上游專案與參考設計。
---
name: blueprint
description: Generate a step-by-step construction plan from a one-line objective, with dependency graphs, parallel step detection, and adversarial review for multi-session engineering projects.
---
# 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 Everything Claude Code. 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/everything-claude-code
git fetch origin main
git log --oneline HEAD..origin/main # review new commits before updating
git 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.
所有檔案
1 個檔案安裝 blueprint
請下載並將技能檔案解壓縮至您的 .claude/skills/ 目錄中。
下載 ZIP複製儲存庫並將技能檔案複製到您的專案中。
git clone https://github.com/affaan-m/ECC/tree/main/skills/blueprint # Copy SKILL.md to your .claude/skills/ directory
複製





首頁
