@v11g/agents-rock 1.0.5 → 1.0.7

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 (168) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/plugins/business-analyst/skills/business-analyst/evals/evals.json +54 -0
  4. package/plugins/business-analyst/skills/business-analyst/evals/fixtures/pre-fed-ai-contract-review/kestrel-discovery-call.md +137 -0
  5. package/plugins/business-analyst/skills/business-analyst/evals/fixtures/thin-warehouse-brief/havenridge-thread.md +75 -0
  6. package/plugins/reasoning/.claude-plugin/plugin.json +9 -0
  7. package/plugins/reasoning/evals/guardrail-no-fabricated-figures/graders/names-missing-data.md +10 -0
  8. package/plugins/reasoning/evals/guardrail-no-fabricated-figures/graders/no-invented-numbers.md +23 -0
  9. package/plugins/reasoning/evals/guardrail-no-fabricated-figures/graders/one-framework.md +12 -0
  10. package/plugins/reasoning/evals/guardrail-no-fabricated-figures/graders/skill-fired.md +7 -0
  11. package/plugins/reasoning/evals/guardrail-no-fabricated-figures/prompt.md +44 -0
  12. package/plugins/reasoning/evals/guardrail-no-over-analysis/graders/no-diagram.md +8 -0
  13. package/plugins/reasoning/evals/guardrail-no-over-analysis/graders/no-padding.md +12 -0
  14. package/plugins/reasoning/evals/guardrail-no-over-analysis/graders/no-systems-thinking-vocabulary.md +12 -0
  15. package/plugins/reasoning/evals/guardrail-no-over-analysis/graders/one-framework-block.md +7 -0
  16. package/plugins/reasoning/evals/guardrail-no-over-analysis/graders/skill-fired.md +7 -0
  17. package/plugins/reasoning/evals/guardrail-no-over-analysis/prompt.md +7 -0
  18. package/plugins/reasoning/evals/guardrail-no-unsupported-root-cause/graders/chain-stops-at-speculation.md +10 -0
  19. package/plugins/reasoning/evals/guardrail-no-unsupported-root-cause/graders/inferred-links-are-assumptions.md +10 -0
  20. package/plugins/reasoning/evals/guardrail-no-unsupported-root-cause/graders/root-candidate-not-asserted.md +11 -0
  21. package/plugins/reasoning/evals/guardrail-no-unsupported-root-cause/graders/six-core-fields.md +21 -0
  22. package/plugins/reasoning/evals/guardrail-no-unsupported-root-cause/graders/skill-fired.md +7 -0
  23. package/plugins/reasoning/evals/guardrail-no-unsupported-root-cause/graders/uncertainties-present.md +9 -0
  24. package/plugins/reasoning/evals/guardrail-no-unsupported-root-cause/prompt.md +7 -0
  25. package/plugins/reasoning/evals/guardrail-unavailable-framework/graders/names-closest-available.md +11 -0
  26. package/plugins/reasoning/evals/guardrail-unavailable-framework/graders/names-owning-skill.md +9 -0
  27. package/plugins/reasoning/evals/guardrail-unavailable-framework/graders/no-improvised-levels.md +11 -0
  28. package/plugins/reasoning/evals/guardrail-unavailable-framework/graders/skill-fired.md +7 -0
  29. package/plugins/reasoning/evals/guardrail-unavailable-framework/graders/states-unavailable.md +10 -0
  30. package/plugins/reasoning/evals/guardrail-unavailable-framework/prompt.md +7 -0
  31. package/plugins/reasoning/evals/routing-adaptive-discriminator/graders/classifies-complex.md +13 -0
  32. package/plugins/reasoning/evals/routing-adaptive-discriminator/graders/names-the-test-applied.md +13 -0
  33. package/plugins/reasoning/evals/routing-adaptive-discriminator/graders/no-analysis.md +15 -0
  34. package/plugins/reasoning/evals/routing-adaptive-discriminator/graders/routes-to-systems-thinking.md +12 -0
  35. package/plugins/reasoning/evals/routing-adaptive-discriminator/graders/skill-fired.md +7 -0
  36. package/plugins/reasoning/evals/routing-adaptive-discriminator/prompt.md +15 -0
  37. package/plugins/reasoning/evals/routing-ambiguous-feature-request/graders/classifies-ambiguous.md +8 -0
  38. package/plugins/reasoning/evals/routing-ambiguous-feature-request/graders/every-rejection-has-a-reason.md +8 -0
  39. package/plugins/reasoning/evals/routing-ambiguous-feature-request/graders/recommends-double-diamond.md +7 -0
  40. package/plugins/reasoning/evals/routing-ambiguous-feature-request/graders/rejects-rca-and-five-whys.md +10 -0
  41. package/plugins/reasoning/evals/routing-ambiguous-feature-request/graders/skill-fired.md +7 -0
  42. package/plugins/reasoning/evals/routing-ambiguous-feature-request/prompt.md +6 -0
  43. package/plugins/reasoning/evals/routing-classify-only/graders/classifies-without-recommending.md +10 -0
  44. package/plugins/reasoning/evals/routing-classify-only/graders/no-diagnosis.md +9 -0
  45. package/plugins/reasoning/evals/routing-classify-only/graders/reason-drawn-from-prompt.md +10 -0
  46. package/plugins/reasoning/evals/routing-classify-only/graders/skill-fired.md +7 -0
  47. package/plugins/reasoning/evals/routing-classify-only/prompt.md +6 -0
  48. package/plugins/reasoning/evals/routing-complex-adaptive-org-change/graders/classifies-complex-adaptive.md +8 -0
  49. package/plugins/reasoning/evals/routing-complex-adaptive-org-change/graders/names-both-skills-in-order.md +18 -0
  50. package/plugins/reasoning/evals/routing-complex-adaptive-org-change/graders/no-downgrade.md +9 -0
  51. package/plugins/reasoning/evals/routing-complex-adaptive-org-change/graders/skill-fired.md +7 -0
  52. package/plugins/reasoning/evals/routing-complex-adaptive-org-change/graders/states-systemic-design-unavailable.md +15 -0
  53. package/plugins/reasoning/evals/routing-complex-adaptive-org-change/prompt.md +6 -0
  54. package/plugins/reasoning/evals/routing-complex-delivery-slowdown/graders/classifies-complex-adaptive.md +14 -0
  55. package/plugins/reasoning/evals/routing-complex-delivery-slowdown/graders/no-analysis.md +23 -0
  56. package/plugins/reasoning/evals/routing-complex-delivery-slowdown/graders/no-fabricated-figures.md +13 -0
  57. package/plugins/reasoning/evals/routing-complex-delivery-slowdown/graders/no-hiring-remedy.md +9 -0
  58. package/plugins/reasoning/evals/routing-complex-delivery-slowdown/graders/routes-to-systems-thinking.md +14 -0
  59. package/plugins/reasoning/evals/routing-complex-delivery-slowdown/graders/skill-fired.md +7 -0
  60. package/plugins/reasoning/evals/routing-complex-delivery-slowdown/prompt.md +64 -0
  61. package/plugins/reasoning/evals/routing-simple-null-pointer/graders/classifies-simple.md +7 -0
  62. package/plugins/reasoning/evals/routing-simple-null-pointer/graders/no-heavy-frameworks.md +9 -0
  63. package/plugins/reasoning/evals/routing-simple-null-pointer/graders/routing-discipline.md +12 -0
  64. package/plugins/reasoning/evals/routing-simple-null-pointer/graders/six-core-fields.md +21 -0
  65. package/plugins/reasoning/evals/routing-simple-null-pointer/graders/skill-fired.md +7 -0
  66. package/plugins/reasoning/evals/routing-simple-null-pointer/prompt.md +6 -0
  67. package/plugins/reasoning/evals/routing-thin-input-provisional/graders/at-most-three-class-changing-questions.md +9 -0
  68. package/plugins/reasoning/evals/routing-thin-input-provisional/graders/confidence-low.md +9 -0
  69. package/plugins/reasoning/evals/routing-thin-input-provisional/graders/no-invented-detail.md +10 -0
  70. package/plugins/reasoning/evals/routing-thin-input-provisional/graders/skill-fired.md +7 -0
  71. package/plugins/reasoning/evals/routing-thin-input-provisional/graders/states-provisional.md +9 -0
  72. package/plugins/reasoning/evals/routing-thin-input-provisional/prompt.md +6 -0
  73. package/plugins/reasoning/evals/st-causal-loop-unclosed/graders/diagram-present.md +10 -0
  74. package/plugins/reasoning/evals/st-causal-loop-unclosed/graders/edges-carry-support-labels.md +12 -0
  75. package/plugins/reasoning/evals/st-causal-loop-unclosed/graders/no-invented-delays.md +10 -0
  76. package/plugins/reasoning/evals/st-causal-loop-unclosed/graders/open-chain-not-called-a-loop.md +13 -0
  77. package/plugins/reasoning/evals/st-causal-loop-unclosed/graders/skill-fired.md +7 -0
  78. package/plugins/reasoning/evals/st-causal-loop-unclosed/prompt.md +14 -0
  79. package/plugins/reasoning/evals/st-iceberg-thin-input/graders/empty-level-is-honest.md +14 -0
  80. package/plugins/reasoning/evals/st-iceberg-thin-input/graders/no-diagram.md +11 -0
  81. package/plugins/reasoning/evals/st-iceberg-thin-input/graders/no-invented-mental-model.md +13 -0
  82. package/plugins/reasoning/evals/st-iceberg-thin-input/graders/six-core-fields.md +12 -0
  83. package/plugins/reasoning/evals/st-iceberg-thin-input/graders/skill-fired.md +7 -0
  84. package/plugins/reasoning/evals/st-iceberg-thin-input/prompt.md +9 -0
  85. package/plugins/reasoning/evals/st-leverage-points-bound/graders/elements-carry-evidence-types.md +13 -0
  86. package/plugins/reasoning/evals/st-leverage-points-bound/graders/every-level-matches-an-element.md +13 -0
  87. package/plugins/reasoning/evals/st-leverage-points-bound/graders/no-adoption-plan.md +12 -0
  88. package/plugins/reasoning/evals/st-leverage-points-bound/graders/skill-fired.md +7 -0
  89. package/plugins/reasoning/evals/st-leverage-points-bound/graders/uncovered-kinds-are-stated.md +11 -0
  90. package/plugins/reasoning/evals/st-leverage-points-bound/prompt.md +11 -0
  91. package/plugins/reasoning/evals/st-selection-boundary/graders/first-match-wins.md +17 -0
  92. package/plugins/reasoning/evals/st-selection-boundary/graders/one-block-only.md +9 -0
  93. package/plugins/reasoning/evals/st-selection-boundary/graders/rejected-candidate-has-a-reason.md +11 -0
  94. package/plugins/reasoning/evals/st-selection-boundary/graders/six-core-fields.md +12 -0
  95. package/plugins/reasoning/evals/st-selection-boundary/graders/skill-fired.md +7 -0
  96. package/plugins/reasoning/evals/st-selection-boundary/prompt.md +13 -0
  97. package/plugins/reasoning/evals/st-system-map-boundary/graders/boundary-stated.md +9 -0
  98. package/plugins/reasoning/evals/st-system-map-boundary/graders/external-factors-hold-the-unconnected.md +15 -0
  99. package/plugins/reasoning/evals/st-system-map-boundary/graders/no-intervention-design.md +11 -0
  100. package/plugins/reasoning/evals/st-system-map-boundary/graders/no-invented-components.md +12 -0
  101. package/plugins/reasoning/evals/st-system-map-boundary/graders/skill-fired.md +7 -0
  102. package/plugins/reasoning/evals/st-system-map-boundary/prompt.md +15 -0
  103. package/plugins/reasoning/skills/problem-router/README.md +46 -0
  104. package/plugins/reasoning/skills/problem-router/SKILL.md +225 -0
  105. package/plugins/reasoning/skills/problem-router/references/contract.md +104 -0
  106. package/plugins/reasoning/skills/problem-solving/README.md +47 -0
  107. package/plugins/reasoning/skills/problem-solving/SKILL.md +194 -0
  108. package/plugins/reasoning/skills/problem-solving/frameworks/a3.md +46 -0
  109. package/plugins/reasoning/skills/problem-solving/frameworks/double-diamond.md +60 -0
  110. package/plugins/reasoning/skills/problem-solving/frameworks/five-whys.md +49 -0
  111. package/plugins/reasoning/skills/problem-solving/frameworks/pdca.md +46 -0
  112. package/plugins/reasoning/skills/problem-solving/frameworks/root-cause-analysis.md +59 -0
  113. package/plugins/reasoning/skills/problem-solving/references/contract.md +104 -0
  114. package/plugins/reasoning/skills/systems-thinking/README.md +39 -0
  115. package/plugins/reasoning/skills/systems-thinking/SKILL.md +206 -0
  116. package/plugins/reasoning/skills/systems-thinking/frameworks/causal-loop.md +58 -0
  117. package/plugins/reasoning/skills/systems-thinking/frameworks/iceberg.md +43 -0
  118. package/plugins/reasoning/skills/systems-thinking/frameworks/leverage-points.md +80 -0
  119. package/plugins/reasoning/skills/systems-thinking/frameworks/system-map.md +46 -0
  120. package/plugins/reasoning/skills/systems-thinking/references/contract.md +104 -0
  121. package/plugins/solution-architect/.claude-plugin/plugin.json +1 -1
  122. package/plugins/solution-architect/skills/analyze-requirements/evals/evals.json +66 -0
  123. package/plugins/solution-architect/skills/analyze-requirements/evals/fixtures/greenfield-llm-triage-spec/triage-service-spec.md +105 -0
  124. package/plugins/solution-architect/skills/estimate/SKILL.md +4 -2
  125. package/plugins/solution-architect/skills/estimate/assets/estimate-template.html +11 -2
  126. package/plugins/solution-architect/skills/estimate/assets/scores-review-template.html +304 -59
  127. package/plugins/solution-architect/skills/estimate/evals/evals.json +60 -0
  128. package/plugins/solution-architect/skills/estimate/evals/fixtures/gate-check-northgate/northgate-email.md +18 -0
  129. package/plugins/solution-architect/skills/estimate/evals/fixtures/pre-fed-agentic-halyard/measurements.jsonl +17 -0
  130. package/plugins/solution-architect/skills/estimate/evals/fixtures/pre-fed-agentic-halyard/requirements.json +62 -0
  131. package/plugins/solution-architect/skills/estimate/evals/fixtures/pre-fed-agentic-halyard/requirements.md +41 -0
  132. package/plugins/solution-architect/skills/estimate/evals/fixtures/pre-fed-traditional-trellis/ARCHITECTURE.md +71 -0
  133. package/plugins/solution-architect/skills/estimate/evals/fixtures/pre-fed-traditional-trellis/requirements.json +68 -0
  134. package/plugins/solution-architect/skills/estimate/evals/fixtures/pre-fed-traditional-trellis/requirements.md +43 -0
  135. package/plugins/solution-architect/skills/estimate/references/interview.md +19 -10
  136. package/plugins/solution-architect/skills/estimate/references/writing.md +7 -0
  137. package/plugins/solution-architect/skills/estimate/scripts/test/references.test.mjs +4 -1
  138. package/plugins/solution-architect/skills/estimate/scripts/test/xlsx-export.test.mjs +26 -5
  139. package/plugins/solution-architect/skills/new-lead/evals/evals.json +66 -0
  140. package/plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/ARCHITECTURE.md +19 -0
  141. package/plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/brief.md +5 -0
  142. package/plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/dist/index.html +3 -0
  143. package/plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/estimation.json +10 -0
  144. package/plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/proposal.md +8 -0
  145. package/plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/requirements.json +38 -0
  146. package/plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/sable-dental-booking/rfp.md +14 -0
  147. package/plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/vellum-books-checkout/ARCHITECTURE.md +18 -0
  148. package/plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/vellum-books-checkout/rfp.md +7 -0
  149. package/plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads.json +35 -0
  150. package/plugins/solution-architect/skills/new-lead/evals/fixtures/fresh-lead-northwind/rfp-northwind.md +28 -0
  151. package/plugins/solution-architect/skills/new-lead/evals/fixtures/skips-to-proposal/leads/meridian-freight-portal/rfp.md +14 -0
  152. package/plugins/solution-architect/skills/new-lead/evals/fixtures/skips-to-proposal/leads.json +15 -0
  153. package/plugins/solution-architect/skills/proposal/evals/evals.json +67 -0
  154. package/plugins/solution-architect/skills/proposal/evals/fixtures/gate-check-rivet-gym/ARCHITECTURE.md +53 -0
  155. package/plugins/solution-architect/skills/proposal/evals/fixtures/gate-check-rivet-gym/brief.md +23 -0
  156. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/ARCHITECTURE.md +65 -0
  157. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/brief.md +21 -0
  158. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/dist/mermaid.js +5 -0
  159. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation-inputs.json +88 -0
  160. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation.json +407 -0
  161. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation.md +41 -0
  162. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/ARCHITECTURE.md +68 -0
  163. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/brief.md +24 -0
  164. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/dist/mermaid.js +5 -0
  165. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation-inputs.json +87 -0
  166. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation.json +394 -0
  167. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation.md +44 -0
  168. package/src/cli/install.mjs +7 -1
