claude-everything-workflow 0.2.2 → 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.
Files changed (92) hide show
  1. package/.agents/plugins/marketplace.json +12 -0
  2. package/.claude-plugin/hooks.json +33 -0
  3. package/.claude-plugin/marketplace.json +12 -0
  4. package/.claude-plugin/plugin.json +10 -0
  5. package/.codex-plugin/plugin.json +20 -0
  6. package/AGENTS.md +13 -18
  7. package/CLAUDE.md +1 -5
  8. package/README.md +101 -368
  9. package/README.zh-CN.md +158 -0
  10. package/agents/database-reviewer.md +0 -3
  11. package/agents/e2e-runner.md +8 -141
  12. package/commands/code-review.md +9 -30
  13. package/commands/pr.md +1 -6
  14. package/commands/verify.md +7 -11
  15. package/docs/plugins.md +91 -0
  16. package/harness/manifest.json +310 -0
  17. package/package.json +14 -2
  18. package/references/git-worktrees.md +29 -0
  19. package/rules/01-base.md +9 -26
  20. package/rules/02-code-size.md +5 -9
  21. package/rules/03-architecture.md +8 -22
  22. package/rules/04-error-handling.md +4 -5
  23. package/rules/05-git-workflow.md +6 -3
  24. package/rules/06-comments.md +3 -9
  25. package/rules/07-forbidden.md +4 -3
  26. package/rules/common/agent-orchestration.md +2 -4
  27. package/rules/common/context-hygiene.md +2 -0
  28. package/rules/common/hooks.md +2 -0
  29. package/rules/common/pr-automation.md +1 -1
  30. package/rules/common/skills-learning.md +2 -2
  31. package/rules/common/testing.md +10 -2
  32. package/scripts/install-rules.js +100 -0
  33. package/scripts/install.ps1 +29 -3
  34. package/scripts/install.sh +26 -2
  35. package/scripts/legacy-common-rule-hashes.json +78 -0
  36. package/scripts/retired-skill-files.json +26 -0
  37. package/scripts/upstream-capability-map.json +14 -9
  38. package/scripts/verify/continuation-checks.test.js +101 -0
  39. package/scripts/verify/core.js +1 -0
  40. package/scripts/verify/grilling-spec-gate-checks.js +48 -11
  41. package/scripts/verify/install-rules.test.js +165 -0
  42. package/scripts/verify/metadata-checks.js +35 -26
  43. package/scripts/verify/plugin-distribution.test.js +40 -0
  44. package/scripts/verify/repository-checks.js +39 -80
  45. package/scripts/verify/skill-invocation.test.js +87 -0
  46. package/scripts/verify/skill-manifest-checks.js +197 -0
  47. package/scripts/verify/skill-manifest-checks.test.js +135 -0
  48. package/scripts/verify/workflow-checks.js +28 -150
  49. package/scripts/verify-harness.js +2 -0
  50. package/scripts/verify-upstream-capability-map.js +2 -1
  51. package/skills/README.md +11 -15
  52. package/skills/code-review/SKILL.md +54 -41
  53. package/skills/codebase-design/SKILL.md +1 -1
  54. package/skills/continuous-learning-v2/SKILL.md +4 -2
  55. package/skills/domain-modeling/SKILL.md +9 -6
  56. package/skills/e2e-testing/SKILL.md +20 -310
  57. package/skills/e2e-testing/references/playwright-patterns.md +324 -0
  58. package/skills/feature-acceptance/SKILL.md +6 -2
  59. package/skills/grilling/SKILL.md +4 -3
  60. package/skills/handoff/SKILL.md +3 -4
  61. package/skills/handoff/agents/openai.yaml +5 -0
  62. package/skills/implement/SKILL.md +32 -81
  63. package/skills/implement/references/ticket-delivery.md +43 -0
  64. package/skills/improve-codebase-architecture/SKILL.md +1 -2
  65. package/skills/improve-codebase-architecture/agents/openai.yaml +5 -0
  66. package/skills/prototype/SKILL.md +1 -1
  67. package/skills/resolving-merge-conflicts/SKILL.md +1 -1
  68. package/skills/spec-gate/SKILL.md +4 -2
  69. package/skills/subagent-driven-development/SKILL.md +3 -3
  70. package/skills/systematic-debugging/SKILL.md +41 -3
  71. package/skills/systematic-debugging/references/diagnostic-scenarios.md +28 -0
  72. package/skills/test-driven-development/SKILL.md +6 -2
  73. package/skills/to-tickets/SKILL.md +5 -3
  74. package/skills/triage/SKILL.md +4 -4
  75. package/skills/triage/agents/openai.yaml +5 -0
  76. package/skills/using-superpowers/SKILL.md +33 -96
  77. package/skills/using-superpowers/references/process-outcomes.md +44 -0
  78. package/skills/visual-companion/SKILL.md +1 -1
  79. package/agents/architect.md +0 -59
  80. package/agents/code-reviewer.md +0 -28
  81. package/agents/planner.md +0 -40
  82. package/agents/tdd-guide.md +0 -101
  83. package/references/agents/database-reviewer.md +0 -657
  84. package/skills/find-skills/SKILL.md +0 -142
  85. package/skills/iterative-retrieval/SKILL.md +0 -84
  86. package/skills/project-context/SKILL.md +0 -94
  87. package/skills/project-context/agents/openai.yaml +0 -6
  88. package/skills/project-context/references/project-context-template.md +0 -61
  89. package/skills/research/SKILL.md +0 -48
  90. package/skills/using-git-worktrees/SKILL.md +0 -64
  91. package/skills/verification-before-completion/SKILL.md +0 -77
  92. package/skills/wayfinder/SKILL.md +0 -57
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: grilling
3
- description: "Resolve consequential user-owned decisions through a one-question-at-a-time interview. Use when the user says grill me, asks for challenge or pressure-testing, or when the central router finds an unresolved decision that materially changes the outcome; do not trigger for discoverable facts, ordinary complexity, file count, or high risk by itself."
3
+ description: Resolve a consequential user-owned decision one question at a time; do not ask discoverable facts.
4
4
  ---
