claude-everything-workflow 0.2.3 → 0.2.5
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.
- package/.agents/plugins/marketplace.json +12 -0
- package/.claude-plugin/hooks.json +33 -0
- package/.claude-plugin/marketplace.json +12 -0
- package/.claude-plugin/plugin.json +10 -0
- package/.codex-plugin/plugin.json +20 -0
- package/AGENTS.md +11 -17
- package/README.md +107 -404
- package/README.zh-CN.md +158 -0
- package/agents/database-reviewer.md +0 -3
- package/commands/pr.md +2 -2
- package/docs/plugins.md +91 -0
- package/harness/manifest.json +8 -44
- package/hooks/check-code-size.js +1 -1
- package/package.json +8 -1
- package/references/git-worktrees.md +29 -0
- package/rules/02-implementation.md +27 -0
- package/rules/05-git-workflow.md +4 -1
- package/rules/08-specialty-rules-index.md +1 -1
- package/rules/09-first-principles-adversarial-testing.md +1 -2
- package/rules/common/agent-orchestration.md +1 -1
- package/rules/common/context-hygiene.md +2 -0
- package/rules/common/skills-learning.md +1 -1
- package/rules/common/testing.md +7 -0
- package/scripts/install.ps1 +3 -1
- package/scripts/install.sh +3 -1
- package/scripts/retired-skill-files.json +9 -0
- package/scripts/verify/continuation-checks.test.js +101 -0
- package/scripts/verify/core.js +1 -0
- package/scripts/verify/grilling-spec-gate-checks.js +37 -6
- package/scripts/verify/install-rules.test.js +11 -2
- package/scripts/verify/metadata-checks.js +65 -26
- package/scripts/verify/plugin-distribution.test.js +40 -0
- package/scripts/verify/repository-checks.js +7 -22
- package/scripts/verify/skill-invocation.test.js +3 -2
- package/scripts/verify/skill-manifest-checks.js +1 -1
- package/scripts/verify/skill-manifest-checks.test.js +12 -0
- package/scripts/verify/workflow-checks.js +3 -69
- package/skills/README.md +3 -6
- package/skills/continuous-learning-v2/SKILL.md +4 -2
- package/skills/domain-modeling/SKILL.md +6 -4
- package/skills/feature-acceptance/SKILL.md +6 -2
- package/skills/grilling/SKILL.md +3 -2
- package/skills/handoff/agents/openai.yaml +3 -0
- package/skills/implement/SKILL.md +3 -3
- package/skills/improve-codebase-architecture/agents/openai.yaml +3 -0
- package/skills/spec-gate/SKILL.md +12 -22
- package/skills/spec-gate/references/spec-template.md +23 -0
- package/skills/subagent-driven-development/SKILL.md +1 -1
- package/skills/systematic-debugging/SKILL.md +37 -5
- package/skills/systematic-debugging/references/debugging-methods.md +30 -0
- package/skills/systematic-debugging/references/diagnostic-scenarios.md +28 -0
- package/skills/triage/agents/openai.yaml +3 -0
- package/skills/using-superpowers/SKILL.md +9 -5
- package/skills/using-superpowers/references/process-outcomes.md +10 -7
- package/references/agents/database-reviewer.md +0 -657
- package/rules/02-code-size.md +0 -7
- package/rules/03-architecture.md +0 -12
- package/rules/04-error-handling.md +0 -5
- package/rules/06-comments.md +0 -4
- package/skills/iterative-retrieval/SKILL.md +0 -84
- package/skills/using-git-worktrees/SKILL.md +0 -67
- package/skills/verification-before-completion/SKILL.md +0 -78
package/README.md
CHANGED
|
@@ -1,455 +1,158 @@
|
|
|
1
1
|
# Claude Everything Workflow
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
[](LICENSE)
|
|
4
|
+
[](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
|
-
|
|
8
|
+
**English** · [简体中文](README.zh-CN.md)
|
|
9
9
|
|
|
10
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
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
|
-
|
|
35
|
-
bash scripts/install.sh --dry-run
|
|
36
|
-
```
|
|
31
|
+
### Requirements
|
|
37
32
|
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
|
|
37
|
+
### Install from npm
|
|
43
38
|
|
|
44
|
-
|
|
39
|
+
Preview the changes, then install to both hosts:
|
|
45
40
|
|
|
46
|
-
```
|
|
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
|
-
`verify` 检查分发的 Harness 内容;在源码 checkout 中还检查 GitHub 发布配置。npm 包不包含 `.github/`,因此不运行这部分仓库检查。CI 也会仅安装生产依赖后运行打包产物的 `cew verify`,验证实际分发入口。
|
|
54
|
-
|
|
55
|
-
本地发布前检查:
|
|
56
|
-
|
|
57
|
-
```bash
|
|
58
|
-
npm pack --dry-run
|
|
59
|
-
npm publish --dry-run
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
## npm 发布
|
|
63
|
-
|
|
64
|
-
版本号通过 PR 更新 `package.json`,并与功能改动一起接受审查。PR 合并到 `main` 后,`.github/workflows/ci.yml` 会先运行 `npm run verify` 与 `npm run pack:dry-run`,只有 `verify` 成功时才发布该提交中的版本。
|
|
65
|
-
|
|
66
|
-
发布会拒绝不高于 npm `latest` 的新版本,通过 npm 受信任的发布商 OIDC 执行 `npm publish`,并在 npm 发布成功后才创建指向当前提交的 `v<version>` tag。重跑时,当前版本已在 npm 会跳过重复发布并补齐缺失 tag;已有正确 tag 但 npm 尚未发布时会继续发布;tag 已指向其他提交时仍会失败并要求先审计。
|
|
67
|
-
|
|
68
|
-
如需重试发布,可在 `main` 上手动触发 `CI`;流程不会修改、提交或推送 `main`。
|
|
69
|
-
|
|
70
|
-
npm 包设置里必须添加 GitHub Actions 受信任的发布商,仓库为 `xu91102/claude-everything-Workflow`,workflow 文件名为 `ci.yml`,并允许 `npm publish`。
|
|
71
|
-
|
|
72
|
-
安装目标:
|
|
73
|
-
|
|
74
|
-
- Claude Code: `~/.claude/`
|
|
75
|
-
- Codex: `~/.codex/`
|
|
76
|
-
|
|
77
|
-
Claude Code 会安装 `CLAUDE.md` 并合并 `settings.json` 作为 hooks 入口;Codex 安装共享 Workflow 材料,不默认消费 Claude Code `settings.json`。顶层配置文件已存在且内容不同时,会先生成 `.bak.<timestamp>` 备份再覆盖;目录内容按仓库版本同步。
|
|
78
|
-
|
|
79
|
-
## 手动安装
|
|
80
|
-
|
|
81
|
-
### Windows
|
|
82
|
-
|
|
83
|
-
```powershell
|
|
84
|
-
powershell -ExecutionPolicy Bypass -File .\scripts\install.ps1 -ClaudeOnly
|
|
85
44
|
```
|
|
86
45
|
|
|
87
|
-
|
|
46
|
+
To install for only one host:
|
|
88
47
|
|
|
89
|
-
```
|
|
90
|
-
|
|
48
|
+
```sh
|
|
49
|
+
npx claude-everything-workflow install --claude-only
|
|
50
|
+
npx claude-everything-workflow install --codex-only
|
|
91
51
|
```
|
|
92
52
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
## 目录结构
|
|
53
|
+
### Install from source
|
|
96
54
|
|
|
97
|
-
```
|
|
98
|
-
claude-everything-Workflow
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
├── .github/
|
|
104
|
-
│ ├── scripts/
|
|
105
|
-
│ │ └── publish-release.js # 可重试的 npm 发布与 tag 事务
|
|
106
|
-
│ └── workflows/
|
|
107
|
-
│ └── ci.yml # PR / main 校验与 verify 后发布 npm
|
|
108
|
-
│
|
|
109
|
-
├── rules/ # 规则索引与按需加载规则
|
|
110
|
-
│ ├── 01-base.md # 基础设定
|
|
111
|
-
│ ├── 02-code-size.md # 代码规模约束
|
|
112
|
-
│ ├── 03-architecture.md # 架构原则
|
|
113
|
-
│ ├── 04-error-handling.md # 错误处理
|
|
114
|
-
│ ├── 05-git-workflow.md # Git 规范
|
|
115
|
-
│ ├── 06-comments.md # 注释规范
|
|
116
|
-
│ ├── 07-forbidden.md # 禁止事项
|
|
117
|
-
│ ├── 08-specialty-rules-index.md # 专项规则索引
|
|
118
|
-
│ ├── 09-first-principles-adversarial-testing.md # 第一性原则与对抗性测试
|
|
119
|
-
│ └── common/ # 通用最佳实践
|
|
120
|
-
│ ├── harness-engineering.md # Agent Harness 六层与执行循环
|
|
121
|
-
│ ├── context-hygiene.md # 上下文卫生与 Subagent 边界
|
|
122
|
-
│ ├── agent-orchestration.md # Agent 编排
|
|
123
|
-
│ ├── performance.md # Token 优化 & 模型选择
|
|
124
|
-
│ ├── hooks.md # Hook 系统最佳实践
|
|
125
|
-
│ ├── skills-learning.md # Skills 与持续学习
|
|
126
|
-
│ ├── testing.md # 测试与验证
|
|
127
|
-
│ └── pr-automation.md # PR 自动化与 CI 质量门
|
|
128
|
-
│
|
|
129
|
-
├── agents/ # 代理(专业任务委托)
|
|
130
|
-
│ ├── e2e-runner.md # E2E / Playwright(可选 Agent Browser)
|
|
131
|
-
│ ├── harness-optimizer.md # Harness 配置调优
|
|
132
|
-
│ └── ... # 其他专业代理
|
|
133
|
-
│
|
|
134
|
-
├── commands/ # 命令(斜杠快捷入口)
|
|
135
|
-
│ ├── code-review.md # /code-review → skills/code-review
|
|
136
|
-
│ ├── learn.md # /learn 统一学习管理
|
|
137
|
-
│ ├── pr.md # /pr 提交与创建 PR
|
|
138
|
-
│ ├── to-spec.md # /to-spec → spec-gate
|
|
139
|
-
│ └── verify.md # /verify 验证
|
|
140
|
-
│
|
|
141
|
-
├── references/ # 按需加载的长参考材料
|
|
142
|
-
│ └── agents/ # Agent 详细检查清单与示例
|
|
143
|
-
├── harness/
|
|
144
|
-
│ └── manifest.json # Skill 元数据与流程职责唯一登记表
|
|
145
|
-
│
|
|
146
|
-
├── scripts/ # 跨平台脚本
|
|
147
|
-
│ ├── install.sh # macOS / Linux / Git Bash / WSL 一键安装
|
|
148
|
-
│ ├── install.ps1 # Windows PowerShell 一键安装
|
|
149
|
-
│ └── learning/ # 学习系统手动维护脚本
|
|
150
|
-
│ └── review-confidence.js # 置信度审查报告
|
|
151
|
-
│
|
|
152
|
-
├── skills/
|
|
153
|
-
│ ├── README.md # Skill 分类索引;物理目录保持平铺以兼容发现
|
|
154
|
-
│ ├── using-superpowers/ # Skill 路由、优先级与门禁纪律
|
|
155
|
-
│ │ └── SKILL.md
|
|
156
|
-
│ ├── grilling/ # 重大用户决策的单问式压力测试
|
|
157
|
-
│ │ └── SKILL.md
|
|
158
|
-
│ ├── spec-gate/ # 零访谈工程 Spec 成稿、自审和用户批准
|
|
159
|
-
│ │ ├── SKILL.md
|
|
160
|
-
│ │ └── references/
|
|
161
|
-
│ ├── domain-modeling/ # 领域术语、关系、不变量和边界建模
|
|
162
|
-
│ │ └── SKILL.md
|
|
163
|
-
│ ├── subagent-driven-development/ # 独立 frontier ticket 的可选并行执行
|
|
164
|
-
│ │ └── SKILL.md
|
|
165
|
-
│ ├── visual-companion/ # 经同意后展示安全本地视觉方案
|
|
166
|
-
│ │ ├── SKILL.md
|
|
167
|
-
│ │ ├── references/
|
|
168
|
-
│ │ └── scripts/
|
|
169
|
-
│ ├── using-git-worktrees/ # 隔离式 worktree 执行准备
|
|
170
|
-
│ │ └── SKILL.md
|
|
171
|
-
│ ├── verification-before-completion/ # 完成声明前的新鲜验证门
|
|
172
|
-
│ │ └── SKILL.md
|
|
173
|
-
│ ├── e2e-testing/ # Playwright E2E 模式(POM、CI、制品)
|
|
174
|
-
│ │ └── SKILL.md
|
|
175
|
-
│ ├── iterative-retrieval/ # Subagent 迭代检索与上下文收敛
|
|
176
|
-
│ │ └── SKILL.md
|
|
177
|
-
│ ├── continuous-learning-v2/ # 自主学习系统
|
|
178
|
-
│ │ ├── SKILL.md # 技能说明
|
|
179
|
-
│ │ ├── config.json # 配置
|
|
180
|
-
│ │ ├── agents/ # Observer Agent
|
|
181
|
-
│ │ └── hooks/ # observe-v2.js 增强观察脚本
|
|
182
|
-
│ ├── test-driven-development/ # TDD 测试先行规则
|
|
183
|
-
│ └── learn/ # 学习到的模式,按分类保存
|
|
184
|
-
│ ├── pr/
|
|
185
|
-
│ ├── testing/
|
|
186
|
-
│ └── debugging/
|
|
187
|
-
│
|
|
188
|
-
└── hooks/ # 钩子脚本
|
|
189
|
-
├── runtime/ # Hook 运行时与 Profile 控制
|
|
190
|
-
│ ├── run-with-flags.js
|
|
191
|
-
│ └── hook-flags.js
|
|
192
|
-
├── commit-quality.js # 可选 Pre-commit 质量门
|
|
193
|
-
├── check-console-log.js # 禁止模式检测(console.log/debugger/@ts-ignore/any)
|
|
194
|
-
└── 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
|
|
195
61
|
```
|
|
196
62
|
|
|
197
|
-
|
|
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.
|
|
198
64
|
|
|
199
|
-
|
|
65
|
+
### What changes on your machine
|
|
200
66
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
- 当用户级 Workflow 注入到没有 `rules/` 的项目时,不能把项目规则目录缺失等同于“无规则”;必须继续检查对应的用户级规则目录。
|
|
206
|
-
- 回退只改变查找位置,不改变按需读取原则;仍然只读取当前任务直接相关的规则文件,不要默认全量加载 `rules/` 或 `rules/common/`。
|
|
207
|
-
- `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. |
|
|
208
71
|
|
|
209
|
-
|
|
210
|
-
“按需读取”撤销。评估成本时区分常驻入口、Skill 名称与描述、触发后的正文和模式专用引用。
|
|
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.
|
|
211
73
|
|
|
212
|
-
|
|
74
|
+
## How it works
|
|
213
75
|
|
|
214
|
-
|
|
76
|
+
Start with a normal task request. The workflow router selects relevant skills; you do not need to memorize every skill name.
|
|
215
77
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
- Skill 保留能改变决策的流程;普通任务只读所选入口,已在当前任务读过且未改变的内容可以复用。
|
|
220
|
-
- `using-superpowers` 仅在 grilling/Spec 返回或跨会话交接时读取 `references/process-outcomes.md`。
|
|
221
|
-
- `implement` 的普通交付共用实施、相称审查和验证步骤;只有 ticket 路径读取 `references/ticket-delivery.md`。审查深度统一由 `code-review` 决定。
|
|
222
|
-
- 预期 TDD RED 继续 GREEN;原因明确的失败修正后验证,根因不明或反复失败才进入完整诊断。已有证据仍对应最终状态时复用,不重复运行。
|
|
223
|
-
- 无可测试行为的文档、格式或纯配置整理运行对应校验;不为免写行为测试增加一次批准。
|
|
224
|
-
- 精简不删除安全约束、用户决策门、真实验证或 PR 授权。安装目录与仓库可能不同,更新须走已有备份安装流程。
|
|
225
|
-
|
|
226
|
-
## 按需 MCP 与上下文控制
|
|
227
|
-
|
|
228
|
-
默认 MCP 必须同时满足“通用”和“MCP 明显优于 CLI/API/原生能力”。GitHub、文档查询、Exa 搜索、Playwright E2E、memory 和 sequential-thinking 这类纯请求/响应或已有原生替代的能力,优先通过 skill、CLI/API 或 harness 原生能力按需触发,而不是默认常驻。
|
|
229
|
-
|
|
230
|
-
### 1. Claude Code:用户级 `~/.claude/settings.json`
|
|
231
|
-
|
|
232
|
-
复制 Workflow 到 `~/.claude/` 后,在 **`~/.claude/settings.json`**(没有则新建)里配置 **`mcpServers`**,与主仓根目录 **`.mcp.json`** 中 **`context7`** 条目保持一致:
|
|
233
|
-
|
|
234
|
-
```json
|
|
235
|
-
{
|
|
236
|
-
"mcpServers": {
|
|
237
|
-
"context7": {
|
|
238
|
-
"command": "npx",
|
|
239
|
-
"args": ["-y", "@upstash/context7-mcp@2.1.4"]
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
```
|
|
244
|
-
|
|
245
|
-
- 若文件中已有 hooks、其它字段,请**合并**进同一 JSON,**不要**整文件覆盖。
|
|
246
|
-
- 需要本机 **Node / npx**(`npx` 首次会拉取包)。
|
|
247
|
-
- 更全的 MCP 列表与说明见主仓 **`mcp-configs/mcp-servers.json`** 与主仓 **README「Configure MCPs」**。
|
|
248
|
-
|
|
249
|
-
**仅查文档时**:用户级只保留 **`context7`** 即可,不必一次打开主仓里的 GitHub、Exa、Playwright 等全部服务。
|
|
250
|
-
|
|
251
|
-
### 2. 节省 Token(与主仓 `rules/common/performance.md` 一致)
|
|
252
|
-
|
|
253
|
-
- MCP 工具描述会占用上下文;建议**同时启用的 MCP 少于 10 个**,并控制活跃工具数量。
|
|
254
|
-
- **策略**:从 **0 个或只开 Context7** 开始,需要再加其它 MCP。
|
|
255
|
-
- **缓存命中策略**:保持入口文件前缀稳定,默认只加载小型 bootstrap 和规则索引;长参考材料、专项规则、agent 详细清单和学习材料必须按需加载。
|
|
256
|
-
- **入口预算**:`CLAUDE.md` 控制在约 1.5K 字符内,`AGENTS.md` 控制在约 3.6K 字符内;超过预算时优先把细节下沉到 `rules/`、`references/` 或专项 skill。
|
|
257
|
-
- **按项目禁用**(Claude Code):在具体仓库的 **`.claude/settings.json`** 中使用 **`disabledMcpServers`**,写上全局已启用、但本项目不用的服务名(与 `mcpServers` 的**键名**一致),例如:
|
|
258
|
-
|
|
259
|
-
```json
|
|
260
|
-
{
|
|
261
|
-
"disabledMcpServers": [
|
|
262
|
-
"github",
|
|
263
|
-
"exa",
|
|
264
|
-
"playwright",
|
|
265
|
-
"sequential-thinking",
|
|
266
|
-
"memory"
|
|
267
|
-
]
|
|
268
|
-
}
|
|
78
|
+
```text
|
|
79
|
+
Request → inspect context → select the relevant workflow
|
|
80
|
+
→ investigate / implement → review → verify → report evidence
|
|
269
81
|
```
|
|
270
82
|
|
|
271
|
-
|
|
272
|
-
- **新增 MCP 前先评估**:判断它是否应该默认启用、按需启用,还是改为 CLI/API skill。
|
|
273
|
-
|
|
274
|
-
### 3. Cursor
|
|
83
|
+
For example:
|
|
275
84
|
|
|
276
|
-
|
|
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.
|
|
277
86
|
|
|
278
|
-
|
|
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).
|
|
279
88
|
|
|
280
|
-
|
|
|
89
|
+
| Entry point | Purpose |
|
|
281
90
|
| --- | --- |
|
|
282
|
-
| `/to-spec` |
|
|
283
|
-
| `/code-review` |
|
|
284
|
-
| `/verify` |
|
|
285
|
-
| `/pr` |
|
|
286
|
-
| `/learn` |
|
|
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
|
-
|
|
289
|
-
`using-superpowers` 提供只读流程建议,`grilling` 与 `domain-modeling` 组合带文档访谈,
|
|
290
|
-
`implement` 执行已批准工作的交付闭环。
|
|
97
|
+
These are repository command definitions; availability as native slash commands depends on the host. Ordinary language can also express the intended workflow.
|
|
291
98
|
|
|
292
|
-
##
|
|
99
|
+
## Design principles
|
|
293
100
|
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
npm run verify:upstream -- --upstream-root <mattpocock-skills-clone>
|
|
300
|
-
```
|
|
301
|
-
|
|
302
|
-
```powershell
|
|
303
|
-
powershell -ExecutionPolicy Bypass -File .\scripts\install.ps1 -DryRun
|
|
304
|
-
```
|
|
305
|
-
|
|
306
|
-
`verify-harness.js` 会检查 README 与 `commands/` 是否一致、薄封装 command 是否指向存在的 agent/skill、旧命令和旧衰减语义是否残留,并运行 `observe-v2` 最小 smoke test。
|
|
307
|
-
|
|
308
|
-
`harness/manifest.json` 登记每个 Skill 的版本、兼容 Harness、调用策略和唯一 owner;`ownership.surfaces` 只表示引用方,不与 `owner` 并列定义。`allowedTools: null` 当前表示未声明限制,不冒充运行时权限控制。`verify-harness.js` 会检查登记路径、Skill frontmatter、重复名称/路径、职责引用和 enforcement 级别。
|
|
309
|
-
|
|
310
|
-
调用策略按宿主分别校验:仅显式入口必须同时声明 Claude 的 `disable-model-invocation: true` 和 Codex 的 `policy.allow_implicit_invocation: false`(只兼容一个宿主时只要求该宿主字段)。工作流需要自动调用的 Skill 不设置这些禁用项;本项目按明确自然语言请求选择的入口保持可发现,具体名单和触发边界见 `skills/README.md`。允许调用不会自动授权外部写入、后台学习或启动视觉服务。
|
|
311
|
-
|
|
312
|
-
## Hook Profile 控制
|
|
313
|
-
|
|
314
|
-
通过环境变量控制 Hook 行为:
|
|
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.
|
|
315
106
|
|
|
316
|
-
|
|
317
|
-
# minimal | standard | strict (默认: standard)
|
|
318
|
-
export ECC_HOOK_PROFILE=standard
|
|
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.
|
|
319
108
|
|
|
320
|
-
|
|
321
|
-
export ECC_DISABLED_HOOKS="post:edit:console-log"
|
|
322
|
-
```
|
|
323
|
-
|
|
324
|
-
当前仓库以根目录 `settings.json` 作为 Claude Code hooks 入口;`hooks/` 目录统一保存低噪音 Hook 运行时和脚本实现。默认不启用会话启动、会话结束、停止或压缩前的弱摘要 Hook,避免污染上下文。`scripts/learning/` 只保存手动学习治理脚本,不作为 Hook 自动触发。
|
|
325
|
-
Codex 安装同一套 `hooks/` 脚本材料,但不会因为安装本仓文件而自动启用 Claude Code hooks;如未来需要 Codex 原生自动化,应新增明确 adapter。
|
|
326
|
-
|
|
327
|
-
## Ticket-first 工程交付闭环
|
|
328
|
-
|
|
329
|
-
本仓默认最短闭环、按风险逐级升级;跨会话交付参考
|
|
330
|
-
[mattpocock/skills](https://github.com/mattpocock/skills) 的 ticket-first 模型。主线是:
|
|
109
|
+
## Repository structure
|
|
331
110
|
|
|
332
111
|
```text
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
- `wayfinder` 已退休:不再分发独立的跨会话决策地图流程;升级安装清理旧入口,保留个人附加文件。
|
|
369
|
-
|
|
370
|
-
- `research` 已退休:工程资料直接检索并引用来源,不再自动创建研究报告;升级安装会清理旧的分发入口。
|
|
371
|
-
|
|
372
|
-
- `discover-unknowns-zh` 已退休:事实、证据和盲点检索转到 `iterative-retrieval` 或直接检索一手资料,可运行原型转到 `prototype`,多会话交付转到 `to-tickets`。
|
|
373
|
-
- 原 skill 的 `implementation-notes`、`explainer` 和 `quiz` 工件链不再属于本项目承诺的工作流。
|
|
374
|
-
- `skill-creator` 已退休:Skill 写作与验证规则收敛到 `rules/common/skills-learning.md`,开放生态发现按明确请求使用宿主已有工具处理。
|
|
375
|
-
- 详细实施计划、计划执行,以及依赖长计划的旧 SDD 辅助材料已退休:ticket 是唯一的跨会话实施合同;当前 SDD 只按 ticket 分派 fresh subagent。
|
|
376
|
-
|
|
377
|
-
Matt Pocock Engineering 能力映射固定在 `scripts/upstream-capability-map.json`;Harness 要求
|
|
378
|
-
上游 17 项 promoted Engineering 能力保留映射记录;15 项有本地 `covered` 或 `adapted` 证据,
|
|
379
|
-
`wayfinder` 与 `setup-matt-pocock-skills` 明确标为 `excluded` 并记录移除原因。保留主流程
|
|
380
|
-
跨 session 所依赖的 Productivity `handoff`。`scripts/upstream-capability-baseline.json`
|
|
381
|
-
记录固定 commit 的源文件 SHA-256;`verify:upstream` 可对 fresh clone 复核 commit、目录清单
|
|
382
|
-
和每个源文件,避免只依赖本地映射自报。
|
|
383
|
-
|
|
384
|
-
升级安装会按精确的退役文件清单删除旧分发文件;同名目录中的未知用户文件和 symlink 会保留并报告。
|
|
385
|
-
|
|
386
|
-
硬门禁:
|
|
387
|
-
|
|
388
|
-
- 开始非平凡任务前,先用 `using-superpowers` 判断并加载相关 process skill。
|
|
389
|
-
- 上下文或工具面变重时,先盘点常驻 Token 开销,再决定新增或删除 MCP/skill/agent。
|
|
390
|
-
- 子代理需要探索大仓库时,先用 `iterative-retrieval` 的 Dispatch/Evaluate/Refine/Loop 闭环收敛上下文,再回传证据。
|
|
391
|
-
- 完整流程适用时:没有批准的必需 Spec 不进入 ticket 或 implement,没有用户审核不进入实现,没有 review 不标记任务完成。
|
|
392
|
-
- 每张 ticket 必须说明交付行为、验收标准和真实 blocker;不要在 ticket 中复制文件路径、代码或逐步计划。
|
|
393
|
-
- 没有 failing test,不写行为代码。
|
|
394
|
-
- 没有新鲜验证证据,不声明完成、通过、已修复或 ready。
|
|
395
|
-
- 没有 verify,不进入 PR。
|
|
396
|
-
- 新功能必须使用 worktree,包括单文件新功能;其他隔离条件、基线与复用策略见 `rules/05-git-workflow.md`。
|
|
397
|
-
|
|
398
|
-
### Ticket-first 交付约束
|
|
399
|
-
|
|
400
|
-
- `to-tickets` 只写端到端行为、验收标准和 blocking edges;一张 ticket 是一个可在 fresh context 完成的 tracer bullet。
|
|
401
|
-
- 细节由实施会话结合当前代码发现;ticket 不写文件路径、行号、代码片段或分层改造步骤,避免文档在实现前过期。
|
|
402
|
-
- `implement` 处理一张 frontier ticket,或用户授权的低风险 direct/approved Spec 连贯范围;ticket 以自身作为 Spec source,direct scope 以明确用户请求和相称验证为 scope source。两条路径都执行适用的 TDD、相称审查和新鲜验证,只有 ticket 才 claim、resolve 并刷新依赖图。
|
|
403
|
-
- `subagent-driven-development` 是 router 选出的并行执行器:不再读取长计划,而是给每个 fresh subagent 一张已批准的 frontier ticket 和独立 worker worktree;通过 review 的 diff 必须汇入 integration worktree 并完成联合验证后才能 resolve。
|
|
404
|
-
- Visual Companion 使用带 `?key=` 的 per-session URL,HTTP/WebSocket 请求都需要 session key;默认 idle timeout 为 4 小时,可用 `--idle-timeout-minutes` 调整。
|
|
405
|
-
|
|
406
|
-
复杂度只影响执行与验证强度,不自动触发完整流程。普通新功能、多文件行为变化和存在低风险关键未知的任务仍走最短适用闭环;只有上述高风险类别或显式 opt-in 才进入完整流程。简单问答、翻译、格式调整、窄范围文档修正和无行为变化的小修复,可以直接处理,但完成前仍需运行与改动范围匹配的最小验证。
|
|
407
|
-
|
|
408
|
-
收尾阶段按 `/verify` -> `/pr` -> `/learn eval --preview` 推进。`/learn eval --preview` 是非阻塞学习建议门,只在模式高频、稳定、可复用时保存。
|
|
409
|
-
|
|
410
|
-
## Continuous Learning v2
|
|
411
|
-
|
|
412
|
-
### 工作流程
|
|
413
|
-
|
|
414
|
-
```
|
|
415
|
-
会话活动 → Hooks 观察 → projects/<project-id>/observations.jsonl
|
|
416
|
-
↓
|
|
417
|
-
Observer Agent (Haiku)
|
|
418
|
-
↓
|
|
419
|
-
projects/<project-id>/instincts/
|
|
420
|
-
↓ ↓
|
|
421
|
-
/learn eval 质量门 /learn promote 预览推广
|
|
422
|
-
↓ ↓
|
|
423
|
-
skills/learn/<category>/ global/instincts
|
|
424
|
-
↓
|
|
425
|
-
/learn evolve 评估是否升级为正式 skills/commands/agents
|
|
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
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## Documentation
|
|
129
|
+
|
|
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.
|
|
133
|
+
|
|
134
|
+
## Development
|
|
135
|
+
|
|
136
|
+
From a source checkout with dependencies installed:
|
|
137
|
+
|
|
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
|
|
426
146
|
```
|
|
427
147
|
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
`observations.jsonl`、project instincts 和 global instincts 是观察、候选和迁移来源;经 `/learn eval` 质量门确认后,最终学习产物以 `skills/learn/<category>/` 为权威路径。只有高频、稳定、可组合的模式才通过 `/learn evolve` 升级为正式 `skills/`、`commands/` 或 `agents/`。
|
|
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.
|
|
431
149
|
|
|
432
|
-
|
|
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).
|
|
433
151
|
|
|
434
|
-
|
|
435
|
-
| ---- | ------ | ------------ |
|
|
436
|
-
| 0.3 | 试探性 | 建议但不强制 |
|
|
437
|
-
| 0.5 | 中等 | 相关时应用 |
|
|
438
|
-
| 0.7 | 强 | 主动应用 |
|
|
439
|
-
| 0.9 | 核心 | 始终应用 |
|
|
152
|
+
## Acknowledgments
|
|
440
153
|
|
|
441
|
-
|
|
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.
|
|
442
155
|
|
|
443
|
-
##
|
|
156
|
+
## License
|
|
444
157
|
|
|
445
|
-
|
|
446
|
-
1. 复制到 ~/.claude/
|
|
447
|
-
2. 优先读取已有项目规则、追踪位置和领域文档,缺少必要信息时就地确认;需求清楚时直接实现;关键未知按需请求 grilling;高风险任务或显式 opt-in 用 `/to-spec` 写 design spec
|
|
448
|
-
3. router 判断跨会话交付时调用 `to-tickets`,确认拆分、验收和依赖后发布;单会话跳过 tickets
|
|
449
|
-
4. router 为无 blocker 的单张 ticket 或单会话 approved Spec 选择 `implement`;新功能使用 `using-git-worktrees` 隔离工作区,其他改动按 Git 规则判断。
|
|
450
|
-
多张独立 frontier tickets 时,router 选择 `subagent-driven-development`。
|
|
451
|
-
5. 有测试路径时由 `test-driven-development` 执行测试先行实现;关键路径由 e2e-testing 和 e2e-runner 维护 Playwright
|
|
452
|
-
6. 使用 /code-review 基于固定基点和范围合同审查;简单、明确、局部可逆且可验证的任务可自审,复杂或证据不足时独立审查,高风险使用双轴。`--mode self` 不能绕过风险条件,代理不可用时也不能降级
|
|
453
|
-
7. 使用 /verify 验证,通过后使用 /pr 进入提交与 PR 门
|
|
454
|
-
8. 使用 `/learn` 的 eval、projects、promote、evolve 或 prune 子命令管理学习闭环
|
|
455
|
-
```
|
|
158
|
+
Released under the [MIT License](LICENSE). Copyright © 2026 xu91102.
|