aw-ecc 1.4.32 → 1.4.47

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 (258) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/.codex/hooks/aw-post-tool-use.sh +8 -2
  3. package/.codex/hooks/aw-session-start.sh +11 -4
  4. package/.codex/hooks/aw-stop.sh +8 -2
  5. package/.codex/hooks/aw-user-prompt-submit.sh +10 -2
  6. package/.codex/hooks.json +8 -8
  7. package/.cursor/INSTALL.md +7 -5
  8. package/.cursor/hooks/adapter.js +41 -4
  9. package/.cursor/hooks/after-agent-response.js +62 -0
  10. package/.cursor/hooks/before-submit-prompt.js +7 -1
  11. package/.cursor/hooks/post-tool-use-failure.js +21 -0
  12. package/.cursor/hooks/post-tool-use.js +39 -0
  13. package/.cursor/hooks/shared/aw-phase-definitions.js +53 -0
  14. package/.cursor/hooks/shared/aw-phase-runner.js +3 -1
  15. package/.cursor/hooks/subagent-start.js +22 -4
  16. package/.cursor/hooks/subagent-stop.js +18 -1
  17. package/.cursor/hooks.json +23 -2
  18. package/.opencode/package.json +1 -1
  19. package/AGENTS.md +3 -3
  20. package/README.md +5 -5
  21. package/commands/adk.md +52 -0
  22. package/commands/build.md +22 -9
  23. package/commands/deploy.md +12 -0
  24. package/commands/execute.md +9 -0
  25. package/commands/feature.md +333 -0
  26. package/commands/investigate.md +18 -5
  27. package/commands/plan.md +23 -9
  28. package/commands/publish.md +65 -0
  29. package/commands/review.md +12 -0
  30. package/commands/ship.md +12 -0
  31. package/commands/test.md +12 -0
  32. package/commands/verify.md +9 -0
  33. package/hooks/hooks.json +36 -0
  34. package/manifests/install-components.json +8 -0
  35. package/manifests/install-modules.json +83 -0
  36. package/manifests/install-profiles.json +7 -0
  37. package/package.json +1 -1
  38. package/scripts/ci/validate-rules.js +51 -0
  39. package/scripts/cursor-aw-home/hooks.json +23 -2
  40. package/scripts/cursor-aw-hooks/adapter.js +41 -4
  41. package/scripts/cursor-aw-hooks/before-submit-prompt.js +7 -1
  42. package/scripts/hooks/aw-usage-commit-created.js +32 -0
  43. package/scripts/hooks/aw-usage-post-tool-use-failure.js +56 -0
  44. package/scripts/hooks/aw-usage-post-tool-use.js +242 -0
  45. package/scripts/hooks/aw-usage-prompt-submit.js +112 -0
  46. package/scripts/hooks/aw-usage-session-start.js +48 -0
  47. package/scripts/hooks/aw-usage-stop.js +182 -0
  48. package/scripts/hooks/aw-usage-telemetry-send.js +84 -0
  49. package/scripts/hooks/cost-tracker.js +3 -23
  50. package/scripts/hooks/shared/aw-phase-definitions.js +53 -0
  51. package/scripts/hooks/shared/aw-phase-runner.js +3 -1
  52. package/scripts/lib/aw-hook-contract.js +2 -2
  53. package/scripts/lib/aw-pricing.js +306 -0
  54. package/scripts/lib/aw-usage-telemetry.js +472 -0
  55. package/scripts/lib/codex-hook-config.js +8 -8
  56. package/scripts/lib/cursor-hook-config.js +25 -10
  57. package/scripts/lib/install-targets/cursor-project.js +3 -0
  58. package/scripts/lib/install-targets/helpers.js +20 -3
  59. package/skills/aw-adk/SKILL.md +317 -0
  60. package/skills/aw-adk/agents/analyzer.md +113 -0
  61. package/skills/aw-adk/agents/comparator.md +113 -0
  62. package/skills/aw-adk/agents/grader.md +115 -0
  63. package/skills/aw-adk/assets/eval_review.html +76 -0
  64. package/skills/aw-adk/eval-viewer/generate_review.py +164 -0
  65. package/skills/aw-adk/eval-viewer/viewer.html +181 -0
  66. package/skills/aw-adk/evals/eval-colocated-placement.md +84 -0
  67. package/skills/aw-adk/evals/eval-create-agent.md +90 -0
  68. package/skills/aw-adk/evals/eval-create-command.md +98 -0
  69. package/skills/aw-adk/evals/eval-create-eval.md +89 -0
  70. package/skills/aw-adk/evals/eval-create-rule.md +99 -0
  71. package/skills/aw-adk/evals/eval-create-skill.md +97 -0
  72. package/skills/aw-adk/evals/eval-delete-agent.md +79 -0
  73. package/skills/aw-adk/evals/eval-delete-command.md +89 -0
  74. package/skills/aw-adk/evals/eval-delete-rule.md +86 -0
  75. package/skills/aw-adk/evals/eval-delete-skill.md +90 -0
  76. package/skills/aw-adk/evals/eval-meta-eval-coverage.md +78 -0
  77. package/skills/aw-adk/evals/eval-meta-eval-determinism.md +81 -0
  78. package/skills/aw-adk/evals/eval-meta-eval-false-pass.md +81 -0
  79. package/skills/aw-adk/evals/eval-score-accuracy.md +95 -0
  80. package/skills/aw-adk/evals/eval-type-redirect.md +68 -0
  81. package/skills/aw-adk/evals/evals.json +96 -0
  82. package/skills/aw-adk/references/artifact-wiring.md +162 -0
  83. package/skills/aw-adk/references/cross-ide-mapping.md +71 -0
  84. package/skills/aw-adk/references/eval-placement-guide.md +183 -0
  85. package/skills/aw-adk/references/external-resources.md +75 -0
  86. package/skills/aw-adk/references/getting-started.md +66 -0
  87. package/skills/aw-adk/references/registry-structure.md +152 -0
  88. package/skills/aw-adk/references/rubric-agent.md +36 -0
  89. package/skills/aw-adk/references/rubric-command.md +36 -0
  90. package/skills/aw-adk/references/rubric-eval.md +36 -0
  91. package/skills/aw-adk/references/rubric-meta-eval.md +132 -0
  92. package/skills/aw-adk/references/rubric-rule.md +36 -0
  93. package/skills/aw-adk/references/rubric-skill.md +36 -0
  94. package/skills/aw-adk/references/schemas.md +222 -0
  95. package/skills/aw-adk/references/template-agent.md +251 -0
  96. package/skills/aw-adk/references/template-command.md +279 -0
  97. package/skills/aw-adk/references/template-eval.md +176 -0
  98. package/skills/aw-adk/references/template-rule.md +119 -0
  99. package/skills/aw-adk/references/template-skill.md +123 -0
  100. package/skills/aw-adk/references/type-classifier.md +98 -0
  101. package/skills/aw-adk/references/writing-good-agents.md +227 -0
  102. package/skills/aw-adk/references/writing-good-commands.md +258 -0
  103. package/skills/aw-adk/references/writing-good-evals.md +271 -0
  104. package/skills/aw-adk/references/writing-good-rules.md +214 -0
  105. package/skills/aw-adk/references/writing-good-skills.md +159 -0
  106. package/skills/aw-adk/scripts/aggregate-benchmark.py +190 -0
  107. package/skills/aw-adk/scripts/lint-artifact.sh +211 -0
  108. package/skills/aw-adk/scripts/score-artifact.sh +179 -0
  109. package/skills/aw-adk/scripts/trigger-eval.py +192 -0
  110. package/skills/aw-build/SKILL.md +19 -2
  111. package/skills/aw-deploy/SKILL.md +65 -3
  112. package/skills/aw-design/SKILL.md +156 -0
  113. package/skills/aw-design/references/highrise-tokens.md +394 -0
  114. package/skills/aw-design/references/micro-interactions.md +76 -0
  115. package/skills/aw-design/references/prompt-template.md +160 -0
  116. package/skills/aw-design/references/quality-checklist.md +70 -0
  117. package/skills/aw-design/references/self-review.md +497 -0
  118. package/skills/aw-design/references/stitch-workflow.md +127 -0
  119. package/skills/aw-feature/SKILL.md +293 -0
  120. package/skills/aw-investigate/SKILL.md +17 -0
  121. package/skills/aw-plan/SKILL.md +34 -3
  122. package/skills/aw-publish/SKILL.md +300 -0
  123. package/skills/aw-publish/evals/eval-confirmation-gate.md +60 -0
  124. package/skills/aw-publish/evals/eval-intent-detection.md +111 -0
  125. package/skills/aw-publish/evals/eval-push-modes.md +67 -0
  126. package/skills/aw-publish/evals/eval-rules-push.md +60 -0
  127. package/skills/aw-publish/evals/evals.json +29 -0
  128. package/skills/aw-publish/references/push-modes.md +38 -0
  129. package/skills/aw-review/SKILL.md +88 -9
  130. package/skills/aw-rules-review/SKILL.md +124 -0
  131. package/skills/aw-rules-review/agents/openai.yaml +3 -0
  132. package/skills/aw-rules-review/scripts/generate-review-template.mjs +323 -0
  133. package/skills/aw-ship/SKILL.md +16 -0
  134. package/skills/aw-spec/SKILL.md +15 -0
  135. package/skills/aw-tasks/SKILL.md +15 -0
  136. package/skills/aw-test/SKILL.md +16 -0
  137. package/skills/aw-yolo/SKILL.md +4 -0
  138. package/skills/diagnose/SKILL.md +121 -0
  139. package/skills/diagnose/scripts/hitl-loop.template.sh +41 -0
  140. package/skills/finish-only-when-green/SKILL.md +265 -0
  141. package/skills/grill-me/SKILL.md +24 -0
  142. package/skills/grill-with-docs/SKILL.md +92 -0
  143. package/skills/grill-with-docs/adr-format.md +47 -0
  144. package/skills/grill-with-docs/context-format.md +67 -0
  145. package/skills/improve-codebase-architecture/SKILL.md +75 -0
  146. package/skills/improve-codebase-architecture/deepening.md +37 -0
  147. package/skills/improve-codebase-architecture/interface-design.md +44 -0
  148. package/skills/improve-codebase-architecture/language.md +53 -0
  149. package/skills/local-ghl-setup-from-screenshot/SKILL.md +538 -0
  150. package/skills/tdd/SKILL.md +115 -0
  151. package/skills/tdd/deep-modules.md +33 -0
  152. package/skills/tdd/interface-design.md +31 -0
  153. package/skills/tdd/mocking.md +59 -0
  154. package/skills/tdd/refactoring.md +10 -0
  155. package/skills/tdd/tests.md +61 -0
  156. package/skills/to-issues/SKILL.md +62 -0
  157. package/skills/to-prd/SKILL.md +75 -0
  158. package/skills/using-aw-skills/SKILL.md +170 -237
  159. package/skills/using-aw-skills/hooks/session-start.sh +11 -41
  160. package/skills/zoom-out/SKILL.md +24 -0
  161. package/.cursor/rules/common-agents.md +0 -53
  162. package/.cursor/rules/common-aw-routing.md +0 -43
  163. package/.cursor/rules/common-coding-style.md +0 -52
  164. package/.cursor/rules/common-development-workflow.md +0 -33
  165. package/.cursor/rules/common-git-workflow.md +0 -28
  166. package/.cursor/rules/common-hooks.md +0 -34
  167. package/.cursor/rules/common-patterns.md +0 -35
  168. package/.cursor/rules/common-performance.md +0 -59
  169. package/.cursor/rules/common-security.md +0 -33
  170. package/.cursor/rules/common-testing.md +0 -33
  171. package/.cursor/skills/api-and-interface-design/SKILL.md +0 -75
  172. package/.cursor/skills/article-writing/SKILL.md +0 -85
  173. package/.cursor/skills/aw-brainstorm/SKILL.md +0 -115
  174. package/.cursor/skills/aw-build/SKILL.md +0 -152
  175. package/.cursor/skills/aw-build/evals/build-stage-cases.json +0 -28
  176. package/.cursor/skills/aw-debug/SKILL.md +0 -49
  177. package/.cursor/skills/aw-deploy/SKILL.md +0 -101
  178. package/.cursor/skills/aw-deploy/evals/deploy-stage-cases.json +0 -32
  179. package/.cursor/skills/aw-execute/SKILL.md +0 -47
  180. package/.cursor/skills/aw-execute/references/mode-code.md +0 -47
  181. package/.cursor/skills/aw-execute/references/mode-docs.md +0 -28
  182. package/.cursor/skills/aw-execute/references/mode-infra.md +0 -44
  183. package/.cursor/skills/aw-execute/references/mode-migration.md +0 -58
  184. package/.cursor/skills/aw-execute/references/worker-implementer.md +0 -26
  185. package/.cursor/skills/aw-execute/references/worker-parallel-worker.md +0 -23
  186. package/.cursor/skills/aw-execute/references/worker-quality-reviewer.md +0 -23
  187. package/.cursor/skills/aw-execute/references/worker-spec-reviewer.md +0 -23
  188. package/.cursor/skills/aw-execute/scripts/build-worker-bundle.js +0 -229
  189. package/.cursor/skills/aw-finish/SKILL.md +0 -111
  190. package/.cursor/skills/aw-investigate/SKILL.md +0 -109
  191. package/.cursor/skills/aw-plan/SKILL.md +0 -368
  192. package/.cursor/skills/aw-prepare/SKILL.md +0 -118
  193. package/.cursor/skills/aw-review/SKILL.md +0 -118
  194. package/.cursor/skills/aw-ship/SKILL.md +0 -115
  195. package/.cursor/skills/aw-spec/SKILL.md +0 -104
  196. package/.cursor/skills/aw-tasks/SKILL.md +0 -138
  197. package/.cursor/skills/aw-test/SKILL.md +0 -118
  198. package/.cursor/skills/aw-verify/SKILL.md +0 -51
  199. package/.cursor/skills/aw-yolo/SKILL.md +0 -111
  200. package/.cursor/skills/browser-testing-with-devtools/SKILL.md +0 -81
  201. package/.cursor/skills/bun-runtime/SKILL.md +0 -84
  202. package/.cursor/skills/ci-cd-and-automation/SKILL.md +0 -71
  203. package/.cursor/skills/code-simplification/SKILL.md +0 -74
  204. package/.cursor/skills/content-engine/SKILL.md +0 -88
  205. package/.cursor/skills/context-engineering/SKILL.md +0 -74
  206. package/.cursor/skills/deprecation-and-migration/SKILL.md +0 -75
  207. package/.cursor/skills/documentation-and-adrs/SKILL.md +0 -75
  208. package/.cursor/skills/documentation-lookup/SKILL.md +0 -90
  209. package/.cursor/skills/frontend-slides/SKILL.md +0 -184
  210. package/.cursor/skills/frontend-slides/STYLE_PRESETS.md +0 -330
  211. package/.cursor/skills/frontend-ui-engineering/SKILL.md +0 -68
  212. package/.cursor/skills/git-workflow-and-versioning/SKILL.md +0 -75
  213. package/.cursor/skills/idea-refine/SKILL.md +0 -84
  214. package/.cursor/skills/incremental-implementation/SKILL.md +0 -75
  215. package/.cursor/skills/investor-materials/SKILL.md +0 -96
  216. package/.cursor/skills/investor-outreach/SKILL.md +0 -76
  217. package/.cursor/skills/market-research/SKILL.md +0 -75
  218. package/.cursor/skills/mcp-server-patterns/SKILL.md +0 -67
  219. package/.cursor/skills/nextjs-turbopack/SKILL.md +0 -44
  220. package/.cursor/skills/performance-optimization/SKILL.md +0 -77
  221. package/.cursor/skills/security-and-hardening/SKILL.md +0 -70
  222. package/.cursor/skills/using-aw-skills/SKILL.md +0 -290
  223. package/.cursor/skills/using-aw-skills/evals/skill-trigger-cases.tsv +0 -25
  224. package/.cursor/skills/using-aw-skills/evals/test-skill-triggers.sh +0 -171
  225. package/.cursor/skills/using-aw-skills/hooks/hooks.json +0 -9
  226. package/.cursor/skills/using-aw-skills/hooks/session-start.sh +0 -67
  227. package/.cursor/skills/using-platform-skills/SKILL.md +0 -163
  228. package/.cursor/skills/using-platform-skills/evals/platform-selection-cases.json +0 -52
  229. /package/.cursor/rules/{golang-coding-style.md → golang-coding-style.mdc} +0 -0
  230. /package/.cursor/rules/{golang-hooks.md → golang-hooks.mdc} +0 -0
  231. /package/.cursor/rules/{golang-patterns.md → golang-patterns.mdc} +0 -0
  232. /package/.cursor/rules/{golang-security.md → golang-security.mdc} +0 -0
  233. /package/.cursor/rules/{golang-testing.md → golang-testing.mdc} +0 -0
  234. /package/.cursor/rules/{kotlin-coding-style.md → kotlin-coding-style.mdc} +0 -0
  235. /package/.cursor/rules/{kotlin-hooks.md → kotlin-hooks.mdc} +0 -0
  236. /package/.cursor/rules/{kotlin-patterns.md → kotlin-patterns.mdc} +0 -0
  237. /package/.cursor/rules/{kotlin-security.md → kotlin-security.mdc} +0 -0
  238. /package/.cursor/rules/{kotlin-testing.md → kotlin-testing.mdc} +0 -0
  239. /package/.cursor/rules/{php-coding-style.md → php-coding-style.mdc} +0 -0
  240. /package/.cursor/rules/{php-hooks.md → php-hooks.mdc} +0 -0
  241. /package/.cursor/rules/{php-patterns.md → php-patterns.mdc} +0 -0
  242. /package/.cursor/rules/{php-security.md → php-security.mdc} +0 -0
  243. /package/.cursor/rules/{php-testing.md → php-testing.mdc} +0 -0
  244. /package/.cursor/rules/{python-coding-style.md → python-coding-style.mdc} +0 -0
  245. /package/.cursor/rules/{python-hooks.md → python-hooks.mdc} +0 -0
  246. /package/.cursor/rules/{python-patterns.md → python-patterns.mdc} +0 -0
  247. /package/.cursor/rules/{python-security.md → python-security.mdc} +0 -0
  248. /package/.cursor/rules/{python-testing.md → python-testing.mdc} +0 -0
  249. /package/.cursor/rules/{swift-coding-style.md → swift-coding-style.mdc} +0 -0
  250. /package/.cursor/rules/{swift-hooks.md → swift-hooks.mdc} +0 -0
  251. /package/.cursor/rules/{swift-patterns.md → swift-patterns.mdc} +0 -0
  252. /package/.cursor/rules/{swift-security.md → swift-security.mdc} +0 -0
  253. /package/.cursor/rules/{swift-testing.md → swift-testing.mdc} +0 -0
  254. /package/.cursor/rules/{typescript-coding-style.md → typescript-coding-style.mdc} +0 -0
  255. /package/.cursor/rules/{typescript-hooks.md → typescript-hooks.mdc} +0 -0
  256. /package/.cursor/rules/{typescript-patterns.md → typescript-patterns.mdc} +0 -0
  257. /package/.cursor/rules/{typescript-security.md → typescript-security.mdc} +0 -0
  258. /package/.cursor/rules/{typescript-testing.md → typescript-testing.mdc} +0 -0
