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
|
@@ -30,7 +30,7 @@ one ticket. Do not manufacture extra tickets merely to justify parallelism.
|
|
|
30
30
|
2. Confirm the selected tickets form the frontier and have no overlapping write surface. If overlap is
|
|
31
31
|
uncertain, run them sequentially.
|
|
32
32
|
3. Create one clean controller-owned integration worktree at the common base, plus one separate worktree
|
|
33
|
-
and branch per ticket using `
|
|
33
|
+
and branch per ticket using `rules/05-git-workflow.md`. The integration worktree is the only
|
|
34
34
|
delivery target; do not share a checkout between implementers.
|
|
35
35
|
4. Record the common base and every worktree path. The integration worktree must have no unrelated dirty
|
|
36
36
|
or untracked files before the first diff is applied.
|
|
@@ -9,11 +9,43 @@ description: Diagnose bugs, recurring or flaky failures, slowness, and performan
|
|
|
9
9
|
|
|
10
10
|
- 已确认失败原因正确的预期 TDD RED:回到实现的 GREEN,不加载完整诊断参考。
|
|
11
11
|
- 原因已由错误信息和调用链证实的普通失败:最小修复并重跑对应验证,不制造多个假设。
|
|
12
|
-
- 根因不明、修复后仍重复失败、flaky
|
|
13
|
-
|
|
12
|
+
- 根因不明、修复后仍重复失败、flaky 或性能回归:进入下方证据闭环,同时读取
|
|
13
|
+
`references/diagnosing-bugs.upstream.md`,仅查阅复现、最小化和回归方法;执行流程与退出条件由本文定义。
|
|
14
14
|
|
|
15
15
|
所有路径都保留原始症状和修复后的验证证据。不能把非目标错误当作预期 RED,也不能跳过真实失败。
|
|
16
16
|
|
|
17
|
+
## 证据闭环
|
|
18
|
+
|
|
19
|
+
1. **固定问题与现场。** 记录用户的实际/预期行为、发生时间、运行版本与环境,读取完整错误和相关改动。
|
|
20
|
+
核对被测进程或产物确实对应目标版本;测试报错只有命中原症状才算复现。展示日志、请求和命令前脱敏。
|
|
21
|
+
2. **追踪实际调用链。** 从异常值或状态沿调用者反向追到首次偏离预期的位置,核对输入、输出、配置和状态。
|
|
22
|
+
多组件问题先找最后正常边界与最早异常边界,再深入故障组件;对照正常样本或版本。
|
|
23
|
+
区分报错位置、直接原因和上游触发条件,不能仅凭错误名称认定根因。
|
|
24
|
+
3. **选择取证路径。** 可复现时建立命中原症状的反馈并缩小场景;偶发问题记录样本数、失败率和条件,
|
|
25
|
+
不以一次成功认定修复,也不强求秒级运行或固定复现率。无法重现时,继续关联已有 trace、日志、请求、
|
|
26
|
+
时间线及代码路径,并用局部实验或定向观测检验解释;局部实验不冒充原场景复现。
|
|
27
|
+
4. **提出并检验假设。** 按现有证据选择有区分价值的假设,不凑固定数量。每个待检验假设写清依据、
|
|
28
|
+
可推翻它的预测和最小实验;一次改变一个变量。执行后记录实际结果,标记支持、排除或仍未确定。
|
|
29
|
+
展示假设是进度更新,不能在仍有可执行调查时以“可能原因”列表结束。
|
|
30
|
+
5. **确认后修复。** 进入根因修复前,说明触发条件如何沿调用链造成原症状,并提供能区分主要竞争解释的
|
|
31
|
+
运行证据或对照实验。只有代码猜测、错误消失或重试成功不足以确认。证据不足时继续取证;用户要求先止损时,
|
|
32
|
+
将措施标为缓解,不宣称根因已修复。确认后按上游方法执行最小修复和原始场景回归。
|
|
33
|
+
尚未找到合适测试入口时,记录验证缺口并检查更完整的调用场景;缺少测试入口本身不能证明架构有错。
|
|
34
|
+
6. **失败后重新调查。** 假设被否定或修复无效时,记录反证,回到现场与调用链,不在未证实的改动上叠加补丁。
|
|
35
|
+
连续三次修复无效,或修复不断引出不同组件的异常时,重新检查问题模型、环境和共享状态/耦合;
|
|
36
|
+
次数本身不能证明架构有错。可继续只读取证;超出授权范围的架构变更先提交具体证据和决策。
|
|
37
|
+
|
|
38
|
+
## 退出与报告
|
|
39
|
+
|
|
40
|
+
- **根因已确认:** 给出触发条件 → 因果链 → 原症状、关键证据及主要替代解释的检验结果。
|
|
41
|
+
仅要求诊断时可到此结束;要求修复时还须报告最终状态的原场景验证,区分已定位、已修复和已验证。
|
|
42
|
+
- **尚未确认且可继续:** 执行下一项能区分假设的调查,不用置信度措辞代替证据。
|
|
43
|
+
- **受阻:** 已用尽当前可访问的有效取证路径,列明已尝试的方法、已确认的边界、缺失的具体证据及其获取方式,
|
|
44
|
+
只请求必要的访问或用户操作。环境、时序或外部服务也需要证据,不能作为排查不到的兜底解释。
|
|
45
|
+
|
|
46
|
+
修改本流程后,用 [诊断场景](references/diagnostic-scenarios.md) 检查实际决策;仓库静态验证只证明文件与结构有效,
|
|
47
|
+
不能证明模型已能找到根因。
|
|
48
|
+
|
|
17
49
|
## 项目运行适配
|
|
18
50
|
|
|
19
51
|
上游六阶段原文及 `scripts/hitl-loop.template.sh` 作为上游原始 Bash 模板留档,保持原样。
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# 诊断场景验证
|
|
2
|
+
|
|
3
|
+
用于修改排障流程后的行为评估,不在普通排障时加载。向独立评估者提供 SKILL.md、上游参考与下面的场景输入,
|
|
4
|
+
隐藏验收要点;要求给出实际下一步、证据判断与当前可报告结论。只使用临时夹具,不访问生产环境。
|
|
5
|
+
记录实际回答及未执行项。静态关键词检查、评估者自报通过均不能代替检查其输出。
|
|
6
|
+
|
|
7
|
+
## 场景输入
|
|
8
|
+
|
|
9
|
+
1. 用户说“上传偶发失败,重试就好,昨天的现场无法复现”。当前有脱敏的请求时间线和客户端日志可读,
|
|
10
|
+
服务端日志需要额外权限。尚未读取现有材料。要求定位根因。
|
|
11
|
+
2. 用户说“请求返回 401,是不是 token 过期?”已知客户端构造请求时有 Authorization,代理收到时也有,
|
|
12
|
+
服务收到时却没有;尚未检查代理转发逻辑。要求诊断并修复。
|
|
13
|
+
3. 用户说“改了超时、重试和缓存三处后测试通过,可以说找到根因了吗?”原问题为 100 次请求中约 2 次失败,
|
|
14
|
+
修改后只运行了一次;没有各改动的独立对照结果。
|
|
15
|
+
4. 用户要求诊断跨请求数据串用。连续三次修复无效,各次均调整调用者局部变量;现在发现两个调用者共享
|
|
16
|
+
同一个可变对象,但尚未做并发对照。要求继续。
|
|
17
|
+
5. 用户要求定位线上一次性故障。现有日志与请求均无留存,无法访问故障版本,已尝试现版本重现和可用监控查询,
|
|
18
|
+
均未获得相关信号。要求直接给根因。
|
|
19
|
+
|
|
20
|
+
## 验收要点(不提供给评估者)
|
|
21
|
+
|
|
22
|
+
1. 继续读取已有现场证据并关联时间/请求,提出区分实验;不因无法重现直接停止,不编造服务端结论。
|
|
23
|
+
2. 定位代理入口到服务入口之间的异常边界,检查转发与配置并做对照;不能把 401 当成过期证明,
|
|
24
|
+
也不能把尚未检查的代理逻辑直接称为已确认根因。
|
|
25
|
+
3. 拒绝根因或稳定修复声明;分离变量、恢复可比较基线、报告样本和失败率,重新覆盖原症状。
|
|
26
|
+
4. 保留前三次反证,重新检查共享状态并设计隔离对象/并发对照;不把三次失败直接判为架构错误,
|
|
27
|
+
不擅自扩大到架构重写。
|
|
28
|
+
5. 明确受阻,列出尝试和缺失证据,提出具体获取方式;不为了满足用户给出无证据的确定结论。
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: using-superpowers
|
|
3
|
-
description: Route
|
|
3
|
+
description: Route engineering delivery and explicitly requested engineering workflows; resume their process outcomes.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Using Superpowers
|
|
7
7
|
|
|
8
8
|
Own routing and continuation. Skills return outcomes here instead of selecting one another.
|
|
9
9
|
|
|
10
|
+
## Applicability
|
|
11
|
+
|
|
12
|
+
用于工程交付(实现、调试、测试、审查)及用户明确请求的工程工作流,并接续这些流程的返回结果。
|
|
13
|
+
普通问答、翻译、总结和一般资料检索直接处理;复杂度本身不触发本路由。
|
|
14
|
+
|
|
10
15
|
## Priority
|
|
11
16
|
|
|
12
17
|
User instructions, `AGENTS.md`, `CLAUDE.md`, and repository rules take precedence over Skills,
|
|
@@ -52,7 +57,6 @@ Task arrives
|
|
|
52
57
|
-> reported bug or unexplained/repeated failure? -> skills/systematic-debugging/SKILL.md
|
|
53
58
|
-> discoverable fact? -> inspect it; do not ask
|
|
54
59
|
-> external engineering fact or documentation question? -> inspect primary sources directly; cite the answer
|
|
55
|
-
-> systematic evidence or blind-spot gap? -> iterative-retrieval
|
|
56
60
|
-> explicit prototype or runnable design question? -> skills/prototype/SKILL.md
|
|
57
61
|
-> unresolved user-owned decision? -> skills/grilling/SKILL.md (grilling inline)
|
|
58
62
|
high-risk or explicit formal Spec context? -> resume_target: spec-gate
|
|
@@ -63,8 +67,8 @@ Task arrives
|
|
|
63
67
|
-> skills/subagent-driven-development/SKILL.md
|
|
64
68
|
-> otherwise -> skills/implement/SKILL.md
|
|
65
69
|
-> behavior change with a test path? -> test-driven-development
|
|
66
|
-
-> new feature or other Git-rule isolation need? ->
|
|
67
|
-
-> completion, fixed, or ready claim? ->
|
|
70
|
+
-> new feature or other Git-rule isolation need? -> rules/05-git-workflow.md
|
|
71
|
+
-> completion, fixed, or ready claim? -> rules/common/testing.md
|
|
68
72
|
-> skill discovery or install request? -> use available host tooling for the explicit request
|
|
69
73
|
-> external skill learning or edit? -> rules/common/skills-learning.md
|
|
70
74
|
-> otherwise -> shortest applicable loop
|
|
@@ -105,4 +109,4 @@ For one release cycle, interpret a user explicitly asking for the old name `brai
|
|
|
105
109
|
|
|
106
110
|
## Completion
|
|
107
111
|
|
|
108
|
-
Before saying work is complete, fixed, passing, or ready, apply `
|
|
112
|
+
Before saying work is complete, fixed, passing, or ready, apply `rules/common/testing.md` and report fresh evidence, skipped checks, and remaining risk.
|
|
@@ -16,13 +16,16 @@ from the approved scope without waiting for the user to name the next Skill.
|
|
|
16
16
|
|
|
17
17
|
## Spec Gate blocked
|
|
18
18
|
|
|
19
|
-
`BLOCKED_BY_UNRESOLVED_DECISION`
|
|
20
|
-
|
|
21
|
-
1.
|
|
22
|
-
2.
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
`BLOCKED_BY_UNRESOLVED_DECISION` ends the current Spec drafting call and returns to the router:
|
|
20
|
+
|
|
21
|
+
1. Preserve the confirmed decisions and evidence; do not draft through an unresolved decision.
|
|
22
|
+
2. Show a compact decision map and use grilling inline to ask the missing consequential question within
|
|
23
|
+
the user's authorized task; do not ask whether to continue clarification.
|
|
24
|
+
3. Wait for the user's answer or explicit delegation. Silence is not a decision or approval.
|
|
25
|
+
4. Once resolved, route into a new Spec Gate with the updated handoff; do not resume the old call stack.
|
|
26
|
+
The resulting Spec still needs user approval before implementation.
|
|
27
|
+
5. If the user pauses or ends the task, stop. A new scope or external action still requires its own
|
|
28
|
+
authorization; clarification does not expand the original request.
|
|
26
29
|
|
|
27
30
|
If the same confirmed `decision_id` blocks again with unchanged evidence, report a `Spec Gate contract conflict`.
|
|
28
31
|
Do not repeat the question. Only reversal evidence or an invalidated premise can reopen it.
|