5
5
 
6
6
  # Grilling
@@ -13,7 +13,6 @@ Reference: https://github.com/mattpocock/skills/blob/main/skills/productivity/gr
13
13
 
14
14
  - Do not ask for discoverable facts. Inspect files, documentation, logs, history, and tools first.
15
15
  - Ask only about a user-owned decision whose alternatives materially change the result.
16
- - Route systematic evidence or blind-spot gaps back through `skills/using-superpowers/SKILL.md` for `skills/iterative-retrieval/SKILL.md`.
17
16
  - High risk alone does not trigger an interview. If high-risk work has a real unresolved user decision, resolve it and record `resume_target: spec-gate`.
18
17
  - Do not generate or approve a Spec, implement code, or own workflow continuation.
19
18
 
@@ -80,4 +79,6 @@ Use `resume_target: spec-gate` only when the router already classified the task
80
79
 
81
80
  For an explicit session, ask whether shared understanding has been reached. Do not act, write files, or enter implementation before confirmation. Inline mode may return without an extra confirmation gate when the blocking decision is resolved.
82
81
 
83
- After exit, return to `skills/using-superpowers/SKILL.md` for routing. A fresh session created after `BLOCKED_BY_UNRESOLVED_DECISION` must not resume the old Spec Gate call stack; it returns a new handoff to the router.
82
+ After exit, return to `skills/using-superpowers/SKILL.md` for routing. Inline clarification after
83
+ `BLOCKED_BY_UNRESOLVED_DECISION` returns the resolved decision and updated handoff to the router for a new
84
+ Spec Gate call; it does not resume incomplete drafting or approve the Spec.
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  name: handoff
3
- description: "Compact the current work into a redacted Markdown handoff for a fresh session. Use when the user explicitly invokes this skill, when a prototype detour needs an isolated session, or when the active context is leaving its reliable reasoning zone."
4
- disable-model-invocation: true
3
+ description: Create a redacted handoff for an explicitly requested fresh session or context boundary.
5
4
  ---
6
5
 
7
6
  # Handoff
@@ -14,8 +13,8 @@ Origin: `mattpocock/skills@2ab9580`, adapted to this repository's write-safety a
14
13
 
15
14
  - Use only for a fresh session or an intentional prototype branch. Built-in compaction is for continuing
16
15
  the same conversation at a phase boundary.