@@ -1,23 +0,0 @@
1
- # Worker Role: Spec Reviewer
2
-
3
- ## Objective
4
-
5
- Check one completed task unit against the approved AW inputs before the stage can move forward.
6
-
7
- ## Inputs
8
-
9
- - approved feature inputs from `.aw_docs/features/<feature_slug>/`
10
- - implementer handoff notes
11
- - current task-unit bundle
12
-
13
- ## Required Behavior
14
-
15
- 1. compare the implementation against the approved task-unit goal
16
- 2. flag scope drift or missed acceptance criteria
17
- 3. state `pass`, `pass_with_notes`, or `fail`
18
- 4. hand back the smallest concrete repair scope when failing
19
-
20
- ## Hard Gates
21
-
22
- - do not invent new product scope
23
- - do not approve a task unit that skipped a required acceptance point
@@ -1,229 +0,0 @@
1
- #!/usr/bin/env node
2
- 'use strict';
3
-
4
- const fs = require('fs');
5
- const path = require('path');
6
-
7
- function usage() {
8
- console.error(
9
- 'Usage: node skills/aw-execute/scripts/build-worker-bundle.js --feature <slug> --tasks-file <path> [--output <path>] [--allow-parallel] [--max-parallel-workers <n>]'
10
- );
11
- }
12
-
13
- function parseArgs(argv) {
14
- const args = {
15
- allowParallel: false,
16
- maxParallelWorkers: 3,
17
- };
18
-
19
- for (let index = 0; index < argv.length; index += 1) {
20
- const current = argv[index];
21
- if (current === '--allow-parallel') {
22
- args.allowParallel = true;
23
- continue;
24
- }
25
-
26
- if (!current.startsWith('--')) {
27
- throw new Error(`Unexpected argument: ${current}`);
28
- }
29
-
30
- const next = argv[index + 1];
31
- if (!next || next.startsWith('--')) {
32
- throw new Error(`Missing value for ${current}`);
33
- }
34
-
35
- if (current === '--feature') {
36
- args.featureSlug = next;
37
- } else if (current === '--tasks-file') {
38
- args.tasksFile = next;
39
- } else if (current === '--output') {
40
- args.output = next;
41
- } else if (current === '--max-parallel-workers') {
42
- const parsedValue = Number(next);
43
- if (!Number.isInteger(parsedValue) || parsedValue < 1) {
44
- throw new Error('--max-parallel-workers must be a positive integer');
45
- }
46
- args.maxParallelWorkers = parsedValue;
47
- } else {
48
- throw new Error(`Unknown argument: ${current}`);
49
- }
50
-
51
- index += 1;
52
- }
53
-
54
- if (!args.featureSlug || !args.tasksFile) {
55
- usage();
56
- throw new Error('--feature and --tasks-file are required');
57
- }
58
-
59
- return args;
60
- }
61
-
62
- function toPosixPath(value) {
63
- return value.split(path.sep).join('/');
64
- }
65
-
66
- function parseTaskUnits(content) {
67
- const units = [];
68
-
69
- for (const line of content.split(/\r?\n/)) {
70
- const match = line.match(/^\s*(?:- \[[ xX]\]|-|\*|\d+\.)\s+(.+?)\s*$/);
71
- if (!match) {
72
- continue;
73
- }
74
-
75
- const title = match[1].trim();
76
- if (!title) {
77
- continue;
78
- }
79
-
80
- units.push(title);
81
- }
82
-
83
- if (units.length === 0) {
84
- throw new Error('No task units found in tasks file');
85
- }
86
-
87
- return units;
88
- }
89
-
90
- function buildRolePrompt({ roleGuide, featureSlug, taskUnitTitle, tasksFilePath, roleName }) {
91
- return [
92
- `Load role guide: ${roleGuide}`,
93
- `Feature slug: ${featureSlug}`,
94
- `Task unit: ${taskUnitTitle}`,
95
- `Approved task source: ${tasksFilePath}`,
96
- `Role: ${roleName}`,
97
- 'Stay within the repo-local AW execute contract and keep the scope bounded.',
98
- ].join('\n');
99
- }
100
-
101
- function buildBundle({ featureSlug, tasksFilePath, allowParallel, maxParallelWorkers, repoRoot }) {
102
- const taskUnits = parseTaskUnits(fs.readFileSync(tasksFilePath, 'utf8'));
103
- const referencePaths = {
104
- implementer: 'skills/aw-execute/references/worker-implementer.md',
105
- spec_reviewer: 'skills/aw-execute/references/worker-spec-reviewer.md',
106
- quality_reviewer: 'skills/aw-execute/references/worker-quality-reviewer.md',
107
- parallel_worker: 'skills/aw-execute/references/worker-parallel-worker.md',
108
- };
109
-
110
- const relativeTasksFile = toPosixPath(path.relative(repoRoot, tasksFilePath) || path.basename(tasksFilePath));
111
- const bundle = {
112
- schema_version: 'aw.execute.worker-bundle.v1',
113
- feature_slug: featureSlug,
114
- generated_at: new Date().toISOString(),
115
- source_tasks_file: relativeTasksFile,
116
- role_reference_paths: referencePaths,
117
- task_units: taskUnits.map((title, index) => {
118
- const taskUnitId = `task-${index + 1}`;
119
- const parallelCandidate = allowParallel && taskUnits.length > 1;
120
-
121
- const taskUnit = {
122
- id: taskUnitId,
123
- title,
124
- parallel_candidate: parallelCandidate,
125
- roles: {
126
- implementer: {
127
- reference_path: referencePaths.implementer,
128
- prompt: buildRolePrompt({
129
- roleGuide: referencePaths.implementer,
130
- featureSlug,
131
- taskUnitTitle: title,
132
- tasksFilePath: relativeTasksFile,
133
- roleName: 'implementer',
134
- }),
135
- },
136
- spec_reviewer: {
137
- reference_path: referencePaths.spec_reviewer,
138
- prompt: buildRolePrompt({
139
- roleGuide: referencePaths.spec_reviewer,
140
- featureSlug,
141
- taskUnitTitle: title,
142
- tasksFilePath: relativeTasksFile,
143
- roleName: 'spec_reviewer',
144
- }),
145
- },
146
- quality_reviewer: {
147
- reference_path: referencePaths.quality_reviewer,
148
- prompt: buildRolePrompt({
149
- roleGuide: referencePaths.quality_reviewer,
150
- featureSlug,
151
- taskUnitTitle: title,
152
- tasksFilePath: relativeTasksFile,
153
- roleName: 'quality_reviewer',
154
- }),
155
- },
156
- },
157
- };
158
-
159
- if (parallelCandidate) {
160
- taskUnit.roles.parallel_worker = {
161
- reference_path: referencePaths.parallel_worker,
162
- prompt: buildRolePrompt({
163
- roleGuide: referencePaths.parallel_worker,
164
- featureSlug,
165
- taskUnitTitle: title,
166
- tasksFilePath: relativeTasksFile,
167
- roleName: 'parallel_worker',
168
- }),
169
- };
170
- }
171
-
172
- return taskUnit;
173
- }),
174
- orchestration_plan: allowParallel
175
- ? {
176
- sessionName: `aw-execute-${featureSlug}`,
177
- repoRoot,
178
- baseRef: 'HEAD',
179
- max_parallel_workers: maxParallelWorkers,
180
- seedPaths: [
181
- 'skills/aw-execute/scripts/build-worker-bundle.js',
182
- ...Object.values(referencePaths),
183
- ],
184
- launcherCommand: 'codex exec --skip-git-repo-check "$(cat {task_file_sh})"',
185
- workers: taskUnits.map((title, index) => ({
186
- name: `implementer-task-${index + 1}`,
187
- task: buildRolePrompt({
188
- roleGuide: referencePaths.parallel_worker,
189
- featureSlug,
190
- taskUnitTitle: title,
191
- tasksFilePath: relativeTasksFile,
192
- roleName: 'parallel_worker',
193
- }),
194
- })),
195
- }
196
- : null,
197
- };
198
-
199
- return bundle;
200
- }
201
-
202
- function main() {
203
- try {
204
- const args = parseArgs(process.argv.slice(2));
205
- const repoRoot = process.cwd();
206
- const tasksFilePath = path.resolve(repoRoot, args.tasksFile);
207
- const outputPath = args.output ? path.resolve(repoRoot, args.output) : null;
208
- const bundle = buildBundle({
209
- featureSlug: args.featureSlug,
210
- tasksFilePath,
211
- allowParallel: args.allowParallel,
212
- maxParallelWorkers: args.maxParallelWorkers,
213
- repoRoot,
214
- });
215
-
216
- const payload = `${JSON.stringify(bundle, null, 2)}\n`;
217
- if (outputPath) {
218
- fs.mkdirSync(path.dirname(outputPath), { recursive: true });
219
- fs.writeFileSync(outputPath, payload, 'utf8');
220
- } else {
221
- process.stdout.write(payload);
222
- }
223
- } catch (error) {
224
- console.error(error.message);
225
- process.exit(1);
226
- }
227
- }
228
-
229
- main();
@@ -1,111 +0,0 @@
1
- ---
2
- name: aw-finish
3
- description: Internal compatibility helper for completing a verified development branch with explicit merge, PR, keep, or discard choices and safe worktree cleanup.
4
- trigger: Internal only. Invoked when verified branch work is done and the next step is a branch-completion decision rather than a staging deployment.
5
- ---
6
-
7
- # AW Finish
8
-
9
- `aw-finish` is a legacy compatibility skill.
10
- The canonical public release stage remains `/aw:deploy`, but this helper still owns the branch-completion decision flow when that workflow is needed internally.
11
-
12
- ## Hard Gate
13
-
14
- `aw-test` and `aw-review` must have passed before this skill runs, or the compatibility umbrella must have recorded an equivalent verified outcome.
15
- If verification failed, route back to `aw-build`, `aw-test`, or `aw-review` instead of finishing.
16
-
17
- ## Purpose
18
-
19
- Use this skill to close out verified branch work safely:
20
-
21
- - verify tests before offering completion choices
22
- - present explicit branch-completion options
23
- - execute the selected path
24
- - clean up the worktree only when appropriate
25
-
26
- If `.aw_docs/features/<feature_slug>/workspace.json` exists, use it as the source of truth for:
27
-
28
- - the active branch and worktree path
29
- - cleanup policy
30
- - orchestration coordination directory
31
- - the recommended `node scripts/orchestration-status.js ...` status command
32
-
33
- Staging or production deployment requests should stay on `aw-deploy`.
34
-
35
- ## Deprecation Timeline
36
-
37
- This skill is still active internally even though `/aw:finish` is deprecated as a public entrypoint.
38
- Keep `aw-finish` available until `/aw:deploy` fully absorbs branch-completion choices, workspace metadata reuse, and cleanup behavior.
39
- Public deprecation must not be interpreted as immediate removal of the internal helper.
40
-
41
- ## Completion Flow
42
-
43
- 1. verify tests and validation signals still pass
44
- 2. determine the base branch
45
- 3. present exactly these choices:
46
- - merge locally
47
- - push and create PR
48
- - keep as branch
49
- - discard
50
- 4. execute the selected path
51
- 5. clean up the worktree when the selected path requires cleanup
52
- 6. update or clear `workspace.json` to reflect the final cleanup decision
53
-
54
- ## Required Options
55
-
56
- ### Option 1: Merge Locally
57
-
58
- - switch to base branch
59
- - update from remote when appropriate
60
- - merge the verified branch
61
- - rerun the minimum correct verification
62
- - remove the branch or worktree when safe
63
- - clear `workspace.json` when cleanup completed successfully
64
-
65
- ### Option 2: Push and Create PR
66
-
67
- - push the branch
68
- - create or update the PR with concise summary and test plan
69
- - keep the worktree if the branch remains active
70
- - preserve `workspace.json` for the active branch lifecycle
71
-
72
- ### Option 3: Keep As-Is
73
-
74
- - keep the branch and worktree intact
75
- - report the branch name and next expected action
76
- - keep `workspace.json` intact for follow-up work
77
-
78
- ### Option 4: Discard
79
-
80
- - require explicit confirmation
81
- - delete the branch or worktree only after confirmation
82
- - remove `workspace.json` only after cleanup succeeds
83
-
84
- ## Worktree Cleanup Rule
85
-
86
- Only clean up the worktree automatically for:
87
-
88
- - merge-complete paths
89
- - confirmed discard paths
90
-
91
- Do not clean up the worktree for:
92
-
93
- - keep-as-branch
94
- - PR-open workflows where the branch is still in active use
95
-
96
- ## Hard Gates
97
-
98
- - do not offer completion choices until tests are rechecked
99
- - do not discard work without explicit confirmation
100
- - do not turn branch completion into deployment orchestration
101
- - do not clean up an active PR worktree by accident
102
-
103
- ## Final Output Shape
104
-
105
- Always end with:
106
-
107
- - `Verification Check`
108
- - `Base Branch`
109
- - `Completion Options`
110
- - `Selected Path`
111
- - `Cleanup Decision`
@@ -1,109 +0,0 @@
1
- ---
2
- name: aw-investigate
3
- description: Reproduce, localize, and confirm bugs, alerts, and regressions before broad fixes are attempted.
4
- trigger: User requests bug investigation, alert triage, root-cause analysis, or a legacy fix request arrives without a trustworthy cause.
5
- ---
6
-
7
- # AW Investigate
8
-
9
- ## Overview
10
-
11
- `aw-investigate` is the public debugging and triage stage.
12
- It turns vague failure into concrete evidence, a likely fault surface, and a clear next step.
13
-
14
- ## When to Use
15
-
16
- - root cause is unclear
17
- - the request starts from an alert, failure, log, or regression report
18
- - repeated fix attempts have already happened
19
- - the right next step might be "gather more evidence," not "change code"
20
-
21
- Do not use once the cause is already clear and implementation is ready.
22
-
23
- ## Workflow
24
-
25
- 1. Capture the failure signal.
26
- Record the trigger, expected behavior, actual behavior, and current blast radius.
27
- 2. Reproduce or isolate.
28
- Use `aw-debug` and `../../references/debug-triage.md`.
29
- For browser-visible issues, load `browser-testing-with-devtools`.
30
- Prefer the smallest confirming probe over speculative patching.
31
- 3. Load the right org-standard context.
32
- Pull in relevant platform services, frontend, data, or infra playbooks.
33
- For incident-style problems, load observability or log-analysis helpers as needed.
34
- 4. Narrow the fault surface.
35
- Identify the smallest plausible layer, file set, or dependency boundary.
36
- 5. Decide the next stage.
37
- If the cause is concrete enough, hand off to `aw-build` and name the exact starting slice or repair surface.
38
- If the work still needs proof, stay in investigation and name the next probe explicitly instead of pausing with a vague "needs more digging" note.
39
- 6. Persist the evidence.
40
- Write `investigation.md` and update `state.json` with completed probes, open questions, and the recommended next command.
41
-
42
- ## Completion Contract
43
-
44
- Investigation is complete only when one of these is true:
45
-
46
- - the likely fault surface is concrete enough for `aw-build`
47
- - the next probe is explicit enough for another investigation pass to continue without rediscovery
48
- - the work is blocked and the blocker is named clearly
49
-
50
- Every investigation handoff must make these things obvious:
51
-
52
- - what was reproduced
53
- - which probes were completed
54
- - what remains uncertain
55
- - which exact next command or next probe should run next
56
-
57
- ## Common Rationalizations
58
-
59
- | Rationalization | Reality |
60
- |---|---|
61
- | "I already know the likely fix." | Likely is not the same as confirmed. |
62
- | "The third patch will probably work." | Repeated speculative fixes are a debugging failure. |
63
- | "I don't need logs or runtime evidence for this." | Alerts and regressions need concrete signals, not memory. |
64
-
65
- ## Red Flags
66
-
67
- - fix attempts outnumber confirming probes
68
- - the failure is described only in prose, not evidence
69
- - the blast radius is guessed instead of scoped
70
- - the next action is "try another patch" instead of "run the next probe"
71
-
72
- ## State File
73
-
74
- `state.json` should record at least:
75
-
76
- - `feature_slug`
77
- - `stage: "investigate"`
78
- - `mode`
79
- - `status`
80
- - written artifacts
81
- - completed probes
82
- - commands run
83
- - likely fault surface
84
- - open questions
85
- - blockers
86
- - recommended next commands
87
-
88
- ## Verification
89
-
90
- Before leaving investigate, confirm:
91
-
92
- - [ ] reproduction or equivalent failure signal is captured
93
- - [ ] expected vs actual behavior is explicit
94
- - [ ] the likely fault surface is concrete enough to guide build
95
- - [ ] the next stage is clear: build, more investigation, or blocked
96
- - [ ] `investigation.md` and `state.json` are updated
97
-
98
- ## Final Output Shape
99
-
100
- Always end with:
101
-
102
- - `Mode`
103
- - `Reproduction`
104
- - `Expected vs Actual`
105
- - `Evidence`
106
- - `Completed Probes`
107
- - `Likely Fault Surface`
108
- - `Open Questions`
109
- - `Next`