@qball-inc/the-bulwark 1.1.0 → 1.2.0

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 (222) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/.gitattributes +48 -0
  3. package/CHANGELOG.md +121 -0
  4. package/LICENSE +21 -21
  5. package/README.md +426 -408
  6. package/agents/bulwark-fix-validator.md +643 -633
  7. package/agents/bulwark-implementer.md +407 -391
  8. package/agents/bulwark-issue-analyzer.md +310 -308
  9. package/agents/bulwark-standards-reviewer.md +305 -221
  10. package/agents/plan-creation-architect.md +325 -323
  11. package/agents/plan-creation-eng-lead.md +354 -352
  12. package/agents/plan-creation-po.md +302 -300
  13. package/agents/plan-creation-qa-critic.md +336 -334
  14. package/agents/product-ideation-competitive-analyzer.md +2 -0
  15. package/agents/product-ideation-idea-validator.md +2 -0
  16. package/agents/product-ideation-market-researcher.md +2 -0
  17. package/agents/product-ideation-pattern-documenter.md +2 -0
  18. package/agents/product-ideation-segment-analyzer.md +2 -0
  19. package/agents/product-ideation-strategist.md +2 -0
  20. package/agents/statusline-setup.md +99 -97
  21. package/hooks/hooks.json +19 -1
  22. package/package.json +6 -5
  23. package/scripts/apply-section.sh +243 -0
  24. package/scripts/hooks/check-template-drift.sh +191 -0
  25. package/scripts/hooks/cleanup-review-registry.sh +106 -0
  26. package/scripts/hooks/cleanup-stale.sh +19 -2
  27. package/scripts/hooks/enforce-quality.sh +2 -2
  28. package/scripts/hooks/lib/coverage_check.py +513 -0
  29. package/scripts/hooks/suggest-pipeline-stop.sh +172 -56
  30. package/scripts/init.sh +56 -0
  31. package/scripts/install-bun.sh +327 -0
  32. package/scripts/update.sh +342 -0
  33. package/skills/anthropic-validator/SKILL.md +497 -607
  34. package/skills/anthropic-validator/references/agents-checklist.md +144 -131
  35. package/skills/anthropic-validator/references/agents-validation.md +90 -0
  36. package/skills/anthropic-validator/references/commands-checklist.md +102 -102
  37. package/skills/anthropic-validator/references/commands-validation.md +42 -0
  38. package/skills/anthropic-validator/references/hooks-checklist.md +160 -151
  39. package/skills/anthropic-validator/references/hooks-validation.md +82 -0
  40. package/skills/anthropic-validator/references/mcp-checklist.md +136 -136
  41. package/skills/anthropic-validator/references/mcp-validation.md +39 -0
  42. package/skills/anthropic-validator/references/plugins-checklist.md +154 -148
  43. package/skills/anthropic-validator/references/plugins-validation.md +68 -0
  44. package/skills/anthropic-validator/references/skills-checklist.md +105 -85
  45. package/skills/anthropic-validator/references/skills-validation.md +79 -0
  46. package/skills/assertion-patterns/SKILL.md +298 -296
  47. package/skills/bug-magnet-data/SKILL.md +286 -284
  48. package/skills/bug-magnet-data/context/cli-args.md +91 -91
  49. package/skills/bug-magnet-data/context/db-query.md +104 -104
  50. package/skills/bug-magnet-data/context/file-contents.md +103 -103
  51. package/skills/bug-magnet-data/context/http-body.md +91 -91
  52. package/skills/bug-magnet-data/context/process-spawn.md +123 -123
  53. package/skills/bug-magnet-data/data/booleans/boundaries.yaml +143 -143
  54. package/skills/bug-magnet-data/data/collections/arrays.yaml +114 -114
  55. package/skills/bug-magnet-data/data/collections/objects.yaml +123 -123
  56. package/skills/bug-magnet-data/data/concurrency/race-conditions.yaml +118 -118
  57. package/skills/bug-magnet-data/data/concurrency/state-machines.yaml +115 -115
  58. package/skills/bug-magnet-data/data/dates/boundaries.yaml +137 -137
  59. package/skills/bug-magnet-data/data/dates/invalid.yaml +132 -132
  60. package/skills/bug-magnet-data/data/dates/timezone.yaml +118 -118
  61. package/skills/bug-magnet-data/data/encoding/charset.yaml +79 -79
  62. package/skills/bug-magnet-data/data/encoding/normalization.yaml +105 -105
  63. package/skills/bug-magnet-data/data/formats/email.yaml +154 -154
  64. package/skills/bug-magnet-data/data/formats/json.yaml +187 -187
  65. package/skills/bug-magnet-data/data/formats/url.yaml +165 -165
  66. package/skills/bug-magnet-data/data/language-specific/javascript.yaml +182 -182
  67. package/skills/bug-magnet-data/data/language-specific/python.yaml +174 -174
  68. package/skills/bug-magnet-data/data/language-specific/rust.yaml +148 -148
  69. package/skills/bug-magnet-data/data/numbers/boundaries.yaml +161 -161
  70. package/skills/bug-magnet-data/data/numbers/precision.yaml +89 -89
  71. package/skills/bug-magnet-data/data/numbers/special.yaml +69 -69
  72. package/skills/bug-magnet-data/data/strings/boundaries.yaml +109 -109
  73. package/skills/bug-magnet-data/data/strings/injection.yaml +208 -208
  74. package/skills/bug-magnet-data/data/strings/special-chars.yaml +190 -190
  75. package/skills/bug-magnet-data/data/strings/unicode.yaml +139 -139
  76. package/skills/bug-magnet-data/references/external-lists.md +115 -115
  77. package/skills/bulwark-brainstorm/SKILL.md +566 -563
  78. package/skills/bulwark-brainstorm/references/at-teammate-prompts.md +95 -60
  79. package/skills/bulwark-brainstorm/references/role-critical-analyst.md +78 -78
  80. package/skills/bulwark-brainstorm/references/role-development-lead.md +66 -66
  81. package/skills/bulwark-brainstorm/references/role-product-delivery-lead.md +79 -79
  82. package/skills/bulwark-brainstorm/references/role-product-manager.md +62 -62
  83. package/skills/bulwark-brainstorm/references/role-project-sme.md +59 -59
  84. package/skills/bulwark-brainstorm/references/role-technical-architect.md +66 -66
  85. package/skills/bulwark-research/SKILL.md +300 -298
  86. package/skills/bulwark-research/references/viewpoint-contrarian.md +63 -63
  87. package/skills/bulwark-research/references/viewpoint-direct-investigation.md +62 -62
  88. package/skills/bulwark-research/references/viewpoint-first-principles.md +65 -65
  89. package/skills/bulwark-research/references/viewpoint-practitioner.md +62 -62
  90. package/skills/bulwark-research/references/viewpoint-prior-art.md +66 -66
  91. package/skills/bulwark-scaffold/SKILL.md +483 -396
  92. package/skills/bulwark-statusline/SKILL.md +166 -161
  93. package/skills/bulwark-statusline/scripts/statusline.sh +1 -1
  94. package/skills/bulwark-verify/SKILL.md +532 -519
  95. package/skills/code-review/SKILL.md +488 -428
  96. package/skills/code-review/examples/anti-patterns/linting.ts +181 -181
  97. package/skills/code-review/examples/anti-patterns/security.ts +91 -91
  98. package/skills/code-review/examples/anti-patterns/standards.ts +195 -195
  99. package/skills/code-review/examples/anti-patterns/type-safety.ts +108 -108
  100. package/skills/code-review/examples/recommended/linting.ts +195 -195
  101. package/skills/code-review/examples/recommended/security.ts +154 -154
  102. package/skills/code-review/examples/recommended/standards.ts +231 -231
  103. package/skills/code-review/examples/recommended/type-safety.ts +181 -181
  104. package/skills/code-review/frameworks/angular.md +218 -218
  105. package/skills/code-review/frameworks/django.md +235 -235
  106. package/skills/code-review/frameworks/express.md +207 -207
  107. package/skills/code-review/frameworks/fastapi.md +326 -0
  108. package/skills/code-review/frameworks/flask.md +298 -298
  109. package/skills/code-review/frameworks/generic.md +146 -146
  110. package/skills/code-review/frameworks/react.md +152 -152
  111. package/skills/code-review/frameworks/vue.md +244 -244
  112. package/skills/code-review/references/linting-patterns.md +221 -221
  113. package/skills/code-review/references/security-patterns.md +125 -125
  114. package/skills/code-review/references/standards-patterns.md +246 -246
  115. package/skills/code-review/references/type-safety-patterns.md +130 -130
  116. package/skills/component-patterns/SKILL.md +133 -131
  117. package/skills/component-patterns/references/pattern-cli-command.md +118 -118
  118. package/skills/component-patterns/references/pattern-database.md +166 -166
  119. package/skills/component-patterns/references/pattern-external-api.md +139 -139
  120. package/skills/component-patterns/references/pattern-file-parser.md +168 -168
  121. package/skills/component-patterns/references/pattern-http-server.md +162 -162
  122. package/skills/component-patterns/references/pattern-process-spawner.md +133 -133
  123. package/skills/continuous-feedback/SKILL.md +329 -327
  124. package/skills/continuous-feedback/references/collect-instructions.md +81 -81
  125. package/skills/continuous-feedback/references/specialize-code-review.md +82 -82
  126. package/skills/continuous-feedback/references/specialize-general.md +98 -98
  127. package/skills/continuous-feedback/references/specialize-test-audit.md +81 -81
  128. package/skills/create-skill/SKILL.md +550 -359
  129. package/skills/create-skill/agents/skill-eval-comparator.md +158 -0
  130. package/skills/create-skill/agents/skill-eval-grader.md +168 -0
  131. package/skills/create-skill/references/agent-conventions.md +194 -194
  132. package/skills/create-skill/references/agent-template.md +195 -195
  133. package/skills/create-skill/references/content-guidance.md +541 -291
  134. package/skills/create-skill/references/decision-framework.md +232 -124
  135. package/skills/create-skill/references/eval-scaffolding.md +468 -0
  136. package/skills/create-skill/references/eval-shape.md +383 -0
  137. package/skills/create-skill/references/scripts-conventions.md +142 -0
  138. package/skills/create-skill/references/template-generator.md +183 -0
  139. package/skills/create-skill/references/template-inversion.md +269 -0
  140. package/skills/create-skill/references/template-pipeline.md +248 -217
  141. package/skills/create-skill/references/template-research.md +234 -210
  142. package/skills/create-skill/references/template-reviewer.md +231 -0
  143. package/skills/create-skill/references/template-script-driven.md +185 -172
  144. package/skills/create-skill/references/template-tool-wrapper.md +199 -0
  145. package/skills/create-skill/scripts/check-description.ts +238 -0
  146. package/skills/create-skill/scripts/check-skill-size.ts +201 -0
  147. package/skills/create-skill/scripts/grade.ts +855 -0
  148. package/skills/create-skill/scripts/run-loop.ts +297 -0
  149. package/skills/create-subagent/SKILL.md +355 -353
  150. package/skills/create-subagent/references/agent-conventions.md +268 -268
  151. package/skills/create-subagent/references/content-guidance.md +232 -232
  152. package/skills/create-subagent/references/decision-framework.md +134 -134
  153. package/skills/create-subagent/references/template-single-agent.md +194 -192
  154. package/skills/fix-bug/SKILL.md +243 -241
  155. package/skills/governance-protocol/SKILL.md +118 -116
  156. package/skills/init/SKILL.md +519 -437
  157. package/skills/init/references/update-askuser-prompts.md +198 -0
  158. package/skills/init/references/update-mode.md +305 -0
  159. package/skills/init/references/update-section-anchor-diff.md +163 -0
  160. package/skills/issue-debugging/SKILL.md +387 -385
  161. package/skills/issue-debugging/references/anti-patterns.md +245 -245
  162. package/skills/issue-debugging/references/debug-report-schema.md +227 -227
  163. package/skills/mock-detection/SKILL.md +528 -511
  164. package/skills/mock-detection/references/false-positive-prevention.md +402 -402
  165. package/skills/mock-detection/references/stub-patterns.md +236 -236
  166. package/skills/pipeline-templates/SKILL.md +262 -215
  167. package/skills/pipeline-templates/references/code-change-workflow.md +277 -277
  168. package/skills/pipeline-templates/references/code-review.md +348 -336
  169. package/skills/pipeline-templates/references/fix-validation.md +421 -421
  170. package/skills/pipeline-templates/references/new-feature.md +335 -335
  171. package/skills/pipeline-templates/references/research-brainstorm.md +161 -161
  172. package/skills/pipeline-templates/references/research-planning.md +257 -257
  173. package/skills/pipeline-templates/references/test-audit.md +389 -389
  174. package/skills/pipeline-templates/references/test-execution-fix.md +238 -238
  175. package/skills/plan-creation/SKILL.md +531 -497
  176. package/skills/plan-to-tasks/SKILL.md +151 -0
  177. package/skills/plan-to-tasks/references/askuserquestion-prompts.md +75 -0
  178. package/skills/plan-to-tasks/references/transform.md +253 -0
  179. package/skills/product-ideation/SKILL.md +2 -0
  180. package/skills/session-handoff/SKILL.md +167 -165
  181. package/skills/session-handoff/references/examples.md +223 -223
  182. package/skills/setup-lsp/SKILL.md +314 -312
  183. package/skills/setup-lsp/references/server-registry.md +85 -85
  184. package/skills/setup-lsp/references/troubleshooting.md +135 -135
  185. package/skills/spec-drift-check/SKILL.md +287 -0
  186. package/skills/spec-drift-check/evals/evals.json +33 -0
  187. package/skills/spec-drift-check/evals/triggers.json +19 -0
  188. package/skills/spec-drift-check/examples/clean-spec.md +52 -0
  189. package/skills/spec-drift-check/examples/expected-output-clean.yaml +96 -0
  190. package/skills/spec-drift-check/examples/expected-output-high-drift.yaml +78 -0
  191. package/skills/spec-drift-check/examples/expected-output-low-drift.yaml +67 -0
  192. package/skills/spec-drift-check/examples/high-drift-spec.md +49 -0
  193. package/skills/spec-drift-check/examples/low-drift-spec.md +39 -0
  194. package/skills/spec-drift-check/references/anti-patterns.md +65 -0
  195. package/skills/spec-drift-check/references/output-template.md +142 -0
  196. package/skills/spec-drift-check/references/step-1-claim-extraction.md +147 -0
  197. package/skills/spec-drift-check/references/step-2-verification-methods.md +203 -0
  198. package/skills/spec-drift-check/references/step-3-categorization.md +105 -0
  199. package/skills/spec-drift-check/references/step-4-plan-adjustment.md +122 -0
  200. package/skills/spec-drift-check/references/step-5-log-template.md +220 -0
  201. package/skills/spec-drift-check/references/step-6-decision-matrix.md +136 -0
  202. package/skills/subagent-output-templating/SKILL.md +417 -415
  203. package/skills/subagent-output-templating/references/examples.md +440 -440
  204. package/skills/subagent-prompting/SKILL.md +366 -364
  205. package/skills/subagent-prompting/references/examples.md +342 -342
  206. package/skills/test-audit/SKILL.md +545 -531
  207. package/skills/test-audit/references/known-limitations.md +41 -41
  208. package/skills/test-audit/references/priority-classification.md +30 -30
  209. package/skills/test-audit/references/prompts/deep-mode-detection.md +83 -83
  210. package/skills/test-audit/references/prompts/synthesis.md +58 -57
  211. package/skills/test-audit/references/rewrite-instructions.md +46 -46
  212. package/skills/test-audit/references/schemas/audit-output.yaml +131 -100
  213. package/skills/test-audit/references/schemas/diagnostic-output.yaml +56 -49
  214. package/skills/test-audit/references/two-gate-logic.md +43 -0
  215. package/skills/test-audit/scripts/data-flow-analyzer.ts +508 -508
  216. package/skills/test-audit/scripts/integration-mock-detector.ts +462 -462
  217. package/skills/test-audit/scripts/skip-detector.ts +211 -211
  218. package/skills/test-audit/scripts/verification-counter.ts +295 -295
  219. package/skills/test-classification/SKILL.md +326 -310
  220. package/skills/test-fixture-creation/SKILL.md +297 -295
  221. package/skills/create-skill/references/template-reference-heavy.md +0 -111
  222. package/skills/create-skill/references/template-simple.md +0 -80