@@ -0,0 +1,206 @@
1
+ ---
2
+ name: systems-thinking
3
+ description: Model the system producing a problem — its layers, actors, feedback loops, or intervention points — using the iceberg model, a system map, a causal loop diagram, or leverage points. Use when a symptom keeps returning after local fixes, when multiple actors and dependencies are tangled, or when someone asks where to intervene. Recommends a framework and lets you choose; run it with a named framework to skip the choice.
4
+ ---
5
+
6
+ # systems-thinking
7
+
8
+ You are executing the systems-thinking skill. A problem has arrived that
9
+ looks structural rather than local, and your job is to model the system
10
+ producing it: select or confirm a framework, run it to its own stopping
11
+ test, and emit the result. You do not design the intervention programme,
12
+ write the fix, or edit files.
13
+
14
+ ## Purpose
15
+
16
+ Answer one question: **what system is producing this?**
17
+
18
+ Not what the cause is and what to try next — that is `problem-solving`. Not
19
+ how to change the system over time — that is `systemic-design`, which is
20
+ not built in this release.
21
+
22
+ ## When to use / When not to use
23
+
24
+ Use this when the problem survives local fixes, spans several actors or
25
+ teams, or is suspected of feeding back on itself. Also use it when someone
26
+ asks directly where to intervene.
27
+
28
+ Don't use this for a one-line, reproducible, single-function defect. A null
29
+ pointer in one method is `problem-solving`, and reaching for an iceberg
30
+ there produces vocabulary instead of an answer.
31
+
32
+ Don't use this to plan the change. Naming where to push is in scope; who
33
+ does it, in what order, and by when is `systemic-design`.
34
+
35
+ ## Inputs
36
+
37
+ - The problem text, raw or already reframed by `problem-router`.
38
+ - Optionally, a framework name as the first argument — `iceberg`,
39
+ `system_map`, `causal_loop`, or `leverage_points`.
40
+ - Whatever a `problem-router` hand-off carries: its classification,
41
+ recommended skill, and reasoning.
42
+ - A prior systems-thinking result, when the human hands one in. It is
43
+ ordinary input — richer than raw text, not a special mode.
44
+
45
+ ## Entry paths
46
+
47
+ All three land in the same process below.
48
+
49
+ ```
50
+ /reasoning:systems-thinking "<problem>" skill recommends, human picks
51
+ /reasoning:systems-thinking <framework> "<problem>" human has already chosen
52
+ router hand-off after human confirmation router recommended
53
+ ```
54
+
55
+ ## Framework selection
56
+
57
+ First match wins. Read top to bottom and stop at the first row that holds.
58
+
59
+ | Order | Test against the input | Framework |
60
+ | --- | --- | --- |
61
+ | 1 | The human asks where to intervene. | `leverage_points` |
62
+ | 2 | The input names the variables, and they are suspected of closing a loop. | `causal_loop` |
63
+ | 3 | The input names two or more actors whose relationships are unclear. | `system_map` |
64
+ | 4 | Otherwise — a recurring symptom with unexamined layers beneath it. | `iceberg` |
65
+
66
+ The order matters. These four descriptions overlap by construction: a
67
+ recurring cross-team slowdown that survives local fixes answers to all four.
68
+ Reading top-down and stopping at the first match is what makes the choice
69
+ decidable rather than a matter of taste.
70
+
71
+ See `frameworks/iceberg.md`, `frameworks/system-map.md`,
72
+ `frameworks/causal-loop.md`, and `frameworks/leverage-points.md` for the
73
+ full process and the mechanical test behind each stopping rule.
74
+
75
+ Shortlist two candidates, name your pick with a one-line reason, and let the
76
+ human choose. When the human named a framework, that is the choice and it
77
+ runs — skip this section entirely, no confirmation step.
78
+
79
+ ## Process
80
+
81
+ 1. Establish the framing: the problem as stated, or as `problem-router`
82
+ reframed it.
83
+ 2. Select the framework:
84
+ - Named already (human, or router hand-off with confirmation) → that's
85
+ the choice, go to step 3.
86
+ - Not named → apply the first-match table above, shortlist it plus the
87
+ next-best candidate, and recommend the first with a one-line reason.
88
+ Then test, don't infer: is `AskUserQuestion` actually available in
89
+ this session? If yes, ask via `AskUserQuestion` and wait for the
90
+ answer. If no — the tool is unavailable, or the run is otherwise
91
+ non-interactive — you are headless: take your own recommendation,
92
+ record it agent-selected and unconfirmed, and go straight to step 3.
93
+ Naming the shortlist and stopping there, without asking and without
94
+ proceeding, is not a valid outcome on either branch.
95
+ 3. Open the matching file under `frameworks/` and follow its process
96
+ exactly. Don't substitute a different structure or skip its steps
97
+ because the problem feels straightforward.
98
+ 4. Stop at that file's own stopping test, not at a felt sense of
99
+ completeness. Apply the test — see each file's Stop when section.
100
+ 5. Emit the result per Output contract below.
101
+
102
+ ## Output contract
103
+
104
+ Emit the six core fields plus exactly one framework block, per
105
+ `references/contract.md` — that file is the single source of truth for
106
+ field names, evidence types, assumption status, confidence rendering, and
107
+ when a diagram is warranted. Don't guess at the shape here.
108
+
109
+ The one block is whichever framework ran in step 3. Never emit more than one
110
+ framework block in a single run — see Guardrails.
111
+
112
+ ## Guardrails
113
+
114
+ These are rules this skill will not break. Each has a test — apply the test,
115
+ not a judgment call.
116
+
117
+ - **No invented structure or mental model.** Test: for each entry in
118
+ `structures` and `mental_models`, did the input state it, or did you infer
119
+ it? Inferred → `assumptions`, status `unverified`. Never promoted into a
120
+ level as fact, however well it fits.
121
+ - **An open chain is not a loop.** Test: does the chain close on a variable
122
+ already in the diagram? No → record it as an open chain and say so. A
123
+ loop that does not close is the single most common way this analysis
124
+ invents a finding.
125
+ - **Correlation is not causation.** Test: does every `links` edge carry
126
+ exactly one of `correlation` / `hypothesized` / `evidenced`? A missing
127
+ label is an error, not a stylistic omission.
128
+ - **One framework per run.** Test: before starting a second, has the first's
129
+ own stopping test actually fired (check that file's Stop when section),
130
+ and is there a stated reason a second adds something the first didn't
131
+ reach? Both must be yes — and even then the second framework is a
132
+ second run, with its own six core fields and its own single block.
133
+ Never a second block in this one.
134
+ - **Diagrams only for cycles.** Test: does the structure contain a cycle? No
135
+ → prose. A four-level iceberg and a flat leverage list are not cycles and
136
+ get no diagram.
137
+ - **No intervention design.** Test: does the output name who does it, in
138
+ what order, or by when? Yes → cut it. `leverage_points` names where to
139
+ push, the expected effect, and the risks. Adoption plans, sequencing, and
140
+ ownership belong to `systemic-design`.
141
+ - **Depth scales to the problem, not to the framework's capacity.** Test,
142
+ applied sentence by sentence to what you have written: does this sentence
143
+ name a specific fact, quote, figure, file, or `evidence` entry from THIS
144
+ problem's input? If a sentence would read as true no matter what the
145
+ input contained, it is generic — cut it, or replace it with a plain "no
146
+ evidence for this."
147
+
148
+ ## Failure modes
149
+
150
+ - **Framework named that belongs to another skill** — theory of change,
151
+ three horizons, explore/reframe/create/catalyse. Say `systemic-design`
152
+ owns it and that the skill isn't built in this release. Don't improvise
153
+ the framework here.
154
+ - **Framework named but unavailable** — from PRD §17's later set: Stock and
155
+ Flow, Rich Picture. Say it isn't built yet, and name the closest available
156
+ framework from the table above with the difference stated, rather than
157
+ silently substituting it.
158
+ - **Running this on a bounded defect.** One function, one service,
159
+ reproducible — that's `problem-solving`. Say so and hand it back rather
160
+ than producing an iceberg over a stack trace.
161
+
162
+ ## Examples
163
+
164
+ **Agent-selected — a recurring cross-team symptom, no framework named**
165
+
166
+ Input: "Every quarter the same onboarding delays come back. We fix the
167
+ handoff between sales and provisioning, it holds a few weeks, then a
168
+ different team hits the same wall. Three times in two years, three different
169
+ fixes."
170
+
171
+ First-match table: row 1 doesn't hold — no one asked where to intervene.
172
+ Row 2 doesn't hold — the input names no variables. Row 3 holds: sales,
173
+ provisioning, and downstream teams, with the relationships between them
174
+ unstated. So `system_map`, shortlisted against `iceberg` (which would fit
175
+ the recurrence, but the immediate gap is who connects to whom). Recommend
176
+ `system_map` with that one-line reason; in Claude Code, present both via
177
+ `AskUserQuestion`.
178
+
179
+ Run `frameworks/system-map.md`: seed sales, provisioning, and the named
180
+ downstream teams; record only the handoff relationships the input states.
181
+ "Three different fixes" is evidence of recurrence but names no new node, so
182
+ nothing is added for it. Candidate nodes like "the CRM" are mentioned
183
+ nowhere and break no recorded relationship — `external_factors`. The
184
+ recorded relationships form no cycle, so the output is prose, not Mermaid.
185
+ Emit the six core fields plus one `system_map` block.
186
+
187
+ **Human-named — the human already picked**
188
+
189
+ Input: `/reasoning:systems-thinking leverage_points "Support escalations
190
+ keep landing on the same two engineers. On-call rota exists, escalation
191
+ policy says route through the rota, but everyone DMs them directly."`
192
+
193
+ `leverage_points` is named, so it runs — no shortlist. Open
194
+ `frameworks/leverage-points.md`: `elements` gets the escalation policy
195
+ (`kind: rule`, `evidence: user-provided fact`), the DM habit
196
+ (`kind: information_flow`, `user-provided fact`), and the rota
197
+ (`kind: structure`, `user-provided fact`). Whether the two engineers are
198
+ rewarded for responsiveness is not stated, so if it is recorded at all it is
199
+ `kind: incentive`, `evidence: inferred`, and the output says so.
200
+
201
+ `points` proposes interventions whose `level` matches one of those kinds.
202
+ No `goal` or `mental_model` row exists, so no intervention claims those
203
+ levels — each gets "none identified, because the input states no goal or
204
+ belief". The block names where to push and what it risks; it does not say
205
+ who runs the change or when. Emit the six core fields plus one
206
+ `leverage_points` block.
@@ -0,0 +1,58 @@
1
+ # Causal Loop
2
+
3
+ ## When it fits
4
+
5
+ The input names the variables, and they are suspected of closing a loop.
6
+
7
+ ## Process
8
+
9
+ You are executing the Causal Loop framework within the systems-thinking
10
+ skill. The deliverable is a set of labelled edges, and the labels carry
11
+ most of the value — an unlabelled causal diagram asserts causation it has
12
+ not earned.
13
+
14
+ 1. List `variables`: the things that can go up or down. Take them from the
15
+ input; do not invent a variable to complete a chain.
16
+ 2. For each `link`, record the direction of influence and exactly one
17
+ support label:
18
+ - `correlation` — the input shows them moving together, nothing more.
19
+ - `hypothesized` — you are proposing the causal direction.
20
+ - `evidenced` — the input states or directly demonstrates the causation.
21
+ A link with no label is an error. The three are never collapsed.
22
+ 3. Extend a chain only while the next link names a variable already in
23
+ `variables` or evidenced in the input. If the next link would introduce
24
+ an unevidenced variable, the chain stops there.
25
+ 4. A chain enters `loops` only when it closes on a variable already in the
26
+ diagram. If it does not close, record it as an open chain and label it
27
+ as one. Do not call it a loop.
28
+ 5. For each loop, state whether it is reinforcing (the effect feeds the
29
+ cause) or balancing (the effect dampens the cause), and name the link
30
+ that makes it so.
31
+ 6. Record a `delays` entry only where the input states a lag. An inferred
32
+ delay is an `assumptions` entry, not a `delays` entry.
33
+
34
+ ## Output block
35
+
36
+ Emit the `causal_loop` block from `references/contract.md`: `variables`,
37
+ `links`, `loops`, `delays`.
38
+
39
+ A closed loop is a cycle, so a run that produces one gets a Mermaid
40
+ diagram:
41
+
42
+ ```mermaid
43
+ flowchart LR
44
+ A[Knowledge gaps] --> B[Engineer interruptions]
45
+ B --> C[Less documentation time]
46
+ C --> A
47
+ ```
48
+
49
+ A run that produces only open chains has no cycle and gets prose.
50
+
51
+ ## Stop when
52
+
53
+ Every chain has either closed into a loop or stopped at the link where the
54
+ next variable would be unevidenced.
55
+
56
+ Stopping at an unevidenced link is the framework working. A chain that runs
57
+ out of evidence has told you where the evidence ends, and that is a
58
+ finding. It is never extended with a guess to make a loop close.
@@ -0,0 +1,43 @@
1
+ # Iceberg Model
2
+
3
+ ## When it fits
4
+
5
+ A symptom that keeps returning, with layers under it nobody has examined.
6
+
7
+ ## Process
8
+
9
+ You are executing the Iceberg Model within the systems-thinking skill.
10
+ Four levels, top to bottom. Depth is fixed — you always work all four,
11
+ because the levels are the framework. What varies is whether a level has
12
+ anything under it.
13
+
14
+ 1. `event` — the symptom as stated. One sentence. Quote the input where
15
+ you can.
16
+ 2. `patterns` — what has happened more than once. A pattern needs at least
17
+ two occurrences named in the input. One occurrence is an event, not a
18
+ pattern.
19
+ 3. `structures` — the arrangements that make the pattern likely: policies,
20
+ incentives, tooling, team shape, how work is routed.
21
+ 4. `mental_models` — the beliefs that keep those structures in place.
22
+
23
+ Before recording any entry, name the specific input fact supporting it. If
24
+ you cannot name one, the level renders empty, stating what evidence would
25
+ fill it. Do not infer downward and present the result as observation. The
26
+ lower two levels are where invention is easiest and where it does the most
27
+ damage — a fabricated mental model reads exactly like an insight.
28
+
29
+ ## Output block
30
+
31
+ Emit the `iceberg` block from `references/contract.md`: `event`,
32
+ `patterns`, `structures`, `mental_models`. Anything the input did not state
33
+ goes in the core `assumptions` field with status `unverified`, never into a
34
+ level as fact.
35
+
36
+ ## Stop when
37
+
38
+ All four levels hold either a supported entry or an explicit statement of
39
+ what evidence would fill them.
40
+
41
+ An empty level is a finding, not a shortfall. It names where the input runs
42
+ out, which is useful on its own, and it is never padded with a plausible
43
+ guess to make the output look complete.
@@ -0,0 +1,80 @@
1
+ # Leverage Points
2
+
3
+ ## When it fits
4
+
5
+ The human asks where to intervene.
6
+
7
+ ## Process
8
+
9
+ You are executing the Leverage Points framework within the systems-thinking
10
+ skill. Its levels describe depths of a system model, so the model has to be
11
+ on the page. This framework builds its own — thin when the input is thin,
12
+ and visibly so.
13
+
14
+ 1. Build `elements`. Read the input (or a prior systems-thinking result
15
+ handed in as input) and record each element you can name, tagged with
16
+ one `kind`:
17
+
18
+ | `kind` | What it is |
19
+ | --- | --- |
20
+ | `parameter` | a setting or quantity that can be turned up or down |
21
+ | `information_flow` | who learns what, and when |
22
+ | `rule` | a policy or constraint someone enforces |
23
+ | `incentive` | what behaviour is rewarded or measured |
24
+ | `structure` | how the parts are arranged or work is routed |
25
+ | `goal` | what the system is trying to achieve |
26
+ | `mental_model` | a belief holding the rest in place |
27
+
28
+ Every row carries an evidence type from the contract. A row the input
29
+ did not state is `inferred`, and the output says so plainly rather than
30
+ presenting it as observed.
31
+
32
+ 2. Build `points`. For each element, ask whether intervening there would
33
+ change the behaviour. Record `intervention`, `level`, `expected_effect`,
34
+ `risks`, and `evidence`.
35
+
36
+ 3. `level` must match the `kind` of a row in `elements`. A level with no
37
+ matching row is an intervention into a part of the system you have not
38
+ established exists — remove it, or add the element with its evidence
39
+ type.
40
+
41
+ 4. Note depth without ranking mechanically: `parameter` interventions are
42
+ the shallowest and the easiest to reverse; `goal` and `mental_model`
43
+ interventions are the deepest and the slowest. Say which you are
44
+ proposing. Do not assert that a deeper intervention is better for this
45
+ problem unless the evidence supports it.
46
+
47
+ ## Output block
48
+
49
+ Emit the `leverage_points` block from `references/contract.md`: `elements`,
50
+ `points`.
51
+
52
+ ```yaml
53
+ leverage_points:
54
+ elements:
55
+ - element: "senior engineers triage all inbound requests"
56
+ kind: rule
57
+ evidence: user-provided fact
58
+ - element: "throughput is measured per-team"
59
+ kind: incentive
60
+ evidence: inferred
61
+ points:
62
+ - intervention: "route triage through a rota"
63
+ level: rule
64
+ expected_effect: "spreads interrupt load off the two named seniors"
65
+ risks: "triage quality drops while the rota ramps"
66
+ evidence: "user-provided fact: seniors are constantly interrupted"
67
+ ```
68
+
69
+ `elements` is a flat kind-tagged list. It is not a system map — no
70
+ boundary, no relationships, no dependencies. If the human needs those, the
71
+ framework they want is `system_map`.
72
+
73
+ ## Stop when
74
+
75
+ Every `kind` present in `elements` has either an intervention or an
76
+ explicit "none identified, because …".
77
+
78
+ Seven kinds, one pass. This framework names where to push, the expected
79
+ effect, and the risks. It does not produce an adoption plan, a sequence, or
80
+ an owner — that is `systemic-design`, which is not built in this release.
@@ -0,0 +1,46 @@
1
+ # System Map
2
+
3
+ ## When it fits
4
+
5
+ Two or more actors whose relationships to each other are unclear.
6
+
7
+ ## Process
8
+
9
+ You are executing the System Map framework within the systems-thinking
10
+ skill. The output is a bounded map, and the boundary is the whole point —
11
+ an unbounded map is a list of everything anyone has ever mentioned.
12
+
13
+ 1. Seed the map from the input alone: every actor, component, policy,
14
+ incentive, and information flow the input names.
15
+ 2. Record a `relationship` only between two seeded elements, and only where
16
+ the input states or directly evidences the connection.
17
+ 3. Test each seeded node: does the input state a relationship between it
18
+ and another node already in the map, **or** does removing it break a
19
+ `relationship` already recorded? If neither, it is outside the boundary
20
+ and goes in `external_factors` — the input naming something is not the
21
+ same as the input connecting it.
22
+ 4. Repeat step 3 until no remaining candidate passes.
23
+ 5. State `system_boundary` explicitly as the set of elements that passed.
24
+ The boundary is closure over what the input stated — not a judgement
25
+ about what matters.
26
+
27
+ `dependencies` records where one element cannot function without another,
28
+ and only where the input says so. An inferred dependency is an
29
+ `assumptions` entry.
30
+
31
+ ## Output block
32
+
33
+ Emit the `system_map` block from `references/contract.md`:
34
+ `system_boundary`, `actors`, `components`, `relationships`, `dependencies`,
35
+ `external_factors`.
36
+
37
+ A map whose `relationships` contain a cycle gets a Mermaid diagram; one
38
+ without gets prose. See the contract's Rendering section.
39
+
40
+ ## Stop when
41
+
42
+ No remaining candidate node passes the step 3 test.
43
+
44
+ That is the stopping condition in full. Do not keep expanding because the
45
+ map looks sparse — a sparse map over a thin input is accurate, and padding
46
+ it with plausible actors turns evidence into decoration.
@@ -0,0 +1,104 @@
1
+ # Output contract
2
+
3
+ Every run emits six core fields, plus exactly one block named for the
4
+ framework that ran. Nothing else appears at the top level.
5
+
6
+ ## Core fields
7
+
8
+ | Field | Contents |
9
+ | ----- | -------- |
10
+ | `problem` | The problem as this skill understands it, restated in one or two sentences. |
11
+ | `framework_used` | The framework that ran. A `problem-router` run runs none — emit `router` there, naming the routing pass itself. |
12
+ | `framework_reason` | One line: why this framework, for this problem. |
13
+ | `evidence` | What the input actually supplied. Each entry names its type. |
14
+ | `assumptions` | Anything the input did not state. Each carries a status. |
15
+ | `open_questions` | What would change the analysis if answered. |
16
+
17
+ An empty `evidence` list is a finding, not an omission: it means nothing
18
+ in the input supports the analysis, and the output says so.
19
+
20
+ ## Framework blocks
21
+
22
+ | Block | Fields |
23
+ | ----- | ------ |
24
+ | `router` | `problem_class`, `reasoning_skill`, `recommended_framework`, `confidence`, `why`, `frameworks_rejected` |
25
+ | `double_diamond` | `discover`, `define`, `develop`, `deliver` |
26
+ | `rca` | `symptom`, `immediate`, `contributing`, `underlying`, `root`, `actions` |
27
+ | `five_whys` | `why_chain`, `root_candidate`, `uncertainties` |
28
+ | `a3` | `background`, `current`, `problem`, `target`, `causes`, `countermeasures`, `plan`, `follow_up` |
29
+ | `pdca` | `hypothesis`, `test`, `metric`, `expected`, `actual`, `next` |
30
+ | `iceberg` | `event`, `patterns`, `structures`, `mental_models` |
31
+ | `system_map` | `system_boundary`, `actors`, `components`, `relationships`, `dependencies`, `external_factors` |
32
+ | `causal_loop` | `variables`, `links`, `loops`, `delays` |
33
+ | `leverage_points` | `elements`, `points` |
34
+
35
+ Later skills add blocks. The core never changes — that is what lets one
36
+ skill consume another's result without knowing which framework produced
37
+ it.
38
+
39
+ ## Evidence types
40
+
41
+ `user-provided fact`, `document`, `log`, `metric`, `interview`,
42
+ `observation`, `external source`, `inferred`.
43
+
44
+ Anything `inferred` is never rendered as fact. If the input did not state
45
+ it, it belongs in `assumptions`, not `evidence`.
46
+
47
+ ## Assumption status
48
+
49
+ `unverified` — nothing has confirmed it.
50
+ `confirmed` — the human confirmed it during this run.
51
+
52
+ Default is `unverified`. An assumption is never silently promoted.
53
+
54
+ ## Confidence
55
+
56
+ `low` / `medium` / `high`. Numeric confidence is never emitted: `0.84`
57
+ implies a precision this reasoning does not have.
58
+
59
+ Confidence reflects evidence quantity, evidence quality, contradictions
60
+ in the input, and how many inferential steps separate the claim from the
61
+ evidence.
62
+
63
+ ## Rendering
64
+
65
+ In chat by default: markdown headings, one per core field, then the
66
+ framework block.
67
+
68
+ A structure containing a cycle gets a diagram; one without gets prose.
69
+ Prose renders a cycle as a list, and a list loses the closure — `A -> B ->
70
+ C -> A` read top to bottom does not show that it comes back.
71
+
72
+ On request: one file, `problem-analysis.md`, in the directory the human
73
+ names. Core fields and the framework block become YAML front-matter above
74
+ the markdown body. No second JSON file is written — it would be a
75
+ duplicate representation with nothing keeping the two in agreement.
76
+
77
+ Example saved file:
78
+
79
+ ```markdown
80
+ ---
81
+ problem: Deploys fail intermittently after the runner image update.
82
+ framework_used: five-whys
83
+ framework_reason: Narrow scope, causal chain looks linear.
84
+ evidence:
85
+ - type: log
86
+ ref: ci-run-4471
87
+ assumptions:
88
+ - statement: Staging mirrors production runner config.
89
+ status: unverified
90
+ open_questions:
91
+ - Who owns the runner image?
92
+ five_whys:
93
+ why_chain:
94
+ - Deploys fail -> the runner cannot pull the base image
95
+ - It cannot pull -> the registry credential expired
96
+ root_candidate: Credential rotation is manual and undocumented.
97
+ uncertainties:
98
+ - Whether rotation was ever automated.
99
+ ---
100
+
101
+ # Problem analysis
102
+
103
+ ...
104
+ ```
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "solution-architect",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Solution-architecture toolkit: interview-driven architecture documentation with interactive diagrams and provenance-tagged facts, AI-aware project estimation, and client-ready proposals.",
5
5
  "author": {
6
6
  "name": "Truong Vu",
@@ -0,0 +1,66 @@
1
+ {
2
+ "skill_name": "analyze-requirements",
3
+ "evals": [
4
+ {
5
+ "id": 0,
6
+ "name": "unknowns-gate-interview",
7
+ "prompt": "we've got a compliance audit in three weeks and the auditors want \"architecture documentation\" for our internal expense reimbursement tool. I don't have the repo checked out on this machine and I'm not going to get VPN access before Thursday. can you write the architecture doc - C4 diagrams, ADRs, the whole set? it's a Node app, about four years old, and the dev who originally built it left last year.",
8
+ "expected_output": "The skill stops before writing. It states the detected mode (greenfield/no source available, overridable) and the Node >= 20 + npx likec4 dependency up front, then asks the human the unknowables via AskUserQuestion cards - at minimum the deployment target, the quality attribute + measurable target, and the availability/RPO-RTO questions the interview bank marks as never-skippable. No ARCHITECTURE.md, no .c4 model, no ADRs are written in this turn, and no component, datastore or cloud service is asserted as a fact about this system.",
9
+ "files": [],
10
+ "assertions": [
11
+ "no-artifacts-written-before-answers: no ARCHITECTURE.md, no docs/architecture/model/*.c4, no docs/adr/*.md and no threat-model.md exists on disk after this turn - the skill stopped at the interview instead of writing",
12
+ "no-invented-components: the response names zero concrete components, datastores, queues or cloud services as belonging to this system (no 'Postgres', 'Redis', 'API Gateway', 'S3', 'Express API' etc. stated as fact); any technology mentioned appears only inside an explicit question or an option the user must confirm",
13
+ "asks-the-never-skippable-questions: the questions put to the user include the target deployment environment AND at least two of {primary quality attribute with a measurable target, availability target, RPO/RTO} - the rows interview.md marks 'never' skippable",
14
+ "asks-about-data-sensitivity-or-tags-it: the PII/data-sensitivity of reimbursement data is either asked about, or any statement made about it is explicitly tagged 'stated'/'proposed' or rendered as 'Not provided - <reason>' - never asserted bare",
15
+ "mode-and-dependency-stated: the response states the detected mode (brownfield vs greenfield) as overridable AND states the Node >= 20 / npx likec4 dependency before proposing to write anything",
16
+ "question-budget-respected: the interview stays within 12 questions total, delivered as AskUserQuestion cards with at most 4 options per card and at most 3 cards per call"
17
+ ]
18
+ },
19
+ {
20
+ "id": 1,
21
+ "name": "brownfield-cli-installer",
22
+ "prompt": "document the installer CLI in src/cli/ for me - that's the whole thing, the npx entry point is bin/agents-rock.mjs and there's nothing else to it. answering the usual questions up front so you don't have to ask me any:\n\n- goal: let a developer install agents-rock plugin skills into Claude Code or Codex with one npx command. users are devs running `npx @v11g/agents-rock`.\n- constraints: node >=18.3, no build step at all, exactly two runtime deps (@clack/prompts, picocolors), and it has to keep working when it's run straight from npx with no install.\n- the quality attribute I care about: a failed or interrupted install must never leave a half-written target directory. target is zero partial installs across 100 consecutive interrupted runs.\n- availability target: n/a, it's a CLI, there's nothing to keep up.\n- RPO/RTO: n/a, same reason.\n- project type is CLI/library, don't ask me to confirm it.\n- I own it - truong.\n- no effort estimates, don't bother with estimation.md.\n\nput ARCHITECTURE.md at the repo root and the ADRs under docs/adr/. don't start the viewer server, I just want the files on disk.",
23
+ "expected_output": "ARCHITECTURE.md at the repo root carrying the full 16-heading spine including §3 Project Structure (brownfield), a LikeC4 model under docs/architecture/model/ with index/containers/components-* views, and ADRs under docs/adr/. Every table row carries a src column valued observed/stated/researched [source]/proposed; components are drawn from the real src/cli modules and their key paths point at files that exist. §10 renders the CLI/library variant 'Not applicable - no deployment: distributed as a binary/package'. node scripts/validate.mjs --mode brownfield exits 0. No server started.",
24
+ "files": [
25
+ "bin/agents-rock.mjs",
26
+ "package.json",
27
+ "src/cli/main.mjs",
28
+ "src/cli/args.mjs",
29
+ "src/cli/registry.mjs",
30
+ "src/cli/flow.mjs",
31
+ "src/cli/prompts.mjs",
32
+ "src/cli/scope.mjs",
33
+ "src/cli/targets.mjs",
34
+ "src/cli/agents.mjs",
35
+ "src/cli/install.mjs",
36
+ "src/cli/uninstall.mjs",
37
+ "src/cli/report.mjs"
38
+ ],
39
+ "assertions": [
40
+ "arch-md-16-section-spine: ARCHITECTURE.md exists at the repo root and contains all 16 spine headings in order (Goals and Scope through Glossary), with §3 Project Structure populated with a real tree because this run is brownfield",
41
+ "no-invented-components: every component named in §6 Core Components and every path in its 'key paths' column resolves to a file or directory that actually exists under src/cli/ or bin/ - no module, service or datastore is named that is not in the supplied tree",
42
+ "provenance-on-every-row: every table in ARCHITECTURE.md except the §14 Decisions and §16 Glossary indexes has 'src' as its last column header, and every row's src value is exactly one of observed / stated / researched [<source>] / proposed - the pre-fed interview answers (SLO, constraints, owner) are 'stated', the code-derived rows are 'observed'",
43
+ "deployment-not-applicable-cli: §10 Deployment and Infrastructure renders the CLI/library variant as an honest absence ('Not applicable - no deployment: distributed as a binary/package') and does NOT invent containers, environments or a CI/CD pipeline table for this package",
44
+ "elections-frontmatter-complete: ARCHITECTURE.md frontmatter has electedDocs as a one-line JSON array with all four entries (threat-model, interface-contract, estimation, domain-overview), each with a boolean 'elected' and a non-empty 'reason' when false - estimation is elected:false because the user declined estimates",
45
+ "likec4-model-and-embed-markers: docs/architecture/model/ contains .c4 source declaring views named index, containers and components-<container>; §5/§7/§10 embed them via '<!-- likec4:view <id> -->' markers, and any mermaid appears only in §8 (ER) and §12 (DFD) - never a hand-drawn mermaid stand-in for a modeled C4 view"
46
+ ]
47
+ },
48
+ {
49
+ "id": 2,
50
+ "name": "greenfield-llm-triage-spec",
51
+ "prompt": "greenfield one - we're building a support-ticket triage service that runs inbound customer email through an LLM and routes it into a Zendesk queue. no repo yet, nothing written. the spec is in triage-service-spec.md and it's been through Legal and SRE already, so the SLOs, the deployment target and the data-sensitivity call are all in there - you shouldn't need to ask me anything.\n\ndesign the architecture and write the whole doc set. ARCHITECTURE.md and the model under docs/architecture/, ADRs under docs/adr/. we definitely want the threat model. no effort estimates. team is the Platform squad. skip the localhost viewer for now - write the files and validate them, that's it.",
52
+ "expected_output": "ARCHITECTURE.md under docs/architecture/ with the 16-heading spine, §3 Project Structure rendered 'Not applicable - <reason>' because there is no repo yet, a LikeC4 model (index/containers/components-*/deployment views) covering the ECS Fargate + SQS + RDS topology the spec fixes, ADRs under docs/adr/, and threat-model.md framed on OWASP LLM Top 10 2025 with a DFD, trust boundaries, a threat list and a mitigation per threat. Every fact from the spec is tagged 'stated', every design choice the skill made itself is 'proposed', nothing is 'observed'. node scripts/validate.mjs exits 0. No server started.",
53
+ "files": [
54
+ "plugins/solution-architect/skills/analyze-requirements/evals/fixtures/greenfield-llm-triage-spec/triage-service-spec.md"
55
+ ],
56
+ "assertions": [
57
+ "no-observed-provenance-in-greenfield: no table row or prose tag anywhere in the doc set carries provenance 'observed' - there is no code to observe - and §3 Project Structure renders exactly one 'Not applicable - <reason>' line rather than an invented directory tree",
58
+ "no-invented-components: every component, datastore, queue and external system named in §6/§8/§9/§10 traces to an entity the spec fixture actually names (Postmark inbound webhook, Zendesk Tickets API, Anthropic Messages API, audit-log gRPC service, SQS + DLQ, RDS PostgreSQL 16, ECS Fargate, ALB, Secrets Manager, KMS) or is tagged 'proposed' - no unclaimed vendor, service or table is presented as decided",
59
+ "stated-vs-proposed-split: facts lifted from the spec (the 45s p99, 99.5% availability, 5min RPO / 4h RTO, eu-central-1, the $1,400/month ceiling, the 0.72 confidence floor, the 30-day body retention) are tagged 'stated'; every design decision the skill originated is tagged 'proposed'; any 'researched' row is followed by a bracketed source",
60
+ "threat-model-llm-variant: threat-model.md exists, is framed on OWASP LLM Top 10 2025 (not generic STRIDE) as project-types.md prescribes for an AI/LLM app, and contains all four parts - a DFD, named trust boundaries, a threat list including prompt injection from the email body, and a mitigation per threat",
61
+ "mermaid-er-parses-and-matches: §8's ```mermaid erDiagram block parses as valid mermaid and every entity name in it appears as a row in the §8 Data Stores table (and vice versa); §12's DFD is likewise a parsing mermaid block - neither section uses a LikeC4 view marker",
62
+ "elections-recorded-with-reasons: frontmatter electedDocs is a one-line JSON array with all four companions; threat-model is elected:true, estimation is elected:false with a reason naming the user's declining it, and every other elected:false entry carries a non-empty reason"
63
+ ]
64
+ }
65
+ ]
66
+ }