vault: align ECC docs with current repo and add orchestration manual

Updated ECC notes to match the current state of affaan-m/everything-claude-code
docs/token-optimization.md and docs/SKILL-PLACEMENT-POLICY.md:

- Drop CLAUDE_AUTOCOMPACT_PCT_OVERRIDE recommendations (now warned against
  upstream — variable can only lower threshold, opposite of intent)
- Add CLAUDE_CODE_SUBAGENT_MODEL=haiku as the new core token-saving setting
- Flag the default `memory` MCP for disablement (no skill/agent/hook references)
- Add Skill Placement Policy section (curated/learned/imported/evolved + provenance)
- Cover missing commands: /checkpoint, /sessions, /security-scan, /claw, /projects

Add new resource: ECC 编排实战手册.md (721 lines). Six orchestration patterns
(dmux+worktree, sequential claude -p, continuous-claude, Ralphinho RFC-DAG,
santa-loop, Task in-process) with real commands, real plan.json structures,
real CLI flags, and explicit "could not verify online" markers for /multi-*
and /feature-dev. All sourced to specific commands/*.md or skills/*.md files.

Cross-link the new manual from 完整指南 and 用法速查.
This commit is contained in:
Yaojia Wang
2026-04-26 12:17:47 +02:00
parent ab3263c474
commit 232b045e03
7 changed files with 820 additions and 20 deletions

View File

@@ -7,7 +7,7 @@ source: "https://github.com/affaan-m/everything-claude-code"
# Everything Claude Code 用法速查
按使用场景分类的快速参考手册。组件完整列表见 [[Everything Claude Code 完整指南]]。方法论深度分析见 [[Everything Claude Code 方法论与最佳实践]]。
按使用场景分类的快速参考手册。组件完整列表见 [[Everything Claude Code 完整指南]]。方法论深度分析见 [[Everything Claude Code 方法论与最佳实践]]。**编排深度实战见 [[ECC 编排实战手册]]**(6 种模式真实命令 + 决策树)。
> **命名空间**: 通过插件安装的 ECC命令需加 `everything-claude-code:` 前缀。本文用短名书写,实际使用时如 `/plan` → `/everything-claude-code:plan`。完整映射表见 [[Everything Claude Code 方法论与最佳实践#命令名映射速查]]。
@@ -79,14 +79,32 @@ source: "https://github.com/affaan-m/everything-claude-code"
## 三、按高级场景分类
### 1. 多模型协作
### 1. 编排模式选择(优先看)
详见 [[ECC 编排实战手册]]。决策树:
| 想要 | 用什么 | 备注 |
|------|--------|------|
| 单功能全流程 | `/feature-dev` | 7 阶段:Discovery → Exploration → Clarifying → Architecture → Implementation → Review → Summary |
| 顺序分步 | `/plan``/tdd``/code-review` | 最朴素也最稳 |
| 双评审兜底 | `/santa-loop` | Claude Opus + Codex/Gemini 双独立评审,3 轮收敛 |
| 多 worktree 并行 | `node scripts/orchestrate-worktrees.js plan.json --execute` | 需 tmux,看 [[dmux 多Agent并行编排]] |
| 多日 PR 自治 | `continuous-claude` 外部工具 | 不属于 ECC,看 [[Autonomous Loops 自主循环模式]] |
| 大 RFC + DAG | `ralphinho` 外部工具 | 不属于 ECC |
| 启动 ECC 内置循环 | `/loop-start [pattern] [--mode safe\|fast]` | pattern: sequential / continuous-pr / rfc-dag / infinite |
> ⚠️ `/orchestrate` 是 **legacy shim**,转发到 `dmux-workflows` skill。新项目优先用 `/feature-dev` 或上面的组合。
### 2. 多模型协作 (需外部 CLI)
⚠️ **`/multi-*` 系列依赖 `~/.claude/bin/codeagent-wrapper` + 外部 codex/gemini CLI**(`ccg` 协议),不是 ECC 标配。装不上就用编排手册里的模式 1-3、5、6 替代。
| 命令 | 用途 |
| ----------------- | ----------------------------------- |
| `/multi-plan` | Claude + Codex + Gemini 并行规划 |
| `/multi-execute` | 跨多个模型后端并行执行 |
| `/multi-frontend` | 多前端框架并行开发React/Vue/Svelte/Angular |
| `/multi-backend` | 多后端栈并行开发Node/Python/Go/Java |
| `/multi-frontend` | 多前端框架并行开发(React/Vue/Svelte/Angular) |
| `/multi-backend` | 多后端栈并行开发(Node/Python/Go/Java) |
| `/multi-workflow` | 复杂多服务编排 |
### 2. 自主循环
@@ -163,10 +181,13 @@ source: "https://github.com/affaan-m/everything-claude-code"
| 更新文档 | `/update-docs` |
| 审查 Python 代码 | `/python-review` |
| 审查 Go 代码 | `/go-review` |
| 多模型并行出方案 | `/multi-plan` |
| 多模型并行出方案 | `/multi-plan`(需外部 CLI) |
| 启动自主循环 | `/loop-start` |
| 评估 harness 质量 | `/harness-audit` |
| 从会话中学习模式 | `/learn` |
| 单功能全流程一条龙 | `/feature-dev` |
| 上线前对抗式双评审 | `/santa-loop` |
| 多任务 worktree 并行 | `node scripts/orchestrate-worktrees.js plan.json --execute` |
---
@@ -175,6 +196,11 @@ source: "https://github.com/affaan-m/everything-claude-code"
### Resources
- [[Everything Claude Code 完整指南]]
- [[Everything Claude Code 方法论与最佳实践]]
- [[ECC 编排实战手册]]
- [[ECC 编排替代方案 (orchestrate 迁移)]]
- [[Autonomous Loops 自主循环模式]]
- [[dmux 多Agent并行编排]]
- [[Ralphinho RFC-DAG 编排模式]]
### Zettelkasten
- [[Everything Claude Code 最佳实践]]