17
- - Creating the handoff document is authorized only by explicit invocation or explicit approval
18
- after the router recommends it.
16
+ - Create the handoff only when the user explicitly requests it or accepts a concrete handoff proposal.
17
+ Ordinary language, `/handoff`, and `$handoff` are valid requests; do not require repeated invocation.
19
18
  - Resolve the operating system's temporary directory with the available runtime. Create a unique
20
19
  private subdirectory with mode `0700`; fail closed if permissions cannot be enforced. Do not write
21
20
  the handoff into the repository, tracker, home directory, or a guessed path.
@@ -0,0 +1,5 @@
1
+ interface:
2
+ display_name: "Handoff"
3
+ short_description: "Create a redacted handoff for an explicitly requested fresh session."
4
+ policy:
5
+ allow_implicit_invocation: true
@@ -1,97 +1,48 @@
1
1
  ---
2
2
  name: implement
3
- description: "Execute a user-authorized low-risk direct scope, approved scope, or agent-ready frontier ticket through TDD, review, and verification; claim, resolve, and frontier refresh apply only to ticket delivery."
3
+ description: Deliver one authorized scope through implementation, review, and verification.
4
4
  ---
5
5
 
6
6
  # Implement
7
7
 
8
- 执行 router 在用户已授权范围内选定的低风险 direct scope、approved Spec scope 或 agent-ready ticket。direct scope
9
- 只能来自明确的用户交付请求,且不得涉及 formal Spec 或高风险边界;不要把咨询、建议或模糊意图解释为交付授权。
8
+ 执行 router 选定的一个连贯交付范围。Origin: `mattpocock/skills@2ab9580`,适配本项目授权与审查边界。
10
9
 
11
- Origin: `mattpocock/skills@2ab9580`, adapted to this repository's tracker, review, and
12
- external-write approval contracts.
10
+ ## 入口
13
11
 
14
- ## State Machine
12
+ - direct scope:明确、低风险的用户交付请求。原始请求、目标行为、范围边界和相称验证组成
13
+ `direct-scope contract`;咨询不等于交付授权。
14
+ - approved Spec scope:已获用户批准的 Spec 是范围与验收来源。
15
+ - ticket:仅此路径先读取 [references/ticket-delivery.md](references/ticket-delivery.md),核实 frontier,
16
+ 再按该引用与下方共用步骤交付。无 ticket 范围不得 claim 或写入任何 tracker。
15
17
 
16
- `PRECONDITION → ISOLATE → [CLAIM] → EXECUTE → REVIEW → VERIFY → [RESOLVE → REFRESH_FRONTIER] → FINISH_DELIVERY`
18
+ 缺少可复核验收、存在实质用户决策或命中尚未批准的 formal Spec/高风险边界时,返回 router,不能猜测或实施。
19
+ 普通范围使用当前会话,不为满足流程创建新的上下文或 tracker。
17
20
 
18
- 方括号中的状态只属于 tracker ticket。无 ticket 的 direct scope 或 approved Spec scope 跳过 CLAIM、RESOLVE
19
- 和 REFRESH_FRONTIER,但不能跳过隔离、实施、审查或验证。每次调用只推进 router 选定的一张 ticket 或一个连贯范围;
20
- 任何 gate 失败都停止在当前状态并保留可恢复证据,不能把部分完成解释为交付完成。
21
+ ## 隔离与基线
21
22
 
22
- ### PRECONDITION
23
+ 检查 branch、worktree、staged、unstaged 和 untracked,记录 `git rev-parse HEAD` 为 pre-delivery base,
24
+ 并记录 task-owned 改动。已有无关改动必须排除,不能回滚。
23
25
 
24
- - direct scope 仅在 router 已判定为明确、低风险且用户已授权交付时进入。原始用户请求、要达成的行为、范围边界和
25
- 相称验证共同构成 `direct-scope contract`;缺少其中任一项、存在未决用户决策,或命中 formal Spec/高风险边界时,停止并返回对应门禁。
26
- - approved Spec scope 以已批准 Spec 为范围和验收来源;agent-ready ticket 则先读取
27
- `docs/agent-workflow/project-context.md` 和完整 blocking 状态,且必须位于 open + unblocked + unclaimed frontier。
28
- - 所有路径都必须有可复核的验收或验证条件;未批准、仍有用户决策或缺少该条件时,停止并返回对应门禁,不猜测。
26
+ 是否创建 worktree 及具体操作按 `rules/05-git-workflow.md` 执行,不嵌套创建。
27
+ 只做必要 setup 与相关 baseline tests。
28
+ 只有 clean baseline 才进入实施;失败时记录命令、失败与工作区状态,返回 router 处理,不能伪装通过。
29
29
 
