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,290 +1,223 @@
1
1
  ---
2
2
  name: using-aw-skills
3
- description: Session-start skill-first routing for the AW SDLC surface. Select the smallest correct AW skill stack before any substantive response, then load deeper stage, domain, and org-standard detail on demand.
4
- trigger: Every session start. Loaded automatically via session-start hook.
3
+ description: Session-start skill-first routing for the AW SDLC surface. Classify, route, read stage skill, then respond. Plan-first is mandatory.
4
+ trigger: Every session start and before every substantive response.
5
5
  ---
6
6
 
7
7
  # Using AW Skills
8
8
 
9
- ## Overview
9
+ Router for the AW SDLC. MANDATORY on every non-trivial request and re-applied on every scope shift.
10
10
 
11
- This skill is the thin router for the AW SDLC surface.
12
- Its job is to:
11
+ ## Hard Gate (MUST in order, before any substantive response)
13
12
 
14
- - choose the smallest correct public route
15
- - choose the smallest correct AW skill stack
16
- - stop generic commentary until the stage is clear
17
- - load deeper references only when they materially change the decision
13
+ 1. **Classify.** Answer out loud:
14
+ - Approved plan exists at `.aw_docs/features/<slug>/`? (if no → likely plan-first)
15
+ - Bug / alert / unclear failure? (→ `/aw:investigate`)
16
+ - Change touches any plan-first trigger (see list below)? (→ `/aw:plan`, no exceptions)
17
+ - Crosses >1 file AND >1 concern? (→ `/aw:plan`)
18
+ - Qualifies as mechanical per whitelist below? (→ `/aw:build` allowed)
19
+ 2. **Select route** via decision tree.
20
+ 3. **Read the stage skill** (`<route>/SKILL.md`). Naming it is not reading it.
21
+ 4. **Follow the skill's artifacts and contract** — not general-knowledge answers.
22
+ 5. **Then respond.**
18
23
 
19
- Keep this file small.
20
- Stage behavior belongs in stage skills.
21
- Long examples, checklists, and loading guidance belong in shared references.
24
+ ## Route Decision Tree
22
25
 
