claude-everything-workflow 0.2.2 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/.agents/plugins/marketplace.json +12 -0
  2. package/.claude-plugin/hooks.json +33 -0
  3. package/.claude-plugin/marketplace.json +12 -0
  4. package/.claude-plugin/plugin.json +10 -0
  5. package/.codex-plugin/plugin.json +20 -0
  6. package/AGENTS.md +13 -18
  7. package/CLAUDE.md +1 -5
  8. package/README.md +101 -368
  9. package/README.zh-CN.md +158 -0
  10. package/agents/database-reviewer.md +0 -3
  11. package/agents/e2e-runner.md +8 -141
  12. package/commands/code-review.md +9 -30
  13. package/commands/pr.md +1 -6
  14. package/commands/verify.md +7 -11
  15. package/docs/plugins.md +91 -0
  16. package/harness/manifest.json +310 -0
  17. package/package.json +14 -2
  18. package/references/git-worktrees.md +29 -0
  19. package/rules/01-base.md +9 -26
  20. package/rules/02-code-size.md +5 -9
  21. package/rules/03-architecture.md +8 -22
  22. package/rules/04-error-handling.md +4 -5
  23. package/rules/05-git-workflow.md +6 -3
  24. package/rules/06-comments.md +3 -9
  25. package/rules/07-forbidden.md +4 -3
  26. package/rules/common/agent-orchestration.md +2 -4
  27. package/rules/common/context-hygiene.md +2 -0
  28. package/rules/common/hooks.md +2 -0
  29. package/rules/common/pr-automation.md +1 -1
  30. package/rules/common/skills-learning.md +2 -2
  31. package/rules/common/testing.md +10 -2
  32. package/scripts/install-rules.js +100 -0
  33. package/scripts/install.ps1 +29 -3
  34. package/scripts/install.sh +26 -2
  35. package/scripts/legacy-common-rule-hashes.json +78 -0
  36. package/scripts/retired-skill-files.json +26 -0
  37. package/scripts/upstream-capability-map.json +14 -9
  38. package/scripts/verify/continuation-checks.test.js +101 -0
  39. package/scripts/verify/core.js +1 -0
  40. package/scripts/verify/grilling-spec-gate-checks.js +48 -11
  41. package/scripts/verify/install-rules.test.js +165 -0
  42. package/scripts/verify/metadata-checks.js +35 -26
  43. package/scripts/verify/plugin-distribution.test.js +40 -0
  44. package/scripts/verify/repository-checks.js +39 -80
  45. package/scripts/verify/skill-invocation.test.js +87 -0
  46. package/scripts/verify/skill-manifest-checks.js +197 -0
  47. package/scripts/verify/skill-manifest-checks.test.js +135 -0
  48. package/scripts/verify/workflow-checks.js +28 -150
  49. package/scripts/verify-harness.js +2 -0
  50. package/scripts/verify-upstream-capability-map.js +2 -1
  51. package/skills/README.md +11 -15
  52. package/skills/code-review/SKILL.md +54 -41
  53. package/skills/codebase-design/SKILL.md +1 -1
  54. package/skills/continuous-learning-v2/SKILL.md +4 -2
  55. package/skills/domain-modeling/SKILL.md +9 -6
  56. package/skills/e2e-testing/SKILL.md +20 -310
  57. package/skills/e2e-testing/references/playwright-patterns.md +324 -0
  58. package/skills/feature-acceptance/SKILL.md +6 -2
  59. package/skills/grilling/SKILL.md +4 -3
  60. package/skills/handoff/SKILL.md +3 -4
  61. package/skills/handoff/agents/openai.yaml +5 -0
  62. package/skills/implement/SKILL.md +32 -81
  63. package/skills/implement/references/ticket-delivery.md +43 -0
  64. package/skills/improve-codebase-architecture/SKILL.md +1 -2
  65. package/skills/improve-codebase-architecture/agents/openai.yaml +5 -0
  66. package/skills/prototype/SKILL.md +1 -1
  67. package/skills/resolving-merge-conflicts/SKILL.md +1 -1
  68. package/skills/spec-gate/SKILL.md +4 -2
  69. package/skills/subagent-driven-development/SKILL.md +3 -3
  70. package/skills/systematic-debugging/SKILL.md +41 -3
  71. package/skills/systematic-debugging/references/diagnostic-scenarios.md +28 -0
  72. package/skills/test-driven-development/SKILL.md +6 -2
  73. package/skills/to-tickets/SKILL.md +5 -3
  74. package/skills/triage/SKILL.md +4 -4
  75. package/skills/triage/agents/openai.yaml +5 -0
  76. package/skills/using-superpowers/SKILL.md +33 -96
  77. package/skills/using-superpowers/references/process-outcomes.md +44 -0
  78. package/skills/visual-companion/SKILL.md +1 -1
  79. package/agents/architect.md +0 -59
  80. package/agents/code-reviewer.md +0 -28
  81. package/agents/planner.md +0 -40
  82. package/agents/tdd-guide.md +0 -101
  83. package/references/agents/database-reviewer.md +0 -657
  84. package/skills/find-skills/SKILL.md +0 -142
  85. package/skills/iterative-retrieval/SKILL.md +0 -84
  86. package/skills/project-context/SKILL.md +0 -94
  87. package/skills/project-context/agents/openai.yaml +0 -6
  88. package/skills/project-context/references/project-context-template.md +0 -61
  89. package/skills/research/SKILL.md +0 -48
  90. package/skills/using-git-worktrees/SKILL.md +0 -64
  91. package/skills/verification-before-completion/SKILL.md +0 -77
  92. package/skills/wayfinder/SKILL.md +0 -57