30
- ### ISOLATE
30
+ ## 实施、审查与验证
31
31
 
32
- 开始实现前检查当前 branch、worktree、staged、unstaged 和 untracked 状态。除只读分析和单文件修改外,所有代码、配置、Harness 改动必须先创建独立 `git worktree` 和任务分支;使用
33
- `skills/using-git-worktrees/SKILL.md` 准备隔离工作区。无代码/配置/Harness 的窄范围文档改动可按该 Skill 的例外原地执行。不得嵌套创建 worktree。
32
+ 1. 以当前范围合同实施最小完整改动,不再生成逐文件、逐步骤的实施计划。行为变化按
33
+ `test-driven-development` 的垂直切片推进;纯文档或没有可测试行为的整理运行对应校验。
34
+ 已确认失败原因正确的预期 TDD RED 继续 GREEN,不触发调试。其他失败按
35
+ `systematic-debugging` 的分级入口处理,不跳过真实失败。
36
+ 2. 用 pre-delivery base 冻结包含 task-owned committed、staged、unstaged、untracked 的完整审查包,
37
+ 范围合同作为 Spec source,按 `skills/code-review/SKILL.md` 选择相称的 review 模式。
38
+ 满足该 Skill 的低风险与验证条件时可自审;需要独立审查却无法启动时不得降级。
39
+ 修复 Critical/Important findings 后复核受影响的验收与审查项,不把部分完成报告为交付完成。
40
+ 3. 逐条核对验收,按 `rules/common/testing.md` 运行 fresh commands。已在当前阶段运行且仍对应
41
+ 最终改动的证据可以复用;新改动、失败或未决风险才触发重跑。记录实际结果、未运行项和剩余风险。
34
42
 
35
- 只运行项目需要的 setup,然后执行与目标路径匹配的 baseline tests。只有 clean baseline 才能
36
- 进入 ticket 的 CLAIM 或无 ticket 范围的 EXECUTE;baseline 失败时报告命令、失败和现有工作区状态,等待用户决定调查还是继续。
43
+ ## 收尾与授权
37
44
 