23
- This means the file should optimize for one thing first:
24
-
25
- - make the right next skill obvious
26
-
27
- ## When to Use
28
-
29
- - at session start
30
- - before any substantive response
31
- - whenever the request might map to planning, building, investigating, testing, reviewing, deploying, or shipping work
32
- - whenever the user gives a vague request and the right stage still has to be selected
33
-
34
- Do not skip this skill just because the work looks small.
35
-
36
- ## Skill Discovery
37
-
38
- When a task arrives, identify the current delivery phase and load the smallest correct route:
39
-
40
- ```text
41
- Task arrives
42
-
43
- ├── Vague idea, spec, or task breakdown? ───────→ /aw:plan
44
- ├── Approved change to implement? ──────────────→ /aw:build
45
- ├── Bug, alert, or unclear runtime failure? ────→ /aw:investigate
46
- ├── Need QA proof or regression evidence? ──────→ /aw:test
47
- ├── Need findings or readiness decision? ───────→ /aw:review
48
- ├── Need one concrete release action? ──────────→ /aw:deploy
49
- ├── Need launch or rollout closeout? ───────────→ /aw:ship
50
- └── Need one-run end-to-end automation? ───────→ aw-yolo
26
+ ```
27
+ FIRST — Is the user asking you to create, improve, fix, score, or audit
28
+ an agent, skill, command, rule, or eval? These are markdown files that
29
+ live in .aw/.aw_registry/ and define how AI tools behave.
30
+ ├── YES /aw:adk
31
+ │ The user wants you to write or edit the file itself.
32
+ │ Example: "Create a command for database migration" means
33
+ │ write a command markdown file — not perform an actual
34
+ │ migration. The subject matter inside the artifact doesn't
35
+ │ change the route.
36
+ └── NO → continue ↓
37
+
38
+ SECOND — Is the user asking to push registry artifacts (.aw_registry/
39
+ or .aw_rules/) to the remote platform-docs registry?
40
+ Signals: "push this agent/skill/rule to the registry", "publish my
41
+ registry changes", "sync to platform-docs", "aw push", "aw push-rules"
42
+ NOTE: Regular git push, code PRs, and deploys are NOT this route.
43
+ ├── YES → /aw:publish
44
+ │ Always dry-run first, then confirm before pushing.
45
+ └── NO → continue ↓
46
+
47
+ Approved plan for this exact work?
48
+ ├── NO → Bug/alert/unclear failure?
49
+ ├── YES /aw:investigate
50
+ │ └── NO → /aw:plan ← DEFAULT for anything new
51
+ └── YES Implemented & needs test/review?
52
+ ├── YES /aw:test or /aw:review
53
+ └── NO → Deploy/release action?
54
+ ├── YES → Single release outcome? → /aw:deploy
55
+ │ Launch readiness/rollout/rollback? → /aw:ship
56
+ └── NO → /aw:build
51
57
  ```
52
58
 
53
- Then load the supporting craft and domain skills that sharpen that route.
54
- If the work is in a real GHL domain, load `using-platform-skills` next.
55
-
56
- ## Public Surface
57
-
58
- The public surface stays intentionally small.
59
- The canonical routes are the stages shown in the discovery flow above:
60
-
61
- - `/aw:plan`, `/aw:build`, `/aw:test`, `/aw:review`, `/aw:deploy`, `/aw:ship`
62
- - `/aw:investigate`
63
-
64
- Default delivery flow:
65
-
66
- - `/aw:plan` -> `/aw:build` -> `/aw:test` -> `/aw:review` -> `/aw:deploy` -> `/aw:ship`
67
-
68
- Conditional route:
69
-
70
- - `/aw:investigate`
71
-
72
- `/aw:investigate` is a first-class route for bugs, alerts, regressions, and unclear root cause.
73
- It should not be treated as a mandatory phase in every request.
74
-
75
- Compatibility entrypoints remain available during migration:
76
-
77
- - `/aw:execute` -> `/aw:build`
78
- - `/aw:verify` -> `/aw:test`, `/aw:review`, or the smallest correct combined verification flow
79
-
80
- There is also one explicit internal power workflow:
81
-
82
- - `aw-yolo`
83
-
84
- `aw-yolo` is for clearly end-to-end requests where the user wants one-run automation.
85
- It should not become the default route for normal stage-specific work.
86
- When it is selected, begin at the first unsatisfied stage rather than restarting the lifecycle from the top.
87
-
88
- ## Core Operating Behaviors
89
-
90
- These behaviors apply across every route.
91
-
92
- ### 1. Surface Assumptions
59
+ ## Plan-First Triggers (exhaustive ANY of these `/aw:plan`)
93
60
 
94
- Name assumptions that materially change scope, architecture, rollout, or verification.
95
- If an assumption could change the selected route, say it early.
61
+ - new/modified endpoints, services, schemas, migrations, workers, queues
62
+ - architecture or layer-boundary changes
63
+ - integrations (third-party APIs, external registries, upstream-sourced skills/agents)
64
+ - **router / routing rules / skill orchestration** changes
65
+ - **new/modified skills, agents, commands, rule-manifest entries** (exception: if the user wants to create or edit an agent, skill, command, rule, or eval — the files in `.aw/.aw_registry/` that define AI behavior — that's `/aw:adk`. The gate above catches this before you get here.)
66
+ - **`state.json` / `verification.md` / review-or-build contract** changes
67
+ - **cross-registry propagation** (mirroring into platform-core, GitHub→local, etc.)
68
+ - **model assignment changes across multiple agents**
69
+ - security-sensitive work (auth, tokens, permissions, tenant scoping)
70
+ - public API / interface contract changes
71
+ - config changes that alter runtime behavior or feature flags
96
72
 
97
- ### 2. Manage Confusion Actively
73
+ ## Mechanical-Change Whitelist (ONLY bypass of plan-first — ALL must hold)
98
74
 
99
- If the request, spec, code, or baseline disagree:
75
+ - single file OR verbatim rename across files
76
+ - no new public contract, schema, state-field, workflow step, or registry entry
77
+ - no behavior change beyond a named bug fix
78
+ - no cross-registry propagation
79
+ - no new agent / skill / command / rule / reference
100
80
 
101
- 1. stop
102
- 2. name the contradiction
103
- 3. state the tradeoff or blocking question
104
- 4. do not guess through it
81
+ If ANY condition fails → plan-first. "Just a config tweak" / "just a skill edit" does NOT qualify.
105
82
 
106
- ### 3. Push Back With Concrete Tradeoffs
83
+ ## Compound-Request Guard
107
84
 
108
- If an approach creates obvious risk, complexity, or rollout danger:
85
+ Per-turn edits that *individually* look mechanical but *cumulatively* form a feature. ANY signal → pause, route to `/aw:plan`, retro-capture under `.aw_docs/features/<slug>/`:
109
86
 
110
- - say so directly
111
- - name the downside
112
- - propose the smallest safer alternative
87
+ - second consecutive edit touches a new file or concern
88
+ - any edit adds a field to a state/schema/contract already edited this session
89
+ - any edit mirrors content from an external source
90
+ - user says "also do X" after an initial edit
113
91
 
114
- ### 4. Enforce Simplicity
92
+ ## Pre-Edit Checklist (before the first `Edit`/`Write`/side-effecting `Bash` of a logical change)
115
93
 
116
- Prefer the smallest route and the smallest supporting skill stack.
117
- Do not turn a single-stage task into a hidden multi-stage workflow.
94
+ - [ ] classification completed
95
+ - [ ] route selected and named
96
+ - [ ] stage skill read
97
+ - [ ] plan exists when plan-first applies
98
+ - [ ] all 5 mechanical conditions verified when whitelist is claimed
99
+ - [ ] compound-request signals checked against prior turns
118
100
 
119
- ### 5. Maintain Scope Discipline
101
+ ## Re-Route Mid-Session
120
102
 
121
- Touch only the stage and supporting context required for the current request.
122
- Do not reopen planning, implementation, or release work without a reason.
103
+ If a follow-up changes the nature of the work (e.g. review session becomes "patch this skill too"), **re-run the Hard Gate for the new scope**. Do not carry old route forward by inertia.
123
104
 
124
- ### 6. Verify, Don't Assume
105
+ ## Public Surface
125
106
 
126
- Every route must eventually produce evidence, not just confidence.
127
- Proof belongs in the right stage artifact, not only in narration.
107
+ `/aw:plan` · `/aw:build` (alias: `/aw:execute`) · `/aw:investigate` · `/aw:test` (alias: `/aw:verify`) · `/aw:review` · `/aw:deploy` · `/aw:ship` · `/aw:feature` · `/aw:adk` · `/aw:publish`
108
+
109
+ Honor explicit `/aw:<command>` the user types; do not reinterpret.
110
+
111
+ ## Public Command Roles
112
+
113
+ | Command | Role | Primary artifacts |
114
+ |---|---|---|
115
+ | `/aw:plan` | Minimum correct planning | `prd.md`, `design.md`, `spec.md`, `tasks.md`, `state.json` |
116
+ | `/aw:build` | Implement approved work in reversible slices | `execution.md`, `state.json`, code/config |
117
+ | `/aw:investigate` | Reproduce, localize, confirm failure | `investigation.md`, `state.json` |
118
+ | `/aw:test` | Produce fresh QA evidence | `verification.md`, `state.json` |
119
+ | `/aw:review` | Findings, governance, readiness | `verification.md`, `state.json` |
120
+ | `/aw:deploy` | One release outcome for verified work | `release.md`, `state.json` |
121
+ | `/aw:ship` | Launch readiness, rollout safety, rollback, closeout | `release.md`, `state.json`, rollback notes |
122
+ | `/aw:feature` | Guided phase-by-phase SDLC (18 phases) | `state.json`, delegates to stage skills |
123
+ | `/aw:adk` | Author, score, fix, audit any registry artifact (command, agent, skill, rule, eval) | Registry artifacts, evals, `aw link` sync |
124
+ | `/aw:publish` | Push local artifacts to remote registry via PR (dry-run + confirm gate) | PR to platform-docs |
125
+
126
+ ## Intent Routing (quick map)
127
+
128
+ | Intent signals | Route |
129
+ |---|---|
130
+ | PRD, design, spec, task breakdown, architecture, "build-ready" | `/aw:plan` |
131
+ | "implement", "apply", "fix", "continue" w/ approved scope | `/aw:build` |
132
+ | "reproduce", "why is X failing", alert, incident | `/aw:investigate` |
133
+ | "run tests", "produce evidence", QA proof | `/aw:test` |
134
+ | "review", "is this ready", PR checks, findings, readiness | `/aw:review` |
135
+ | "create PR", "deploy to staging/prod" (single outcome) | `/aw:deploy` |
136
+ | "is this ready to launch", rollout, rollback plan, release closeout | `/aw:ship` |
137
+ | "idea → production", "do the whole flow", "PR AND deploy" | `aw-yolo` (internal, not a public route — user should stage explicitly) |
138
+ | "create an agent/skill/command/rule/eval", "score my skill", "audit all agents", "ADK", "developer kit" | `/aw:adk` |
139
+ | "push this agent/skill/rule to the registry", "publish registry changes", "sync to platform-docs", "aw push" (NOT regular git push or code PRs) | `/aw:publish` |
140
+
141
+ ## Scope Guardrails
142
+
143
+ - code request ≠ design/product work; design ≠ coding
144
+ - deploy does not reopen planning; review does not silently implement
145
+ - planning request already well-defined does not need a forced PRD
146
+ - do not produce substantive non-routing output before skill selection
147
+ - local repo AW routing is not skipped because a parent workspace has rules
148
+ - every first destructive tool call in a turn re-confirms the route
149
+
150
+ ## Red Flags (stop and re-classify)
151
+
152
+ | Thought | Reality |
153
+ |---|---|
154
+ | "I can answer quickly first" | Quick answers still need skill context. |
155
+ | "Just exploring a little" | Exploration is work — load the skill first. |
156
+ | "Just a clarifying question" | Clarify after skill selection. |
157
+ | "I know the route" | Knowing ≠ loading. |
158
+ | "User said 'yes do it' — I can skip plan" | Approval for an edit ≠ approval to skip routing. |
159
+ | "It's just a skill/config tweak" | Skills/routers/agents/registries are plan-first. |
160
+ | "Each turn was small" | Compound guard triggers on accumulation. |
161
+ | "Planning now is late" | Retro-plan before the next edit. |
162
+ | "Entered under /aw:review so route is locked" | Scope shift → re-route. |
163
+ | "Just mirroring upstream" | Cross-registry propagation is plan-first. |
128
164
 
129
165
  ## Always-On Activation
130
166
 
131
167
  Before any substantive response, this router must select the smallest correct AW skill stack and matching public route.
132
168
 
133
- - explicit user command -> honor that command and load the mapped AW stage skill first
134
- - clear process need -> load the needed internal process skill first
135
- - otherwise choose the smallest correct AW primary stage skill and matching public route by intent
169
+ - explicit user command honor and load the mapped stage skill first
170
+ - clear process need load the needed internal process skill first
171
+ - otherwise choose the smallest correct AW primary stage skill by intent
136
172
  - only after the required AW skills are selected, load deeper domain skills or ask clarifying questions
137
173
 
138
174
  Do not start with generic implementation, review, or deploy advice before skill selection.
139
- Do not leave the active skill stack or matching route implicit for non-trivial work.
140
175
 
141
176
  ## The Rule
142
177
 
143
178
  If there is even a small chance that an AW process skill, stage skill, or required domain skill applies, load it before responding.
144
179
 
145
- Questions count.
146
- Clarifying questions count.
147
- Quick exploration counts.
148
-
149
- The AW public command is the user-facing projection of the selected primary stage skill.
150
-
151
180
  ## Skill Priority
152
181
 
153
- When multiple AW skills could apply, use this order:
154
-
155
- 1. process skills first:
156
- - `aw-brainstorm`
157
- - `aw-debug`
158
- - `aw-prepare`
159
- - `aw-yolo`
160
- 2. primary stage skills second:
161
- - `aw-plan`
162
- - `aw-build`
163
- - `aw-investigate`
164
- - `aw-test`
165
- - `aw-review`
166
- - `aw-deploy`
167
- - `aw-ship`
168
- 3. domain and cross-cutting skills third
169
-
170
- The selected public route should reflect the primary stage skill, not hide it.
171
-
172
- ## Route Selection
173
-
174
- Use one primary route unless the user explicitly asks for end-to-end orchestration.
175
-
176
- For route examples, explicit routing priority, and scope guardrails, see [`../../references/route-selection-patterns.md`](../../references/route-selection-patterns.md).
177
-
178
- ## Failure Modes to Avoid
179
-
180
- These patterns look productive, but they create routing drift:
181
-
182
- 1. answering quickly before selecting a route
183
- 2. treating exploration as exempt from routing
184
- 3. choosing `/aw:investigate` for every bug, even when the fix is already known
185
- 4. treating `aw-yolo` as the default because it feels convenient
186
- 5. reopening planning during `build` without a real blocker
187
- 6. silently implementing during `test` or `review`
188
- 7. loading every domain skill "just in case"
189
- 8. giving a confident answer without evidence or stage artifacts
182
+ 1. process skills (`aw-brainstorm`, `aw-debug`, `aw-review`, `aw-prepare`)
183
+ 2. primary stage skill (`aw-plan`, `aw-build`, `aw-test`, `aw-review`, `aw-deploy`, `aw-ship`)
184
+ 3. domain skills (`platform-services/frontend/data/infra/sdet/review/design/mobile:*`) — delegated to `using-platform-skills`
190
185
 
191
186
  ## Cross-Cutting Engineering Skills
192
187
 
193
- After the primary stage is selected, load the portable craft skill that best sharpens the work:
194
-
195
- - `idea-refine`
196
- - `context-engineering`
197
- - `incremental-implementation`
198
- - `frontend-ui-engineering`
199
- - `api-and-interface-design`
200
- - `browser-testing-with-devtools`
201
- - `code-simplification`
202
- - `security-and-hardening`
203
- - `performance-optimization`
204
- - `git-workflow-and-versioning`
205
- - `ci-cd-and-automation`
206
- - `deprecation-and-migration`
207
- - `documentation-and-adrs`
208
-
209
- Load them because they improve the selected stage, not because they create a new public route.
210
- For domain families, cross-cutting guidance, and org-standard loading, see [`../../references/domain-skill-loading.md`](../../references/domain-skill-loading.md).
211
-
212
- ## Platform Skill Loading
213
-
214
- After the primary AW route is known, use `using-platform-skills` when GHL platform behavior materially affects the stage.
215
-
216
- - backend and worker work -> `platform-services:*`
217
- - frontend and design-system work -> `platform-frontend:*` plus `platform-design:*`
218
- - data and migrations -> `platform-data:*`
219
- - infra and deploy paths -> `platform-infra:*`
220
- - test systems and QA governance -> `platform-sdet:*`
221
- - review depth and readiness -> `platform-review:*`
222
- - product context and business behavior -> `platform-product:*`
223
-
224
- Use `using-platform-skills` to decide the first supporting platform skills for the selected stage.
225
-
226
- ## Context Loading
188
+ Load across stages when context applies: `incremental-implementation`, `context-engineering`, `api-and-interface-design`, `git-workflow-and-versioning`, `ci-cd-and-automation`, `deprecation-and-migration`, `documentation-and-adrs`, `frontend-ui-engineering`, `browser-testing-with-devtools`, `idea-refine`, `aw-adk`
227
189
 
228
- Load context in the smallest order that reduces uncertainty without flooding the session.
229
- Start with repo-local contracts and approved AW artifacts before broad code search or domain docs.
190
+ ## Cross-Cutting Deepening Skills
230
191
 
231
- See [`../../references/context-loading-and-intake.md`](../../references/context-loading-and-intake.md).
192
+ | Skill | Load when |
193
+ |---|---|
194
+ | `grill-with-docs` | Inside `/aw:plan` when requirements, domain language, edge cases, or acceptance criteria are fuzzy enough that a guided interview would materially improve the artifact. |
195
+ | `to-prd` | Inside `/aw:plan` for product/full mode or when missing product assumptions must be frozen into `prd.md`; do not require it for already-clear technical plans. |
196
+ | `to-issues` | Inside `/aw:plan` before `tasks.md` when a PRD/spec needs vertical tracer-bullet slices; remote issue publishing requires an explicit user request. |
197
+ | `tdd` | Inside `/aw:build` as a companion to `tdd-workflow` when behavior-test, mocking, or tracer-bullet judgement needs more depth. |
198
+ | `diagnose` | Inside `/aw:investigate` when the failure is unclear, hard to reproduce, performance-related, or vulnerable to speculative patching. |
199
+ | `zoom-out` | Any stage when unfamiliar code needs a higher-level module map before local edits or review. |
200
+ | `improve-codebase-architecture` | Standalone or before planning/building architecture-heavy changes where shallow modules, bad seams, or poor testability are the core concern. |
201
+ | `grill-me` | Product, design, architecture, or decision review when the user explicitly wants to be questioned before committing to a path. |
232
202
 
233
- ## Org Standards Always On
203
+ ## Internal Helpers (not public routes)
234
204
 
235
- When the selected stage falls inside a resolved baseline profile, the stage must honor:
205
+ `aw:brainstorm` (discovery only) · `aw:finish` (legacy) · `aw:code-review` alias of `/aw:review` · `aw:tdd` → alias of `/aw:build` · `aw-yolo` (internal power workflow for autonomous end-to-end orchestration — never advertise as public route)
236
206
 
237
- - `defaults/aw-sdlc/baseline-profiles.yml`
238
- - relevant platform playbooks
239
- - relevant `.aw_rules`
207
+ ## Rules Always Active
240
208
 
241
- Frontend work should still inherit HighRise, accessibility, responsive, and review expectations.
242
- Release work should still inherit governance, rollback, and evidence expectations.
243
- See [`../../references/domain-skill-loading.md`](../../references/domain-skill-loading.md).
209
+ Relevant `.aw_rules/` and platform docs remain constraints regardless of route — never a reason to broaden scope.
244
210
 
245
- ## Skill Rules
246
-
247
- 1. Check for an applicable AW route before starting real work.
248
- 2. Use one primary route unless the user explicitly asks for end-to-end orchestration.
249
- 3. Load process skills before stage skills when the process itself changes the right path.
250
- 4. Load domain and craft skills only after the primary route is clear.
251
- 5. Load `using-platform-skills` when a GHL platform family materially changes the work.
252
- 6. When in doubt between diagnosis and implementation, choose `/aw:investigate` only if root cause is still unclear.
253
- 7. When in doubt between a normal route and `aw-yolo`, prefer the normal route.
254
-
255
- ## Typical Sequences
256
-
257
- For a normal feature:
258
-
259
- ```text
260
- /aw:plan -> /aw:build -> /aw:test -> /aw:review -> /aw:deploy -> /aw:ship
261
- ```
262
-
263
- For a bug with unclear root cause:
264
-
265
- ```text
266
- /aw:investigate -> /aw:build -> /aw:test -> /aw:review
267
- ```
268
-
269
- For a release-ready change that only needs rollout work:
270
-
271
- ```text
272
- /aw:deploy -> /aw:ship
273
- ```
274
-
275
- For explicit one-run automation:
276
-
277
- ```text
278
- aw-yolo -> [smallest correct internal stage sequence]
279
- ```
211
+ ## Harness Activation (one line per harness)
280
212
 
281
- ## Verification
213
+ - Claude / hook-capable plugins → global plugin install
214
+ - Cursor native / headless → `~/.cursor/hooks.json`
215
+ - Cursor plugin → `hooks/hooks-cursor.json`
216
+ - Codex → global `~/.codex/` install (launcher fallback)
217
+ - Cursor repo without plugin → `.cursor/rules/aw-sdlc-router.mdc`
282
218
 
283
- Before moving past routing, confirm:
219
+ ## References
284
220
 
285
- - [ ] the smallest correct AW skill stack was selected first
286
- - [ ] the public route matches the actual stage intent
287
- - [ ] `/aw:investigate` was only chosen when diagnosis is actually required
288
- - [ ] org-standard playbooks and `.aw_rules` are loaded when the baseline requires them
289
- - [ ] the task is not being silently broadened into extra stages
290
- - [ ] `aw-yolo` is used only when the user explicitly asked for end-to-end automation
221
+ - [context-loading-and-intake](../../references/context-loading-and-intake.md)
222
+ - [route-selection-patterns](../../references/route-selection-patterns.md)
223
+ - [domain-skill-loading](../../references/domain-skill-loading.md)
@@ -59,21 +59,10 @@ read_frontmatter_name() {
59
59
  ' "$file_path"
60
60
  }
61
61
 
62
- extract_skill_excerpt() {
62
+ read_skill_content() {
63
63
  local file_path="$1"
64
64
  [[ -f "$file_path" ]] || return 0
65
-
66
- awk '
67
- NR == 1 && $0 == "---" { in_frontmatter = 1; next }
68
- in_frontmatter && $0 == "---" { in_frontmatter = 0; next }
69
- in_frontmatter { next }
70
- /^[[:space:]]*$/ { next }
71
- {
72
- print
73
- count++
74
- if (count >= 4) exit
75
- }
76
- ' "$file_path"
65
+ cat "$file_path"
77
66
  }
78
67
 
79
68
  collect_registry_skills() {
@@ -127,7 +116,7 @@ elif [[ -n "$AW_REGISTRY_ROOT" && -f "$AW_REGISTRY_ROOT/platform/core/skills/usi
127
116
  ROUTER_SKILL_PATH="$AW_REGISTRY_ROOT/platform/core/skills/using-aw-skills/SKILL.md"
128
117
  fi
129
118
 
130
- ROUTER_EXCERPT="$(extract_skill_excerpt "$ROUTER_SKILL_PATH")"
119
+ ROUTER_CONTENT="$(read_skill_content "$ROUTER_SKILL_PATH")"
131
120
  REGISTRY_SKILLS=""
132
121
  REGISTRY_COMMANDS=""
133
122
  if [[ -n "$AW_REGISTRY_ROOT" ]]; then
@@ -135,37 +124,18 @@ if [[ -n "$AW_REGISTRY_ROOT" ]]; then
135
124
  REGISTRY_COMMANDS="$(collect_registry_commands "$AW_REGISTRY_ROOT")"
136
125
  fi
137
126
 
138
- CONTEXT="# AW Session Context
139
-
140
- ## First Response Rule
141
- Before any substantive response, select the smallest correct AW skill stack from the repo-local router.
142
- Honor an explicit AW command and its mapped stage skill first.
143
- Otherwise choose the needed process skill, primary stage skill, and matching route by intent, then load deeper domain skills.
144
- Do not start with generic implementation, review, or deploy advice before skill selection.
127
+ CONTEXT="<EXTREMELY_IMPORTANT>
128
+ You have the AW Agentic Workspace engine.
145
129
 
146
- ## Primary Routes
147
- - /aw:plan -> ideas, specs, task breakdown, architecture direction
148
- - /aw:build -> approved implementation work
149
- - /aw:investigate -> bugs, alerts, or unclear runtime failures
150
- - /aw:test -> QA proof and regression evidence
151
- - /aw:review -> findings, risk review, and readiness
152
- - /aw:deploy -> rollout or release execution
153
- - /aw:ship -> release closeout and final handoff
130
+ # AW Session Context
154
131
 
155
- ## Compatibility Routes
156
- - /aw:execute -> compatibility route; resolve to /aw:build
157
- - /aw:verify -> compatibility route; resolve to /aw:test or /aw:review
132
+ **Below is the full content of your 'using-aw-skills' skill — your router for all AW workflows. For all other skills, use the Skill tool:**
158
133
 
159
- ## Router Source
160
- Use skills/using-aw-skills/SKILL.md as the repo-local router.
161
- Load domain, platform, and craft skills only after the smallest correct AW route is selected."
134
+ ${ROUTER_CONTENT}
135
+ </EXTREMELY_IMPORTANT>
162
136
 
163
- if [[ -n "$ROUTER_EXCERPT" ]]; then
164
- CONTEXT="${CONTEXT}
165
-
166
- ## Router Excerpt
167
- ${ROUTER_EXCERPT}"
168
- fi
137
+ IF A SKILL APPLIES TO YOUR TASK, YOU DO NOT HAVE A CHOICE. YOU MUST USE IT.
138
+ This is not negotiable. This is not optional. You cannot rationalize your way out of this."
169
139
 
170
140
  if [[ -n "$REGISTRY_SKILLS" ]]; then
171
141
  CONTEXT="${CONTEXT}
@@ -0,0 +1,24 @@
1
+ ---
2
+ name: zoom-out
3
+ description: Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Zoom Out
8
+
9
+ ## When To Use
10
+
11
+ Use this when a file, module, or unfamiliar code area is too local to understand safely without first mapping the surrounding system.
12
+
13
+ ## Workflow
14
+
15
+ I don't know this area of code well. Go up a layer of abstraction. Give me a map of all the relevant modules and callers, using the project's domain glossary vocabulary.
16
+
17
+ ## Output
18
+
19
+ Return:
20
+
21
+ - the main modules involved
22
+ - how they call or depend on each other
23
+ - the domain terms that should be used consistently
24
+ - the safest local entry points for deeper inspection
@@ -1,53 +0,0 @@
1
- ---
2
- description: "Agent orchestration: available agents, parallel execution, multi-perspective analysis"
3
- alwaysApply: true
4
- ---
5
- # Agent Orchestration
6
-
7
- ## Available Agents
8
-
9
- Located in `~/.claude/agents/`:
10
-
11
- | Agent | Purpose | When to Use |
12
- |-------|---------|-------------|
13
- | planner | Implementation planning | Complex features, refactoring |
14
- | architect | System design | Architectural decisions |
15
- | tdd-guide | Test-driven development | New features, bug fixes |
16
- | code-reviewer | Code review | After writing code |
17
- | security-reviewer | Security analysis | Before commits |
18
- | build-error-resolver | Fix build errors | When build fails |
19
- | e2e-runner | E2E testing | Critical user flows |
20
- | refactor-cleaner | Dead code cleanup | Code maintenance |
21
- | doc-updater | Documentation | Updating docs |
22
-
23
- ## Immediate Agent Usage
24
-
25
- No user prompt needed:
26
- 1. Complex feature requests - Use **planner** agent
27
- 2. Code just written/modified - Use **code-reviewer** agent
28
- 3. Bug fix or new feature - Use **tdd-guide** agent
29
- 4. Architectural decision - Use **architect** agent
30
-
31
- ## Parallel Task Execution
32
-
33
- ALWAYS use parallel Task execution for independent operations:
34
-
35
- ```markdown
36
- # GOOD: Parallel execution
37
- Launch 3 agents in parallel:
38
- 1. Agent 1: Security analysis of auth module
39
- 2. Agent 2: Performance review of cache system
40
- 3. Agent 3: Type checking of utilities
41
-
42
- # BAD: Sequential when unnecessary
43
- First agent 1, then agent 2, then agent 3
44
- ```
45
-
46
- ## Multi-Perspective Analysis
47
-
48
- For complex problems, use split role sub-agents:
49
- - Factual reviewer
50
- - Senior engineer
51
- - Security expert
52
- - Consistency reviewer
53
- - Redundancy checker