claude-everything-workflow 0.2.12 → 0.2.14

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-everything-workflow",
3
- "version": "0.2.12",
3
+ "version": "0.2.14",
4
4
  "description": "Evidence-based engineering workflows: implement, debug, review and verify.",
5
5
  "author": { "name": "xu91102" },
6
6
  "homepage": "https://github.com/xu91102/claude-everything-Workflow",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-everything-workflow",
3
- "version": "0.2.12",
3
+ "version": "0.2.14",
4
4
  "description": "Evidence-based engineering workflows: implement, debug, review and verify.",
5
5
  "author": { "name": "xu91102" },
6
6
  "homepage": "https://github.com/xu91102/claude-everything-Workflow",
package/AGENTS.md CHANGED
@@ -11,7 +11,7 @@
11
11
 
12
12
  ## 工程入口与核心红线
13
13
 
14
- - 工程交付(实现、修复、测试、审查)先进入 `using-superpowers`,按其判断选择并读取后续流程。
14
+ - 工程交付(实现、修复、测试、审查)先进入 `using-superpowers` 判断路径;若请求已明确命中单一专职 Skill(如排障、审查、解决冲突、验收、PR/验证),可直接读取该 Skill,不必先绕道读路由。需要多份 Skill 或规则时同一轮并发读取。
15
15
  - 禁止硬编码密钥/token/密码、SQL 拼接、未校验外部输入、明文密码、绕过验证或质量门 Hook,以及提交调试残留、依赖目录或敏感配置。
16
16
  - 需要复用用户已登录的 Chrome 做交互式验证时,按 `rules/common/testing.md` 的“浏览器验证”执行;不要新开浏览器验证登录态页面。
17
17
 
