blueprint
affaan-m/ECC
根据一条简短的目标描述,生成包含依赖关系图、并行步骤检测以及针对多会话工程项目的对抗性审查的分步构建计划。
...展开全部Blueprint — 构建计划生成器
将一条简短的目标转化为任何编码人员都能直接执行的分步构建计划。
何时使用
- 将大型功能拆分为多个拉取请求,并明确依赖顺序
- 规划跨越多个工作时段的重构或迁移
- 在子代理之间协调并行工作流
- 任何因会话间上下文丢失而可能导致返工的任务
请勿用于可在单个 PR 中完成、工具调用少于 3 次,或用户表示“直接做就行”的任务。
工作原理
Blueprint 运行一个 5 个阶段的管道:
- 研究 — 执行预检(Git、GitHub 授权、远程仓库、默认分支),随后读取项目结构、现有计划及内存文件以收集上下文信息。
- 设计 — 将目标分解为单个 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
独立安装(使用vendor包)
如果您仅在完整的 ECC 安装之外单独安装此技能,请将经过审核的文件从 ECC 仓库复制到 ~/.claude/skills/blueprint/SKILL.md。Vendored副本没有git远程仓库,因此请通过从已审核的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
复制





首页