@@ -1,62 +1,62 @@
1
- # Role: Senior Product Manager
2
-
3
- **Execution Order**: Parallel — SECOND (runs alongside Technical Architect and Development Lead)
4
-
5
- ## Purpose
6
-
7
- Evaluate user value, prioritization, and scope boundaries. Receives the SME's project context analysis as input.
8
-
9
- ## Focus Areas
10
-
11
- - User value proposition — who benefits and how?
12
- - Prioritization — what aspects deliver the most value soonest?
13
- - Scope boundaries — what is v1 vs. deferred?
14
- - Success criteria — how do we know this works?
15
- - Risk to user experience if implemented poorly
16
-
17
- ## Prompt Template
18
-
19
- ```
20
- GOAL: You are a senior product manager evaluating whether and how to adopt
21
- [{topic}] in this project. Using the research findings and SME analysis, assess
22
- user value, prioritization, scope boundaries, and success criteria.
23
-
24
- CONSTRAINTS:
25
- - Focus on your role's perspective — other roles are handled by separate agents
26
- - Ground all recommendations in the research findings (do not re-research the topic)
27
- - Reference specific project assets by path when discussing integration points
28
- - Be prescriptive: "Do X" not "Consider X or Y"
29
- - Target 1200-1800 words
30
-
31
- REASONING DEPTH — Evaluate-Prioritize-Recheck:
32
- You MUST follow this reasoning process (do not skip to writing the final output):
33
-
34
- 1. EVALUATE: Form your initial assessment of user value, scope boundaries, and
35
- prioritization based on the research findings and SME context.
36
- 2. PRIORITIZE: Rank features/capabilities by value-to-effort ratio. For each
37
- priority item, explicitly state:
38
- - The user value it delivers
39
- - Who benefits and how measurably
40
- - What happens if this is deferred (cost of delay)
41
- 3. RECHECK: Challenge your own prioritization:
42
- - "If I'm wrong about the user value of my top priority, how does the ranking change?"
43
- - "What user segment or use case am I underweighting?"
44
- - "Are my scope boundaries driven by actual constraints or assumptions?"
45
- Adjust your recommendations based on this self-challenge.
46
-
47
- Only after completing all 3 steps, write your final output using the template below.
48
-
49
- CONTEXT:
50
- {topic_description}
51
- {research_synthesis_if_available}
52
- {sme_output}
53
-
54
- OUTPUT:
55
- Write findings to: {output_path}
56
- Use the output template provided below for document structure.
57
- Use YAML header with: role, topic, recommendation (proceed/modify/defer/kill),
58
- key_findings (3-5 bullets)
59
- Follow with detailed analysis organized by the focus areas above.
60
-
61
- {role_output_template}
62
- ```
1
+ # Role: Senior Product Manager
2
+
3
+ **Execution Order**: Parallel — SECOND (runs alongside Technical Architect and Development Lead)
4
+
5
+ ## Purpose
6
+
7
+ Evaluate user value, prioritization, and scope boundaries. Receives the SME's project context analysis as input.
8
+
9
+ ## Focus Areas
10
+
11
+ - User value proposition — who benefits and how?
12
+ - Prioritization — what aspects deliver the most value soonest?
13
+ - Scope boundaries — what is v1 vs. deferred?
14
+ - Success criteria — how do we know this works?
15
+ - Risk to user experience if implemented poorly
16
+
17
+ ## Prompt Template
18
+
19
+ ```
20
+ GOAL: You are a senior product manager evaluating whether and how to adopt
21
+ [{topic}] in this project. Using the research findings and SME analysis, assess
22
+ user value, prioritization, scope boundaries, and success criteria.
23
+
24
+ CONSTRAINTS:
25
+ - Focus on your role's perspective — other roles are handled by separate agents
26
+ - Ground all recommendations in the research findings (do not re-research the topic)
27
+ - Reference specific project assets by path when discussing integration points
28
+ - Be prescriptive: "Do X" not "Consider X or Y"
29
+ - Target 1200-1800 words
30
+
31
+ REASONING DEPTH — Evaluate-Prioritize-Recheck:
32
+ You MUST follow this reasoning process (do not skip to writing the final output):
33
+
34
+ 1. EVALUATE: Form your initial assessment of user value, scope boundaries, and
35
+ prioritization based on the research findings and SME context.
36
+ 2. PRIORITIZE: Rank features/capabilities by value-to-effort ratio. For each
37
+ priority item, explicitly state:
38
+ - The user value it delivers
39
+ - Who benefits and how measurably
40
+ - What happens if this is deferred (cost of delay)
41
+ 3. RECHECK: Challenge your own prioritization:
42
+ - "If I'm wrong about the user value of my top priority, how does the ranking change?"
43
+ - "What user segment or use case am I underweighting?"
44
+ - "Are my scope boundaries driven by actual constraints or assumptions?"
45
+ Adjust your recommendations based on this self-challenge.
46
+
47
+ Only after completing all 3 steps, write your final output using the template below.
48
+
49
+ CONTEXT:
50
+ {topic_description}
51
+ {research_synthesis_if_available}
52
+ {sme_output}
53
+
54
+ OUTPUT:
55
+ Write findings to: {output_path}
56
+ Use the output template provided below for document structure.
57
+ Use YAML header with: role, topic, recommendation (proceed/modify/defer/kill),
58
+ key_findings (3-5 bullets)
59
+ Follow with detailed analysis organized by the focus areas above.
60
+
61
+ {role_output_template}
62
+ ```
@@ -1,59 +1,59 @@
1
- # Role: Project SME
2
-
3
- **Execution Order**: Sequential — FIRST (solo, before all other roles)
4
-
5
- ## Purpose
6
-
7
- Establish what exists, what has been built, and where the topic fits in the current architecture. The SME's output feeds all subsequent role agents.
8
-
9
- ## Focus Areas
10
-
11
- - Current project architecture relevant to the topic
12
- - Existing assets that relate to or would be affected by adoption
13
- - Integration points — where does this connect to what already exists?
14
- - Constraints imposed by current design decisions
15
- - What the project already does well that must not be disrupted
16
-
17
- ## Autonomous Codebase Exploration
18
-
19
- **CRITICAL**: The SME agent MUST explore the codebase autonomously. Do NOT provide hardcoded document paths.
20
-
21
- The SME is spawned as a `general-purpose` subagent with Opus model and has access to Glob, Grep, and Read tools. Instruct it to:
22
-
23
- - Identify the MINIMUM files needed to answer: What exists relevant to this topic? Where are the integration points? What constraints apply? What must not be disrupted?
24
- - Do NOT attempt to read the entire codebase
25
- - Document which files were read and why in the output
26
-
27
- This ensures the skill is portable across any project.
28
-
29
- ## Prompt Template
30
-
31
- ```
32
- GOAL: You are a subject matter expert on this project. Explore the codebase to
33
- understand the current architecture, then analyze how [{topic}] relates to the
34
- current project state. Document what exists, where integration points are, what
35
- constraints apply, and what must not be disrupted.
36
-
37
- CONSTRAINTS:
38
- - Explore the codebase autonomously using Glob, Grep, and Read tools
39
- - Identify the MINIMUM files needed — do NOT read the entire codebase
40
- - Focus on your role's perspective — other roles are handled by separate agents
41
- - Ground all analysis in actual project files (cite file paths)
42
- - Be prescriptive: "Do X" not "Consider X or Y"
43
- - Document which files you read and why
44
- - Target 1000-1500 words
45
-
46
- CONTEXT:
47
- {topic_description}
48
- {research_synthesis_if_available}
49
-
50
- OUTPUT:
51
- Write findings to: {output_path}
52
- Use the output template provided below for document structure.
53
- Use YAML header with: role, topic, recommendation (proceed/modify/defer/kill),
54
- key_findings (3-5 bullets)
55
- Follow with detailed analysis organized by the focus areas above.
56
- Include a "Files Explored" section listing each file read and its relevance.
57
-
58
- {role_output_template}
59
- ```
1
+ # Role: Project SME
2
+
3
+ **Execution Order**: Sequential — FIRST (solo, before all other roles)
4
+
5
+ ## Purpose
6
+
7
+ Establish what exists, what has been built, and where the topic fits in the current architecture. The SME's output feeds all subsequent role agents.
8
+
9
+ ## Focus Areas
10
+
11
+ - Current project architecture relevant to the topic
12
+ - Existing assets that relate to or would be affected by adoption
13
+ - Integration points — where does this connect to what already exists?
14
+ - Constraints imposed by current design decisions
15
+ - What the project already does well that must not be disrupted
16
+
17
+ ## Autonomous Codebase Exploration
18
+
19
+ **CRITICAL**: The SME agent MUST explore the codebase autonomously. Do NOT provide hardcoded document paths.
20
+
21
+ The SME is spawned as a `general-purpose` subagent with Opus model and has access to Glob, Grep, and Read tools. Instruct it to:
22
+
23
+ - Identify the MINIMUM files needed to answer: What exists relevant to this topic? Where are the integration points? What constraints apply? What must not be disrupted?
24
+ - Do NOT attempt to read the entire codebase
25
+ - Document which files were read and why in the output
26
+
27
+ This ensures the skill is portable across any project.
28
+
29
+ ## Prompt Template
30
+
31
+ ```
32
+ GOAL: You are a subject matter expert on this project. Explore the codebase to
33
+ understand the current architecture, then analyze how [{topic}] relates to the
34
+ current project state. Document what exists, where integration points are, what
35
+ constraints apply, and what must not be disrupted.
36
+
37
+ CONSTRAINTS:
38
+ - Explore the codebase autonomously using Glob, Grep, and Read tools
39
+ - Identify the MINIMUM files needed — do NOT read the entire codebase
40
+ - Focus on your role's perspective — other roles are handled by separate agents
41
+ - Ground all analysis in actual project files (cite file paths)
42
+ - Be prescriptive: "Do X" not "Consider X or Y"
43
+ - Document which files you read and why
44
+ - Target 1000-1500 words
45
+
46
+ CONTEXT:
47
+ {topic_description}
48
+ {research_synthesis_if_available}
49
+
50
+ OUTPUT:
51
+ Write findings to: {output_path}
52
+ Use the output template provided below for document structure.
53
+ Use YAML header with: role, topic, recommendation (proceed/modify/defer/kill),
54
+ key_findings (3-5 bullets)
55
+ Follow with detailed analysis organized by the focus areas above.
56
+ Include a "Files Explored" section listing each file read and its relevance.
57
+
58
+ {role_output_template}
59
+ ```
@@ -1,66 +1,66 @@
1
- # Role: Senior Technical Architect
2
-
3
- **Execution Order**: Parallel — SECOND (runs alongside Product Manager and Development Lead)
4
-
5
- ## Purpose
6
-
7
- Define system design, patterns, and technical trade-offs. Receives the SME's project context analysis as input.
8
-
9
- ## Focus Areas
10
-
11
- - Architectural approach — how should this be structured?
12
- - Design patterns that apply (and which to avoid)
13
- - Technical trade-offs and their implications
14
- - Integration architecture — how it connects to existing systems
15
- - Extensibility and future-proofing considerations
16
-
17
- ## Prompt Template
18
-
19
- ```
20
- GOAL: You are a senior technical architect designing the implementation of
21
- [{topic}] within this project. Using the research findings and SME analysis,
22
- propose the architectural approach, design patterns, trade-offs, and integration
23
- strategy.
24
-
25
- CONSTRAINTS:
26
- - Focus on your role's perspective — other roles are handled by separate agents
27
- - Ground all recommendations in the research findings (do not re-research the topic),
28
- but DO explore the codebase using Glob, Grep, and Read to validate your proposals
29
- against actual project structure
30
- - Reference specific project assets by path when discussing integration points
31
- - Be prescriptive: "Do X" not "Consider X or Y"
32
- - Target 1200-1800 words
33
-
34
- REASONING DEPTH — Propose-Challenge-Refine:
35
- You MUST follow this reasoning process (do not skip to writing the final output):
36
-
37
- 1. PROPOSE: Form your initial architectural design based on the research findings
38
- and SME context. Identify patterns, integration points, and trade-offs.
39
- 2. VALIDATE: Explore the codebase to verify your proposals:
40
- - Do the integration points you identified actually exist where you expect?
41
- - Are there existing patterns in the codebase that your design should follow?
42
- - Are there constraints you missed that the code reveals?
43
- 3. CHALLENGE: Self-challenge your design:
44
- - "What am I assuming about the codebase that I haven't verified?"
45
- - "What is the weakest part of this architecture?"
46
- - "If this design fails, where does it fail first?"
47
- - "Is there a simpler approach that achieves 80% of the value?"
48
- 4. REFINE: Adjust your design based on the validation and challenge steps.
49
- Document what changed and why.
50
-
51
- Only after completing all 4 steps, write your final output using the template below.
52
-
53
- CONTEXT:
54
- {topic_description}
55
- {research_synthesis_if_available}
56
- {sme_output}
57
-
58
- OUTPUT:
59
- Write findings to: {output_path}
60
- Use the output template provided below for document structure.
61
- Use YAML header with: role, topic, recommendation (proceed/modify/defer/kill),
62
- key_findings (3-5 bullets)
63
- Follow with detailed analysis organized by the focus areas above.
64
-
65
- {role_output_template}
66
- ```
1
+ # Role: Senior Technical Architect
2
+
3
+ **Execution Order**: Parallel — SECOND (runs alongside Product Manager and Development Lead)
4
+
5
+ ## Purpose
6
+
7
+ Define system design, patterns, and technical trade-offs. Receives the SME's project context analysis as input.
8
+
9
+ ## Focus Areas
10
+
11
+ - Architectural approach — how should this be structured?
12
+ - Design patterns that apply (and which to avoid)
13
+ - Technical trade-offs and their implications
14
+ - Integration architecture — how it connects to existing systems
15
+ - Extensibility and future-proofing considerations
16
+
17
+ ## Prompt Template
18
+
19
+ ```
20
+ GOAL: You are a senior technical architect designing the implementation of
21
+ [{topic}] within this project. Using the research findings and SME analysis,
22
+ propose the architectural approach, design patterns, trade-offs, and integration
23
+ strategy.
24
+
25
+ CONSTRAINTS:
26
+ - Focus on your role's perspective — other roles are handled by separate agents
27
+ - Ground all recommendations in the research findings (do not re-research the topic),
28
+ but DO explore the codebase using Glob, Grep, and Read to validate your proposals
29
+ against actual project structure
30
+ - Reference specific project assets by path when discussing integration points
31
+ - Be prescriptive: "Do X" not "Consider X or Y"
32
+ - Target 1200-1800 words
33
+
34
+ REASONING DEPTH — Propose-Challenge-Refine:
35
+ You MUST follow this reasoning process (do not skip to writing the final output):
36
+
37
+ 1. PROPOSE: Form your initial architectural design based on the research findings
38
+ and SME context. Identify patterns, integration points, and trade-offs.
39
+ 2. VALIDATE: Explore the codebase to verify your proposals:
40
+ - Do the integration points you identified actually exist where you expect?
41
+ - Are there existing patterns in the codebase that your design should follow?
42
+ - Are there constraints you missed that the code reveals?
43
+ 3. CHALLENGE: Self-challenge your design:
44
+ - "What am I assuming about the codebase that I haven't verified?"
45
+ - "What is the weakest part of this architecture?"
46
+ - "If this design fails, where does it fail first?"
47
+ - "Is there a simpler approach that achieves 80% of the value?"
48
+ 4. REFINE: Adjust your design based on the validation and challenge steps.
49
+ Document what changed and why.
50
+
51
+ Only after completing all 4 steps, write your final output using the template below.
52
+
53
+ CONTEXT:
54
+ {topic_description}
55
+ {research_synthesis_if_available}
56
+ {sme_output}
57
+
58
+ OUTPUT:
59
+ Write findings to: {output_path}
60
+ Use the output template provided below for document structure.
61
+ Use YAML header with: role, topic, recommendation (proceed/modify/defer/kill),
62
+ key_findings (3-5 bullets)
63
+ Follow with detailed analysis organized by the focus areas above.
64
+
65
+ {role_output_template}
66
+ ```