38
- 进入实施前记录 `git rev-parse HEAD` 为 pre-delivery base;ticket 路径同时把它作为 pre-ticket base,并记录
39
- task-owned dirty/untracked 初始状态。已有无关改动必须排除,不能回滚。
40
-
41
- ### CLAIM(仅 ticket)
42
-
43
- - 本地 tracker:router 在用户已授权交付范围内选定该 ticket 后,可只把它从 `ready-for-agent` 改为
44
- `in-progress`,不得顺带修改其他 ticket。
45
- - 外部 tracker:先展示 assignee/status/label 的准确 mutation,并取得 explicit confirmation。
46
- - 无 ticket 范围不得 claim 或写入任何 tracker。
47
-
48
- ### EXECUTE
49
-
50
- 每次 `implement` 只在一个 fresh context 中完成一张已领取的 ticket 或一个无 ticket 连贯范围。ticket 以
51
- `What to build`、验收标准和 blocker 为实施合同;direct scope 以 `direct-scope contract` 为合同;approved Spec
52
- scope 以已批准 Spec 为合同。按 `test-driven-development` 的垂直切片实现,不要生成或依赖另一份逐文件、逐步骤的实施计划。
53
-
54
- 每个已验证切片只向当前 ticket 追加简短 progress 记录;无 ticket 范围只在当前交付回报中记录证据。遇到失败测试、flaky
55
- 或意外结果时进入 `systematic-debugging`,不得用后续步骤可能修复为由跳过当前失败。
56
-
57
- ### REVIEW
58
-
59
- 完成前以 ticket as the Spec source,执行 `/code-review --worktree <pre-ticket-base> --spec <ticket>`;无 ticket
60
- 范围则把 `direct-scope contract` 或 approved Spec 作为 scope source,并以 pre-delivery base 冻结同等审查包。
61
- review package 必须覆盖 task-owned committed、staged、unstaged 和 untracked 改动。Spec 或 Standards 轴未通过时,
62
- ticket 保持 `in-progress`,无 ticket 范围停止在 REVIEW;修复 Critical/Important findings 后重新 review。
63
-
64
- ### VERIFY
65
-
66
- 逐条核对 ticket acceptance criteria,或无 ticket 范围的 `direct-scope contract`/approved Spec 验收条件,并执行
67
- `verification-before-completion` 要求的 fresh commands。任何 acceptance、测试、构建或验证失败都让 ticket 保持
68
- `in-progress` 或让无 ticket 范围停止在 VERIFY,记录实际结果、跳过项和剩余风险;不得进入 RESOLVE。
69
-
70
- ### RESOLVE(仅 ticket)
71
-
72
- 只有 acceptance、双轴 review 和 fresh verification 全部通过后才能 resolve 当前 ticket:
73
-
74
- - 本地 tracker 更新状态并记录证据。
75
- - 外部 tracker 的评论或关闭仍需 explicit confirmation。
76
- - 未通过时保持 `in-progress` 并记录失败,不得伪装完成。
77
-
78
- ### REFRESH_FRONTIER(仅 ticket)
79
-
80
- resolve 后重新查询依赖图并返回 router。若 newly unlocked frontier tickets 仍在用户已授权范围内,router
81
- 可重新选择串行 `implement` 或安全 SDD;否则报告 frontier 并停止。不得自动关闭外部 Issue 或 parent issue。
82
-
83
- ### FINISH_DELIVERY
84
-
85
- - 无 ticket 范围:双轴 review 与 fresh verification 均通过后,报告范围、证据、未运行项和剩余风险;不得 claim、resolve、查询或刷新 tracker frontier。若用户随后要求 PR,仍须先通过 `/verify pre-pr`,且不自动 commit、push 或创建 PR。
86
- - frontier 非空:返回当前 graph 状态、newly unlocked tickets 和 blockers,然后停止。
87
- - frontier 为空但仍有 open tickets:返回 `BLOCKED_GRAPH`,列出被依赖阻塞、循环依赖、claim
88
- 冲突或状态异常的 tickets,保持交付未完成并停止,不能进入 PR 收尾。
89
- - 只有 open ticket count = 0:以 feature/worktree 起点为固定基点执行全分支双轴 review,再运行
90
- `/verify pre-pr`。只有两者都通过,才能向用户展示 `/pr` 或 keep 当前 branch/worktree 的选择;
91
- 不自动 merge、删除 branch 或清理 worktree。
92
-
93
- ## Authorization Invariants
94
-
95
- - 用户的交付授权覆盖已批准 ticket graph,或 router 判定的明确低风险 direct scope/approved Spec scope 内的本地实现和拓扑选择;不覆盖新的产品范围,也不覆盖 commit、push 或创建 PR。
96
- - tracker publication、claim、resolve、评论和关闭都是 ticket 路径中的独立外部 mutation;无 ticket 范围不得借此产生 tracker 写入,本次阶段授权也不能推导出下一阶段授权。
97
- - FINISH_DELIVERY 只展示选择;merge、PR 和 cleanup 继续遵守用户授权与仓库 Git 规则。
45
+ - 无 ticket:选定的 review 与 fresh verification 均通过后报告范围、证据和风险;到此结束,不查询或刷新 frontier。
46
+ - ticket:验收、review 和 verification 全部通过后,回到 ticket 引用完成 resolve 与后续处理。
47
+ - 本地交付授权不覆盖 commit、push 或创建 PR,也不扩张产品范围。用户已明确授权的后续动作按授权继续,
48
+ 不重复索要同一批准;PR 仍须通过 `/verify pre-pr`。外部写入、merge 和 cleanup 遵循 Git 规则与用户授权。
@@ -0,0 +1,43 @@
1
+ # Ticket Delivery
2
+
3
+ 仅执行 tracker ticket 时读取;实施、隔离、审查和验证共用 `skills/implement/SKILL.md`,不重复定义。
4
+
5
+ ## State Machine
6
+
7
+ `PRECONDITION → ISOLATE → [CLAIM] → EXECUTE → REVIEW → VERIFY → [RESOLVE → REFRESH_FRONTIER] → FINISH_DELIVERY`
8
+
9
+ 方括号为 ticket 专属状态。任何 gate 失败均停在当前状态并保留证据,不能提前 resolve。
10
+
11
+ ## PRECONDITION 与 CLAIM
12
+
13
+ - 优先读取已有 `docs/agent-workflow/project-context.md`,缺少时使用仓库或会话中已确认的追踪配置;
14
+ 不因缺少文件要求执行初始化。读取完整 ticket 和 blocking 状态;必须位于
15
+ open + unblocked + unclaimed frontier。`What to build`、验收标准和 blocker 构成交付合同。
16
+ - 每次在一个 fresh context 中完成一张 ticket。pre-delivery base 同时记为 pre-ticket base。
17
+ - 按入口完成隔离并取得 clean baseline 后,本地 tracker 可将选定 ticket 从 `ready-for-agent`
18
+ 改为 `in-progress`;不改其他 ticket。外部 tracker 先展示准确 mutation,并取得 explicit confirmation,
19
+ 已覆盖该动作的明确授权有效。
20
+ - 每个已验证切片只向当前 ticket 追加简短 progress 记录。
21
+
22
+ ## REVIEW 与 VERIFY
23
+
24
+ ticket as the Spec source:`/code-review --worktree <pre-ticket-base> --spec <ticket>`。
25
+ 审查包和 fresh verification 要求以入口为准;失败时 ticket 保持 `in-progress`,不得进入 RESOLVE。
26
+
27
+ ## RESOLVE 与 REFRESH_FRONTIER
28
+
29
+ 验收、选定的 review 与 fresh verification 全部通过后才 resolve:本地 tracker 更新状态并记录证据;
30
+ 外部评论或关闭需要相应明确授权。不得自动关闭外部 Issue 或 parent issue。
31
+
32
+ resolve 后重查依赖图并返回 router。newly unlocked tickets 仍在已授权范围内时,router
33
+ 可重新选择串行 `implement` 或安全 SDD;超出范围则报告 frontier 并停止。
34
+
35
+ ## FINISH_DELIVERY
36
+
37
+ - frontier 非空:返回 graph、newly unlocked tickets 和 blockers;由 router 决定下一张。
38
+ - frontier 为空但仍有 open tickets:返回 `BLOCKED_GRAPH`,列出依赖、循环、claim 冲突或状态异常,
39
+ 保持交付未完成,不能进入 PR 收尾。
40
+ - 只有 open ticket count = 0:以 feature/worktree 起点为固定基点执行全分支相称 review,再运行
41
+ `/verify pre-pr`。通过后展示 `/pr` 或 keep 当前 branch/worktree 的选择;已获授权的动作可继续。
42
+ - tracker publication、claim、resolve、评论和关闭需要各自适用的授权;一次阶段授权不推导出下一阶段。
43
+ 不自动 merge、删除 branch 或清理 worktree。
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  name: improve-codebase-architecture
3
- description: "Scan a codebase for deepening opportunities, present a visual architecture report, and grill through a selected candidate. Use for explicit architecture-health, deep-module, seam, testability, or AI-navigability audits; default to read-only analysis."
4
- disable-model-invocation: true
3
+ description: Run an explicit read-only architecture-health audit and route selected findings to design or grilling.
5
4
  ---