package/README.md CHANGED
@@ -69,7 +69,7 @@ The CLI selects the shell or PowerShell installer for your platform. The same `-
69
69
  | --- | --- | --- |
70
70
  | Claude Code | `~/.claude/` | Shared workflow files, `CLAUDE.md` bootstrap, rules, and merged hook settings. |
71
71
  | Codex | `~/.codex/` | Shared workflow files and `AGENTS.md`; Claude Code hooks are not automatically enabled. |
72
- | Antigravity (Gemini) | `~/.gemini/config/plugins/claude-everything-workflow/` | Native plugin (`plugin.json`, `hooks.json` & `hooks/`, `rules/AGENTS.md`, on-demand `references/rules/`, converted `skills/` and `agents/`, `scripts/learning/`). |
72
+ | Antigravity (Gemini) | `~/.gemini/config/plugins/claude-everything-workflow/` | Native plugin (`plugin.json`, `hooks.json` & `hooks/`, `rules/AGENTS.md`, on-demand `references/rules/`, converted `skills/`, `scripts/learning/`). |
73
73
 
74
74
  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.
75
75
 
@@ -144,7 +144,6 @@ claude-everything-Workflow/
144
144
  ├── skills/ # Task-specific workflows
145
145
  ├── rules/ # Project and specialist rules
146
146
  ├── commands/ # Command entry points
147
- ├── agents/ # Specialized agent definitions
148
147
  ├── hooks/ # Hook implementations
149
148
  ├── scripts/ # Installers and validators
150
149
  ├── references/ # Detailed guides and supporting material
package/README.zh-CN.md CHANGED
@@ -69,7 +69,7 @@ node bin/claude-everything-workflow.js install
69
69
  | --- | --- | --- |
70
70
  | Claude Code | `~/.claude/` | 共享工作流文件、`CLAUDE.md` 入口、规则,以及合并后的 hooks 配置。 |
71
71
  | Codex | `~/.codex/` | 共享工作流文件和 `AGENTS.md`;不会自动启用 Claude Code hooks。 |
72
- | Antigravity (Gemini) | `~/.gemini/config/plugins/claude-everything-workflow/` | 原生插件(`plugin.json`、`hooks.json` 与 `hooks/`、`rules/AGENTS.md`、按需加载的 `references/rules/`、转换后的 `skills/` 与 `agents/`、`scripts/learning/`)。 |
72
+ | Antigravity (Gemini) | `~/.gemini/config/plugins/claude-everything-workflow/` | 原生插件(`plugin.json`、`hooks.json` 与 `hooks/`、`rules/AGENTS.md`、按需加载的 `references/rules/`、转换后的 `skills/`、`scripts/learning/`)。 |
73
73
 
74
74
  安装修改的是用户级目录,可能影响多个项目。顶层配置内容不同时会先备份;共享目录中的同名文件按仓库版本同步。未知文件通常保留,已登记的退役文件按明确清单清理。升级前请备份对共享文件的个人修改。不要直接复制整个 `rules/` 目录,安装器会处理不同宿主各自的规则加载位置。
75
75
 
@@ -144,7 +144,6 @@ claude-everything-Workflow/
144
144
  ├── skills/ # 任务工作流
145
145
  ├── rules/ # 项目及专项规则
146
146
  ├── commands/ # 命令入口
147
- ├── agents/ # 专业代理定义
148
147
  ├── hooks/ # Hook 实现
149
148
  ├── scripts/ # 安装与校验脚本
150
149
  ├── references/ # 详细指南及参考材料
package/docs/plugins.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # 插件安装与更新
2
2
 
3
- CEW 提供 Claude Code 和 Codex 两种插件清单,复用仓库现有 `skills/`、`commands/`、`agents/`、规则及脚本,不维护另一套工作流副本。npm 安装方式继续保留。
3
+ CEW 提供 Claude Code 和 Codex 两种插件清单,复用仓库现有 `skills/`、`commands/`、规则及脚本,不维护另一套工作流副本。npm 安装方式继续保留。
4
4
 
5
5
  下列 GitHub 安装命令需要本次插件文件已经合并并推送到远端;本地开发可先按本文末尾验证。
6
6
 
@@ -68,8 +68,7 @@ npx claude-everything-workflow install --antigravity-only
68
68
  - `plugin.json`:原生插件清单(版本与 `package.json` 保持一致)。
69
69
  - `hooks.json` & `hooks/`:注册 Antigravity 原生 `PreToolUse`(`run_command`)提交密钥与质量拦截钩子,沿用 `ECC_HOOK_PROFILE`、`ECC_DISABLED_HOOKS` 控制;不自动启用 Claude Code 专用编辑/观察 hooks。
70
70
  - `rules/AGENTS.md`:唯一的常驻入口规则,指引按需读取 `references/rules/` 下的基础规则与 `common/` 专项规则。
71
- - `skills/`:同步全部工作流技能,并把非重复命令(`pr`、`verify`、`to-spec`、`learn`)转换为原生技能,同时把内部 `commands/` 引用改写为插件内技能路径;自动清理已退役技能。
72
- - `agents/`:转换工具名称与插件内引用路径为 Antigravity 原生子代理格式。
71
+ - `skills/`:同步对外工作流技能,并把独立命令(`pr`、`verify`、`learn`)转换为原生技能;`explicit-only` 内部技能(如 `implement`)与由 `learn` 承接的 `continuous-learning-v2` 放在 `references/skills/` 按需读取,`to-spec` 直接复用 `spec-gate`,以减少每轮常驻前缀体积;升级时安全清理旧版重复路径并保留个人文件。
73
72
  - `references/rules/02-implementation.md`:采用与 Codex 相同的 Git 三方合并机制,升级时保留个人修改。
74
73
 
75
74
  若本机存在旧版 `~/.gemini/AGENTS.md`,安装器不会自动删除,仅在输出中提示手动确认。
@@ -9,7 +9,8 @@
9
9
  "version": "0.1.1",
10
10
  "compatibility": [
11
11
  "claude-code",
12
- "codex"
12
+ "codex",
13
+ "antigravity"
13
14
  ],
14
15
  "allowedTools": null,
15
16
  "invocation": "implicit"
@@ -21,7 +22,8 @@
21
22
  "version": "0.1.1",
22
23
  "compatibility": [
23
24
  "claude-code",
24
- "codex"
25
+ "codex",
26
+ "antigravity"
25
27
  ],
26
28
  "allowedTools": null,
27
29
  "invocation": "implicit"
@@ -33,7 +35,8 @@
33
35
  "version": "2.1.0",
34
36
  "compatibility": [
35
37
  "claude-code",
36
- "codex"
38
+ "codex",
39
+ "antigravity"
37
40
  ],
38
41
  "allowedTools": null,
39
42
  "invocation": "implicit"
@@ -45,7 +48,8 @@
45
48
  "version": "0.1.2",
46
49
  "compatibility": [
47
50
  "claude-code",
48
- "codex"
51
+ "codex",
52
+ "antigravity"
49
53
  ],
50
54
  "allowedTools": null,
51
55
  "invocation": "implicit"
@@ -57,7 +61,8 @@
57
61
  "version": "0.1.2",
58
62
  "compatibility": [
59
63
  "claude-code",
60
- "codex"
64
+ "codex",
65
+ "antigravity"
61
66
  ],
62
67
  "allowedTools": null,
63
68
  "invocation": "implicit"
@@ -69,7 +74,8 @@
69
74
  "version": "0.1.1",
70
75
  "compatibility": [
71
76
  "claude-code",
72
- "codex"
77
+ "codex",
78
+ "antigravity"
73
79
  ],
74
80
  "allowedTools": null,
75
81
  "invocation": "implicit"
@@ -81,7 +87,8 @@
81
87
  "version": "0.1.1",
82
88
  "compatibility": [
83
89
  "claude-code",
84
- "codex"
90
+ "codex",
91
+ "antigravity"
85
92
  ],
86
93
  "allowedTools": null,
87
94
  "invocation": "implicit"
@@ -93,7 +100,8 @@
93
100
  "version": "0.1.1",
94
101
  "compatibility": [
95
102
  "claude-code",
96
- "codex"
103
+ "codex",
104
+ "antigravity"
97
105
  ],
98
106
  "allowedTools": null,
99
107
  "invocation": "explicit-only"
@@ -105,7 +113,8 @@
105
113
  "version": "0.1.1",
106
114
  "compatibility": [
107
115
  "claude-code",
108
- "codex"
116
+ "codex",
117
+ "antigravity"
109
118
  ],
110
119
  "allowedTools": null,
111
120
  "invocation": "implicit"
@@ -117,7 +126,8 @@
117
126
  "version": "0.1.1",
118
127
  "compatibility": [
119
128
  "claude-code",
120
- "codex"
129
+ "codex",
130
+ "antigravity"
121
131
  ],
122
132
  "allowedTools": null,
123
133
  "invocation": "implicit"
@@ -129,7 +139,8 @@
129
139
  "version": "0.1.0",
130
140
  "compatibility": [
131
141
  "claude-code",
132
- "codex"
142
+ "codex",
143
+ "antigravity"
133
144
  ],
134
145
  "allowedTools": null,
135
146
  "invocation": "implicit"
@@ -141,7 +152,8 @@
141
152
  "version": "0.1.1",
142
153
  "compatibility": [
143
154
  "claude-code",
144
- "codex"
155
+ "codex",
156
+ "antigravity"
145
157
  ],
146
158
  "allowedTools": null,
147
159
  "invocation": "implicit"
@@ -153,7 +165,8 @@
153
165
  "version": "0.1.1",
154
166
  "compatibility": [
155
167
  "claude-code",
156
- "codex"
168
+ "codex",
169
+ "antigravity"
157
170
  ],
158
171
  "allowedTools": null,
159
172
  "invocation": "implicit"
@@ -165,7 +178,8 @@
165
178
  "version": "0.1.1",
166
179
  "compatibility": [
167
180
  "claude-code",
168
- "codex"
181
+ "codex",
182
+ "antigravity"
169
183
  ],
170
184
  "allowedTools": null,
171
185
  "invocation": "implicit"
@@ -177,7 +191,8 @@
177
191
  "version": "0.1.0",
178
192
  "compatibility": [
179
193
  "claude-code",
180
- "codex"
194
+ "codex",
195
+ "antigravity"
181
196
  ],
182
197
  "allowedTools": null,
183
198
  "invocation": "implicit"
@@ -189,7 +204,8 @@
189
204
  "version": "0.1.1",
190
205
  "compatibility": [
191
206
  "claude-code",
192
- "codex"
207
+ "codex",
208
+ "antigravity"
193
209
  ],
194
210
  "allowedTools": null,
195
211
  "invocation": "implicit"
@@ -201,7 +217,8 @@
201
217
  "version": "0.1.3",
202
218
  "compatibility": [
203
219
  "claude-code",
204
- "codex"
220
+ "codex",
221
+ "antigravity"
205
222
  ],
206
223
  "allowedTools": null,
207
224
  "invocation": "implicit"
@@ -213,7 +230,8 @@
213
230
  "version": "0.1.1",
214
231
  "compatibility": [
215
232
  "claude-code",
216
- "codex"
233
+ "codex",
234
+ "antigravity"
217
235
  ],
218
236
  "allowedTools": null,
219
237
  "invocation": "implicit"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-everything-workflow",
3
- "version": "0.2.12",
3
+ "version": "0.2.14",
4
4
  "description": "Claude Code, Codex, and Antigravity harness with rules, skills, agents, hooks, and verification gates.",
5
5
  "keywords": [
6
6
  "claude-code",
@@ -46,7 +46,6 @@
46
46
  "docs/plugins.md",
47
47
  "evals/",
48
48
  "settings.json",
49
- "agents/",
50
49
  "bin/",
51
50
  "commands/",
52
51
  "hooks/",
@@ -1,7 +1,9 @@
1
1
  # 性能与上下文成本
2
2
 
3
- - 选择能可靠完成任务的最低成本模型;深度架构、复杂分析或研究才升级推理能力。
3
+ - 在会话起点或独立子代理边界选择能可靠完成任务的最低成本模型与推理档位;长会话中途避免来回切换模型或思考档位,以免前缀缓存(Prompt Cache)失效。
4
4
  - 默认 MCP 必须高频通用且明显优于 CLI/API;同时启用少于 10 个 MCP、活跃工具少于 80 个。
5
+ - 保持前缀稳定与只追加:不在任务中途开关插件/MCP 或频繁改写常驻规则;独立读取与检索尽量同轮并发执行,缩短步间停顿以留在缓存热窗口内。
6
+ - 长停顿后回到大上下文会话或阶段切换时,优先先压缩(/compact)或新开会话再继续,避免冷上下文全量重算;重型检索和日志排查交给子代理,压低主会话重算基数。
5
7
  - 研究、调试或里程碑完成并准备切换阶段时压缩;依赖近期细节、关键决策未整理或风险未确认时不压缩。
6
8
  - 压缩保留目标、进度、关键文件/接口/决策、风险、阻塞、下一步和待验证假设;压缩后确认这些信息仍可恢复。
7
9
  - 多 Agent 的选择以 `rules/common/agent-orchestration.md` 为唯一来源;性能评估只计算额外上下文、工具和回传成本。
@@ -25,6 +25,20 @@ function isSafeRelative(value) {
25
25
  );
26
26
  }
27
27
 
28
+ function validateHashMap(rawMap, label, isValidKey) {
29
+ const entries = rawMap === undefined ? {} : rawMap;
30
+ if (!entries || typeof entries !== "object" || Array.isArray(entries)) {
31
+ throw new Error(`Invalid retired ${label} manifest`);
32
+ }
33
+ for (const [key, hashes] of Object.entries(entries)) {
34
+ if (!isValidKey(key) || !Array.isArray(hashes) || hashes.length === 0 ||
35
+ !hashes.every((hash) => typeof hash === "string" && /^[a-f0-9]{64}$/.test(hash))) {
36
+ throw new Error(`Invalid retired ${label} entry: ${key}`);
37
+ }
38
+ }
39
+ return Object.entries(entries);
40
+ }
41
+
28
42
  function validateManifest(manifest) {
29
43
  if (
30
44
  !manifest ||
@@ -46,15 +60,17 @@ function validateManifest(manifest) {
46
60
  throw new Error(`Invalid retired skill entry: ${skill}`);
47
61
  }
48
62
  }
49
- const agents = manifest.retired_agent_hashes === undefined ? {} : manifest.retired_agent_hashes;
50
- if (!agents || typeof agents !== "object" || Array.isArray(agents)) throw new Error("Invalid retired agent manifest");
51
- for (const [name, hashes] of Object.entries(agents)) {
52
- if (!/^[a-z0-9-]+\.md$/.test(name) || !Array.isArray(hashes) || hashes.length === 0 ||
53
- !hashes.every((hash) => typeof hash === "string" && /^[a-f0-9]{64}$/.test(hash))) {
54
- throw new Error(`Invalid retired agent entry: ${name}`);
55
- }
56
- }
57
- return { skills: entries, agents: Object.entries(agents) };
63
+ const agents = validateHashMap(
64
+ manifest.retired_agent_hashes,
65
+ "agent",
66
+ (name) => /^[a-z0-9-]+\.md$/.test(name),
67
+ );
68
+ const references = validateHashMap(
69
+ manifest.retired_reference_hashes,
70
+ "reference",
71
+ (relative) => isSafeRelative(relative) && relative.endsWith(".md"),
72
+ );
73
+ return { skills: entries, agents, references };
58
74
  }
59
75
 
60
76
  function lstatIfExists(target) {
@@ -177,27 +193,40 @@ function cleanupSkill({ installRoot, skill, knownFiles, dryRun }) {
177
193
  }
178
194
  }
179
195
 
180
- function cleanupRetiredAgents(installRoot, agents, dryRun) {
181
- const directory = path.join(installRoot, "agents");
182
- if (lstatIfExists(installRoot)?.isSymbolicLink() || !lstatIfExists(directory)?.isDirectory()) return;
183
- for (const [name, hashes] of agents) {
184
- const target = path.join(directory, name);
196
+ function cleanupHashedFiles({ installRoot, subDir, entries, label, removeEmptyParents, dryRun }) {
197
+ const rootDir = path.join(installRoot, subDir);
198
+ if (lstatIfExists(installRoot)?.isSymbolicLink()) return;
199
+ const dirStat = lstatIfExists(rootDir);
200
+ if (!dirStat) return;
201
+ if (dirStat.isSymbolicLink() || !dirStat.isDirectory()) return;
202
+
203
+ const directories = new Set();
204
+ for (const [relative, hashes] of entries) {
205
+ const target = path.join(rootDir, relative);
206
+ if (removeEmptyParents) collectKnownDirectories(rootDir, relative, directories);
207
+ if (hasSymlinkParent(rootDir, target)) {
208
+ writeLine(`Preserving retired ${label} through symlink: ${target}`);
209
+ continue;
210
+ }
185
211
  const stat = lstatIfExists(target);
186
212
  if (!stat) continue;
187
213
  if (stat.isSymbolicLink()) {
188
- writeLine(`Preserving symlinked retired agent: ${target}`);
214
+ writeLine(`Preserving symlinked retired ${label}: ${target}`);
189
215
  continue;
190
216
  }
191
217
  if (!stat.isFile()) continue;
192
- // SHA-256 of LF text, including the distinct files generated for Antigravity.
218
+ // SHA-256 of LF text, including host-transformed copies generated for Antigravity.
193
219
  const text = fs.readFileSync(target, "utf8").replace(/\r\n/g, "\n");
194
220
  if (!hashes.includes(createHash("sha256").update(text).digest("hex"))) {
195
- writeLine(`Preserving customized retired agent: ${target}`);
221
+ writeLine(`Preserving customized retired ${label}: ${target}`);
196
222
  continue;
197
223
  }
198
- writeLine(`${dryRun ? "[dry-run] " : ""}Remove retired agent: ${target}`);
224
+ writeLine(`${dryRun ? "[dry-run] " : ""}Remove retired ${label}: ${target}`);
199
225
  if (!dryRun) fs.rmSync(target, { force: true });
200
226
  }
227
+ if (!dryRun && removeEmptyParents) {
228
+ removeEmptyKnownDirectories(directories);
229
+ }
201
230
  }
202
231
 
203
232
  function main(argv = process.argv.slice(2)) {
@@ -220,7 +249,22 @@ function main(argv = process.argv.slice(2)) {
220
249
  if (validateOnly) return 0;
221
250
 
222
251
  const installRoot = path.resolve(positional[0]);
223
- cleanupRetiredAgents(installRoot, retired.agents, dryRun);
252
+ cleanupHashedFiles({
253
+ installRoot,
254
+ subDir: "agents",
255
+ entries: retired.agents,
256
+ label: "agent",
257
+ removeEmptyParents: false,
258
+ dryRun,
259
+ });
260
+ cleanupHashedFiles({
261
+ installRoot,
262
+ subDir: "references",
263
+ entries: retired.references,
264
+ label: "reference",
265
+ removeEmptyParents: true,
266
+ dryRun,
267
+ });
224
268
  const skillsRoot = path.join(installRoot, "skills");
225
269
  const skillsRootStat = lstatIfExists(skillsRoot);
226
270
  if (skillsRootStat?.isSymbolicLink()) {