claude-everything-workflow 0.1.9 → 0.2.2

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 (135) hide show
  1. package/AGENTS.md +19 -20
  2. package/README.md +112 -104
  3. package/agents/code-reviewer.md +15 -44
  4. package/agents/harness-optimizer.md +3 -2
  5. package/agents/planner.md +23 -107
  6. package/commands/code-review.md +25 -9
  7. package/commands/learn.md +97 -0
  8. package/commands/pr.md +4 -0
  9. package/commands/to-spec.md +11 -0
  10. package/hooks/check-code-size.js +33 -12
  11. package/hooks/check-console-log.js +72 -24
  12. package/package.json +5 -2
  13. package/rules/01-base.md +19 -42
  14. package/rules/02-code-size.md +6 -17
  15. package/rules/03-architecture.md +16 -54
  16. package/rules/04-error-handling.md +4 -25
  17. package/rules/05-git-workflow.md +9 -37
  18. package/rules/06-comments.md +3 -37
  19. package/rules/07-forbidden.md +6 -30
  20. package/rules/08-specialty-rules-index.md +18 -0
  21. package/rules/09-first-principles-adversarial-testing.md +6 -18
  22. package/rules/common/agent-orchestration.md +10 -47
  23. package/rules/common/context-hygiene.md +9 -72
  24. package/rules/common/harness-engineering.md +11 -38
  25. package/rules/common/hooks.md +11 -82
  26. package/rules/common/performance.md +8 -71
  27. package/rules/common/pr-automation.md +7 -68
  28. package/rules/common/skills-learning.md +12 -36
  29. package/rules/common/testing.md +15 -59
  30. package/scripts/cleanup-retired-skills.js +214 -0
  31. package/scripts/install.ps1 +73 -85
  32. package/scripts/install.sh +54 -77
  33. package/scripts/learning/review-confidence.js +1 -4
  34. package/scripts/merge-claude-settings.cjs +75 -0
  35. package/scripts/retired-skill-files.json +37 -0
  36. package/scripts/upstream-capability-baseline.json +27 -0
  37. package/scripts/upstream-capability-map.json +150 -0
  38. package/scripts/verify/core.js +91 -0
  39. package/scripts/verify/grilling-spec-gate-checks.js +260 -0
  40. package/scripts/verify/metadata-checks.js +724 -0
  41. package/scripts/verify/repository-checks.js +435 -0
  42. package/scripts/verify/runtime-checks.js +593 -0
  43. package/scripts/verify/workflow-checks.js +741 -0
  44. package/scripts/verify/workflow-ownership-fixtures.js +371 -0
  45. package/scripts/verify/workflow-ownership.js +780 -0
  46. package/scripts/verify-harness.js +16 -1075
  47. package/scripts/verify-upstream-capability-map.js +117 -0
  48. package/skills/README.md +24 -11
  49. package/skills/code-review/SKILL.md +50 -0
  50. package/skills/code-review/references/spec-reviewer-prompt.md +24 -0
  51. package/skills/code-review/references/standards-reviewer-prompt.md +35 -0
  52. package/skills/codebase-design/SKILL.md +63 -0
  53. package/skills/codebase-design/references/deepening.md +27 -0
  54. package/skills/codebase-design/references/design-it-twice.md +17 -0
  55. package/skills/continuous-learning-v2/SKILL.md +7 -7
  56. package/skills/continuous-learning-v2/config.json +0 -4
  57. package/skills/domain-modeling/SKILL.md +100 -0
  58. package/skills/feature-acceptance/SKILL.md +89 -0
  59. package/skills/grilling/SKILL.md +83 -0
  60. package/skills/handoff/SKILL.md +56 -0
  61. package/skills/implement/SKILL.md +97 -0
  62. package/skills/improve-codebase-architecture/SKILL.md +48 -0
  63. package/skills/iterative-retrieval/SKILL.md +10 -1
  64. package/skills/learn/README.md +2 -2
  65. package/skills/project-context/SKILL.md +94 -0
  66. package/skills/project-context/agents/openai.yaml +6 -0
  67. package/skills/project-context/references/project-context-template.md +61 -0
  68. package/skills/prototype/SKILL.md +50 -0
  69. package/skills/prototype/references/logic.md +28 -0
  70. package/skills/prototype/references/ui.md +30 -0
  71. package/skills/research/SKILL.md +48 -0
  72. package/skills/resolving-merge-conflicts/SKILL.md +27 -0
  73. package/skills/spec-gate/SKILL.md +149 -0
  74. package/skills/spec-gate/agents/openai.yaml +4 -0
  75. package/skills/spec-gate/references/spec-document-reviewer-prompt.md +31 -0
  76. package/skills/subagent-driven-development/SKILL.md +95 -414
  77. package/skills/systematic-debugging/SKILL.md +7 -51
  78. package/skills/systematic-debugging/references/diagnosing-bugs.upstream.md +129 -0
  79. package/skills/systematic-debugging/scripts/hitl-loop.template.js +75 -0
  80. package/skills/systematic-debugging/scripts/hitl-loop.template.sh +41 -0
  81. package/skills/test-driven-development/SKILL.md +18 -2
  82. package/skills/to-tickets/SKILL.md +94 -0
  83. package/skills/triage/SKILL.md +53 -0
  84. package/skills/triage/references/agent-brief.md +32 -0
  85. package/skills/triage/references/out-of-scope.md +14 -0
  86. package/skills/using-superpowers/SKILL.md +140 -40
  87. package/skills/visual-companion/SKILL.md +62 -0
  88. package/skills/visual-companion/agents/openai.yaml +4 -0
  89. package/skills/{brainstorming/visual-companion.md → visual-companion/references/guide.md} +1 -1
  90. package/skills/{brainstorming → visual-companion}/scripts/frame-template.html +42 -12
  91. package/skills/visual-companion/scripts/pages.cjs +28 -0
  92. package/skills/visual-companion/scripts/server-utils.cjs +82 -0
  93. package/skills/{brainstorming → visual-companion}/scripts/server.cjs +108 -248
  94. package/skills/{brainstorming → visual-companion}/scripts/start-server.sh +18 -4
  95. package/skills/visual-companion/scripts/websocket.cjs +86 -0
  96. package/skills/wayfinder/SKILL.md +57 -0
  97. package/commands/e2e.md +0 -28
  98. package/commands/evolve.md +0 -42
  99. package/commands/harness-audit.md +0 -27
  100. package/commands/instinct-status.md +0 -38
  101. package/commands/learn-eval.md +0 -91
  102. package/commands/projects.md +0 -27
  103. package/commands/promote.md +0 -29
  104. package/commands/prune.md +0 -46
  105. package/commands/tdd.md +0 -27
  106. package/homunculus/instincts/personal/always-test-first.md +0 -28
  107. package/homunculus/instincts/personal/pr-ci-quality-gate.md +0 -30
  108. package/rules/08-ecc-integration.md +0 -46
  109. package/rules/common/implementation.md +0 -25
  110. package/rules/common/security.md +0 -19
  111. package/skills/brainstorming/SKILL.md +0 -185
  112. package/skills/brainstorming/agents/openai.yaml +0 -3
  113. package/skills/brainstorming/spec-document-reviewer-prompt.md +0 -49
  114. package/skills/context-budget/SKILL.md +0 -59
  115. package/skills/discover-unknowns-zh/SKILL.md +0 -112
  116. package/skills/discover-unknowns-zh/agents/openai.yaml +0 -4
  117. package/skills/discover-unknowns-zh/references/prompt-patterns.md +0 -144
  118. package/skills/documentation-lookup/SKILL.md +0 -90
  119. package/skills/executing-plans/SKILL.md +0 -66
  120. package/skills/skill-creator/LICENSE.txt +0 -202
  121. package/skills/skill-creator/SKILL.md +0 -356
  122. package/skills/skill-creator/references/output-patterns.md +0 -82
  123. package/skills/skill-creator/references/workflows.md +0 -28
  124. package/skills/skill-creator/scripts/init_skill.py +0 -303
  125. package/skills/skill-creator/scripts/package_skill.py +0 -110
  126. package/skills/skill-creator/scripts/quick_validate.py +0 -95
  127. package/skills/subagent-driven-development/implementer-prompt.md +0 -139
  128. package/skills/subagent-driven-development/scripts/review-package +0 -44
  129. package/skills/subagent-driven-development/scripts/sdd-workspace +0 -22
  130. package/skills/subagent-driven-development/scripts/task-brief +0 -40
  131. package/skills/subagent-driven-development/task-reviewer-prompt.md +0 -188
  132. package/skills/writing-plans/SKILL.md +0 -206
  133. package/skills/writing-plans/plan-document-reviewer-prompt.md +0 -49
  134. /package/skills/{brainstorming → visual-companion}/scripts/helper.js +0 -0
  135. /package/skills/{brainstorming → visual-companion}/scripts/stop-server.sh +0 -0