6
5
 
7
6
  # Improve Codebase Architecture
@@ -0,0 +1,5 @@
1
+ interface:
2
+ display_name: "Architecture Health Review"
3
+ short_description: "Audit architecture health and route selected findings to design."
4
+ policy:
5
+ allow_implicit_invocation: true
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: prototype
3
- description: "Build throwaway runnable code to answer one design question. Use when a user needs to feel a state model or business-logic flow in a terminal, compare materially different UI shapes, or says they will know the answer when they can interact with it."
3
+ description: Build a throwaway runnable probe for one explicit design question; do not silently ship it.
4
4
  ---
5
5
 
6
6
  # Prototype
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: resolving-merge-conflicts
3
- description: "Resolve an in-progress Git merge or rebase conflict hunk by hunk from both sides' primary intent, then verify and finish only within the user's Git authorization. Use when conflict markers or an active merge/rebase state exists."
3
+ description: Resolve an active merge or rebase conflict hunk by hunk with verification.
4
4
  ---
5
5
 
6
6
  # Resolving Merge Conflicts
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: spec-gate
3
- description: "Generate, self-review, persist, and request approval for a formal engineering design spec without interviewing the user. Use when the user explicitly requests a design spec, Spec Gate, /to-spec, or the full Superpowers workflow, and automatically for costly-to-reverse architecture or service boundaries, public-contract compatibility, authentication or authorization boundaries, persistent data/schema migrations, or irreversible external side effects."
3
+ description: Create and self-review a formal Spec for explicit or costly-to-reverse work; wait for approval.
4
4
  ---
