claude-everything-workflow 0.2.14 → 0.2.15
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/AGENTS.md +13 -23
- package/commands/pr.md +1 -1
- package/evals/routing-scenarios.json +19 -19
- package/harness/manifest.json +0 -52
- package/package.json +1 -1
- package/rules/common/testing.md +2 -8
- package/scripts/install-antigravity.js +8 -1
- package/scripts/retired-skill-files.json +25 -0
- package/scripts/upstream-capability-map.json +16 -13
- package/scripts/verify/install-rules.test.js +15 -2
- package/scripts/verify/skill-invocation.test.js +14 -2
- package/scripts/verify/workflow-checks.js +9 -14
- package/skills/README.md +2 -6
- package/skills/code-review/SKILL.md +1 -1
- package/skills/codebase-design/SKILL.md +7 -1
- package/skills/feature-acceptance/references/e2e-testing.md +8 -2
- package/skills/grilling/SKILL.md +1 -1
- package/skills/handoff/SKILL.md +2 -2
- package/skills/implement/SKILL.md +3 -2
- package/skills/resolving-merge-conflicts/SKILL.md +1 -1
- package/skills/spec-gate/SKILL.md +1 -1
- package/skills/systematic-debugging/SKILL.md +1 -1
- package/skills/systematic-debugging/references/diagnosing-bugs.upstream.md +1 -1
- package/skills/test-driven-development/SKILL.md +1 -1
- package/skills/to-tickets/SKILL.md +1 -1
- package/skills/triage/SKILL.md +2 -2
- package/skills/using-superpowers/SKILL.md +5 -6
- package/skills/using-superpowers/references/process-outcomes.md +1 -1
- package/skills/domain-modeling/SKILL.md +0 -103
- package/skills/improve-codebase-architecture/SKILL.md +0 -47
- package/skills/improve-codebase-architecture/agents/openai.yaml +0 -5
- package/skills/prototype/SKILL.md +0 -50
- package/skills/prototype/references/logic.md +0 -28
- package/skills/prototype/references/ui.md +0 -30
- package/skills/visual-companion/SKILL.md +0 -62
- package/skills/visual-companion/agents/openai.yaml +0 -4
- package/skills/visual-companion/references/guide.md +0 -298
- package/skills/visual-companion/scripts/frame-template.html +0 -243
- package/skills/visual-companion/scripts/helper.js +0 -167
- package/skills/visual-companion/scripts/pages.cjs +0 -28
- package/skills/visual-companion/scripts/server-utils.cjs +0 -82
- package/skills/visual-companion/scripts/server.cjs +0 -583
- package/skills/visual-companion/scripts/start-server.sh +0 -223
- package/skills/visual-companion/scripts/stop-server.sh +0 -120
- package/skills/visual-companion/scripts/websocket.cjs +0 -86
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-everything-workflow",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.15",
|
|
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.
|
|
3
|
+
"version": "0.2.15",
|
|
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
|
@@ -1,30 +1,20 @@
|
|
|
1
1
|
# 项目配置
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 沟通
|
|
4
4
|
|
|
5
|
-
-
|
|
6
|
-
-
|
|
7
|
-
- 解释变更、故障或排查结果时,简单说明;明确区分已确认事实、推测和阻塞项。
|
|
8
|
-
- 除非用户要求,不贴大段原始日志、命令或实现细节;只保留支持结论所需的最小证据。
|
|
9
|
-
- 同一事实只说一次;简单任务短答,复杂任务按需展开。进展只报告新发现、阻塞和关键决定,不逐条播报工具操作。
|
|
10
|
-
- 工具结果优先读取相关片段,大结果只展示摘要并保留原文入口、实际退出码和关键错误,不凭截断结果判定成功。
|
|
5
|
+
- 先结论后原因与下一步;日常中文,术语/缩写紧跟通俗解释,区分事实、推测与阻塞。
|
|
6
|
+
- 同一事实只说一次,简单任务短答;不逐条播报工具操作,不贴大段原始日志,大结果只报摘要、退出码与原文路径,不凭截断判通过。
|
|
11
7
|
|
|
12
|
-
##
|
|
8
|
+
## 工程入口与红线
|
|
13
9
|
|
|
14
|
-
-
|
|
15
|
-
- 禁止硬编码密钥/token/密码、SQL
|
|
16
|
-
-
|
|
10
|
+
- 明确且低风险的 1–2 文件小修直接按核心红线与 `rules/common/testing.md` 实施验证,不必绕道 `using-superpowers`;需决策、正式 Spec、跨模块/高风险改动、多票并行或显式流程时再读对应 Skill / `using-superpowers`,多份文档同轮并发读取。
|
|
11
|
+
- 禁止硬编码密钥/token/密码、SQL 拼接、未校验外部输入、明文密码、绕过验证或 Hook,以及提交调试残留、依赖目录或敏感配置。
|
|
12
|
+
- 复用已登录 Chrome 做交互验证时按 `skills/feature-acceptance/references/e2e-testing.md` 执行,不新开浏览器。
|
|
17
13
|
|
|
18
|
-
##
|
|
14
|
+
## 规则按需加载
|
|
19
15
|
|
|
20
|
-
-
|
|
21
|
-
- `
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
| 规则文件 | 内容与触发场景 |
|
|
26
|
-
| ---------------------- | -------------------------------------------------------- |
|
|
27
|
-
| `01-base.md` | 执行原则、第一性原则与流程边界;实现或审查前读取 |
|
|
28
|
-
| `02-implementation.md` | 架构与兼容、错误处理、代码规模、注释、代码与安全禁止项 |
|
|
29
|
-
| `05-git-workflow.md` | Worktree 分支开发、提交格式、提交禁止项与 PR 授权边界 |
|
|
30
|
-
| `common/*` | 专项参考区(测试/验证、PR、上下文卫生、编排、Hook、性能、Harness、学习),仅对应场景按需读取 |
|
|
16
|
+
- 按需读取,不默认全量加载 `rules/` 或 `rules/common/`;先查项目根 `rules/`,否则按宿主回退(Antigravity `~/.gemini/config/plugins/claude-everything-workflow/references/rules/`、Codex `~/.codex/rules/`、Claude `~/.claude/rules/` 与 `~/.claude/references/rules/`),个人修改优先。
|
|
17
|
+
- `01-base.md`:执行原则、第一性原则与流程边界
|
|
18
|
+
- `02-implementation.md`:架构兼容、错误处理、代码规模与安全禁止项
|
|
19
|
+
- `05-git-workflow.md`:Worktree 分支开发、提交格式与 PR 授权边界
|
|
20
|
+
- `common/*`:按需参考(测试/验证、PR、上下文卫生、编排、Hook、性能、Harness、学习)
|
package/commands/pr.md
CHANGED
|
@@ -4,7 +4,7 @@ description: 提交、推送和创建 Pull Request 的标准工作流
|
|
|
4
4
|
|
|
5
5
|
# /pr - 提交与创建 PR
|
|
6
6
|
|
|
7
|
-
`/pr` 是 Superpowers 风格闭环中的 PR Gate。进入本命令前必须已有 `/verify`
|
|
7
|
+
`/pr` 是 Superpowers 风格闭环中的 PR Gate。进入本命令前必须已有 `/verify` 或等价验证结果,并确保已完成 `skills/code-review/SKILL.md` 独立只读审查(含此前跳过逐次审查的 1–2 文件低风险小修);如果验证失败或未运行关键检查,先回到验证和修复阶段,除非用户明确授权带风险继续。
|
|
8
8
|
|
|
9
9
|
把当前工作区中的有效改动整理成可提交、可审阅、可追踪的 PR。
|
|
10
10
|
|
|
@@ -203,32 +203,32 @@
|
|
|
203
203
|
"requiredSignals": ["triage", "brief"],
|
|
204
204
|
"rationale": "明确要求 issue/PR triage 时进入 triage。"
|
|
205
205
|
},
|
|
206
|
-
{
|
|
207
|
-
"id": "prototype-design-probe",
|
|
208
|
-
"category": "design",
|
|
209
|
-
"prompt": "写一个可扔掉的最小原型验证虚拟滚动在 10 万条数据下是否流畅",
|
|
210
|
-
"expectedTarget": "skills/prototype/SKILL.md",
|
|
211
|
-
"expectedLane": "design",
|
|
212
|
-
"requiredSignals": ["prototype", "probe"],
|
|
213
|
-
"rationale": "回答单个可运行设计问题的临时探针进入 prototype。"
|
|
214
|
-
},
|
|
215
206
|
{
|
|
216
207
|
"id": "architecture-health-audit",
|
|
217
208
|
"category": "design",
|
|
218
209
|
"prompt": "对当前代码库做一次只读的架构健康度审计,找出浅模块加深机会",
|
|
219
|
-
"expectedTarget": "skills/
|
|
210
|
+
"expectedTarget": "skills/codebase-design/SKILL.md",
|
|
220
211
|
"expectedLane": "explicit-only",
|
|
221
|
-
"requiredSignals": ["
|
|
222
|
-
"rationale": "
|
|
212
|
+
"requiredSignals": ["deep modules", "audit"],
|
|
213
|
+
"rationale": "架构健康度审计已并入 codebase-design,保持深模块与只读审计统一入口。"
|
|
223
214
|
},
|
|
224
215
|
{
|
|
225
|
-
"id": "
|
|
226
|
-
"category": "
|
|
227
|
-
"prompt": "
|
|
228
|
-
"expectedTarget": "
|
|
229
|
-
"expectedLane": "
|
|
230
|
-
"requiredSignals": ["
|
|
231
|
-
"rationale": "
|
|
216
|
+
"id": "cache-friendly-session-model",
|
|
217
|
+
"category": "performance",
|
|
218
|
+
"prompt": "长会话中途模型切来切去老是掉缓存,应该怎么控制模型选择和上下文成本?",
|
|
219
|
+
"expectedTarget": "rules/common/performance.md",
|
|
220
|
+
"expectedLane": "performance",
|
|
221
|
+
"requiredSignals": ["Prompt Cache", "子代理"],
|
|
222
|
+
"rationale": "会话边界选型、前缀稳定与上下文成本约束由 rules/common/performance.md 维护。"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"id": "tiny-fix-pr-review-boundary",
|
|
226
|
+
"category": "review",
|
|
227
|
+
"prompt": "刚修完几个小 bug 准备提 PR,还需要启动独立子代理审查吗?",
|
|
228
|
+
"expectedTarget": "skills/code-review/SKILL.md",
|
|
229
|
+
"expectedLane": "review",
|
|
230
|
+
"requiredSignals": ["PR", "independent"],
|
|
231
|
+
"rationale": "本地低风险 1–2 文件小修可先凭测试完成,但提 PR 前与跨模块/高风险改动仍须进入 code-review 独立审查。"
|
|
232
232
|
},
|
|
233
233
|
{
|
|
234
234
|
"id": "codebase-deep-module",
|
package/harness/manifest.json
CHANGED
|
@@ -41,19 +41,6 @@
|
|
|
41
41
|
"allowedTools": null,
|
|
42
42
|
"invocation": "implicit"
|
|
43
43
|
},
|
|
44
|
-
{
|
|
45
|
-
"name": "domain-modeling",
|
|
46
|
-
"path": "skills/domain-modeling/SKILL.md",
|
|
47
|
-
"owner": "skills/domain-modeling/SKILL.md",
|
|
48
|
-
"version": "0.1.2",
|
|
49
|
-
"compatibility": [
|
|
50
|
-
"claude-code",
|
|
51
|
-
"codex",
|
|
52
|
-
"antigravity"
|
|
53
|
-
],
|
|
54
|
-
"allowedTools": null,
|
|
55
|
-
"invocation": "implicit"
|
|
56
|
-
},
|
|
57
44
|
{
|
|
58
45
|
"name": "feature-acceptance",
|
|
59
46
|
"path": "skills/feature-acceptance/SKILL.md",
|
|
@@ -106,32 +93,6 @@
|
|
|
106
93
|
"allowedTools": null,
|
|
107
94
|
"invocation": "explicit-only"
|
|
108
95
|
},
|
|
109
|
-
{
|
|
110
|
-
"name": "improve-codebase-architecture",
|
|
111
|
-
"path": "skills/improve-codebase-architecture/SKILL.md",
|
|
112
|
-
"owner": "skills/improve-codebase-architecture/SKILL.md",
|
|
113
|
-
"version": "0.1.1",
|
|
114
|
-
"compatibility": [
|
|
115
|
-
"claude-code",
|
|
116
|
-
"codex",
|
|
117
|
-
"antigravity"
|
|
118
|
-
],
|
|
119
|
-
"allowedTools": null,
|
|
120
|
-
"invocation": "implicit"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"name": "prototype",
|
|
124
|
-
"path": "skills/prototype/SKILL.md",
|
|
125
|
-
"owner": "skills/prototype/SKILL.md",
|
|
126
|
-
"version": "0.1.1",
|
|
127
|
-
"compatibility": [
|
|
128
|
-
"claude-code",
|
|
129
|
-
"codex",
|
|
130
|
-
"antigravity"
|
|
131
|
-
],
|
|
132
|
-
"allowedTools": null,
|
|
133
|
-
"invocation": "implicit"
|
|
134
|
-
},
|
|
135
96
|
{
|
|
136
97
|
"name": "resolving-merge-conflicts",
|
|
137
98
|
"path": "skills/resolving-merge-conflicts/SKILL.md",
|
|
@@ -222,19 +183,6 @@
|
|
|
222
183
|
],
|
|
223
184
|
"allowedTools": null,
|
|
224
185
|
"invocation": "implicit"
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
"name": "visual-companion",
|
|
228
|
-
"path": "skills/visual-companion/SKILL.md",
|
|
229
|
-
"owner": "skills/visual-companion/SKILL.md",
|
|
230
|
-
"version": "0.1.1",
|
|
231
|
-
"compatibility": [
|
|
232
|
-
"claude-code",
|
|
233
|
-
"codex",
|
|
234
|
-
"antigravity"
|
|
235
|
-
],
|
|
236
|
-
"allowedTools": null,
|
|
237
|
-
"invocation": "implicit"
|
|
238
186
|
}
|
|
239
187
|
],
|
|
240
188
|
"ownership": [
|
package/package.json
CHANGED
package/rules/common/testing.md
CHANGED
|
@@ -32,12 +32,6 @@
|
|
|
32
32
|
|
|
33
33
|
复杂、高风险或行为变化应补充对抗性验证,主动覆盖异常输入(空值、缺失字段、损坏配置、未知枚举)、重复/并发执行与部分失败重试、特殊字符与跨平台路径、权限/磁盘/网络/依赖失败、历史数据与用户已有改动以及边界数值。
|
|
34
34
|
|
|
35
|
-
##
|
|
35
|
+
## 端到端与浏览器验证
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
## 浏览器验证
|
|
40
|
-
|
|
41
|
-
- 需要登录态时复用已有会话;连接失败不另开浏览器绕过。
|
|
42
|
-
- 操作前确认目标页面,不关闭或修改无关页面。
|
|
43
|
-
- 可复跑测试使用独立测试登录态,不依赖用户日常会话。
|
|
37
|
+
- Playwright E2E 与复用已登录 Chrome 的浏览器验证见 `skills/feature-acceptance/references/e2e-testing.md`。
|
|
@@ -249,6 +249,13 @@ function rewriteRelocatedSkillScript(text) {
|
|
|
249
249
|
);
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
+
function tailorAntigravityAgents(text) {
|
|
253
|
+
return text.replace(
|
|
254
|
+
/(Antigravity `~\/\.gemini\/config\/plugins\/claude-everything-workflow\/references\/rules\/`[^)]*)/,
|
|
255
|
+
`(\`${PLUGIN_HOME_REF}/references/rules/\`)`,
|
|
256
|
+
);
|
|
257
|
+
}
|
|
258
|
+
|
|
252
259
|
function writeManagedFile({ pluginRoot, relative, content, mode, backupId, dryRun, log }) {
|
|
253
260
|
const target = checkedPath(pluginRoot, relative);
|
|
254
261
|
const next = Buffer.isBuffer(content) ? content : Buffer.from(content, "utf8");
|
|
@@ -556,7 +563,7 @@ function installAntigravity({
|
|
|
556
563
|
writeManagedFile({
|
|
557
564
|
pluginRoot,
|
|
558
565
|
relative: "rules/AGENTS.md",
|
|
559
|
-
content: fs.readFileSync(path.join(sourceRoot, "AGENTS.md")),
|
|
566
|
+
content: tailorAntigravityAgents(fs.readFileSync(path.join(sourceRoot, "AGENTS.md"), "utf8")),
|
|
560
567
|
backupId,
|
|
561
568
|
dryRun,
|
|
562
569
|
log,
|
|
@@ -115,6 +115,31 @@
|
|
|
115
115
|
"e2e-testing": [
|
|
116
116
|
"SKILL.md",
|
|
117
117
|
"references/playwright-patterns.md"
|
|
118
|
+
],
|
|
119
|
+
"visual-companion": [
|
|
120
|
+
"SKILL.md",
|
|
121
|
+
"agents/openai.yaml",
|
|
122
|
+
"references/guide.md",
|
|
123
|
+
"scripts/frame-template.html",
|
|
124
|
+
"scripts/helper.js",
|
|
125
|
+
"scripts/pages.cjs",
|
|
126
|
+
"scripts/server-utils.cjs",
|
|
127
|
+
"scripts/server.cjs",
|
|
128
|
+
"scripts/start-server.sh",
|
|
129
|
+
"scripts/stop-server.sh",
|
|
130
|
+
"scripts/websocket.cjs"
|
|
131
|
+
],
|
|
132
|
+
"prototype": [
|
|
133
|
+
"SKILL.md",
|
|
134
|
+
"references/logic.md",
|
|
135
|
+
"references/ui.md"
|
|
136
|
+
],
|
|
137
|
+
"domain-modeling": [
|
|
138
|
+
"SKILL.md"
|
|
139
|
+
],
|
|
140
|
+
"improve-codebase-architecture": [
|
|
141
|
+
"SKILL.md",
|
|
142
|
+
"agents/openai.yaml"
|
|
118
143
|
]
|
|
119
144
|
}
|
|
120
145
|
}
|
|
@@ -41,17 +41,18 @@
|
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
"upstream": "domain-modeling",
|
|
44
|
-
"status": "
|
|
44
|
+
"status": "excluded",
|
|
45
45
|
"evidence": [
|
|
46
|
-
"
|
|
47
|
-
|
|
46
|
+
"scripts/retired-skill-files.json",
|
|
47
|
+
"skills/spec-gate/SKILL.md"
|
|
48
|
+
],
|
|
49
|
+
"reason": "Standalone domain-modeling Skill is retired; consequential domain changes go through grilling and spec-gate."
|
|
48
50
|
},
|
|
49
51
|
{
|
|
50
52
|
"upstream": "grill-with-docs",
|
|
51
53
|
"status": "adapted",
|
|
52
54
|
"evidence": [
|
|
53
|
-
"skills/grilling/SKILL.md"
|
|
54
|
-
"skills/domain-modeling/SKILL.md"
|
|
55
|
+
"skills/grilling/SKILL.md"
|
|
55
56
|
]
|
|
56
57
|
},
|
|
57
58
|
{
|
|
@@ -65,17 +66,19 @@
|
|
|
65
66
|
"upstream": "improve-codebase-architecture",
|
|
66
67
|
"status": "adapted",
|
|
67
68
|
"evidence": [
|
|
68
|
-
"skills/
|
|
69
|
-
|
|
69
|
+
"skills/codebase-design/SKILL.md",
|
|
70
|
+
"skills/codebase-design/references/deepening.md"
|
|
71
|
+
],
|
|
72
|
+
"reason": "Standalone audit Skill is retired; codebase-design covers deep-module design and read-only audit."
|
|
70
73
|
},
|
|
71
74
|
{
|
|
72
75
|
"upstream": "prototype",
|
|
73
|
-
"status": "
|
|
76
|
+
"status": "excluded",
|
|
74
77
|
"evidence": [
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
|
|
78
|
-
|
|
78
|
+
"scripts/retired-skill-files.json",
|
|
79
|
+
"README.md"
|
|
80
|
+
],
|
|
81
|
+
"reason": "Standalone throwaway prototype and visual-companion Skills are retired to keep the resident skill surface lean."
|
|
79
82
|
},
|
|
80
83
|
{
|
|
81
84
|
"upstream": "research",
|
|
@@ -145,7 +148,7 @@
|
|
|
145
148
|
"upstream": "handoff",
|
|
146
149
|
"source_group": "productivity",
|
|
147
150
|
"status": "adapted",
|
|
148
|
-
"reason": "The promoted Engineering router requires it for
|
|
151
|
+
"reason": "The promoted Engineering router requires it for context-window crossings.",
|
|
149
152
|
"evidence": [
|
|
150
153
|
"skills/handoff/SKILL.md",
|
|
151
154
|
"skills/using-superpowers/SKILL.md"
|
|
@@ -658,13 +658,16 @@ function checkInstallerEntrypoint() {
|
|
|
658
658
|
assert.equal(manifest.name, pkg.name);
|
|
659
659
|
assert.equal(manifest.version, pkg.version);
|
|
660
660
|
assert.deepEqual(fs.readdirSync(path.join(agRoot, "rules")), ["AGENTS.md"]);
|
|
661
|
-
|
|
661
|
+
const agAgents = read(path.join(agRoot, "rules/AGENTS.md"));
|
|
662
|
+
assert.match(agAgents, /plugins\/claude-everything-workflow\/references\/rules\//);
|
|
663
|
+
assert.doesNotMatch(agAgents, /~\/\.codex\/rules\//);
|
|
664
|
+
assert.doesNotMatch(agAgents, /~\/\.claude\/rules\//);
|
|
662
665
|
assert.equal(read(path.join(agRoot, "references/rules/common/testing.md")),
|
|
663
666
|
read(path.join(sourceRoot, "rules/common/testing.md")));
|
|
664
667
|
assert.equal(fs.existsSync(path.join(agRoot, "skills/README.md")), false);
|
|
665
668
|
const agSkills = fs.readdirSync(path.join(agRoot, "skills"), { withFileTypes: true })
|
|
666
669
|
.filter((entry) => entry.isDirectory());
|
|
667
|
-
assert.equal(agSkills.length,
|
|
670
|
+
assert.equal(agSkills.length, 15);
|
|
668
671
|
for (const relocated of ["implement", "to-spec", "continuous-learning-v2"]) {
|
|
669
672
|
assert.equal(
|
|
670
673
|
fs.existsSync(path.join(agRoot, "skills", relocated)),
|
|
@@ -880,6 +883,11 @@ function checkAntigravityOnlyInstaller() {
|
|
|
880
883
|
fs.mkdirSync(path.join(agRoot, "skills/research"), { recursive: true });
|
|
881
884
|
fs.writeFileSync(path.join(agRoot, "skills/research/SKILL.md"), "Old distributed content\n");
|
|
882
885
|
fs.writeFileSync(path.join(agRoot, "skills/research/personal-notes.md"), "Keep my notes\n");
|
|
886
|
+
for (const retired of ["visual-companion", "prototype", "domain-modeling", "improve-codebase-architecture"]) {
|
|
887
|
+
fs.mkdirSync(path.join(agRoot, "skills", retired), { recursive: true });
|
|
888
|
+
fs.writeFileSync(path.join(agRoot, "skills", retired, "SKILL.md"), `Old ${retired}\n`);
|
|
889
|
+
}
|
|
890
|
+
fs.writeFileSync(path.join(agRoot, "skills/prototype/user-note.md"), "Keep prototype note\n");
|
|
883
891
|
fs.writeFileSync(legacyAgents, "Keep legacy user file\n");
|
|
884
892
|
|
|
885
893
|
const runCli = (extra = []) => {
|
|
@@ -907,6 +915,11 @@ function checkAntigravityOnlyInstaller() {
|
|
|
907
915
|
assert.match(first.stdout, /\.gemini[\\/]AGENTS\.md/);
|
|
908
916
|
assert.equal(fs.existsSync(path.join(agRoot, "skills/research/SKILL.md")), false);
|
|
909
917
|
assert.equal(read(path.join(agRoot, "skills/research/personal-notes.md")), "Keep my notes\n");
|
|
918
|
+
for (const retired of ["visual-companion", "domain-modeling", "improve-codebase-architecture"]) {
|
|
919
|
+
assert.equal(fs.existsSync(path.join(agRoot, "skills", retired)), false, `retired ${retired} must be cleaned`);
|
|
920
|
+
}
|
|
921
|
+
assert.equal(fs.existsSync(path.join(agRoot, "skills/prototype/SKILL.md")), false);
|
|
922
|
+
assert.equal(read(path.join(agRoot, "skills/prototype/user-note.md")), "Keep prototype note\n");
|
|
910
923
|
|
|
911
924
|
const agImpl = path.join(agRoot, "references/rules/02-implementation.md");
|
|
912
925
|
const customized = read(agImpl) + "\nKeep Antigravity personal rule.\n";
|
|
@@ -80,7 +80,7 @@ assert.equal(implement?.invocation, "explicit-only");
|
|
|
80
80
|
const routerBody = fs.readFileSync(path.join(root, "skills/using-superpowers/SKILL.md"), "utf8");
|
|
81
81
|
assert.match(routerBody, /-> read-reference skills\/implement\/SKILL\.md/);
|
|
82
82
|
assert.deepEqual(validateNativeRoutes(manifest, routerBody), []);
|
|
83
|
-
for (const name of ["handoff", "
|
|
83
|
+
for (const name of ["handoff", "triage"]) {
|
|
84
84
|
const entry = manifest.skills.find((skill) => skill.name === name);
|
|
85
85
|
assert.equal(entry?.invocation, "implicit", name);
|
|
86
86
|
const body = fs.readFileSync(path.join(root, entry.path), "utf8");
|
|
@@ -89,7 +89,19 @@ for (const name of ["handoff", "improve-codebase-architecture", "triage"]) {
|
|
|
89
89
|
const policy = YAML.parse(fs.readFileSync(path.join(root, "skills", name, "agents/openai.yaml"), "utf8"));
|
|
90
90
|
assert.equal(policy.policy.allow_implicit_invocation, true, name);
|
|
91
91
|
}
|
|
92
|
-
for (const name of [
|
|
92
|
+
for (const name of [
|
|
93
|
+
"research",
|
|
94
|
+
"wayfinder",
|
|
95
|
+
"find-skills",
|
|
96
|
+
"project-context",
|
|
97
|
+
"iterative-retrieval",
|
|
98
|
+
"using-git-worktrees",
|
|
99
|
+
"verification-before-completion",
|
|
100
|
+
"visual-companion",
|
|
101
|
+
"prototype",
|
|
102
|
+
"domain-modeling",
|
|
103
|
+
"improve-codebase-architecture",
|
|
104
|
+
]) {
|
|
93
105
|
assert.equal(manifest.skills.some((skill) => skill.name === name), false);
|
|
94
106
|
assert.equal(fs.existsSync(path.join(root, "skills", name, "SKILL.md")), false, name);
|
|
95
107
|
}
|
|
@@ -7,11 +7,11 @@ const { resolveAntigravitySkillPlan } = require("../install-antigravity");
|
|
|
7
7
|
const ROUTER_PATH = "skills/using-superpowers/SKILL.md";
|
|
8
8
|
const MAX_ROUTER_LINES = 50;
|
|
9
9
|
const RESIDENT_CONTEXT_BUDGETS = {
|
|
10
|
-
maxAgentsChars:
|
|
11
|
-
maxClaudeResidentRulesChars:
|
|
12
|
-
maxImplicitSkillMetadataChars:
|
|
13
|
-
maxAntigravitySkills:
|
|
14
|
-
maxAntigravitySkillMetadataChars:
|
|
10
|
+
maxAgentsChars: 1000,
|
|
11
|
+
maxClaudeResidentRulesChars: 4500,
|
|
12
|
+
maxImplicitSkillMetadataChars: 1150,
|
|
13
|
+
maxAntigravitySkills: 15,
|
|
14
|
+
maxAntigravitySkillMetadataChars: 1150,
|
|
15
15
|
};
|
|
16
16
|
const EXPECTED_TOP_LEVEL_RULES = [
|
|
17
17
|
"01-base.md",
|
|
@@ -31,6 +31,10 @@ const RETIRED_SKILL_PATHS = [
|
|
|
31
31
|
"skills/verification-before-completion/SKILL.md",
|
|
32
32
|
"skills/subagent-driven-development/SKILL.md",
|
|
33
33
|
"skills/e2e-testing/SKILL.md",
|
|
34
|
+
"skills/visual-companion/SKILL.md",
|
|
35
|
+
"skills/prototype/SKILL.md",
|
|
36
|
+
"skills/domain-modeling/SKILL.md",
|
|
37
|
+
"skills/improve-codebase-architecture/SKILL.md",
|
|
34
38
|
];
|
|
35
39
|
const RETIRED_RULE_PATHS = [
|
|
36
40
|
"rules/07-forbidden.md",
|
|
@@ -117,14 +121,6 @@ function checkRetiredReferences({ managedFiles, isVerifierImplementation, read,
|
|
|
117
121
|
}
|
|
118
122
|
}
|
|
119
123
|
|
|
120
|
-
function checkVisualCompanionSecurity({ requireTokens }) {
|
|
121
|
-
requireTokens("skills/visual-companion/scripts/server.cjs", [
|
|
122
|
-
"127.0.0.1",
|
|
123
|
-
"isAuthorized(req)",
|
|
124
|
-
"isAllowedWebSocketOrigin(req)",
|
|
125
|
-
]);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
124
|
function checkResidentContextBudget(
|
|
129
125
|
{ root, exists, read, fail },
|
|
130
126
|
budgets = RESIDENT_CONTEXT_BUDGETS,
|
|
@@ -204,7 +200,6 @@ function runWorkflowChecks(context) {
|
|
|
204
200
|
checkTopLevelRules(context);
|
|
205
201
|
checkMergedSkillReferences(context);
|
|
206
202
|
checkRetiredReferences(context);
|
|
207
|
-
checkVisualCompanionSecurity(context);
|
|
208
203
|
checkResidentContextBudget(context);
|
|
209
204
|
}
|
|
210
205
|
|
package/skills/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
调用策略登记在 `harness/manifest.json`,由 `npm run verify` 按宿主校验。`implicit` 允许模型在命中描述与正文条件时调用,不等于授权外部写入;本项目需要明确请求的入口接受自然语言,不要求用户再输入 `/name` 或 `$name`;路由不能把任务复杂度当作用户请求。Skill 正文仍按命中后加载,不能把分类索引当作全量加载清单。
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
实施、审查、E2E 和 `/learn` 依赖的能力允许工作流按条件调用,仍遵守各自的用户请求、同意和写入边界。`handoff`、`triage` 仅在用户明确请求相应任务时使用;宿主允许模型识别自然语言请求,正文仍限制任务范围。
|
|
10
10
|
|
|
11
11
|
## Process / 门禁
|
|
12
12
|
|
|
@@ -20,11 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
## 旁路设计能力
|
|
22
22
|
|
|
23
|
-
- `
|
|
24
|
-
- `codebase-design`:deep module、interface、seam、adapter、leverage 和 locality 设计词汇。
|
|
25
|
-
- `improve-codebase-architecture`:扫描 deepening 机会、展示报告并收敛选中候选。
|
|
26
|
-
- `prototype`:用 logic TUI 或视觉 UI 原型回答一个可运行的设计问题。
|
|
27
|
-
- `visual-companion`:经用户同意后,在安全本地浏览器中展示视觉方案和图示。
|
|
23
|
+
- `codebase-design`:deep module、interface、seam、adapter、leverage、locality 设计及只读架构审计。
|
|
28
24
|
|
|
29
25
|
## Engineering / 开发实践
|
|
30
26
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: codebase-design
|
|
3
|
-
description: Design deep modules
|
|
3
|
+
description: Design deep modules/seams or run read-only architecture audit.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Codebase Design
|
|
@@ -44,6 +44,12 @@ question is specifically about a module, interface or seam.
|
|
|
44
44
|
Read `references/deepening.md` when merging shallow modules or changing dependencies. Read
|
|
45
45
|
`references/design-it-twice.md` when alternative interfaces need independent exploration.
|
|
46
46
|
|
|
47
|
+
## Read-Only Architecture Audit
|
|
48
|
+
|
|
49
|
+
When the user explicitly requests an architecture-health audit, inspect high-churn subsystems for
|
|
50
|
+
shallow modules, pass-through layers, or leaked ordering/error invariants and report evidence-backed
|
|
51
|
+
deepening candidates without modifying files.
|
|
52
|
+
|
|
47
53
|
## Output
|
|
48
54
|
|
|
49
55
|
```text
|
|
@@ -7,16 +7,22 @@
|
|
|
7
7
|
1. 读取 `package.json`、lockfile、CI 配置和现有测试目录,确认包管理器与脚本。
|
|
8
8
|
2. 查找 `playwright.config.*`、`tests/e2e/`、`e2e/`、`BASE_URL`、启动命令和测试数据准备方式。
|
|
9
9
|
3. 优先使用项目已有依赖和 `npx playwright test`;缺少浏览器时再处理安装。
|
|
10
|
-
4. 交互式探索和定位用 chrome-devtools MCP 连接用户已打开的 Chrome(`--autoConnect
|
|
10
|
+
4. 交互式探索和定位用 chrome-devtools MCP 连接用户已打开的 Chrome(`--autoConnect`),不新开浏览器;细节见下方“浏览器验证”,它不替代最终测试或报告。
|
|
11
11
|
|
|
12
12
|
## 执行契约
|
|
13
13
|
|
|
14
14
|
- 用 Page Object Model(POM)或项目已有等价抽象组织稳定定位器;优先 `getByRole`、`getByTestId` 和条件等待。
|
|
15
15
|
- 覆盖用户指定的关键旅程,并补正常、边界和错误路径;禁止用 `waitForTimeout` 掩盖竞态。
|
|
16
|
-
- 本地先运行与改动相关的最小集合;关键路径或新增测试重复运行以检查 flaky。
|
|
16
|
+
- 本地先运行与改动相关的最小集合;关键路径或新增测试重复运行以检查 flaky。多 worktree 本地并行运行 E2E 时隔离端口与环境变量,启动服务后必须等待 Web/API ready。
|
|
17
17
|
- 失败先读取 CLI 输出、trace、screenshot、video 和 HTML report,再判断是产品缺陷、测试缺陷还是环境问题。
|
|
18
18
|
- CI 失败保留 `playwright-report`、`test-results`、trace、screenshot 和 video;修复后至少复跑失败用例。
|
|
19
19
|
|
|
20
|
+
## 浏览器验证
|
|
21
|
+
|
|
22
|
+
- 需要登录态时复用已有会话;连接失败不另开浏览器绕过。
|
|
23
|
+
- 操作前确认目标页面,不关闭或修改无关页面。
|
|
24
|
+
- 可复跑测试使用独立测试登录态,不依赖用户日常会话。
|
|
25
|
+
|
|
20
26
|
## 最小配置要求
|
|
21
27
|
|
|
22
28
|
项目没有现成 E2E 基础设施时,才新增最小 `playwright.config.*`、测试目录和脚本。配置应明确 `baseURL`、`webServer`、`trace: 'on-first-retry'`、`screenshot: 'only-on-failure'` 和失败制品保存策略。
|
package/skills/grilling/SKILL.md
CHANGED
package/skills/handoff/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: handoff
|
|
3
|
-
description: Create
|
|
3
|
+
description: Create redacted handoff doc for an explicit fresh session.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Handoff
|
|
@@ -11,7 +11,7 @@ Origin: `mattpocock/skills@2ab9580`, adapted to this repository's write-safety a
|
|
|
11
11
|
|
|
12
12
|
## Preconditions
|
|
13
13
|
|
|
14
|
-
- Use only for
|
|
14
|
+
- Use only for an explicitly requested fresh session. Built-in compaction is for continuing
|
|
15
15
|
the same conversation at a phase boundary.
|
|
16
16
|
- Create the handoff only when the user explicitly requests it or accepts a concrete handoff proposal.
|
|
17
17
|
Ordinary language, `/handoff`, and `$handoff` are valid requests; do not require repeated invocation.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: implement
|
|
3
|
-
description: Internal delivery
|
|
3
|
+
description: Internal delivery flow selected by using-superpowers.
|
|
4
4
|
disable-model-invocation: true
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -37,10 +37,11 @@ disable-model-invocation: true
|
|
|
37
37
|
`test-driven-development` 的垂直切片推进;纯文档或没有可测试行为的整理运行对应校验。
|
|
38
38
|
已确认失败原因正确的预期 TDD RED 继续 GREEN,不触发调试。其他失败按
|
|
39
39
|
`systematic-debugging` 的分级入口处理,不跳过真实失败。
|
|
40
|
-
2.
|
|
40
|
+
2. 跨模块、>=3 文件、高风险改动或已批准 Spec / ticket 交付:用 pre-delivery base 冻结包含 task-owned committed、staged、unstaged、untracked 的完整审查包,
|
|
41
41
|
范围合同作为 Spec source,按 `skills/code-review/SKILL.md` 启动独立只读子代理(`independent` 或 `dual`)完成审查;
|
|
42
42
|
实施者不得自我审查,独立审查不可用时返回 `BLOCKED`,不得降级。
|
|
43
43
|
修复 Critical/Important findings 后复核受影响的验收与审查项,不把部分完成报告为交付完成。
|
|
44
|
+
(1–2 文件低风险本地小修可先凭新鲜验证证据完成,提 PR 前仍须通过 `code-review` 独立审查。)
|
|
44
45
|
3. 逐条核对验收,按 `rules/common/testing.md` 运行 fresh commands。已在当前阶段运行且仍对应
|
|
45
46
|
最终改动的证据可以复用;新改动、失败或未决风险才触发重跑。记录实际结果、未运行项和剩余风险。
|
|
46
47
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: systematic-debugging
|
|
3
|
-
description: Diagnose bugs,
|
|
3
|
+
description: Diagnose bugs, flaky failures, slowness, and performance regressions.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Systematic Debugging
|
|
@@ -126,4 +126,4 @@ Required before declaring done:
|
|
|
126
126
|
- [ ] Throwaway prototypes deleted (or moved to a clearly-marked debug location)
|
|
127
127
|
- [ ] The hypothesis that turned out correct is stated in the commit / PR message — so the next debugger learns
|
|
128
128
|
|
|
129
|
-
**Then ask: what would have prevented this bug?** If the answer involves architectural change (no good test seam, tangled callers, hidden coupling) hand off to
|
|
129
|
+
**Then ask: what would have prevented this bug?** If the answer involves architectural change (no good test seam, tangled callers, hidden coupling) hand off to `skills/codebase-design/SKILL.md` with the specifics. Make the recommendation **after** the fix is in, not before — you have more information now than when you started.
|