@@ -0,0 +1,129 @@
1
+ # Diagnosing Bugs
2
+
3
+ A discipline for hard bugs. Skip phases only when explicitly justified.
4
+
5
+ When exploring the codebase, read `CONTEXT.md` (if it exists) to get a clear mental model of the relevant modules, and check ADRs in the area you're touching.
6
+
7
+ ## Phase 1 — Build a feedback loop
8
+
9
+ **This is the skill.** Everything else is mechanical. If you have a **tight** pass/fail signal for the bug — one that goes red on _this_ bug — you will find the cause; bisection, hypothesis-testing, and instrumentation all just consume it. If you don't have one, no amount of staring at code will save you.
10
+
11
+ Spend disproportionate effort here. **Be aggressive. Be creative. Refuse to give up.**
12
+
13
+ ### Ways to construct one — try them in roughly this order
14
+
15
+ 1. **Failing test** at whatever seam reaches the bug — unit, integration, e2e.
16
+ 2. **Curl / HTTP script** against a running dev server.
17
+ 3. **CLI invocation** with a fixture input, diffing stdout against a known-good snapshot.
18
+ 4. **Headless browser script** (Playwright / Puppeteer) — drives the UI, asserts on DOM/console/network.
19
+ 5. **Replay a captured trace.** Save a real network request / payload / event log to disk; replay it through the code path in isolation.
20
+ 6. **Throwaway harness.** Spin up a minimal subset of the system (one service, mocked deps) that exercises the bug code path with a single function call.
21
+ 7. **Property / fuzz loop.** If the bug is "sometimes wrong output", run 1000 random inputs and look for the failure mode.
22
+ 8. **Bisection harness.** If the bug appeared between two known states (commit, dataset, version), automate "boot at state X, check, repeat" so you can `git bisect run` it.
23
+ 9. **Differential loop.** Run the same input through old-version vs new-version (or two configs) and diff outputs.
24
+ 10. **HITL bash script.** Last resort. If a human must click, drive _them_ with `scripts/hitl-loop.template.sh` so the loop is still structured. Captured output feeds back to you.
25
+
26
+ Build the right feedback loop, and the bug is 90% fixed.
27
+
28
+ ### Tighten the loop
29
+
30
+ Treat the loop as a product. Once you have _a_ loop, **tighten** it:
31
+
32
+ - Can I make it faster? (Cache setup, skip unrelated init, narrow the test scope.)
33
+ - Can I make the signal sharper? (Assert on the specific symptom, not "didn't crash".)
34
+ - Can I make it more deterministic? (Pin time, seed RNG, isolate filesystem, freeze network.)
35
+
36
+ A 30-second flaky loop is barely better than no loop; a 2-second deterministic one is tight — a debugging superpower.
37
+
38
+ ### Non-deterministic bugs
39
+
40
+ The goal is not a clean repro but a **higher reproduction rate**. Loop the trigger 100×, parallelise, add stress, narrow timing windows, inject sleeps. A 50%-flake bug is debuggable; 1% is not — keep raising the rate until it's debuggable.
41
+
42
+ ### When you genuinely cannot build a loop
43
+
44
+ Stop and say so explicitly. List what you tried. Ask the user for: (a) access to whatever environment reproduces it, (b) a captured artifact (HAR file, log dump, core dump, screen recording with timestamps), or (c) permission to add temporary production instrumentation. Do **not** proceed to hypothesise without a loop.
45
+
46
+ ### Completion criterion — a tight loop that goes red
47
+
48
+ Phase 1 is done when the loop is **tight** and **red-capable**: you can name **one command** — a script path, a test invocation, a curl — that you have **already run at least once** (paste the invocation and its output), and that is:
49
+
50
+ - [ ] **Red-capable** — it drives the actual bug code path and asserts the **user's exact symptom**, so it can go red on this bug and green once fixed. Not "runs without erroring" — it must be able to _catch this specific bug_.
51
+ - [ ] **Deterministic** — same verdict every run (flaky bugs: a pinned, high reproduction rate, per above).
52
+ - [ ] **Fast** — seconds, not minutes.
53
+ - [ ] **Agent-runnable** — you can run it unattended; a human in the loop only via `scripts/hitl-loop.template.sh`.
54
+
55
+ If you catch yourself reading code to build a theory before this command exists, **stop — jumping straight to a hypothesis is the exact failure this skill prevents.** No red-capable command, no Phase 2.
56
+
57
+ ## Phase 2 — Reproduce + minimise
58
+
59
+ Run the loop. Watch it go red — the bug appears.
60
+
61
+ Confirm:
62
+
63
+ - [ ] The loop produces the failure mode the **user** described — not a different failure that happens to be nearby. Wrong bug = wrong fix.
64
+ - [ ] The failure is reproducible across multiple runs (or, for non-deterministic bugs, reproducible at a high enough rate to debug against).
65
+ - [ ] You have captured the exact symptom (error message, wrong output, slow timing) so later phases can verify the fix actually addresses it.
66
+
67
+ ### Minimise
68
+
69
+ Once it's red, shrink the repro to the **smallest scenario that still goes red**. Cut inputs, callers, config, data, and steps **one at a time**, re-running the loop after each cut — keep only what's load-bearing for the failure.
70
+
71
+ Why bother: a minimal repro shrinks the hypothesis space in Phase 3 (fewer moving parts left to suspect) and becomes the clean regression test in Phase 5.
72
+
73
+ Done when **every remaining element is load-bearing** — removing any one of them makes the loop go green.
74
+
75
+ Do not proceed until you have reproduced **and** minimised.
76
+
77
+ ## Phase 3 — Hypothesise
78
+
79
+ Generate **3–5 ranked hypotheses** before testing any of them. Single-hypothesis generation anchors on the first plausible idea.
80
+
81
+ Each hypothesis must be **falsifiable**: state the prediction it makes.
82
+
83
+ > Format: "If <X> is the cause, then <changing Y> will make the bug disappear / <changing Z> will make it worse."
84
+
85
+ If you cannot state the prediction, the hypothesis is a vibe — discard or sharpen it.
86
+
87
+ **Show the ranked list to the user before testing.** They often have domain knowledge that re-ranks instantly ("we just deployed a change to #3"), or know hypotheses they've already ruled out. Cheap checkpoint, big time saver. Don't block on it — proceed with your ranking if the user is AFK.
88
+
89
+ ## Phase 4 — Instrument
90
+
91
+ Each probe must map to a specific prediction from Phase 3. **Change one variable at a time.**
92
+
93
+ Tool preference:
94
+
95
+ 1. **Debugger / REPL inspection** if the env supports it. One breakpoint beats ten logs.
96
+ 2. **Targeted logs** at the boundaries that distinguish hypotheses.
97
+ 3. Never "log everything and grep".
98
+
99
+ **Tag every debug log** with a unique prefix, e.g. `[DEBUG-a4f2]`. Cleanup at the end becomes a single grep. Untagged logs survive; tagged logs die.
100
+
101
+ **Perf branch.** For performance regressions, logs are usually wrong. Instead: establish a baseline measurement (timing harness, `performance.now()`, profiler, query plan), then bisect. Measure first, fix second.
102
+
103
+ ## Phase 5 — Fix + regression test
104
+
105
+ Write the regression test **before the fix** — but only if there is a **correct seam** for it.
106
+
107
+ A correct seam is one where the test exercises the **real bug pattern** as it occurs at the call site. If the only available seam is too shallow (single-caller test when the bug needs multiple callers, unit test that can't replicate the chain that triggered the bug), a regression test there gives false confidence.
108
+
109
+ **If no correct seam exists, that itself is the finding.** Note it. The codebase architecture is preventing the bug from being locked down. Flag this for the next phase.
110
+
111
+ If a correct seam exists:
112
+
113
+ 1. Turn the minimised repro into a failing test at that seam.
114
+ 2. Watch it fail.
115
+ 3. Apply the fix.
116
+ 4. Watch it pass.
117
+ 5. Re-run the Phase 1 feedback loop against the original (un-minimised) scenario.
118
+
119
+ ## Phase 6 — Cleanup + post-mortem
120
+
121
+ Required before declaring done:
122
+
123
+ - [ ] Original repro no longer reproduces (re-run the Phase 1 loop)
124
+ - [ ] Regression test passes (or absence of seam is documented)
125
+ - [ ] All `[DEBUG-...]` instrumentation removed (`grep` the prefix)
126
+ - [ ] Throwaway prototypes deleted (or moved to a clearly-marked debug location)
127
+ - [ ] The hypothesis that turned out correct is stated in the commit / PR message — so the next debugger learns
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 the `/improve-codebase-architecture` skill with the specifics. Make the recommendation **after** the fix is in, not before — you have more information now than when you started.
@@ -0,0 +1,75 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+
4
+ // Human-in-the-loop reproduction loop.
5
+ // 复制此文件、修改下方步骤,再通过 Node.js 运行。
6
+
7
+ const readline = require("node:readline");
8
+ const process = require("node:process");
9
+
10
+ const terminal = readline.createInterface({
11
+ input: process.stdin,
12
+ output: process.stdout,
13
+ terminal: Boolean(process.stdin.isTTY),
14
+ });
15
+ const lines = terminal[Symbol.asyncIterator]();
16
+
17
+ let interrupted = false;
18
+
19
+ terminal.on("SIGINT", () => {
20
+ interrupted = true;
21
+ process.stderr.write("\n[HITL] 已取消。\n");
22
+ terminal.close();
23
+ });
24
+
25
+ async function ask(prompt) {
26
+ process.stdout.write(prompt);
27
+ const { value, done } = await lines.next();
28
+ if (done) {
29
+ throw new Error(interrupted ? "交互已取消" : "输入已结束");
30
+ }
31
+ return value;
32
+ }
33
+
34
+ async function step(instruction) {
35
+ process.stdout.write(`\n>>> ${instruction}\n`);
36
+ await ask(" [完成后按 Enter] ");
37
+ }
38
+
39
+ async function capture(variable, question) {
40
+ process.stdout.write(`\n>>> ${question}\n`);
41
+ return [variable, await ask(" > ")];
42
+ }
43
+
44
+ async function main() {
45
+ // --- 在下方编辑 -------------------------------------------------------
46
+
47
+ await step("打开 http://localhost:3000,登录应用。");
48
+
49
+ const [erroredKey, errored] = await capture(
50
+ "ERRORED",
51
+ "点击“导出”按钮后是否出现错误?(是/否)",
52
+ );
53
+
54
+ const [messageKey, errorMessage] = await capture(
55
+ "ERROR_MSG",
56
+ "粘贴错误信息;若没有,请输入“无”:",
57
+ );
58
+
59
+ // --- 在上方编辑 -------------------------------------------------------
60
+
61
+ process.stdout.write("\n--- 已捕获 ---\n");
62
+ process.stdout.write(`${erroredKey}=${errored}\n`);
63
+ process.stdout.write(`${messageKey}=${errorMessage}\n`);
64
+ }
65
+
66
+ main()
67
+ .catch((error) => {
68
+ if (!interrupted) {
69
+ process.stderr.write(`[HITL] 失败:${error.message}\n`);
70
+ process.exitCode = 1;
71
+ } else {
72
+ process.exitCode = 130;
73
+ }
74
+ })
75
+ .finally(() => terminal.close());
@@ -0,0 +1,41 @@
1
+ #!/usr/bin/env bash
2
+ # Human-in-the-loop reproduction loop.
3
+ # Copy this file, edit the steps below, and run it.
4
+ # The agent runs the script; the user follows prompts in their terminal.
5
+ #
6
+ # Usage:
7
+ # bash hitl-loop.template.sh
8
+ #
9
+ # Two helpers:
10
+ # step "<instruction>" → show instruction, wait for Enter
11
+ # capture VAR "<question>" → show question, read response into VAR
12
+ #
13
+ # At the end, captured values are printed as KEY=VALUE for the agent to parse.
14
+
15
+ set -euo pipefail
16
+
17
+ step() {
18
+ printf '\n>>> %s\n' "$1"
19
+ read -r -p " [Enter when done] " _
20
+ }
21
+
22
+ capture() {
23
+ local var="$1" question="$2" answer
24
+ printf '\n>>> %s\n' "$question"
25
+ read -r -p " > " answer
26
+ printf -v "$var" '%s' "$answer"
27
+ }
28
+
29
+ # --- edit below ---------------------------------------------------------
30
+
31
+ step "Open the app at http://localhost:3000 and sign in."
32
+
33
+ capture ERRORED "Click the 'Export' button. Did it throw an error? (y/n)"
34
+
35
+ capture ERROR_MSG "Paste the error message (or 'none'):"
36
+
37
+ # --- edit above ---------------------------------------------------------
38
+
39
+ printf '\n--- Captured ---\n'
40
+ printf 'ERRORED=%s\n' "$ERRORED"
41
+ printf 'ERROR_MSG=%s\n' "$ERROR_MSG"
@@ -5,7 +5,10 @@ description: 新功能、bug 修复、重构或行为变化需要测试先行时
5
5
 
6
6
  # Test-Driven Development
7
7
 
8
- 参考来源: https://github.com/obra/superpowers/tree/main/skills/test-driven-development
8
+ 参考来源:
9
+
10
+ - https://github.com/obra/superpowers/tree/main/skills/test-driven-development
11
+ - https://github.com/mattpocock/skills/tree/main/skills/engineering/tdd
9
12
 
10
13
  本 skill 是本仓库的精简版本,只保留适合 agent 执行的 TDD 规则,不复制外部 skill 全文。
11
14
 
@@ -28,6 +31,16 @@ description: 新功能、bug 修复、重构或行为变化需要测试先行时
28
31
  6. 重构不能引入新行为;新行为需要新的失败测试。
29
32
  7. 一次只推进一个垂直切片:一个可观察行为、一个失败测试、一个最小实现。
30
33
 
34
+ ## Public Seam
35
+
36
+ 测试 seam 是观察行为的公共接口。测试和调用方应穿过同一个 seam,不读取私有状态或绕过
37
+ 接口到数据库验证。
38
+
39
+ - formal Spec、plan 或 agent-ready ticket 必须预先记录关键测试 seams。
40
+ - direct 小任务若现有公共接口和测试先例已明确,先声明所用 seam 后直接推进,不制造用户问题。
41
+ - 若 seam 选择会改变公共契约、架构或测试成本,返回中央路由解决该用户决策。
42
+ - 优先最高层且稳定的 seam;减少跨代码库暴露的测试接口数量。
43
+
31
44
  ## Red Test Gate
32
45
 
33
46
  新功能、bug 修复、重构引起行为变化、公共 API 变化和用户流程变化,必须先写失败测试并运行确认失败原因正确,才能写行为实现代码。
@@ -47,7 +60,10 @@ description: 新功能、bug 修复、重构或行为变化需要测试先行时
47
60
  - 测试名称描述真实行为。
48
61
  - 每个测试只覆盖一个行为。
49
62
  - 优先测试公开 API 和用户可观察结果。
50
- - mock 只在不可避免时使用,避免测试 mock 本身。
63
+ - 期望值来自 Spec、已知示例或固定事实,不用与实现相同的算法重算期望值。
64
+ - mock 只放在第三方 API、时间、随机性等真实系统边界;优先真实测试数据库或本地替代物。
65
+ - 不 mock 自有内部模块、私有方法、调用次数或实现顺序。
66
+ - 不一次横向写完整测试矩阵;每个测试都是下一条 tracer bullet。
51
67
 
52
68
  ## GREEN
53
69
 
@@ -0,0 +1,94 @@
1
+ ---
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."
4
+ ---
5
+
6
+ # To Tickets
7
+
8
+ Origin: `mattpocock/skills@2ab9580`, adapted to `docs/agent-workflow/project-context.md` and this
9
+ repository's external-write approval boundary.
10
+
11
+ The router may select this Skill after the user authorizes a defined delivery scope; selecting a ticket
12
+ topology does not approve ticket publication or change the approved product scope.
13
+
14
+ ## Gather Context
15
+
16
+ - Read the source artifact and comments completely. A ticket flow may start from an approved Spec, an
17
+ existing issue, or the current conversation; do not create a second detailed implementation plan.
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.
21
+ - Do not reopen approved product decisions. Return unresolved consequential decisions to the router.
22
+
23
+ If the codebase has not been explored, inspect only the affected area to learn established domain terms,
24
+ existing ADRs and possible prefactoring. Do not turn that exploration into per-file implementation notes.
25
+
26
+ ## Draft Tracer Bullet Vertical Slices
27
+
28
+ Break work into tracer bullet slices, not layer-by-layer batches.
29
+
30
+ Each ticket:
31
+
32
+ - delivers a narrow but complete path across every required layer;
33
+ - is independently demoable or verifiable;
34
+ - fits one fresh context window;
35
+ - states acceptance criteria through public behavior;
36
+ - declares every ticket that blocks it.
37
+
38
+ Ticket bodies must describe the delivered behavior from the user's perspective. Do not include specific
39
+ file paths, line numbers, code snippets, or a layer-by-layer implementation list: these details go stale
40
+ and a fresh implementer can discover them from the codebase. Exception: keep the smallest decision-rich
41
+ snippet from a prototype when prose cannot preserve a verified state machine, reducer, schema or type
42
+ shape; label it as prototype evidence.
43
+
44
+ Use prefactoring first only when it makes later behavior slices possible. A wide mechanical refactor may
45
+ use expand–migrate–contract tickets when no individual vertical slice can remain green.
46
+
47
+ Build a dependency graph and reject:
48
+
49
+ - cycles;
50
+ - blockers that do not truly gate the dependent ticket;
51
+ - horizontal “all schema”, “all API”, or “all UI” tickets;
52
+ - speculative tickets outside the approved scope.
53
+
54
+ ## Review Gate
55
+
56
+ Present the numbered draft with title, blocked-by list, delivered behavior and acceptance criteria. Ask
57
+ whether the acceptance criteria, granularity and blocking edges are correct, and whether any ticket should
58
+ merge or split. Do not publish before approval.
59
+
60
+ ## Publish
61
+
62
+ - **Local tracker**: write one file per ticket under the configured feature directory, blockers first.
63
+ - **External tracker**: show exact repository/project, titles, labels and relationship mutations; obtain
64
+ explicit confirmation, then create blockers first and use native dependencies when available.
65
+
66
+ Never modify or close a parent issue unless separately requested.
67
+
68
+ ## Ticket Shape
69
+
70
+ ```markdown
71
+ # <NN> — <Title>
72
+
73
+ **What to build:** <end-to-end behavior>
74
+ **Blocked by:** <tickets or None>
75
+ **Status:** ready-for-agent
76
+
77
+ ## Acceptance criteria
78
+
79
+ - [ ] <publicly verifiable behavior>
80
+ ```
81
+
82
+ Return:
83
+
84
+ ```text
85
+ TICKETS_PUBLISHED
86
+ - source
87
+ - tracker
88
+ - ticket references
89
+ - dependency frontier
90
+ - next implementable tickets
91
+ ```
92
+
93
+ An approved ticket is an implementation contract. The `implement` Skill may execute one frontier ticket
94
+ in one fresh context without regenerating a project plan.
@@ -0,0 +1,53 @@
1
+ ---
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
5
+ ---
6
+
7
+ # Triage
8
+
9
+ Origin: `mattpocock/skills@2ab9580`, adapted to this repository's confirmation boundary.
10
+
11
+ Read tracker operations and role mapping from `docs/agent-workflow/project-context.md`. If missing,
12
+ return `NEEDS_PROJECT_CONTEXT`.
13
+
14
+ ## Roles
15
+
16
+ Category: `bug` or `enhancement`.
17
+
18
+ State: `needs-triage`, `needs-info`, `ready-for-agent`, `ready-for-human`, or `wontfix`.
19
+
20
+ Every triaged item has exactly one category and one state. Conflicting states require maintainer input.
21
+ Apply configured label strings rather than assuming canonical names.
22
+
23
+ ## Read-only Assessment
24
+
25
+ 1. Read the complete issue/PR, comments, labels, author, dates and PR diff when applicable.
26
+ 2. Read previous triage notes; do not re-ask resolved questions.
27
+ 3. Inspect relevant code, domain vocabulary and ADRs.
28
+ 4. Search for an existing implementation by domain concept.
29
+ 5. Check `.out-of-scope/` for a prior rejected enhancement.
30
+ 6. For bugs, reproduce the claim. For PRs, run the smallest check that verifies its claimed behavior.
31
+ 7. Recommend category, state and next action with evidence. Wait for maintainer direction.
32
+
33
+ ## Decision Work
34
+
35
+ Use `skills/grilling/SKILL.md` only when a consequential maintainer decision is missing. Use
36
+ `skills/domain-modeling/SKILL.md` when terminology or ADR-worthy decisions change.
37
+
38
+ ## Mutations
39
+
40
+ Before commenting, labeling, closing or writing `.out-of-scope/`, show exact targets and actions and
41
+ obtain confirmation. Every generated tracker comment begins:
42
+
43
+ ```text
44
+ > *This was generated by AI during triage.*
45
+ ```
46
+
47
+ - `ready-for-agent`: use `references/agent-brief.md`.
48
+ - `ready-for-human`: use the same shape and state why agent execution is inappropriate.
49
+ - `needs-info`: record established facts and specific outstanding questions.
50
+ - rejected enhancement: follow `references/out-of-scope.md`.
51
+ - already implemented: point to the implementation; do not poison `.out-of-scope/`.
52
+
53
+ Return state changes, evidence, comments/brief references and remaining responsibility.
@@ -0,0 +1,32 @@
1
+ # Durable Agent Brief
2
+
3
+ An agent brief is the implementation contract attached when an item becomes `ready-for-agent`.
4
+
5
+ ```markdown
6
+ ## Agent Brief
7
+
8
+ **Category:** bug / enhancement
9
+ **Summary:** one-line outcome
10
+
11
+ **Current behavior:**
12
+ <observable status quo or broken behavior>
13
+
14
+ **Desired behavior:**
15
+ <observable result, edge cases and failure behavior>
16
+
17
+ **Key interfaces:**
18
+ - <stable type, contract or config shape; avoid file paths and line numbers>
19
+
20
+ **Acceptance criteria:**
21
+ - [ ] independently verifiable behavior
22
+
23
+ **Out of scope:**
24
+ - explicit adjacent work not included
25
+ ```
26
+
27
+ Briefs must be durable, behavioral and complete:
28
+
29
+ - describe interfaces and contracts, not edit procedures;
30
+ - avoid paths and line numbers that may become stale;
31
+ - include normal, error and compatibility behavior;
32
+ - ensure every criterion can be checked independently.
@@ -0,0 +1,14 @@
1
+ # Out-of-Scope Knowledge
2
+
3
+ Use `.out-of-scope/<concept>.md` only for rejected enhancements, never bugs or already implemented
4
+ requests.
5
+
6
+ One file represents one concept and contains:
7
+
8
+ - what is out of scope;
9
+ - durable strategic or technical reason;
10
+ - prior request links.
11
+
12
+ When a related request arrives, surface the record and ask the maintainer whether the decision still
13
+ holds. On confirmation, append the request and close it. On reconsideration, update/delete the record
14
+ and resume normal triage. Temporary lack of time is a deferral, not a durable rejection.