claude-everything-workflow 0.2.3 → 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 +11 -17
- package/README.md +107 -404
- package/README.zh-CN.md +158 -0
- package/agents/database-reviewer.md +0 -3
- package/docs/plugins.md +91 -0
- package/harness/manifest.json +8 -44
- package/package.json +8 -1
- package/references/git-worktrees.md +29 -0
- package/rules/05-git-workflow.md +2 -0
- 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 +9 -23
- 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 +3 -1
- package/skills/subagent-driven-development/SKILL.md +1 -1
- package/skills/systematic-debugging/SKILL.md +34 -2
- 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/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.zh-CN.md
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
# Claude Everything Workflow
|
|
2
|
+
|
|
3
|
+
[](LICENSE)
|
|
4
|
+
[](https://github.com/xu91102/claude-everything-Workflow/actions/workflows/ci.yml)
|
|
5
|
+
|
|
6
|
+
**面向 Claude Code 和 Codex 的可复用工程工作流。**
|
|
7
|
+
|
|
8
|
+
[English](README.md) · **简体中文**
|
|
9
|
+
|
|
10
|
+
让编程 Agent 用一致的方法排查问题、实现改动、审查结果,并清楚报告实际验证了什么。Claude Everything Workflow(CEW)将规则、任务技能、命令入口和辅助脚本打包为可安装的 Agent Harness,也就是围绕 Agent 的指令与工具体系。
|
|
11
|
+
|
|
12
|
+
CEW 使用你已有的项目和模型,不提供模型,也不替代 Claude Code 或 Codex。首页提供中英文版本,分发的工作流指令目前以中文为主。
|
|
13
|
+
|
|
14
|
+
[安装](#安装) · [如何使用](#如何使用) · [设计原则](#设计原则) · [文档](#文档)
|
|
15
|
+
|
|
16
|
+
## 它能做什么
|
|
17
|
+
|
|
18
|
+
| 场景 | CEW 提供的支持 |
|
|
19
|
+
| --- | --- |
|
|
20
|
+
| 交付改动 | 从明确需求到实现、审查、验证的完整路径。 |
|
|
21
|
+
| 排查故障 | 调用链追踪、可检验假设、定向实验,以及有证据的根因报告。 |
|
|
22
|
+
| 审查代码 | 基于固定版本和明确范围,按风险选择审查深度。 |
|
|
23
|
+
| 处理较大任务 | 按需使用正式设计、依赖任务、隔离并行执行和交接。 |
|
|
24
|
+
| 控制上下文 | 精简入口,只加载与当前任务有关的详细材料。 |
|
|
25
|
+
| 如实报告进展 | 区分已定位、已修复、测试通过、CI 通过和已发布。 |
|
|
26
|
+
|
|
27
|
+
## 安装
|
|
28
|
+
|
|
29
|
+
也支持 **Claude Code / Codex 插件安装**,从 GitHub 插件市场获取并更新,保留原有 npm 安装方式。见[插件安装与更新](docs/plugins.md)。
|
|
30
|
+
|
|
31
|
+
### 环境要求
|
|
32
|
+
|
|
33
|
+
- 已安装并配置 Claude Code 和/或 Codex。
|
|
34
|
+
- Node.js **18+**,以及 npm/npx。
|
|
35
|
+
- macOS/Linux:Bash 和 `rsync`。Windows:PowerShell;Git Bash/WSL 配有 Bash 和 `rsync` 时也可使用 shell 安装器。
|
|
36
|
+
|
|
37
|
+
### 从 npm 安装
|
|
38
|
+
|
|
39
|
+
先预览,再安装到两个宿主:
|
|
40
|
+
|
|
41
|
+
```sh
|
|
42
|
+
npx claude-everything-workflow install --dry-run
|
|
43
|
+
npx claude-everything-workflow install
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
只安装到其中一个:
|
|
47
|
+
|
|
48
|
+
```sh
|
|
49
|
+
npx claude-everything-workflow install --claude-only
|
|
50
|
+
npx claude-everything-workflow install --codex-only
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### 从源码安装
|
|
54
|
+
|
|
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
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
命令行入口会按系统选择 shell 或 PowerShell 安装器,同样支持 `--claude-only` 和 `--codex-only`。npm 命令安装已发布版本;源码命令安装当前 checkout 中的内容。
|
|
64
|
+
|
|
65
|
+
### 安装会修改什么
|
|
66
|
+
|
|
67
|
+
| 宿主 | 安装目录 | 接入方式 |
|
|
68
|
+
| --- | --- | --- |
|
|
69
|
+
| Claude Code | `~/.claude/` | 共享工作流文件、`CLAUDE.md` 入口、规则,以及合并后的 hooks 配置。 |
|
|
70
|
+
| Codex | `~/.codex/` | 共享工作流文件和 `AGENTS.md`;不会自动启用 Claude Code hooks。 |
|
|
71
|
+
|
|
72
|
+
安装修改的是用户级目录,可能影响多个项目。顶层配置内容不同时会先备份;共享目录中的同名文件按仓库版本同步。未知文件通常保留,已登记的退役文件按明确清单清理。升级前请备份对共享文件的个人修改。不要直接复制整个 `rules/` 目录,安装器会处理两个宿主不同的规则加载位置。
|
|
73
|
+
|
|
74
|
+
## 如何使用
|
|
75
|
+
|
|
76
|
+
直接用自然语言描述任务,路由会选择相关技能,不需要记住所有 Skill 名称。
|
|
77
|
+
|
|
78
|
+
```text
|
|
79
|
+
提出任务 → 读取现场 → 选择相关工作流
|
|
80
|
+
→ 排查 / 实现 → 审查 → 验证 → 报告证据
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
例如:
|
|
84
|
+
|
|
85
|
+
> 排查这个请求为什么偶发失败。沿实际调用链验证不同解释,确认根因后修复,报告验证结果和仍未验证的部分。
|
|
86
|
+
|
|
87
|
+
明确、低风险的工作走较短路径;未决用户选择、正式设计和回退成本高的工作需要更多确认与验证。需要时可使用跨会话任务与并行代理。具体路由及授权边界由[工作流入口](skills/using-superpowers/SKILL.md)和[项目规则](AGENTS.md)维护。
|
|
88
|
+
|
|
89
|
+
| 入口 | 用途 |
|
|
90
|
+
| --- | --- |
|
|
91
|
+
| `/to-spec` | 编写正式工程设计,交由用户批准。 |
|
|
92
|
+
| `/code-review` | 按明确范围和固定基线审查改动。 |
|
|
93
|
+
| `/verify` | 运行相关验证。 |
|
|
94
|
+
| `/pr` | 在用户授权内整理提交与 PR。 |
|
|
95
|
+
| `/learn` | 显式管理可复用学习及其评估。 |
|
|
96
|
+
|
|
97
|
+
这些是仓库提供的命令定义,是否显示为原生斜杠命令取决于宿主;也可以用自然语言提出相同需求。
|
|
98
|
+
|
|
99
|
+
## 设计原则
|
|
100
|
+
|
|
101
|
+
1. **先有证据,再下结论。** 合理猜测不等于根因,本地检查通过也不等于生产发布成功。
|
|
102
|
+
2. **选择最短的适用流程。** 按任务和风险安排流程与验证,不为套模板而制造文档。
|
|
103
|
+
3. **按需加载上下文。** 入口保持精简,专项规则、技能和参考资料只在相关任务中读取。
|
|
104
|
+
4. **尊重项目约定与用户控制。** 保护现有改动,服从目标项目的明确要求。安装技能不自动授权发布、外部写入或破坏性操作。
|
|
105
|
+
5. **每项规则只有一个维护入口。** 路由、Git 边界和验证要求分别由指定来源维护,避免多套规则互相冲突。
|
|
106
|
+
|
|
107
|
+
这些指令用于引导 Agent 行为,不是运行时安全隔离,也不保证每次都能找到根因。仓库检查验证结构与约定,真实任务效果需要单独评估。
|
|
108
|
+
|
|
109
|
+
## 目录结构
|
|
110
|
+
|
|
111
|
+
```text
|
|
112
|
+
claude-everything-Workflow/
|
|
113
|
+
├── README.md # 英文首页
|
|
114
|
+
├── README.zh-CN.md # 中文首页
|
|
115
|
+
├── LICENSE # MIT 许可证
|
|
116
|
+
├── AGENTS.md # 共享规则入口
|
|
117
|
+
├── CLAUDE.md # Claude Code 入口
|
|
118
|
+
├── skills/ # 任务工作流
|
|
119
|
+
├── rules/ # 项目及专项规则
|
|
120
|
+
├── commands/ # 命令入口
|
|
121
|
+
├── agents/ # 专业代理定义
|
|
122
|
+
├── hooks/ # Hook 实现
|
|
123
|
+
├── scripts/ # 安装与校验脚本
|
|
124
|
+
├── references/ # 详细指南及参考材料
|
|
125
|
+
└── harness/ # Skill 元数据与职责登记
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## 文档
|
|
129
|
+
|
|
130
|
+
- [Skill 分类索引](skills/README.md):可用工作流及其分类。
|
|
131
|
+
- [排障工作流](skills/systematic-debugging/SKILL.md):调查方法与完成条件。
|
|
132
|
+
- [验证规则](rules/common/testing.md):声明完成前需要哪些证据。
|
|
133
|
+
|
|
134
|
+
## 开发与贡献
|
|
135
|
+
|
|
136
|
+
在已安装依赖的源码目录运行:
|
|
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
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
`verify:upstream` 检查已登记的上游能力映射,不代表与最新上游完全一致。`npx claude-everything-workflow verify` 检查已发布的分发包,而不是当前业务项目。两者都不能证明 Agent 的真实任务效果。
|
|
149
|
+
|
|
150
|
+
提交贡献时说明问题与预期行为,保持改动范围集中,并列出实际运行的检查。具体要求见 [Git 规则](rules/05-git-workflow.md)。
|
|
151
|
+
|
|
152
|
+
## 致谢
|
|
153
|
+
|
|
154
|
+
项目参考了 [Everything Claude Code](https://github.com/affaan-m/everything-claude-code)、[Superpowers](https://github.com/obra/superpowers) 和 [Matt Pocock 的 skills](https://github.com/mattpocock/skills),并按本项目的工作流进行适配。
|
|
155
|
+
|
|
156
|
+
## 许可证
|
|
157
|
+
|
|
158
|
+
采用 [MIT 开源许可证](LICENSE)。Copyright © 2026 xu91102。
|
|
@@ -14,7 +14,6 @@ model: opus
|
|
|
14
14
|
- 默认以只读审查为主,先返回发现和证据。
|
|
15
15
|
- 只有用户明确要求修复时,才建议或执行迁移、索引或 SQL 改动。
|
|
16
16
|
- 不读取生产凭据,不直接连接生产数据库,除非用户明确授权并提供安全环境。
|
|
17
|
-
- 需要完整检查清单、SQL 示例或 Supabase 细节时,再读取 `references/agents/database-reviewer.md`。
|
|
18
17
|
|
|
19
18
|
## 审查流程
|
|
20
19
|
|
|
@@ -39,6 +38,4 @@ model: opus
|
|
|
39
38
|
## 需要验证
|
|
40
39
|
- [EXPLAIN / 测试 / 迁移回滚检查]
|
|
41
40
|
|
|
42
|
-
## 参考
|
|
43
|
-
- 详细清单:`references/agents/database-reviewer.md`
|
|
44
41
|
```
|
package/docs/plugins.md
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# 插件安装与更新
|
|
2
|
+
|
|
3
|
+
CEW 提供 Claude Code 和 Codex 两种插件清单,复用仓库现有 `skills/`、`commands/`、`agents/`、规则及脚本,不维护另一套工作流副本。npm 安装方式继续保留。
|
|
4
|
+
|
|
5
|
+
下列 GitHub 安装命令需要本次插件文件已经合并并推送到远端;本地开发可先按本文末尾验证。
|
|
6
|
+
|
|
7
|
+
## Claude Code
|
|
8
|
+
|
|
9
|
+
在 Claude Code 中执行:
|
|
10
|
+
|
|
11
|
+
```text
|
|
12
|
+
/plugin marketplace add xu91102/claude-everything-Workflow
|
|
13
|
+
/plugin install claude-everything-workflow@cew
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
重启会话后,可调用插件中的技能和命令入口:
|
|
17
|
+
|
|
18
|
+
```text
|
|
19
|
+
/claude-everything-workflow:using-superpowers 帮我排查这个请求失败的问题
|
|
20
|
+
/claude-everything-workflow:code-review
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
更新已安装版本:
|
|
24
|
+
|
|
25
|
+
```text
|
|
26
|
+
/plugin marketplace update cew
|
|
27
|
+
/plugin update claude-everything-workflow@cew
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
更新后重启会话。插件提供编辑检查和提交质量 hook,沿用 `ECC_HOOK_PROFILE`、`ECC_DISABLED_HOOKS` 控制。不默认开启持续学习观察 hook。
|
|
31
|
+
|
|
32
|
+
## Codex
|
|
33
|
+
|
|
34
|
+
在支持 `codex plugin` 的 CLI 中执行:
|
|
35
|
+
|
|
36
|
+
```sh
|
|
37
|
+
codex plugin marketplace add xu91102/claude-everything-Workflow
|
|
38
|
+
codex plugin add claude-everything-workflow@cew
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
也可以添加市场后,在应用插件目录中选择 CEW 安装。开启新任务,在技能选择器中选择本插件的 `using-superpowers`,并描述工程任务:
|
|
42
|
+
|
|
43
|
+
```text
|
|
44
|
+
使用 Claude Everything Workflow 插件中的 using-superpowers 技能,帮我实现这个改动……
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
该入口保留原有工作流,不增加插件专用的上下文加载逻辑。Codex 版提供技能和随包参考文件,不自动注册 Claude 专用 hooks 或 `commands/` 原生斜杠命令。
|
|
48
|
+
|
|
49
|
+
更新 GitHub 市场快照,再安装最新快照中的插件,并开启新任务:
|
|
50
|
+
|
|
51
|
+
```sh
|
|
52
|
+
codex plugin marketplace upgrade cew
|
|
53
|
+
codex plugin add claude-everything-workflow@cew
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
CLI 命令以宿主版本为准;缺少 `plugin` 子命令时使用支持插件的应用版本或继续使用 npm 安装。
|
|
57
|
+
|
|
58
|
+
## 与 npm 安装的区别
|
|
59
|
+
|
|
60
|
+
| 项目 | 插件安装 | npm 安装 |
|
|
61
|
+
| --- | --- | --- |
|
|
62
|
+
| 文件位置 | 宿主管理的插件目录或缓存 | `~/.claude/`、`~/.codex/` |
|
|
63
|
+
| 全局入口配置 | 不覆盖已有入口和设置 | 安装器备份并同步入口,Claude hooks 合并进设置 |
|
|
64
|
+
| 工作流 | 宿主发现插件技能,保留原有规则查找方式 | 从用户级目录按需加载 |
|
|
65
|
+
| Claude hooks | 插件生命周期内启用基础检查 | 原有安装器配置 |
|
|
66
|
+
| 停用 | 用宿主插件管理功能禁用或卸载 | 按原有全局配置管理 |
|
|
67
|
+
|
|
68
|
+
插件不会自动加载随包的 `AGENTS.md` 或注册 `rules/`,也不提供额外的资源路径适配;这些文件被打包不等于其规则已生效。需要全局入口和规则安装时使用 npm 安装器。只使用插件时,跨文件工作流仍需目标项目或用户已有配置提供可解析的规则及参考路径,不能视为与 npm 安装完全等价。
|
|
69
|
+
|
|
70
|
+
同一宿主建议选一种方式,避免同名技能和 Claude hooks 重复。已有 npm 安装不会被插件自动迁移或删除;学习系统仍需显式配置。脚本声明的可选外部工具和依赖也不会因安装插件自动安装。基础检查脚本需要 Node.js 18+;运行仓库校验器需要安装 package.json 中的依赖。
|
|
71
|
+
|
|
72
|
+
## 本地验证和维护
|
|
73
|
+
|
|
74
|
+
在仓库根目录运行:
|
|
75
|
+
|
|
76
|
+
```sh
|
|
77
|
+
npm install --ignore-scripts --no-package-lock
|
|
78
|
+
npm run verify
|
|
79
|
+
npm run test:plugins
|
|
80
|
+
claude plugin validate .claude-plugin/plugin.json
|
|
81
|
+
claude plugin validate .claude-plugin/marketplace.json
|
|
82
|
+
claude --plugin-dir .
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Codex 本地验证使用 `codex plugin marketplace add <仓库绝对路径>` 后安装 `claude-everything-workflow@cew`,并在新任务选择工作流入口。测试环境应使用独立的宿主配置目录,避免影响日常安装。
|
|
86
|
+
|
|
87
|
+
仓库根目录就是插件包,因此两个市场都引用 `./`;保留仓库原名和现有源码布局,不能只复制清单。发布时同步调整 `package.json`、`.claude-plugin/plugin.json`、`.codex-plugin/plugin.json` 三处版本号,`npm run test:plugins` 会检查一致性。插件更新由用户刷新市场和更新插件触发,不承诺后台自动拉取。
|
|
88
|
+
|
|
89
|
+
格式依据:[Claude 插件参考](https://code.claude.com/docs/en/plugins-reference)、[OpenAI 插件打包文档](https://developers.openai.com/plugins/build/plugins)。
|
|
90
|
+
|
|
91
|
+
已知校验差异:plugin-creator 的 Python 校验器把 `skills/` 下每个非隐藏目录都当成独立技能,因此会将既有 `skills/learn/` 学习归档报为缺少 `SKILL.md`。该目录不是技能,不为消除这个提示添加假入口;仍保留原有归档和安装约定。验收结合两个宿主的原生安装结果、技能元数据和插件清单检查,不能将该 Python 校验报告为全部通过。
|
package/harness/manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"description": "CEW Harness
|
|
3
|
+
"description": "CEW Harness 的 Skill 元数据与流程职责唯一登记表。",
|
|
4
4
|
"skills": [
|
|
5
5
|
{
|
|
6
6
|
"name": "code-review",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"name": "domain-modeling",
|
|
43
43
|
"path": "skills/domain-modeling/SKILL.md",
|
|
44
44
|
"owner": "skills/domain-modeling/SKILL.md",
|
|
45
|
-
"version": "0.1.
|
|
45
|
+
"version": "0.1.2",
|
|
46
46
|
"compatibility": [
|
|
47
47
|
"claude-code",
|
|
48
48
|
"codex"
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"name": "feature-acceptance",
|
|
67
67
|
"path": "skills/feature-acceptance/SKILL.md",
|
|
68
68
|
"owner": "skills/feature-acceptance/SKILL.md",
|
|
69
|
-
"version": "0.1.
|
|
69
|
+
"version": "0.1.1",
|
|
70
70
|
"compatibility": [
|
|
71
71
|
"claude-code",
|
|
72
72
|
"codex"
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"name": "grilling",
|
|
79
79
|
"path": "skills/grilling/SKILL.md",
|
|
80
80
|
"owner": "skills/grilling/SKILL.md",
|
|
81
|
-
"version": "0.1.
|
|
81
|
+
"version": "0.1.1",
|
|
82
82
|
"compatibility": [
|
|
83
83
|
"claude-code",
|
|
84
84
|
"codex"
|
|
@@ -122,18 +122,6 @@
|
|
|
122
122
|
"allowedTools": null,
|
|
123
123
|
"invocation": "implicit"
|
|
124
124
|
},
|
|
125
|
-
{
|
|
126
|
-
"name": "iterative-retrieval",
|
|
127
|
-
"path": "skills/iterative-retrieval/SKILL.md",
|
|
128
|
-
"owner": "skills/iterative-retrieval/SKILL.md",
|
|
129
|
-
"version": "0.1.0",
|
|
130
|
-
"compatibility": [
|
|
131
|
-
"claude-code",
|
|
132
|
-
"codex"
|
|
133
|
-
],
|
|
134
|
-
"allowedTools": null,
|
|
135
|
-
"invocation": "implicit"
|
|
136
|
-
},
|
|
137
125
|
{
|
|
138
126
|
"name": "prototype",
|
|
139
127
|
"path": "skills/prototype/SKILL.md",
|
|
@@ -162,7 +150,7 @@
|
|
|
162
150
|
"name": "spec-gate",
|
|
163
151
|
"path": "skills/spec-gate/SKILL.md",
|
|
164
152
|
"owner": "skills/spec-gate/SKILL.md",
|
|
165
|
-
"version": "0.1.
|
|
153
|
+
"version": "0.1.1",
|
|
166
154
|
"compatibility": [
|
|
167
155
|
"claude-code",
|
|
168
156
|
"codex"
|
|
@@ -230,35 +218,11 @@
|
|
|
230
218
|
"allowedTools": null,
|
|
231
219
|
"invocation": "implicit"
|
|
232
220
|
},
|
|
233
|
-
{
|
|
234
|
-
"name": "using-git-worktrees",
|
|
235
|
-
"path": "skills/using-git-worktrees/SKILL.md",
|
|
236
|
-
"owner": "skills/using-git-worktrees/SKILL.md",
|
|
237
|
-
"version": "0.1.1",
|
|
238
|
-
"compatibility": [
|
|
239
|
-
"claude-code",
|
|
240
|
-
"codex"
|
|
241
|
-
],
|
|
242
|
-
"allowedTools": null,
|
|
243
|
-
"invocation": "implicit"
|
|
244
|
-
},
|
|
245
221
|
{
|
|
246
222
|
"name": "using-superpowers",
|
|
247
223
|
"path": "skills/using-superpowers/SKILL.md",
|
|
248
224
|
"owner": "skills/using-superpowers/SKILL.md",
|
|
249
|
-
"version": "0.1.
|
|
250
|
-
"compatibility": [
|
|
251
|
-
"claude-code",
|
|
252
|
-
"codex"
|
|
253
|
-
],
|
|
254
|
-
"allowedTools": null,
|
|
255
|
-
"invocation": "implicit"
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
"name": "verification-before-completion",
|
|
259
|
-
"path": "skills/verification-before-completion/SKILL.md",
|
|
260
|
-
"owner": "skills/verification-before-completion/SKILL.md",
|
|
261
|
-
"version": "0.1.1",
|
|
225
|
+
"version": "0.1.3",
|
|
262
226
|
"compatibility": [
|
|
263
227
|
"claude-code",
|
|
264
228
|
"codex"
|
|
@@ -292,7 +256,7 @@
|
|
|
292
256
|
},
|
|
293
257
|
{
|
|
294
258
|
"id": "verification",
|
|
295
|
-
"owner": "
|
|
259
|
+
"owner": "rules/common/testing.md",
|
|
296
260
|
"surfaces": [
|
|
297
261
|
"commands/verify.md",
|
|
298
262
|
"rules/common/testing.md"
|
|
@@ -318,7 +282,7 @@
|
|
|
318
282
|
},
|
|
319
283
|
{
|
|
320
284
|
"id": "worktree-isolation",
|
|
321
|
-
"owner": "
|
|
285
|
+
"owner": "rules/05-git-workflow.md",
|
|
322
286
|
"surfaces": [
|
|
323
287
|
"rules/05-git-workflow.md"
|
|
324
288
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-everything-workflow",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Claude Code and Codex harness with rules, skills, agents, hooks, and verification gates.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude-code",
|
|
@@ -19,7 +19,9 @@
|
|
|
19
19
|
"verify": "node scripts/verify-harness.js",
|
|
20
20
|
"test:manifest": "node scripts/verify/skill-manifest-checks.test.js",
|
|
21
21
|
"test:invocation": "node scripts/verify/skill-invocation.test.js",
|
|
22
|
+
"test:continuation": "node scripts/verify/continuation-checks.test.js",
|
|
22
23
|
"test:install-rules": "node scripts/verify/install-rules.test.js",
|
|
24
|
+
"test:plugins": "node --test scripts/verify/plugin-distribution.test.js",
|
|
23
25
|
"verify:upstream": "node scripts/verify-upstream-capability-map.js",
|
|
24
26
|
"pack:dry-run": "npm pack --dry-run"
|
|
25
27
|
},
|
|
@@ -28,10 +30,15 @@
|
|
|
28
30
|
"yaml": "2.9.0"
|
|
29
31
|
},
|
|
30
32
|
"files": [
|
|
33
|
+
".claude-plugin/",
|
|
34
|
+
".codex-plugin/",
|
|
35
|
+
".agents/plugins/marketplace.json",
|
|
31
36
|
"AGENTS.md",
|
|
32
37
|
"CLAUDE.md",
|
|
33
38
|
"LICENSE",
|
|
34
39
|
"README.md",
|
|
40
|
+
"README.zh-CN.md",
|
|
41
|
+
"docs/plugins.md",
|
|
35
42
|
"settings.json",
|
|
36
43
|
"agents/",
|
|
37
44
|
"bin/",
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Worktree 操作参考
|
|
2
|
+
|
|
3
|
+
仅在需要具体操作时读取。隔离触发条件、基线和提交授权以 `rules/05-git-workflow.md` 为准。
|
|
4
|
+
|
|
5
|
+
先检查仓库状态,优先复用属于当前任务的合适工作区,不覆盖用户改动:
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
git status --short
|
|
9
|
+
git rev-parse --abbrev-ref HEAD
|
|
10
|
+
git rev-parse --show-toplevel
|
|
11
|
+
git worktree list
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
需要新建时,按 Git 规则取得最新基线,替换以下占位符;Codex 分支默认用 `codex/` 前缀:
|
|
15
|
+
|
|
16
|
+
```sh
|
|
17
|
+
git worktree add ../<repo>-<task> -b codex/<task> <base-ref>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
不得嵌套 worktree。后续实现、测试、审查在任务工作区完成;依赖仅按项目需要安装。交付时报告工作区、分支、基线和验证结果。
|
|
21
|
+
|
|
22
|
+
用户授权清理后,确认任务已合并或放弃、目标工作区无待保留改动,再执行:
|
|
23
|
+
|
|
24
|
+
```sh
|
|
25
|
+
git worktree remove <worktree-path>
|
|
26
|
+
git branch -d codex/<task>
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
清理前核对解析后的绝对路径,确保目标属于本次授权范围。不得强制删除用户改动;`git branch -D` 仅在用户明确允许删除未合并分支时使用。
|
package/rules/05-git-workflow.md
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
## 路由权威来源
|
|
13
13
|
|
|
14
|
-
-
|
|
14
|
+
- 工程交付及明确请求的工程工作流读取 `skills/using-superpowers/SKILL.md`;不要因为多文件或普通复杂度加载完整 process skill 链。
|
|
15
15
|
- 全局门禁以 `rules/01-base.md` 为准;ticket/SDD 以 `rules/common/agent-orchestration.md` 和当前 Skill 为准。
|
|
16
16
|
- 不凭记忆执行 skill;用户指令、AGENTS/CLAUDE 和项目 Rules 优先。
|
|
17
17
|
|
package/rules/common/testing.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# 测试与验证
|
|
2
2
|
|
|
3
|
+
## 完成声明的证据
|
|
4
|
+
|
|
5
|
+
- 声明完成、修复、通过或 ready 前,必须有本轮针对最终状态的验证证据。选择足以支持结论的最小检查,读取输出和退出码,并逐项对照用户要求;修复结论须有原问题复现或回归验证。
|
|
6
|
+
- 本轮已有证据且相关状态未变时直接复用;仅在新改动、失败或未消除的疑点出现后重跑。检查失败按 `skills/systematic-debugging/SKILL.md` 的分级入口处理,预期的 TDD RED 留在实现循环。
|
|
7
|
+
- 委派结果须由控制者检查差异和必要验证,不能仅凭子代理自报完成。
|
|
8
|
+
- 报告实际检查命令或人工步骤及结果,说明未运行项、原因和剩余风险;结论不得超出证据覆盖范围。
|
|
9
|
+
|
|
3
10
|
## 默认策略
|
|
4
11
|
|
|
5
12
|
- 先识别仓库已有的 lint、format、单测、类型、构建和 E2E 命令,不发明替代流程。
|
package/scripts/install.ps1
CHANGED
|
@@ -189,7 +189,9 @@ function Remove-PackageOnlyPaths {
|
|
|
189
189
|
"scripts\verify\skill-manifest-checks.js",
|
|
190
190
|
"scripts\verify\skill-manifest-checks.test.js",
|
|
191
191
|
"scripts\verify\skill-invocation.test.js",
|
|
192
|
-
"scripts\verify\
|
|
192
|
+
"scripts\verify\continuation-checks.test.js",
|
|
193
|
+
"scripts\verify\install-rules.test.js",
|
|
194
|
+
"scripts\verify\plugin-distribution.test.js"
|
|
193
195
|
)
|
|
194
196
|
|
|
195
197
|
foreach ($relative in $packageOnlyFiles) {
|
package/scripts/install.sh
CHANGED
|
@@ -155,7 +155,9 @@ remove_package_only_paths() {
|
|
|
155
155
|
"scripts/verify/skill-manifest-checks.js" \
|
|
156
156
|
"scripts/verify/skill-manifest-checks.test.js" \
|
|
157
157
|
"scripts/verify/skill-invocation.test.js" \
|
|
158
|
-
"scripts/verify/
|
|
158
|
+
"scripts/verify/continuation-checks.test.js" \
|
|
159
|
+
"scripts/verify/install-rules.test.js" \
|
|
160
|
+
"scripts/verify/plugin-distribution.test.js"
|
|
159
161
|
do
|
|
160
162
|
if [ -f "$dest/$file" ]; then
|
|
161
163
|
run rm -f "$dest/$file"
|
|
@@ -36,6 +36,9 @@
|
|
|
36
36
|
"research": [
|
|
37
37
|
"SKILL.md"
|
|
38
38
|
],
|
|
39
|
+
"iterative-retrieval": [
|
|
40
|
+
"SKILL.md"
|
|
41
|
+
],
|
|
39
42
|
"wayfinder": [
|
|
40
43
|
"SKILL.md",
|
|
41
44
|
"agents/openai.yaml"
|
|
@@ -49,6 +52,12 @@
|
|
|
49
52
|
"SKILL.md",
|
|
50
53
|
"agents/openai.yaml",
|
|
51
54
|
"references/project-context-template.md"
|
|
55
|
+
],
|
|
56
|
+
"using-git-worktrees": [
|
|
57
|
+
"SKILL.md"
|
|
58
|
+
],
|
|
59
|
+
"verification-before-completion": [
|
|
60
|
+
"SKILL.md"
|
|
52
61
|
]
|
|
53
62
|
}
|
|
54
63
|
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const assert = require("node:assert/strict");
|
|
4
|
+
const fs = require("node:fs");
|
|
5
|
+
const path = require("node:path");
|
|
6
|
+
const { createHarnessContext } = require("./core");
|
|
7
|
+
const { runGrillingSpecGateChecks } = require("./grilling-spec-gate-checks");
|
|
8
|
+
|
|
9
|
+
const root = path.resolve(__dirname, "../..");
|
|
10
|
+
const domain = "skills/domain-modeling/SKILL.md";
|
|
11
|
+
const outcomes = "skills/using-superpowers/references/process-outcomes.md";
|
|
12
|
+
const spec = "skills/spec-gate/SKILL.md";
|
|
13
|
+
const read = (file) => fs.readFileSync(path.join(root, file), "utf8");
|
|
14
|
+
|
|
15
|
+
// Inject regressions in memory so tests exercise the real gates without changing the working tree.
|
|
16
|
+
function verify(overrides = {}) {
|
|
17
|
+
const context = createHarnessContext(root);
|
|
18
|
+
context.read = (file) => overrides[file] ?? read(file);
|
|
19
|
+
context.requireTokens = (file, tokens) => {
|
|
20
|
+
if (!context.exists(file)) return context.fail(`${file} is missing`);
|
|
21
|
+
for (const token of tokens) {
|
|
22
|
+
if (!context.read(file).includes(token)) context.fail(`${file} should include ${token}`);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
runGrillingSpecGateChecks(context);
|
|
26
|
+
return context.errors;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
assert.deepEqual(verify(), []);
|
|
30
|
+
|
|
31
|
+
const regressions = [
|
|
32
|
+
{
|
|
33
|
+
name: "maintenance changes a confirmed decision without approval",
|
|
34
|
+
file: domain,
|
|
35
|
+
body: read(domain).replace(/changes to\s+confirmed decisions, and\s*/, ""),
|
|
36
|
+
error: /should include changes to/,
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: "per-term approval despite maintenance authorization",
|
|
40
|
+
file: domain,
|
|
41
|
+
body: read(domain) + "\nWhen a term becomes stable, show the exact glossary change and obtain write approval before\nupdating it inline.\n",
|
|
42
|
+
error: /not require per-term approval/,
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: "maintenance without initial authorization",
|
|
46
|
+
file: domain,
|
|
47
|
+
body: read(domain).replace("If maintenance is not yet authorized, obtain approval before writing", "Write immediately"),
|
|
48
|
+
error: /should include If maintenance is not yet authorized/,
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: "maintenance expands into new scope",
|
|
52
|
+
file: domain,
|
|
53
|
+
body: read(domain).replace("New paths or scope", "Any document"),
|
|
54
|
+
error: /should include New paths or scope/,
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: "permission required just to clarify",
|
|
58
|
+
file: outcomes,
|
|
59
|
+
body: read(outcomes) + "\nOnly an explicit choice to continue starts a new grilling session.\n",
|
|
60
|
+
error: /not request permission to clarify/,
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
name: "clarification continues without an answer",
|
|
64
|
+
file: outcomes,
|
|
65
|
+
body: read(outcomes).replace("Wait for the user's answer", "Continue without the user's answer"),
|
|
66
|
+
error: /should include Wait for the user's answer/,
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: "blocked Spec stops the router's clarification",
|
|
70
|
+
file: outcomes,
|
|
71
|
+
body: read(outcomes).replace(
|
|
72
|
+
"Preserve the confirmed decisions and evidence; do not draft through an unresolved decision.",
|
|
73
|
+
"Stop without drafting, guessing, or invoking another Skill.",
|
|
74
|
+
),
|
|
75
|
+
error: /not request permission to clarify/,
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: "clarification ignores the user's stop request",
|
|
79
|
+
file: outcomes,
|
|
80
|
+
body: read(outcomes).replace("If the user pauses or ends the task, stop.", ""),
|
|
81
|
+
error: /should include If the user pauses or ends the task, stop/,
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: "clarification expands authorization to external actions",
|
|
85
|
+
file: outcomes,
|
|
86
|
+
body: read(outcomes).replace(/A new scope or external action still requires its own\s+authorization;/, ""),
|
|
87
|
+
error: /should include A new scope or external action still requires its own/,
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: "implementation without Spec approval",
|
|
91
|
+
file: spec,
|
|
92
|
+
body: read(spec).replace("the user has explicitly approved it", "the agent considers it ready"),
|
|
93
|
+
error: /should include the user has explicitly approved it/,
|
|
94
|
+
},
|
|
95
|
+
];
|
|
96
|
+
|
|
97
|
+
for (const scenario of regressions) {
|
|
98
|
+
assert.match(verify({ [scenario.file]: scenario.body }).join("\n"), scenario.error, scenario.name);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
console.log(`Continuation contract tests passed (current documents and ${regressions.length} regressions).`);
|