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.
- 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 +13 -18
- package/CLAUDE.md +1 -5
- package/README.md +101 -368
- package/README.zh-CN.md +158 -0
- package/agents/database-reviewer.md +0 -3
- package/agents/e2e-runner.md +8 -141
- package/commands/code-review.md +9 -30
- package/commands/pr.md +1 -6
- package/commands/verify.md +7 -11
- package/docs/plugins.md +91 -0
- package/harness/manifest.json +310 -0
- package/package.json +14 -2
- package/references/git-worktrees.md +29 -0
- package/rules/01-base.md +9 -26
- package/rules/02-code-size.md +5 -9
- package/rules/03-architecture.md +8 -22
- package/rules/04-error-handling.md +4 -5
- package/rules/05-git-workflow.md +6 -3
- package/rules/06-comments.md +3 -9
- package/rules/07-forbidden.md +4 -3
- package/rules/common/agent-orchestration.md +2 -4
- package/rules/common/context-hygiene.md +2 -0
- package/rules/common/hooks.md +2 -0
- package/rules/common/pr-automation.md +1 -1
- package/rules/common/skills-learning.md +2 -2
- package/rules/common/testing.md +10 -2
- package/scripts/install-rules.js +100 -0
- package/scripts/install.ps1 +29 -3
- package/scripts/install.sh +26 -2
- package/scripts/legacy-common-rule-hashes.json +78 -0
- package/scripts/retired-skill-files.json +26 -0
- package/scripts/upstream-capability-map.json +14 -9
- package/scripts/verify/continuation-checks.test.js +101 -0
- package/scripts/verify/core.js +1 -0
- package/scripts/verify/grilling-spec-gate-checks.js +48 -11
- package/scripts/verify/install-rules.test.js +165 -0
- package/scripts/verify/metadata-checks.js +35 -26
- package/scripts/verify/plugin-distribution.test.js +40 -0
- package/scripts/verify/repository-checks.js +39 -80
- package/scripts/verify/skill-invocation.test.js +87 -0
- package/scripts/verify/skill-manifest-checks.js +197 -0
- package/scripts/verify/skill-manifest-checks.test.js +135 -0
- package/scripts/verify/workflow-checks.js +28 -150
- package/scripts/verify-harness.js +2 -0
- package/scripts/verify-upstream-capability-map.js +2 -1
- package/skills/README.md +11 -15
- package/skills/code-review/SKILL.md +54 -41
- package/skills/codebase-design/SKILL.md +1 -1
- package/skills/continuous-learning-v2/SKILL.md +4 -2
- package/skills/domain-modeling/SKILL.md +9 -6
- package/skills/e2e-testing/SKILL.md +20 -310
- package/skills/e2e-testing/references/playwright-patterns.md +324 -0
- package/skills/feature-acceptance/SKILL.md +6 -2
- package/skills/grilling/SKILL.md +4 -3
- package/skills/handoff/SKILL.md +3 -4
- package/skills/handoff/agents/openai.yaml +5 -0
- package/skills/implement/SKILL.md +32 -81
- package/skills/implement/references/ticket-delivery.md +43 -0
- package/skills/improve-codebase-architecture/SKILL.md +1 -2
- package/skills/improve-codebase-architecture/agents/openai.yaml +5 -0
- package/skills/prototype/SKILL.md +1 -1
- package/skills/resolving-merge-conflicts/SKILL.md +1 -1
- package/skills/spec-gate/SKILL.md +4 -2
- package/skills/subagent-driven-development/SKILL.md +3 -3
- package/skills/systematic-debugging/SKILL.md +41 -3
- package/skills/systematic-debugging/references/diagnostic-scenarios.md +28 -0
- package/skills/test-driven-development/SKILL.md +6 -2
- package/skills/to-tickets/SKILL.md +5 -3
- package/skills/triage/SKILL.md +4 -4
- package/skills/triage/agents/openai.yaml +5 -0
- package/skills/using-superpowers/SKILL.md +33 -96
- package/skills/using-superpowers/references/process-outcomes.md +44 -0
- package/skills/visual-companion/SKILL.md +1 -1
- package/agents/architect.md +0 -59
- package/agents/code-reviewer.md +0 -28
- package/agents/planner.md +0 -40
- package/agents/tdd-guide.md +0 -101
- package/references/agents/database-reviewer.md +0 -657
- package/skills/find-skills/SKILL.md +0 -142
- package/skills/iterative-retrieval/SKILL.md +0 -84
- package/skills/project-context/SKILL.md +0 -94
- package/skills/project-context/agents/openai.yaml +0 -6
- package/skills/project-context/references/project-context-template.md +0 -61
- package/skills/research/SKILL.md +0 -48
- package/skills/using-git-worktrees/SKILL.md +0 -64
- package/skills/verification-before-completion/SKILL.md +0 -77
- package/skills/wayfinder/SKILL.md +0 -57
package/README.md
CHANGED
|
@@ -1,425 +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
|
-
本地发布前检查:
|
|
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
|
-
|
|
46
|
+
To install for only one host:
|
|
86
47
|
|
|
87
|
-
```
|
|
88
|
-
|
|
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
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
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
|
-
|
|
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
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
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
|
-
|
|
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
|
-
|
|
74
|
+
## How it works
|
|
211
75
|
|
|
212
|
-
|
|
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
|
-
|
|
215
|
-
|
|
216
|
-
|
|
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
|
-
|
|
254
|
-
- **新增 MCP 前先评估**:判断它是否应该默认启用、按需启用,还是改为 CLI/API skill。
|
|
83
|
+
For example:
|
|
255
84
|
|
|
256
|
-
|
|
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
|
-
|
|
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` |
|
|
265
|
-
| `/code-review` |
|
|
266
|
-
| `/verify` |
|
|
267
|
-
| `/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
|
-
|
|
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
|
-
|
|
99
|
+
## Design principles
|
|
291
100
|
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
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
|
-
|
|
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
|
-
##
|
|
304
|
-
|
|
305
|
-
本仓默认最短闭环、按风险逐级升级;跨会话交付参考
|
|
306
|
-
[mattpocock/skills](https://github.com/mattpocock/skills) 的 ticket-first 模型。主线是:
|
|
109
|
+
## Repository structure
|
|
307
110
|
|
|
308
111
|
```text
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
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
|
-
|
|
338
|
-
|
|
339
|
-
旧入口名 `brainstorming` 兼容一个发布周期:中央路由会提示迁移并按 formal Spec 请求处理,但不再安装或发现同名 Skill。`grilling` 是唯一需求澄清引擎,`spec-gate` 只负责零访谈成稿、自审和用户批准。
|
|
128
|
+
## Documentation
|
|
340
129
|
|
|
341
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|