5
5
 
6
6
  # Spec Gate
@@ -48,7 +48,9 @@ BLOCKED_BY_UNRESOLVED_DECISION
48
48
  - evidence
49
49
  ```
50
50
 
51
- This is a terminal outcome. Do not ask a question, generate options, choose for the user, add `resume_target`, or invoke grilling.
51
+ This ends only the current Spec drafting call. Return the outcome to `skills/using-superpowers/SKILL.md`
52
+ for continuation within the authorized task. Do not ask a question, generate options, choose for the user,
53
+ add `resume_target`, or invoke grilling here.
52
54
 
53
55
  If the same `decision_id` already has a confirmed resolution and evidence has not changed, report a `Spec Gate contract conflict` and stop. Reopen it only when reversal evidence appears or a foundational premise becomes invalid.
54
56
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: subagent-driven-development
3
- description: "Use when the router finds two or more independent, unblocked frontier tickets in a user-authorized delivery scope. Dispatch one fresh subagent per ticket in a separate worktree, then integrate reviewed diffs into a controller-owned worktree; tickets remain the implementation contract and no detailed execution plan is generated."
3
+ description: Dispatch approved independent frontier tickets in isolated worktrees; use only when router selects SDD.
4
4
  ---
5
5
 
6
6
  # Subagent-Driven Development
@@ -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 `skills/using-git-worktrees/SKILL.md`. The integration worktree is the only
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.
@@ -54,7 +54,7 @@ source of truth; do not expand scope or start another ticket.
54
54
  Do not stage, commit, push, open a PR, claim/resolve/comment on a tracker, or perform any other external
55
55
  mutation. Leave only this ticket's worktree diff, including task-owned untracked files.
56
56
 
57
- Before reporting, run focused verification, self-review the diff, and report:
57
+ Before reporting, run focused verification and report the diff for the controller's review:
58
58
  - status: DONE | BLOCKED | NEEDS_DECISION
59
59
  - changed files and tests run
60
60
  - task-owned untracked files created since dispatch
@@ -1,12 +1,50 @@
1
1
  ---
2
2
  name: systematic-debugging
3
- description: Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.
3
+ description: Diagnose bugs, recurring or flaky failures, slowness, and performance regressions; exclude expected TDD RED.
4
4
  ---
5
5
 
6
6
  # Systematic Debugging
7
7
 
8
- 先完整读取 `references/diagnosing-bugs.upstream.md`,严格按其中六阶段的原始顺序与门禁执行;
9
- 不得改写、缩减或跳过阶段,除非原文明确允许并记录理由。
8
+ ## 分级入口
9
+
10
+ - 已确认失败原因正确的预期 TDD RED:回到实现的 GREEN,不加载完整诊断参考。
11
+ - 原因已由错误信息和调用链证实的普通失败:最小修复并重跑对应验证,不制造多个假设。
12
+ - 根因不明、修复后仍重复失败、flaky 或性能回归:进入下方证据闭环,同时读取
13
+ `references/diagnosing-bugs.upstream.md`,仅查阅复现、最小化和回归方法;执行流程与退出条件由本文定义。
14
+
15
+ 所有路径都保留原始症状和修复后的验证证据。不能把非目标错误当作预期 RED,也不能跳过真实失败。
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
+ 不能证明模型已能找到根因。
10
48
 
11
49
  ## 项目运行适配
12
50
 
@@ -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,6 +1,6 @@
1
1
  ---
2
2
  name: test-driven-development
3
- description: 新功能、bug 修复、重构或行为变化需要测试先行时使用。强调先写失败测试、确认失败原因、最小实现和保持测试绿色。
3
+ description: "Use for behavior changes with a test path: RED, minimal GREEN, REFACTOR, then verify."
4
4
  ---
5
5
 
6
6
  # Test-Driven Development
@@ -19,7 +19,8 @@ description: 新功能、bug 修复、重构或行为变化需要测试先行时
19
19
  - 重构
20
20
  - 行为变化
21
21
 
22
- 例外情况需要先和用户确认,例如一次性原型、生成代码、纯配置整理或没有可测试行为的文档修改。
22
+ 没有可测试行为的文档、格式或纯配置整理,直接运行对应校验,不需要为免写测试请求批准。
23
+ 生成代码验证生成入口;原型按用户要求验证所探索的行为。涉及可测试行为或用户明确要求 TDD 时执行下述流程。
23
24
 
24
25
  ## 核心规则
25
26
 
@@ -31,6 +32,9 @@ description: 新功能、bug 修复、重构或行为变化需要测试先行时
31
32
  6. 重构不能引入新行为;新行为需要新的失败测试。
32
33
  7. 一次只推进一个垂直切片:一个可观察行为、一个失败测试、一个最小实现。
33
34
 
35
+ 预期 RED 是针对尚未实现行为的正确断言失败,确认原因后继续 GREEN,不进入疑难调试。
36
+ 测试加载、依赖、语法或其他非目标错误不算有效 RED;先修复测试环境或按调试入口定位实际失败。
37
+
34
38
  ## Public Seam
35
39
 
36
40
  测试 seam 是观察行为的公共接口。测试和调用方应穿过同一个 seam,不读取私有状态或绕过
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: to-tickets
3
- description: "Break an approved Spec, issue, or conversation into tracer-bullet vertical-slice tickets with explicit blocking edges. Use when the router selects durable multi-session or tracker-coordinated delivery; require approval before publishing local or external tracker artifacts."
3
+ description: Split an approved scope into demonstrable vertical tickets with real blocking edges; wait for approval.
4
4
  ---
5
5
 
6
6
  # To Tickets
@@ -16,8 +16,10 @@ topology does not approve ticket publication or change the approved product scop
16
16
  - Read the source artifact and comments completely. A ticket flow may start from an approved Spec, an
17
17
  existing issue, or the current conversation; do not create a second detailed implementation plan.
18
18
  - Read configured tracker, domain-doc and triage-label sections from
19
- `docs/agent-workflow/project-context.md`.
20
- - If configuration is missing, return `NEEDS_PROJECT_CONTEXT`; do not invent an external tracker.
19
+ `docs/agent-workflow/project-context.md` when present, or use confirmed repository/session settings.
20
+ - A missing configuration file does not block drafting. Before publication, resolve the target,
21
+ required labels and permissions from existing evidence or ask only for missing values; do not
22
+ invent an external tracker or require a setup Skill/configuration file.
21
23
  - Do not reopen approved product decisions. Return unresolved consequential decisions to the router.
22
24
 
23
25
  If the codebase has not been explored, inspect only the affected area to learn established domain terms,
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  name: triage
3
- description: "Move incoming issues and external pull requests through an evidence-based triage state machine: categorize, verify, gather missing information, and produce durable agent-ready briefs. Use only when the user asks to inspect or change tracker triage state."
4
- disable-model-invocation: true
3
+ description: Use only for explicit issue or pull-request triage; classify evidence and produce an agent-ready brief.
5
4
  ---
6
5
 
7
6
  # Triage
8
7
 
9
8
  Origin: `mattpocock/skills@2ab9580`, adapted to this repository's confirmation boundary.
10
9
 
11
- Read tracker operations and role mapping from `docs/agent-workflow/project-context.md`. If missing,
12
- return `NEEDS_PROJECT_CONTEXT`.
10
+ Read tracker operations and role mapping from `docs/agent-workflow/project-context.md` when present,
11
+ or use confirmed repository/session settings. A missing file does not block read-only assessment;
12
+ confirm missing target, label mappings and permissions before external changes. Do not require a setup Skill.
13
13
 
14
14
  ## Roles
15
15
 
@@ -0,0 +1,5 @@
1
+ interface:
2
+ display_name: "Issue and Pull Request Triage"
3
+ short_description: "Classify explicit issue or pull request requests using evidence."
4
+ policy:
5
+ allow_implicit_invocation: true