claude-everything-workflow 0.2.5 → 0.2.7
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/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/.mcp.json +14 -0
- package/AGENTS.md +6 -0
- package/CLAUDE.md +2 -0
- package/README.md +20 -0
- package/README.zh-CN.md +20 -0
- package/agents/e2e-runner.md +1 -0
- package/bin/claude-everything-workflow.js +15 -0
- package/docs/plugins.md +4 -0
- package/harness/manifest.json +1 -1
- package/package.json +3 -1
- package/rules/01-base.md +4 -1
- package/rules/02-implementation.md +1 -1
- package/rules/08-specialty-rules-index.md +1 -1
- package/rules/common/testing.md +7 -0
- package/scripts/install-rules.js +8 -4
- package/scripts/install.ps1 +28 -44
- package/scripts/install.sh +31 -3
- package/scripts/learning/migrate-homunculus.js +10 -5
- package/scripts/learning/project-utils.js +9 -0
- package/scripts/learning/promote.js +27 -10
- package/scripts/legacy-common-rule-hashes.json +16 -1
- package/scripts/merge-claude-settings.cjs +88 -25
- package/scripts/verify/install-rules.test.js +213 -11
- package/scripts/verify/learning.test.js +122 -0
- package/scripts/verify/metadata-checks.js +1 -1
- package/scripts/verify/plugin-distribution.test.js +3 -0
- package/scripts/verify/skill-invocation.test.js +6 -1
- package/scripts/verify/skill-manifest-checks.js +7 -4
- package/scripts/verify/workflow-checks.js +0 -1
- package/skills/README.md +1 -1
- package/skills/code-review/SKILL.md +7 -2
- package/skills/code-review/references/spec-reviewer-prompt.md +7 -4
- package/skills/continuous-learning-v2/SKILL.md +1 -0
- package/skills/continuous-learning-v2/config.json +1 -1
- package/skills/continuous-learning-v2/hooks/observe-v2.js +2 -9
- package/skills/e2e-testing/SKILL.md +1 -1
- package/skills/feature-acceptance/SKILL.md +13 -5
- package/skills/feature-acceptance/references/project-verification.md +55 -0
- package/skills/implement/SKILL.md +3 -1
- package/skills/implement/agents/openai.yaml +2 -0
- package/skills/using-superpowers/SKILL.md +9 -1
|
@@ -17,13 +17,18 @@ Review depth belongs here; callers supply the scope, base, risk and available ev
|
|
|
17
17
|
- active worktree: `git diff <base>` includes committed changes and tracked staged and unstaged edits;
|
|
18
18
|
- staged-only: `git diff --cached`.
|
|
19
19
|
3. Include task-owned untracked files in full; exclude unrelated dirty files explicitly.
|
|
20
|
-
4. Use
|
|
21
|
-
|
|
20
|
+
4. Use the original user request, including user-approved Spec/ticket and scope changes, as the scope
|
|
21
|
+
authority. An implementer's plan or summary cannot broaden it. Only then inspect tracker references
|
|
22
|
+
or matching durable documents if needed.
|
|
22
23
|
Do not ask again for a base or scope the caller already supplied. Never infer requirements from the diff.
|
|
23
24
|
5. Missing base or required acceptance evidence is `BLOCKED`. An intentionally empty package is `NO CHANGES`.
|
|
24
25
|
For a standalone review with no confirmed requirements, report the Spec axis as `NOT RUN` without
|
|
25
26
|
requiring an extra user confirmation; implementation completion still requires its acceptance criteria.
|
|
26
27
|
|
|
28
|
+
For local fixes touching shared logic, apply the preservation requirements in `rules/02-implementation.md`.
|
|
29
|
+
Unrequested behavior changes fail the Spec axis even if all tests pass; missing required preservation
|
|
30
|
+
evidence is `BLOCKED`, not `PASS`.
|
|
31
|
+
|
|
27
32
|
## Select review depth
|
|
28
33
|
|
|
29
34
|
`--mode auto` is the default. Select by risk and verification evidence, not file count, model generation
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
# Spec reviewer
|
|
2
2
|
|
|
3
|
-
Review only the supplied fixed review package against the
|
|
4
|
-
|
|
3
|
+
Review only the supplied fixed review package against the original user request, including user-approved
|
|
4
|
+
Spec/ticket and scope changes. Do not report general style opinions.
|
|
5
5
|
|
|
6
6
|
Find:
|
|
7
7
|
|
|
8
8
|
1. requirements that are missing or partial;
|
|
9
|
-
2. behavior
|
|
9
|
+
2. scope creep through unrequested behavior changes, especially in non-target callers of shared code;
|
|
10
10
|
3. behavior that looks implemented but is wrong;
|
|
11
|
-
4. acceptance checks that cannot be established
|
|
11
|
+
4. acceptance checks, including required non-target preservation checks, that cannot be established
|
|
12
|
+
from the supplied evidence.
|
|
13
|
+
|
|
14
|
+
Apply the [Code Review](../SKILL.md) Spec failure/blocking rules and the supplied compatibility requirements.
|
|
12
15
|
|
|
13
16
|
Quote or cite the exact requirement and implementation location for every finding. If no confirmed
|
|
14
17
|
Spec source exists, return `NOT RUN`; do not reconstruct requirements from the diff.
|
|
@@ -62,6 +62,7 @@ ${XDG_DATA_HOME:-~/.local/share}/ecc-homunculus/
|
|
|
62
62
|
## 安全边界
|
|
63
63
|
|
|
64
64
|
- 默认不启用后台 observer;`observer.enabled` 保持 `false`,避免额外 token 和误学习。
|
|
65
|
+
- 工具观察记录也默认关闭。仅当 `observation.enabled` 明确设为 `true` 且 Hook 在启用的档位中运行时才采集。
|
|
65
66
|
- 不自动导入、导出、推广或删除 instinct。
|
|
66
67
|
- 不把 raw observations 当作可共享知识;共享前只处理 instinct。
|
|
67
68
|
- 不把 project instinct 自动提升为 global。
|
|
@@ -21,14 +21,7 @@ function getConfig() {
|
|
|
21
21
|
try {
|
|
22
22
|
return JSON.parse(fs.readFileSync(configPath, 'utf8'))
|
|
23
23
|
} catch {
|
|
24
|
-
return
|
|
25
|
-
observation: {
|
|
26
|
-
enabled: true,
|
|
27
|
-
store_path: path.join(os.homedir(), '.claude', 'homunculus', 'observations.jsonl'),
|
|
28
|
-
capture_tools: ['Edit', 'Write', 'Bash', 'Read', 'Grep', 'Glob'],
|
|
29
|
-
ignore_tools: ['TodoWrite']
|
|
30
|
-
}
|
|
31
|
-
}
|
|
24
|
+
return null
|
|
32
25
|
}
|
|
33
26
|
}
|
|
34
27
|
|
|
@@ -76,7 +69,7 @@ async function main() {
|
|
|
76
69
|
const phase = process.argv[2] // 'pre' or 'post'
|
|
77
70
|
const config = getConfig()
|
|
78
71
|
|
|
79
|
-
if (
|
|
72
|
+
if (config?.observation?.enabled !== true) {
|
|
80
73
|
process.exit(0)
|
|
81
74
|
}
|
|
82
75
|
|
|
@@ -13,7 +13,7 @@ origin: ECC
|
|
|
13
13
|
1. 读取 `package.json`、lockfile、CI 配置和现有测试目录,确认包管理器与脚本。
|
|
14
14
|
2. 查找 `playwright.config.*`、`tests/e2e/`、`e2e/`、`BASE_URL`、启动命令和测试数据准备方式。
|
|
15
15
|
3. 优先使用项目已有依赖和 `npx playwright test`;缺少浏览器时再处理安装。
|
|
16
|
-
4.
|
|
16
|
+
4. 交互式探索和定位用 chrome-devtools MCP 连接用户已打开的 Chrome(`--autoConnect`),不新开浏览器;细节见 `rules/common/testing.md` 的“浏览器验证”,它不替代最终测试或报告。
|
|
17
17
|
|
|
18
18
|
## 执行契约
|
|
19
19
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: feature-acceptance
|
|
3
|
-
description: "
|
|
3
|
+
description: "建立或维护项目验收工具与功能地图;按用户或项目验收合同执行真实流程,产出可复核证据。"
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# 功能验收
|
|
@@ -9,7 +9,14 @@ description: "用于用户明确要求真实流程验收、截图或日志证据
|
|
|
9
9
|
|
|
10
10
|
## 何时使用
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
在用户明确要求真实流程验收、截图/视频/日志证据、建立或维护项目验收能力,或项目验收合同要求真实流程时使用。普通修复、一般“测一下”及完成前的常规验证按 `rules/common/testing.md` 执行,不自动生成工具或功能地图。
|
|
13
|
+
|
|
14
|
+
## 项目验收能力
|
|
15
|
+
|
|
16
|
+
- **建立 / 维护**:读取 [项目验收能力](references/project-verification.md),复用目标项目的驱动与测试入口,生成或更新项目本地操作说明和功能地图,并实际跑通。
|
|
17
|
+
- **执行**:先查项目指令指定的验收入口和功能地图,复用已验证命令,按本次改动选择受影响用例;没有地图时仍可完成一次性验收,不强制脚手架。工具失效时保留失败证据;只在授权范围内修复,不通过删用例或改成功标准取得通过。
|
|
18
|
+
|
|
19
|
+
CEW 维护通用方法;平台命令、选择器、账号前置条件和功能地图由目标项目维护。
|
|
13
20
|
|
|
14
21
|
## 输出协议
|
|
15
22
|
|
|
@@ -33,7 +40,7 @@ description: "用于用户明确要求真实流程验收、截图或日志证据
|
|
|
33
40
|
|
|
34
41
|
### 1. 定义目标
|
|
35
42
|
|
|
36
|
-
|
|
43
|
+
记录被测功能、真实用户入口、核心成功标准、环境前置条件和不可执行的高风险动作。记录被测代码版本及工作区差异、工具/用例版本;有比较基线时同时记录基线版本,相关输入变化后重跑受影响用例。没有测试前置条件时先标记 `BLOCKED`,不要通过注入凭据、篡改本地状态或破坏共享数据绕过。
|
|
37
44
|
|
|
38
45
|
### 2. 写用例矩阵
|
|
39
46
|
|
|
@@ -47,8 +54,8 @@ description: "用于用户明确要求真实流程验收、截图或日志证据
|
|
|
47
54
|
|
|
48
55
|
- 至少覆盖主成功路径;按风险补充错误、空状态、权限或关键分支。
|
|
49
56
|
- `keyNodes` 写明名称、重要性、预期观察和证据角色。
|
|
50
|
-
- `evidenceMedium` 只能是 `image`、`video` 或 `log
|
|
51
|
-
- 真实产品流程的 `image` 或 `video`
|
|
57
|
+
- `evidenceMedium` 只能是 `image`、`video` 或 `log`。UI 流程关键节点超过 10 个或需要表达过程时用 `video`;非 UI 流程保留顺序日志与关键断言。
|
|
58
|
+
- 真实产品流程的 `image` 或 `video` 必须来自真实产品页面或应用界面;对于 UI 流程,API、数据库或脚本输出只作为辅助 `log` 证据。CLI、服务/API、库项目可使用真实公开入口的调用、退出码和可观察结果作为主 `log` 证据,不强制截图。
|
|
52
59
|
|
|
53
60
|
### 3. 采集证据
|
|
54
61
|
|
|
@@ -91,3 +98,4 @@ description: "用于用户明确要求真实流程验收、截图或日志证据
|
|
|
91
98
|
- 不把 mock 页面、Storybook、历史截图、终端截图或伪造数据当作真实产品验收证据。
|
|
92
99
|
- 不为验收执行用户未授权的写操作、支付、删除或生产数据变更。
|
|
93
100
|
- 不把一次性验收替代应提交的单元测试、类型检查或 E2E 测试;它们互为补充。
|
|
101
|
+
- 验收通过不授予提交、合并或发布权限,也不替代项目要求的独立审核。
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# 项目验收能力
|
|
2
|
+
|
|
3
|
+
用于明确授权的建立或维护请求。
|
|
4
|
+
|
|
5
|
+
## 1. 从项目事实确定入口
|
|
6
|
+
|
|
7
|
+
读取目标项目指令、启动配置、现有测试和自动化辅助代码,确认:
|
|
8
|
+
|
|
9
|
+
- 用户实际使用的界面:Web、Electron、移动端、CLI、服务/API 或库;多个界面分别列明。
|
|
10
|
+
- 启动与就绪信号、测试账号/数据、依赖服务,以及可观察结果。
|
|
11
|
+
- 可复用的驱动、选择器、日志和截图入口;先运行已有命令,不另造同功能 CLI。
|
|
12
|
+
- 端口、数据目录、账号和进程的隔离能力。不能隔离时串行,不共用用户正在使用的实例。
|
|
13
|
+
|
|
14
|
+
只询问项目中无法查明且影响结果的用户决策。缺环境或权限时标记 `BLOCKED`;产品行为不符合预期则 `FAIL`。不擅自安装系统工具、修改生产配置或扩大为产品修复;可记录草稿和缺口,但不能宣称验收能力已可用。
|
|
15
|
+
|
|
16
|
+
## 2. 保存项目本地操作契约
|
|
17
|
+
|
|
18
|
+
优先更新项目已有验收文档/Skill,并沿用其路径;没有入口时,在项目使用的 Skill 目录创建 `verify-<project>/SKILL.md`(含 name、description)及 `references/features.md`。宿主未使用项目 Skill 时放入项目约定的文档目录,并从已有项目入口链接。不要写进 CEW 的通用规则或用户全局 Skill。维护时保留人工内容,先核对差异,避免全量覆盖。
|
|
19
|
+
|
|
20
|
+
操作契约须让没有上下文的 Agent 直接使用,包含实际验证过的命令和工作目录,不留假命令:
|
|
21
|
+
|
|
22
|
+
| 内容 | 最低要求 |
|
|
23
|
+
| --- | --- |
|
|
24
|
+
| 启动 / 健康检查 | 构建和启动入口、就绪条件、目标版本、所属实例、账号是否可用;短命令程序可用一次真实调用确认健康 |
|
|
25
|
+
| 操作 | 真实用户入口和稳定定位方式;CLI/API/库使用公开接口,UI 不用内部状态注入代替操作 |
|
|
26
|
+
| 观察 | 等待真实完成信号,核对用户可见结果及必要的文件/数据副作用;相关错误不能被忽略 |
|
|
27
|
+
| 证据 | 基线、动作、结果、命令退出码、代码及用例版本;脱敏后保存至忽略目录,报告引用可回读的路径 |
|
|
28
|
+
| 清理 | 只关闭本次拥有的进程,移除本次创建的临时状态;保留证据,不按进程名批量终止 |
|
|
29
|
+
|
|
30
|
+
仅当缺少可复用入口且重复操作确有收益时,增加最小项目本地 helper。使用项目已有语言/依赖;复杂或多平台需求才扩展。必须实际运行 helper,验证失败退出码及清理路径;`--dry-run` 也要观察其副作用,不能凭名字认定安全。
|
|
31
|
+
|
|
32
|
+
## 3. 建立功能地图
|
|
33
|
+
|
|
34
|
+
先覆盖最主要的 3~5 个用户流程;项目更小则覆盖实际存在的流程,不凑数。地图不是测试通过清单,明确标注已验证与未验证部分。每个功能记录:
|
|
35
|
+
|
|
36
|
+
```text
|
|
37
|
+
功能 / 用户目标:
|
|
38
|
+
入口与子流程:列出需要覆盖的不同入口,不只列最方便的一个
|
|
39
|
+
前置条件:平台、服务、账号、数据及隔离要求
|
|
40
|
+
驱动步骤:引用实际命令/定位方式;写明输入与完成信号
|
|
41
|
+
成功断言:用户能观察到的结果及必要副作用
|
|
42
|
+
风险边界:错误、权限、空状态、恢复等与功能相关的用例
|
|
43
|
+
最近验证:代码/工具/用例版本、环境、日期、结果及证据位置
|
|
44
|
+
未覆盖项:具体入口或场景,以及原因
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
选择用例时结合改动、调用方和用户目标;地图是导航,不是范围上限。新功能或遗漏的关键入口必须补充。维护请求只检查相关条目与当前实现的漂移,不默认重写整份地图。
|
|
48
|
+
|
|
49
|
+
## 4. 实际执行后交付
|
|
50
|
+
|
|
51
|
+
按生成或修改后的说明完成一次闭环:启动 → 健康检查 → 一个真实核心流程 → 核对断言和证据 → 清理 → 再次打开证据。失败运行也执行所属资源的清理,保留失败证据;修正工具后重跑受影响步骤。维护时重跑受影响流程,不能用历史证据覆盖本次变化。
|
|
52
|
+
|
|
53
|
+
沿用主 Skill 的 `PASS / FAIL / BLOCKED / NOT RUN` 与二次审核要求。区分“验收入口已通过所列流程验证”和“整个产品通过验收”:一个流程跑通不代表整张地图通过。报告生成/更新的入口、已执行流程、证据、未覆盖项和后续调用方式;未执行的草稿不得作为已验证能力交付。
|
|
54
|
+
|
|
55
|
+
只有用户或项目合同要求时才接入日常开发验收;不自动新增 CI、定时任务、自动合并或发布权限。
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: implement
|
|
3
|
-
description:
|
|
3
|
+
description: Internal delivery procedure selected by using-superpowers for one authorized scope.
|
|
4
|
+
disable-model-invocation: true
|
|
4
5
|
---
|
|
5
6
|
|
|
6
7
|
# Implement
|
|
7
8
|
|
|
8
9
|
执行 router 选定的一个连贯交付范围。Origin: `mattpocock/skills@2ab9580`,适配本项目授权与审查边界。
|
|
10
|
+
如果用户直接进入此 Skill,先由 `using-superpowers` 判断是否适用,再按选定路径执行。
|
|
9
11
|
|
|
10
12
|
## 入口
|
|
11
13
|
|
|
@@ -24,6 +24,12 @@ below and read only its Skill. Briefly announce the selection, then act. Do not
|
|
|
24
24
|
in anticipation of later stages. Reuse a Skill already read in this task unless it changed or context
|
|
25
25
|
was lost; returning here means applying the routing decision, not reading this file again.
|
|
26
26
|
|
|
27
|
+
For delivery, infer the requested action, outcome, scope and acceptance evidence from the request and
|
|
28
|
+
project. Inspect discoverable details and ask only for unresolved decisions that would change the result.
|
|
29
|
+
`read-reference` means read the target as a file relative to the same distribution, without invoking it
|
|
30
|
+
through a host Skill tool or asking the user to type its name. For `implement`, read
|
|
31
|
+
[the delivery procedure](../implement/SKILL.md) after selecting it.
|
|
32
|
+
|
|
27
33
|
Expected TDD RED stays in the current implementation loop. Do not reroute it as a reported bug.
|
|
28
34
|
An explicit request may use ordinary language or a native `/name` or `$name` invocation.
|
|
29
35
|
For handoff, triage and improve-codebase-architecture,
|
|
@@ -50,6 +56,8 @@ Task arrives
|
|
|
50
56
|
-> skills/handoff/SKILL.md
|
|
51
57
|
-> explicit triage request? -> skills/triage/SKILL.md
|
|
52
58
|
-> explicit TDD request? -> skills/test-driven-development/SKILL.md
|
|
59
|
+
-> explicit project verification setup/maintenance or real-flow acceptance request?
|
|
60
|
+
-> skills/feature-acceptance/SKILL.md
|
|
53
61
|
-> explicit E2E or Playwright request? -> skills/e2e-testing/SKILL.md + agents/e2e-runner.md
|
|
54
62
|
-> explicit harness audit? -> agents/harness-optimizer.md
|
|
55
63
|
-> explicit architecture-health audit? -> skills/improve-codebase-architecture/SKILL.md
|
|
@@ -65,7 +73,7 @@ Task arrives
|
|
|
65
73
|
-> durable multi-session/tracker graph? -> skills/to-tickets/SKILL.md
|
|
66
74
|
-> independent frontier tickets with no overlapping write surface?
|
|
67
75
|
-> skills/subagent-driven-development/SKILL.md
|
|
68
|
-
-> otherwise -> skills/implement/SKILL.md
|
|
76
|
+
-> otherwise -> read-reference skills/implement/SKILL.md
|
|
69
77
|
-> behavior change with a test path? -> test-driven-development
|
|
70
78
|
-> new feature or other Git-rule isolation need? -> rules/05-git-workflow.md
|
|
71
79
|
-> completion, fixed, or ready claim? -> rules/common/testing.md
|