package/README.md CHANGED
@@ -1,425 +1,158 @@
1
1
  # Claude Everything Workflow
2
2
 
3
- > 一套通用的 Agent Harness 工程模板,可直接复制到 `~/.claude/` 使用。
4
- > 学习 [everything-claude-code](https://github.com/affaan-m/everything-claude-code) 的最佳 Harness 工程实践。
3
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
4
+ [![CI](https://github.com/xu91102/claude-everything-Workflow/actions/workflows/ci.yml/badge.svg)](https://github.com/xu91102/claude-everything-Workflow/actions/workflows/ci.yml)
5
5
 
6
- ## 一键安装
6
+ **A reusable engineering workflow for Claude Code and Codex.**
7
7
 
8
- macOS / Linux / Git Bash / WSL:
8
+ **English** · [简体中文](README.zh-CN.md)
9
9
 
10
- ```bash
11
- bash scripts/install.sh
12
- ```
10
+ Give your coding agent a consistent way to investigate problems, implement changes, review work, and report what was actually verified. Claude Everything Workflow (CEW) packages rules, task-specific skills, command entry points, and supporting scripts into an installable agent harness—the instructions and tools around your agent.
13
11
 
14
- Windows PowerShell:
12
+ CEW works with your existing projects and model. It does not provide a model or replace Claude Code or Codex. The README is available in English and Chinese; most bundled workflow instructions are currently written in Chinese.
15
13
 
16
- ```powershell
17
- powershell -ExecutionPolicy Bypass -File .\scripts\install.ps1
18
- ```
14
+ [Install](#installation) · [How it works](#how-it-works) · [Design principles](#design-principles) · [Documentation](#documentation)
19
15
 
20
- 只安装某个工具:
16
+ ## What it helps you do
21
17
 
22
- ```bash
23
- bash scripts/install.sh --claude-only
24
- bash scripts/install.sh --codex-only
25
- ```
18
+ | Task | What CEW adds |
19
+ | --- | --- |
20
+ | Deliver a change | A path from a clear request to implementation, review, and verification. |
21
+ | Investigate a bug | Call-chain tracing, testable hypotheses, targeted experiments, and evidence-based root-cause reports. |
22
+ | Review code | Review against a fixed baseline and agreed scope, with depth matched to risk. |
23
+ | Handle larger work | Specification, dependent tickets, isolated parallel work, and handoff tools when needed. |
24
+ | Keep context focused | Small entry points and references loaded for the relevant task. |
25
+ | Report progress honestly | Separate claims for diagnosis, fixes, tests, CI, and release status. |
26
26
 
27
- ```powershell
28
- powershell -ExecutionPolicy Bypass -File .\scripts\install.ps1 -ClaudeOnly
29
- powershell -ExecutionPolicy Bypass -File .\scripts\install.ps1 -CodexOnly
30
- ```
27
+ ## Installation
31
28
 
32
- 预览将要写入的文件:
29
+ **Claude Code and Codex plugins are also supported**, with GitHub marketplace installation and updates. The npm installer remains available. See [plugin installation and updates (Chinese)](docs/plugins.md).
33
30
 
34
- ```bash
35
- bash scripts/install.sh --dry-run
36
- ```
31
+ ### Requirements
37
32
 
38
- ```powershell
39
- powershell -ExecutionPolicy Bypass -File .\scripts\install.ps1 -DryRun
40
- ```
33
+ - Claude Code and/or Codex, already installed and configured.
34
+ - Node.js **18+** and npm/npx.
35
+ - macOS/Linux: Bash and `rsync`. Windows: PowerShell; Git Bash/WSL can use the shell installer if Bash and `rsync` are available.
41
36
 
42
- ## npm / npx 安装
37
+ ### Install from npm
43
38
 
44
- 发布到 npm 后,可以不 clone 仓库,直接运行:
39
+ Preview the changes, then install to both hosts:
45
40
 
46
- ```bash
41
+ ```sh
42
+ npx claude-everything-workflow install --dry-run
47
43
  npx claude-everything-workflow install
48
- npx claude-everything-workflow install --claude-only
49
- npx claude-everything-workflow install --codex-only
50
- npx claude-everything-workflow verify
51
- ```
52
-
53
- 本地发布前检查:
54
-
55
- ```bash
56
- npm pack --dry-run
57
- npm publish --dry-run
58
- ```
59
-
60
- ## npm 发布
61
-
62
- 版本号通过 PR 更新 `package.json`,并与功能改动一起接受审查。PR 合并到 `main` 后,`.github/workflows/ci.yml` 会先运行 `npm run verify` 与 `npm run pack:dry-run`,只有 `verify` 成功时才发布该提交中的版本。
63
-
64
- 发布会拒绝不高于 npm `latest` 的新版本,通过 npm 受信任的发布商 OIDC 执行 `npm publish`,并在 npm 发布成功后才创建指向当前提交的 `v<version>` tag。重跑时,当前版本已在 npm 会跳过重复发布并补齐缺失 tag;已有正确 tag 但 npm 尚未发布时会继续发布;tag 已指向其他提交时仍会失败并要求先审计。
65
-
66
- 如需重试发布,可在 `main` 上手动触发 `CI`;流程不会修改、提交或推送 `main`。
67
-
68
- npm 包设置里必须添加 GitHub Actions 受信任的发布商,仓库为 `xu91102/claude-everything-Workflow`,workflow 文件名为 `ci.yml`,并允许 `npm publish`。
69
-
70
- 安装目标:
71
-
72
- - Claude Code: `~/.claude/`
73
- - Codex: `~/.codex/`
74
-
75
- Claude Code 会安装 `CLAUDE.md` 并合并 `settings.json` 作为 hooks 入口;Codex 安装共享 Workflow 材料,不默认消费 Claude Code `settings.json`。顶层配置文件已存在且内容不同时,会先生成 `.bak.<timestamp>` 备份再覆盖;目录内容按仓库版本同步。
76
-
77
- ## 手动安装
78
-
79
- ### Windows
80
-
81
- ```powershell
82
- Copy-Item -Recurse .\claude-everything-Workflow\* $env:USERPROFILE\.claude\ -Force
83
44
  ```
84
45
 
85
- ### macOS / Linux
46
+ To install for only one host:
86
47
 
87
- ```bash
88
- cp -r ./claude-everything-Workflow/* ~/.claude/
48
+ ```sh
49
+ npx claude-everything-workflow install --claude-only
50
+ npx claude-everything-workflow install --codex-only
89
51
  ```
90
52
 
91
- ## 目录结构
53
+ ### Install from source
92
54
 
93
- ```
94
- claude-everything-Workflow/
95
- ├── README.md # 本文档
96
- ├── AGENTS.md # Codex 与通用权威规则入口
97
- ├── CLAUDE.md # Claude Code 最小 bootstrap 入口
98
- ├── settings.json # Claude Code Hooks 配置入口
99
- ├── .github/
100
- │ ├── scripts/
101
- │ │ └── publish-release.js # 可重试的 npm 发布与 tag 事务
102
- │ └── workflows/
103
- │ └── ci.yml # PR / main 校验与 verify 后发布 npm
104
- │
105
- ├── rules/ # 规则索引与按需加载规则
106
- │ ├── 01-base.md # 基础设定
107
- │ ├── 02-code-size.md # 代码规模约束
108
- │ ├── 03-architecture.md # 架构原则
109
- │ ├── 04-error-handling.md # 错误处理
110
- │ ├── 05-git-workflow.md # Git 规范
111
- │ ├── 06-comments.md # 注释规范
112
- │ ├── 07-forbidden.md # 禁止事项
113
- │ ├── 08-specialty-rules-index.md # 专项规则索引
114
- │ ├── 09-first-principles-adversarial-testing.md # 第一性原则与对抗性测试
115
- │ └── common/ # 通用最佳实践
116
- │ ├── harness-engineering.md # Agent Harness 六层与执行循环
117
- │ ├── context-hygiene.md # 上下文卫生与 Subagent 边界
118
- │ ├── agent-orchestration.md # Agent 编排
119
- │ ├── performance.md # Token 优化 & 模型选择
120
- │ ├── hooks.md # Hook 系统最佳实践
121
- │ ├── skills-learning.md # Skills 与持续学习
122
- │ ├── testing.md # 测试与验证
123
- │ └── pr-automation.md # PR 自动化与 CI 质量门
124
- │
125
- ├── agents/ # 代理(专业任务委托)
126
- │ ├── architect.md # 架构师
127
- │ ├── code-reviewer.md # 代码审查员
128
- │ ├── tdd-guide.md # TDD 指导
129
- │ ├── e2e-runner.md # E2E / Playwright(可选 Agent Browser)
130
- │ ├── harness-optimizer.md # Harness 配置调优
131
- │ └── ... # 其他专业代理
132
- │
133
- ├── commands/ # 命令(斜杠快捷入口)
134
- │ ├── code-review.md # /code-review → code-reviewer
135
- │ ├── learn.md # /learn 统一学习管理
136
- │ ├── pr.md # /pr 提交与创建 PR
137
- │ ├── to-spec.md # /to-spec → spec-gate
138
- │ └── verify.md # /verify 验证
139
- │
140
- ├── references/ # 按需加载的长参考材料
141
- │ └── agents/ # Agent 详细检查清单与示例
142
- │
143
- ├── scripts/ # 跨平台脚本
144
- │ ├── install.sh # macOS / Linux / Git Bash / WSL 一键安装
145
- │ ├── install.ps1 # Windows PowerShell 一键安装
146
- │ └── learning/ # 学习系统手动维护脚本
147
- │ └── review-confidence.js # 置信度审查报告
148
- │
149
- ├── skills/
150
- │ ├── README.md # Skill 分类索引;物理目录保持平铺以兼容发现
151
- │ ├── using-superpowers/ # Skill 路由、优先级与门禁纪律
152
- │ │ └── SKILL.md
153
- │ ├── grilling/ # 重大用户决策的单问式压力测试
154
- │ │ └── SKILL.md
155
- │ ├── spec-gate/ # 零访谈工程 Spec 成稿、自审和用户批准
156
- │ │ ├── SKILL.md
157
- │ │ └── references/
158
- │ ├── domain-modeling/ # 领域术语、关系、不变量和边界建模
159
- │ │ └── SKILL.md
160
- │ ├── project-context/ # 显式配置项目工作追踪、领域文档和 ADR 位置
161
- │ │ └── SKILL.md
162
- │ ├── subagent-driven-development/ # 独立 frontier ticket 的可选并行执行
163
- │ │ └── SKILL.md
164
- │ ├── visual-companion/ # 经同意后展示安全本地视觉方案
165
- │ │ ├── SKILL.md
166
- │ │ ├── references/
167
- │ │ └── scripts/
168
- │ ├── using-git-worktrees/ # 隔离式 worktree 执行准备
169
- │ │ └── SKILL.md
170
- │ ├── verification-before-completion/ # 完成声明前的新鲜验证门
171
- │ │ └── SKILL.md
172
- │ ├── e2e-testing/ # Playwright E2E 模式(POM、CI、制品)
173
- │ │ └── SKILL.md
174
- │ ├── iterative-retrieval/ # Subagent 迭代检索与上下文收敛
175
- │ │ └── SKILL.md
176
- │ ├── continuous-learning-v2/ # 自主学习系统
177
- │ │ ├── SKILL.md # 技能说明
178
- │ │ ├── config.json # 配置
179
- │ │ ├── agents/ # Observer Agent
180
- │ │ └── hooks/ # observe-v2.js 增强观察脚本
181
- │ ├── test-driven-development/ # TDD 测试先行规则
182
- │ └── learn/ # 学习到的模式,按分类保存
183
- │ ├── pr/
184
- │ ├── testing/
185
- │ └── debugging/
186
- │
187
- └── hooks/ # 钩子脚本
188
- ├── runtime/ # Hook 运行时与 Profile 控制
189
- │ ├── run-with-flags.js
190
- │ └── hook-flags.js
191
- ├── commit-quality.js # 可选 Pre-commit 质量门
192
- ├── check-console-log.js # 禁止模式检测(console.log/debugger/@ts-ignore/any)
193
- └── check-code-size.js # 代码规模与行长检测
55
+ ```sh
56
+ git clone https://github.com/xu91102/claude-everything-Workflow.git
57
+ cd claude-everything-Workflow
58
+ npm install --ignore-scripts --no-package-lock
59
+ node bin/claude-everything-workflow.js install --dry-run
60
+ node bin/claude-everything-workflow.js install
194
61
  ```
195
62
 
196
- 正式 skill 目录保持 `skills/<skill-name>/SKILL.md` 平铺结构,避免破坏 Claude Code、Codex 和安装脚本的发现方式;分类维护在 `skills/README.md`。只有学习产物使用物理分类目录 `skills/learn/<category>/`。
63
+ The CLI selects the shell or PowerShell installer for your platform. The same `--claude-only` and `--codex-only` options apply. The npm command uses the published package; the source command uses your checkout.
197
64
 
198
- ## 规则加载策略
65
+ ### What changes on your machine
199
66
 
200
- - 默认入口只加载 `AGENTS.md` 或 `CLAUDE.md` 中的硬规则和最小索引。
201
- - `AGENTS.md` 是权威规则入口;`CLAUDE.md` 是 Claude Code bootstrap,只保留启动必需规则和回退策略,避免两份完整规则漂移。
202
- - 简单问答、解释、格式调整、翻译或只读查看,不读取额外规则。
203
- - 规则路径解析顺序:先检查当前项目根目录 `rules/`;若项目无 `rules/` 或目标规则文件不存在,必须回退到用户级规则目录:Codex 使用 `~/.codex/rules/`,Claude Code 使用 `~/.claude/rules/`。
204
- - 当用户级 Workflow 注入到没有 `rules/` 的项目时,不能把项目规则目录缺失等同于“无规则”;必须继续检查对应的用户级规则目录。
205
- - 回退只改变查找位置,不改变按需读取原则;仍然只读取当前任务直接相关的规则文件,不要默认全量加载 `rules/` 或 `rules/common/`。
206
- - `rules/common/` 是专项参考区,只在命令、agent、skill 或当前任务明确触发时读取。
67
+ | Host | Destination | Integration |
68
+ | --- | --- | --- |
69
+ | Claude Code | `~/.claude/` | Shared workflow files, `CLAUDE.md` bootstrap, rules, and merged hook settings. |
70
+ | Codex | `~/.codex/` | Shared workflow files and `AGENTS.md`; Claude Code hooks are not automatically enabled. |
207
71
 
208
- ## 按需 MCP 与上下文控制
72
+ Installation updates user-level files and can affect multiple projects. Changed top-level configuration files are backed up; matching files inside shared directories are synchronized from the repository. Unknown files are generally retained, while known retired files are removed by an explicit cleanup list. Back up any personal edits to shared files before upgrading. Use the installer instead of copying the entire `rules/` directory: it handles the different rule locations used by each host.
209
73
 
210
- 默认 MCP 必须同时满足“通用”和“MCP 明显优于 CLI/API/原生能力”。GitHub、文档查询、Exa 搜索、Playwright E2E、memory 和 sequential-thinking 这类纯请求/响应或已有原生替代的能力,优先通过 skill、CLI/API 或 harness 原生能力按需触发,而不是默认常驻。
74
+ ## How it works
211
75
 
212
- ### 1. Claude Code:用户级 `~/.claude/settings.json`
76
+ Start with a normal task request. The workflow router selects relevant skills; you do not need to memorize every skill name.
213
77
 
214
- 复制 Workflow 到 `~/.claude/` 后,在 **`~/.claude/settings.json`**(没有则新建)里配置 **`mcpServers`**,与主仓根目录 **`.mcp.json`** 中 **`context7`** 条目保持一致:
215
-
216
- ```json
217
- {
218
- "mcpServers": {
219
- "context7": {
220
- "command": "npx",
221
- "args": ["-y", "@upstash/context7-mcp@2.1.4"]
222
- }
223
- }
224
- }
225
- ```
226
-
227
- - 若文件中已有 hooks、其它字段,请**合并**进同一 JSON,**不要**整文件覆盖。
228
- - 需要本机 **Node / npx**(`npx` 首次会拉取包)。
229
- - 更全的 MCP 列表与说明见主仓 **`mcp-configs/mcp-servers.json`** 与主仓 **README「Configure MCPs」**。
230
-
231
- **仅查文档时**:用户级只保留 **`context7`** 即可,不必一次打开主仓里的 GitHub、Exa、Playwright 等全部服务。
232
-
233
- ### 2. 节省 Token(与主仓 `rules/common/performance.md` 一致)
234
-
235
- - MCP 工具描述会占用上下文;建议**同时启用的 MCP 少于 10 个**,并控制活跃工具数量。
236
- - **策略**:从 **0 个或只开 Context7** 开始,需要再加其它 MCP。
237
- - **缓存命中策略**:保持入口文件前缀稳定,默认只加载小型 bootstrap 和规则索引;长参考材料、专项规则、agent 详细清单和学习材料必须按需加载。
238
- - **入口预算**:`CLAUDE.md` 控制在约 1.5K 字符内,`AGENTS.md` 控制在约 3.6K 字符内;超过预算时优先把细节下沉到 `rules/`、`references/` 或专项 skill。
239
- - **按项目禁用**(Claude Code):在具体仓库的 **`.claude/settings.json`** 中使用 **`disabledMcpServers`**,写上全局已启用、但本项目不用的服务名(与 `mcpServers` 的**键名**一致),例如:
240
-
241
- ```json
242
- {
243
- "disabledMcpServers": [
244
- "github",
245
- "exa",
246
- "playwright",
247
- "sequential-thinking",
248
- "memory"
249
- ]
250
- }
78
+ ```text
79
+ Request → inspect context → select the relevant workflow
80
+ → investigate / implement → review → verify → report evidence
251
81
  ```
252
82
 
253
- - **跑 ECC 安装/同步且你已有同名自建 MCP**:可设置 `export ECC_DISABLED_MCPS="github,context7,exa,playwright,sequential-thinking,memory"`,避免重复写入(见主仓 README)。
254
- - **新增 MCP 前先评估**:判断它是否应该默认启用、按需启用,还是改为 CLI/API skill。
83
+ For example:
255
84
 
256
- ### 3. Cursor
85
+ > Find why this request intermittently fails. Trace the actual call chain, test the competing explanations, and fix the confirmed cause. Report the verification results and anything still unverified.
257
86
 
258
- 在项目根使用 **`.mcp.json`**,放入与上文相同的 **`context7`** 段即可;用 MCP 面板关闭不需要的服务,效果与 `disabledMcpServers` 类似。
87
+ Clear, low-risk work can take a short route. Unresolved user decisions, formal specifications, and work with costly-to-reverse consequences receive additional attention. Multi-session tickets and parallel agents are available for work that benefits from them. Exact routing and approval boundaries live in the [router](skills/using-superpowers/SKILL.md) and [project rules](AGENTS.md).
259
88
 
260
- ## 可用命令
261
-
262
- | 命令 | 功能 |
89
+ | Entry point | Purpose |
263
90
  | --- | --- |
264
- | `/to-spec` | 正式工程 Spec 的显式决策门 |
265
- | `/code-review` | 固定基点下并行执行隔离的 Standards 轴与 Spec 轴审查 |
266
- | `/verify` | 运行全面验证检查 |
267
- | `/pr` | 提交、推送和创建 PR 的标准工作流 |
268
- | `/learn` | 统一管理学习评估、状态、项目、推广、清理与演化 |
269
-
270
- 新增的上游等价能力全部以 Skill 形式由中央路由调用,不增加薄包装 command。其中
271
- `using-superpowers` 提供只读流程建议,`grilling` 与 `domain-modeling` 组合带文档访谈,
272
- `implement` 执行已批准工作的交付闭环。
273
-
274
- ## 验证 Harness
275
-
276
- ```bash
277
- node scripts/verify-harness.js
278
- bash scripts/install.sh --dry-run
279
- npm run verify:upstream -- --upstream-root <mattpocock-skills-clone>
280
- ```
281
-
282
- ```powershell
283
- powershell -ExecutionPolicy Bypass -File .\scripts\install.ps1 -DryRun
284
- ```
285
-
286
- `verify-harness.js` 会检查 README 与 `commands/` 是否一致、薄封装 command 是否指向存在的 agent/skill、旧命令和旧衰减语义是否残留,并运行 `observe-v2` 最小 smoke test。
91
+ | `/to-spec` | Prepare a formal engineering specification for approval. |
92
+ | `/code-review` | Review a defined change against its scope and baseline. |
93
+ | `/verify` | Run the relevant verification checks. |
94
+ | `/pr` | Prepare commits and a pull request within the user's authorization. |
95
+ | `/learn` | Explicitly manage reusable learning and its evaluation. |
287
96
 
288
- ## Hook Profile 控制
97
+ These are repository command definitions; availability as native slash commands depends on the host. Ordinary language can also express the intended workflow.
289
98
 
290
- 通过环境变量控制 Hook 行为:
99
+ ## Design principles
291
100
 
292
- ```bash
293
- # minimal | standard | strict (默认: standard)
294
- export ECC_HOOK_PROFILE=standard
295
-
296
- # 禁用特定 Hook (逗号分隔 ID)
297
- export ECC_DISABLED_HOOKS="post:edit:console-log"
298
- ```
101
+ 1. **Evidence before claims.** A plausible explanation is not a confirmed root cause. A passing local check is not a production release.
102
+ 2. **The shortest appropriate workflow.** Match the process and verification effort to the task and risk; do not create artifacts just to satisfy a template.
103
+ 3. **Load context when needed.** Keep entry points small and load specialized rules, skills, and references only when relevant.
104
+ 4. **Respect project conventions and user control.** Preserve existing work and follow the target project's requirements. Installing a skill does not authorize publishing, external writes, or destructive actions.
105
+ 5. **One owner per policy.** Keep routing, Git boundaries, and verification requirements in their designated sources rather than duplicating competing rules.
299
106
 
300
- 当前仓库以根目录 `settings.json` 作为 Claude Code hooks 入口;`hooks/` 目录统一保存低噪音 Hook 运行时和脚本实现。默认不启用会话启动、会话结束、停止或压缩前的弱摘要 Hook,避免污染上下文。`scripts/learning/` 只保存手动学习治理脚本,不作为 Hook 自动触发。
301
- Codex 安装同一套 `hooks/` 脚本材料,但不会因为安装本仓文件而自动启用 Claude Code hooks;如未来需要 Codex 原生自动化,应新增明确 adapter。
107
+ These instructions guide agent behavior; they are not a runtime security boundary or a guarantee of successful diagnosis. Repository validation checks structure and contracts. Real task performance needs separate evaluation.
302
108
 
303
- ## Ticket-first 工程交付闭环
304
-
305
- 本仓默认最短闭环、按风险逐级升级;跨会话交付参考
306
- [mattpocock/skills](https://github.com/mattpocock/skills) 的 ticket-first 模型。主线是:
109
+ ## Repository structure
307
110
 
308
111
  ```text
309
- 任务
310
- -> using-superpowers 先路由到相关 process skill
311
- -> 可查事实直接检索;外部一手来源调查用 research;系统性本地缺口用 iterative-retrieval
312
- -> 需要可运行答案:prototype 选择 logic TUI 或 visual-companion UI 分支
313
- -> 需要隔离 prototype 或接近上下文可靠区边界:handoff 到全新 session,再带结论返回
314
- -> 超过单个 session 的模糊工作:wayfinder 维护 decision-ticket map
315
- -> 标记用户显式 formal spec 或高回滚成本架构/公共契约、安全、持久数据、不可逆副作用
316
- -> 存在关键用户决策:grilling 一次只问一个最高价值问题,并返回结构化 handoff
317
- -> 明确低风险且无未决决策:direct,经 implement 的无 ticket 路径实施、审查并做相称验证
318
- -> 高风险/formal spec 且上下文充分:spec-gate 零访谈写 design spec 并自审
319
- -> Spec Gate 阻塞:停止并展示决策地图;用户明确继续才创建新 grilling 会话
320
- -> 用户审核并批准 spec
321
- -> router 按交付持续性、依赖图、写入面和验证成本选择执行拓扑
322
- -> 多 session/tracker:to-tickets 拆垂直切片和 blocking edges,用户确认 ticket contract 后发布
323
- -> 单 session 的 direct/approved Spec 连贯范围或单张 frontier ticket:implement 在一个 fresh context 中实施
324
- -> 多张独立 frontier tickets:router 用 subagent-driven-development 在独立 worker worktree 并行,再汇入 integration worktree
325
- -> using-git-worktrees 按需创建隔离工作区
326
- -> TDD 红绿重构
327
- -> 需求符合性审查
328
- -> 代码质量审查
329
- -> verification-before-completion 完成声明前确认新鲜验证证据
330
- -> ticket 路径:ticket 验收、双轴审查和验证通过后 resolve,并返回 newly unlocked frontier
331
- -> 无 ticket 路径:双轴审查和验证通过后报告证据,不 claim、resolve 或刷新 tracker
332
- -> /verify 质量门
333
- -> /pr 提交/PR
334
- -> /learn eval --preview 学习沉淀
112
+ claude-everything-Workflow/
113
+ ├── README.md # English overview
114
+ ├── README.zh-CN.md # Chinese overview
115
+ ├── LICENSE # MIT license
116
+ ├── AGENTS.md # Shared policy entry point
117
+ ├── CLAUDE.md # Claude Code bootstrap
118
+ ├── skills/ # Task-specific workflows
119
+ ├── rules/ # Project and specialist rules
120
+ ├── commands/ # Command entry points
121
+ ├── agents/ # Specialized agent definitions
122
+ ├── hooks/ # Hook implementations
123
+ ├── scripts/ # Installers and validators
124
+ ├── references/ # Detailed guides and supporting material
125
+ └── harness/ # Skill metadata and ownership manifest
335
126
  ```
336
127
 
337
- 需要压力测试计划、设计或重大决策时直接提出 grilling 请求;需要正式工程 Spec 时使用 `/to-spec`。显式 grilling 会话保留共同理解确认;自动触发只使用更短的微型访谈。明确任务、多文件任务、普通行为变化和可查事实不会因此增加交互轮数。
338
-
339
- 旧入口名 `brainstorming` 兼容一个发布周期:中央路由会提示迁移并按 formal Spec 请求处理,但不再安装或发现同名 Skill。`grilling` 是唯一需求澄清引擎,`spec-gate` 只负责零访谈成稿、自审和用户批准。
128
+ ## Documentation
340
129
 
341
- ### Skill 迁移说明
130
+ - [Skill catalog](skills/README.md) — available workflows and their categories (Chinese).
131
+ - [Debugging workflow](skills/systematic-debugging/SKILL.md) — investigation and completion criteria.
132
+ - [Verification rules](rules/common/testing.md) — evidence needed before declaring work complete.
342
133
 
343
- - `discover-unknowns-zh` 已退休:事实、证据和盲点检索转到 `iterative-retrieval`/`research`,可运行原型转到 `prototype`,多会话交付转到 `to-tickets`。
344
- - 原 skill 的 `implementation-notes`、`explainer` 和 `quiz` 工件链不再属于本项目承诺的工作流。
345
- - `skill-creator` 已退休:Skill 写作与验证规则收敛到 `rules/common/skills-learning.md`,开放生态发现仍由 `find-skills` 处理。
346
- - 详细实施计划、计划执行,以及依赖长计划的旧 SDD 辅助材料已退休:ticket 是唯一的跨会话实施合同;当前 SDD 只按 ticket 分派 fresh subagent。
134
+ ## Development
347
135
 
348
- Matt Pocock Engineering 能力映射固定在 `scripts/upstream-capability-map.json`;Harness 要求
349
- 上游 17 项 promoted Engineering 能力都有本地 `covered` 或 `adapted` 证据,并覆盖主流程
350
- 跨 session 所依赖的 Productivity `handoff`。`scripts/upstream-capability-baseline.json`
351
- 记录固定 commit 的源文件 SHA-256;`verify:upstream` 可对 fresh clone 复核 commit、目录清单
352
- 和每个源文件,避免只依赖本地映射自报。
136
+ From a source checkout with dependencies installed:
353
137
 
354
- 升级安装会按精确的退役文件清单删除旧分发文件;同名目录中的未知用户文件和 symlink 会保留并报告。
355
-
356
- 硬门禁:
357
-
358
- - 开始非平凡任务前,先用 `using-superpowers` 判断并加载相关 process skill。
359
- - 上下文或工具面变重时,先盘点常驻 Token 开销,再决定新增或删除 MCP/skill/agent。
360
- - 子代理需要探索大仓库时,先用 `iterative-retrieval` 的 Dispatch/Evaluate/Refine/Loop 闭环收敛上下文,再回传证据。
361
- - 完整流程适用时:没有批准的必需 Spec 不进入 ticket 或 implement,没有用户审核不进入实现,没有 review 不标记任务完成。
362
- - 每张 ticket 必须说明交付行为、验收标准和真实 blocker;不要在 ticket 中复制文件路径、代码或逐步计划。
363
- - 没有 failing test,不写行为代码。
364
- - 没有新鲜验证证据,不声明完成、通过、已修复或 ready。
365
- - 没有 verify,不进入 PR。
366
- - 有脏工作区、并行任务或高风险改动时,先考虑 `using-git-worktrees`。
367
-
368
- ### Ticket-first 交付约束
369
-
370
- - `to-tickets` 只写端到端行为、验收标准和 blocking edges;一张 ticket 是一个可在 fresh context 完成的 tracer bullet。
371
- - 细节由实施会话结合当前代码发现;ticket 不写文件路径、行号、代码片段或分层改造步骤,避免文档在实现前过期。
372
- - `implement` 处理一张 frontier ticket,或用户授权的低风险 direct/approved Spec 连贯范围;ticket 以自身作为 Spec source,direct scope 以明确用户请求和相称验证为 scope source。两条路径都驱动 TDD、双轴审查和新鲜验证,只有 ticket 才 claim、resolve 并刷新依赖图。
373
- - `subagent-driven-development` 是 router 选出的并行执行器:不再读取长计划,而是给每个 fresh subagent 一张已批准的 frontier ticket 和独立 worker worktree;通过 review 的 diff 必须汇入 integration worktree 并完成联合验证后才能 resolve。
374
- - Visual Companion 使用带 `?key=` 的 per-session URL,HTTP/WebSocket 请求都需要 session key;默认 idle timeout 为 4 小时,可用 `--idle-timeout-minutes` 调整。
375
-
376
- 复杂度只影响执行与验证强度,不自动触发完整流程。普通新功能、多文件行为变化和存在低风险关键未知的任务仍走最短适用闭环;只有上述高风险类别或显式 opt-in 才进入完整流程。简单问答、翻译、格式调整、窄范围文档修正和无行为变化的小修复,可以直接处理,但完成前仍需运行与改动范围匹配的最小验证。
377
-
378
- 收尾阶段按 `/verify` -> `/pr` -> `/learn eval --preview` 推进。`/learn eval --preview` 是非阻塞学习建议门,只在模式高频、稳定、可复用时保存。
379
-
380
- ## Continuous Learning v2
381
-
382
- ### 工作流程
383
-
384
- ```
385
- 会话活动 → Hooks 观察 → projects/<project-id>/observations.jsonl
386
- ↓
387
- Observer Agent (Haiku)
388
- ↓
389
- projects/<project-id>/instincts/
390
- ↓ ↓
391
- /learn eval 质量门 /learn promote 预览推广
392
- ↓ ↓
393
- skills/learn/<category>/ global/instincts
394
- ↓
395
- /learn evolve 评估是否升级为正式 skills/commands/agents
138
+ ```sh
139
+ npm run verify
140
+ npm run test:manifest
141
+ npm run test:invocation
142
+ npm run test:continuation
143
+ npm run test:install-rules
144
+ npm run verify:upstream
145
+ npm run pack:dry-run
396
146
  ```
397
147
 
398
- 默认学习数据根目录为 `${XDG_DATA_HOME:-~/.local/share}/ecc-homunculus`。旧版 `~/.claude/homunculus` 可用 `node scripts/learning/migrate-homunculus.js --dry-run` 预览迁移。
148
+ `verify:upstream` checks the recorded capability mapping; it does not establish parity with the latest upstream version. `npx claude-everything-workflow verify` validates the published distribution rather than your local project. Neither command proves an agent's effectiveness on real tasks.
399
149
 
400
- `observations.jsonl`、project instincts 和 global instincts 是观察、候选和迁移来源;经 `/learn eval` 质量门确认后,最终学习产物以 `skills/learn/<category>/` 为权威路径。只有高频、稳定、可组合的模式才通过 `/learn evolve` 升级为正式 `skills/`、`commands/` 或 `agents/`。
150
+ For contributions, describe the problem and expected behavior, keep the change focused, and include the checks you actually ran. See the [Git rules](rules/05-git-workflow.md).
401
151
 
402
- ### 置信度系统
152
+ ## Acknowledgments
403
153
 
404
- | 分数 | 含义 | AI 行为 |
405
- | ---- | ------ | ------------ |
406
- | 0.3 | 试探性 | 建议但不强制 |
407
- | 0.5 | 中等 | 相关时应用 |
408
- | 0.7 | 强 | 主动应用 |
409
- | 0.9 | 核心 | 始终应用 |
154
+ CEW draws on [Everything Claude Code](https://github.com/affaan-m/everything-claude-code), [Superpowers](https://github.com/obra/superpowers), and [Matt Pocock's skills](https://github.com/mattpocock/skills), adapting their ideas to this repository's workflows.
410
155
 
411
- > 置信度不会因时间流逝自动衰减。使用 `scripts/learning/review-confidence.js` 审查、`/learn prune` 清理。
156
+ ## License
412
157
 
413
- ## 使用流程
414
-
415
- ```
416
- 1. 复制到 ~/.claude/
417
- 2. 首次需要长期协作上下文时,直接请求配置 project context;需求清楚时直接实现;关键未知按需请求 grilling;高风险任务或显式 opt-in 用 `/to-spec` 写 design spec
418
- 3. router 判断跨会话交付时调用 `to-tickets`,确认拆分、验收和依赖后发布;单会话跳过 tickets
419
- 4. router 为无 blocker 的单张 ticket 或单会话 approved Spec 选择 `implement`;高风险或并行实现前,用 `using-git-worktrees` 隔离工作区。
420
- 多张独立 frontier tickets 时,router 选择 `subagent-driven-development`。
421
- 5. 有测试路径时由 `test-driven-development` 和 tdd-guide 执行测试先行实现;关键路径由 e2e-testing 和 e2e-runner 维护 Playwright
422
- 6. 使用 /code-review 基于固定基点并行执行隔离的 Standards/Spec 双轴审查
423
- 7. 使用 /verify 验证,通过后使用 /pr 进入提交与 PR 门
424
- 8. 使用 `/learn` 的 eval、projects、promote、evolve 或 prune 子命令管理学习闭环
425
- ```
158
+ Released under the [MIT License](LICENSE). Copyright © 2026 xu91102.