@v11g/agents-rock 1.0.9 → 1.0.10

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 (246) hide show
  1. package/README.md +1 -0
  2. package/package.json +2 -2
  3. package/plugins/business-analyst/.claude-plugin/plugin.json +1 -1
  4. package/plugins/business-analyst/evals/ba-interview-conflict/graders/conflict-quoted.md +15 -0
  5. package/plugins/business-analyst/evals/ba-interview-conflict/graders/no-internal-ids.md +9 -0
  6. package/plugins/business-analyst/evals/ba-interview-conflict/graders/one-question.md +15 -0
  7. package/plugins/business-analyst/evals/ba-interview-conflict/graders/skill-fired.md +7 -0
  8. package/plugins/business-analyst/evals/ba-interview-conflict/prompt.md +31 -0
  9. package/plugins/business-analyst/evals/ba-interview-first-turn/graders/no-internal-ids.md +9 -0
  10. package/plugins/business-analyst/evals/ba-interview-first-turn/graders/no-setup-questions.md +16 -0
  11. package/plugins/business-analyst/evals/ba-interview-first-turn/graders/one-scope-question.md +19 -0
  12. package/plugins/business-analyst/evals/ba-interview-first-turn/graders/skill-fired.md +7 -0
  13. package/plugins/business-analyst/evals/ba-interview-first-turn/prompt.md +31 -0
  14. package/plugins/business-analyst/evals/ba-review-page/case.yaml +4 -0
  15. package/plugins/business-analyst/evals/ba-review-page/fixture.sh +12 -0
  16. package/plugins/business-analyst/evals/ba-review-page/graders/decide-in-interview.md +26 -0
  17. package/plugins/business-analyst/evals/ba-review-page/graders/skill-fired.md +7 -0
  18. package/plugins/business-analyst/evals/ba-review-page/prompt.md +9 -0
  19. package/plugins/business-analyst/skills/business-analyst/README.md +8 -0
  20. package/plugins/business-analyst/skills/business-analyst/SKILL.md +47 -16
  21. package/plugins/business-analyst/skills/business-analyst/assets/review-page.html +68 -0
  22. package/plugins/business-analyst/skills/business-analyst/evals/evals.json +1 -1
  23. package/plugins/business-analyst/skills/business-analyst/references/frameworks.md +3 -2
  24. package/plugins/business-analyst/skills/business-analyst/references/interview.md +156 -8
  25. package/plugins/business-analyst/skills/business-analyst/references/review.md +18 -4
  26. package/plugins/business-analyst/skills/business-analyst/references/writing.md +49 -8
  27. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/review_data.cpython-312.pyc +0 -0
  28. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/review_layout.cpython-312.pyc +0 -0
  29. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/review_page.cpython-312.pyc +0 -0
  30. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/scope_checks.cpython-312.pyc +0 -0
  31. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/scope_render.cpython-312.pyc +0 -0
  32. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/validate.cpython-312.pyc +0 -0
  33. package/plugins/business-analyst/skills/business-analyst/scripts/lib/checks.mjs +12 -6
  34. package/plugins/business-analyst/skills/business-analyst/scripts/lib/review-data.mjs +66 -0
  35. package/plugins/business-analyst/skills/business-analyst/scripts/lib/review-layout.mjs +53 -0
  36. package/plugins/business-analyst/skills/business-analyst/scripts/lib/review-page.mjs +78 -0
  37. package/plugins/business-analyst/skills/business-analyst/scripts/lib/scope-checks.mjs +73 -0
  38. package/plugins/business-analyst/skills/business-analyst/scripts/lib/scope-md.mjs +53 -0
  39. package/plugins/business-analyst/skills/business-analyst/scripts/lib/scope-render.mjs +72 -0
  40. package/plugins/business-analyst/skills/business-analyst/scripts/lib/scope-rules.mjs +90 -0
  41. package/plugins/business-analyst/skills/business-analyst/scripts/review.mjs +48 -0
  42. package/plugins/business-analyst/skills/business-analyst/scripts/review.py +60 -0
  43. package/plugins/business-analyst/skills/business-analyst/scripts/review_data.py +81 -0
  44. package/plugins/business-analyst/skills/business-analyst/scripts/review_layout.py +50 -0
  45. package/plugins/business-analyst/skills/business-analyst/scripts/review_page.py +115 -0
  46. package/plugins/business-analyst/skills/business-analyst/scripts/scope.mjs +24 -0
  47. package/plugins/business-analyst/skills/business-analyst/scripts/scope.py +35 -0
  48. package/plugins/business-analyst/skills/business-analyst/scripts/scope_checks.py +168 -0
  49. package/plugins/business-analyst/skills/business-analyst/scripts/scope_render.py +140 -0
  50. package/plugins/business-analyst/skills/business-analyst/scripts/test/checks.test.mjs +27 -0
  51. package/plugins/business-analyst/skills/business-analyst/scripts/test/fixtures/requirements-workflow-pass.json +78 -0
  52. package/plugins/business-analyst/skills/business-analyst/scripts/test/fixtures/requirements-workflow-pass.md +136 -0
  53. package/plugins/business-analyst/skills/business-analyst/scripts/test/python-parity.test.mjs +88 -0
  54. package/plugins/business-analyst/skills/business-analyst/scripts/test/quality-gates.test.mjs +26 -0
  55. package/plugins/business-analyst/skills/business-analyst/scripts/test/review-browser.test.mjs +106 -0
  56. package/plugins/business-analyst/skills/business-analyst/scripts/test/review-fixture.mjs +32 -0
  57. package/plugins/business-analyst/skills/business-analyst/scripts/test/review-page.test.mjs +340 -0
  58. package/plugins/business-analyst/skills/business-analyst/scripts/test/review-parity.test.mjs +79 -0
  59. package/plugins/business-analyst/skills/business-analyst/scripts/test/scope-cases.mjs +58 -0
  60. package/plugins/business-analyst/skills/business-analyst/scripts/test/scope-checks.test.mjs +31 -0
  61. package/plugins/business-analyst/skills/business-analyst/scripts/test/scope-md.test.mjs +140 -0
  62. package/plugins/business-analyst/skills/business-analyst/scripts/validate.mjs +1 -1
  63. package/plugins/business-analyst/skills/business-analyst/scripts/validate.py +17 -8
  64. package/plugins/solution-architect/evals/proposal-workflow/case.yaml +6 -0
  65. package/plugins/solution-architect/evals/proposal-workflow/fixture.sh +6 -0
  66. package/plugins/solution-architect/evals/proposal-workflow/graders/inputs-written.md +23 -0
  67. package/plugins/solution-architect/evals/proposal-workflow/graders/no-proposal-md.md +7 -0
  68. package/plugins/solution-architect/evals/proposal-workflow/graders/skill-fired.md +7 -0
  69. package/plugins/solution-architect/evals/proposal-workflow/graders/validate-then-render.md +16 -0
  70. package/plugins/solution-architect/evals/proposal-workflow/prompt.md +10 -0
  71. package/plugins/solution-architect/evals/workflow-gate-no-architecture/case.yaml +4 -0
  72. package/plugins/solution-architect/evals/workflow-gate-no-architecture/fixture.sh +6 -0
  73. package/plugins/solution-architect/evals/workflow-gate-no-architecture/graders/no-classic-fallback.md +10 -0
  74. package/plugins/solution-architect/evals/workflow-gate-no-architecture/graders/nothing-written.md +7 -0
  75. package/plugins/solution-architect/evals/workflow-gate-no-architecture/graders/skill-fired.md +7 -0
  76. package/plugins/solution-architect/evals/workflow-gate-no-architecture/graders/stops-at-gate.md +11 -0
  77. package/plugins/solution-architect/evals/workflow-gate-no-architecture/prompt.md +7 -0
  78. package/plugins/solution-architect/evals/workflow-happy-path/case.yaml +4 -0
  79. package/plugins/solution-architect/evals/workflow-happy-path/fixture.sh +6 -0
  80. package/plugins/solution-architect/evals/workflow-happy-path/graders/no-estimation-md.md +7 -0
  81. package/plugins/solution-architect/evals/workflow-happy-path/graders/pages-or-stop.md +16 -0
  82. package/plugins/solution-architect/evals/workflow-happy-path/graders/routed-to-workflow.md +12 -0
  83. package/plugins/solution-architect/evals/workflow-happy-path/graders/skill-fired.md +7 -0
  84. package/plugins/solution-architect/evals/workflow-happy-path/graders/three-questions-max.md +14 -0
  85. package/plugins/solution-architect/evals/workflow-happy-path/graders/workflow-or-exact-stop.md +15 -0
  86. package/plugins/solution-architect/evals/workflow-happy-path/prompt.md +9 -0
  87. package/plugins/solution-architect/skills/analyze-requirements/assets/viewer-template.html +11 -1
  88. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/browser.test.mjs +27 -0
  89. package/plugins/solution-architect/skills/estimate/README.md +18 -3
  90. package/plugins/solution-architect/skills/estimate/SKILL.md +18 -75
  91. package/plugins/solution-architect/skills/estimate/classic/FLOW.md +77 -0
  92. package/plugins/solution-architect/skills/estimate/classic/assets/estimate-template.html +1337 -0
  93. package/plugins/solution-architect/skills/estimate/{references → classic/references}/task-shapes.md +1 -1
  94. package/plugins/solution-architect/skills/estimate/{references → classic/references}/writing.md +2 -2
  95. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/compute.mjs +1 -1
  96. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/checks.mjs +1 -1
  97. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/roadmap.mjs +1 -1
  98. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/rollup.mjs +5 -5
  99. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/schema.mjs +4 -26
  100. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/score-csv.mjs +2 -2
  101. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/score-html.mjs +2 -2
  102. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/render.mjs +8 -7
  103. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/score-review.mjs +3 -3
  104. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/baselines.test.mjs +3 -3
  105. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/browser-agentic.test.mjs +2 -2
  106. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/browser.test.mjs +2 -2
  107. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/compute.test.mjs +1 -1
  108. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/e2e.test.mjs +6 -6
  109. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/estimate-math.test.mjs +3 -3
  110. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/measurements.test.mjs +1 -1
  111. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/pricing.test.mjs +1 -1
  112. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/project-price.test.mjs +1 -1
  113. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/quality-gates.test.mjs +7 -1
  114. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/references.test.mjs +6 -6
  115. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/render.test.mjs +3 -3
  116. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/schema.test.mjs +1 -1
  117. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/score-review.test.mjs +6 -6
  118. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/scoring.test.mjs +1 -1
  119. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/url-state.test.mjs +2 -2
  120. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/validate.test.mjs +1 -1
  121. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/xlsx-export.test.mjs +3 -3
  122. package/plugins/solution-architect/skills/estimate/classic/scripts/test/zip-store.test.mjs +26 -0
  123. package/plugins/solution-architect/skills/estimate/evals/evals.json +37 -2
  124. package/plugins/solution-architect/skills/estimate/evals/fixtures/workflow-sin-kowa-mini/ARCHITECTURE.md +28 -0
  125. package/plugins/solution-architect/skills/estimate/evals/fixtures/workflow-sin-kowa-mini/requirements.json +79 -0
  126. package/plugins/solution-architect/skills/estimate/evals/fixtures/workflow-sin-kowa-mini/requirements.md +141 -0
  127. package/plugins/solution-architect/skills/estimate/shared/assets/xlsx-export.js +336 -0
  128. package/plugins/solution-architect/skills/estimate/shared/lib/agentic-task-schema.mjs +24 -0
  129. package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/context-schema.mjs +2 -2
  130. package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/inline.mjs +8 -0
  131. package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/scoring-schema.mjs +1 -1
  132. package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/scoring.mjs +1 -1
  133. package/plugins/solution-architect/skills/estimate/shared/lib/zip.mjs +60 -0
  134. package/plugins/solution-architect/skills/estimate/workflow-based/FLOW.md +91 -0
  135. package/plugins/solution-architect/skills/estimate/workflow-based/assets/estimate-components.html +994 -0
  136. package/plugins/solution-architect/skills/estimate/workflow-based/assets/estimate-template.html +440 -0
  137. package/plugins/solution-architect/skills/estimate/workflow-based/assets/estimator-system.xlsx +0 -0
  138. package/plugins/solution-architect/skills/estimate/workflow-based/assets/score-review.html +838 -0
  139. package/plugins/solution-architect/skills/estimate/workflow-based/references/hidden-work-by-type.md +429 -0
  140. package/plugins/solution-architect/skills/estimate/workflow-based/references/linking.md +59 -0
  141. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/build-components-template.mjs +80 -0
  142. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/build-template.mjs +60 -0
  143. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/build-workflow-template.mjs +51 -0
  144. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/build-xlsx-template.py +144 -0
  145. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/compute.mjs +32 -0
  146. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/page-html.mjs +44 -0
  147. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/page-view.mjs +71 -0
  148. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/pair-findings.mjs +19 -0
  149. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/requirements.mjs +33 -0
  150. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/rollup.mjs +66 -0
  151. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/schema-components.mjs +69 -0
  152. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/schema.mjs +70 -0
  153. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/score-diff.mjs +54 -0
  154. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/score-html.mjs +52 -0
  155. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/xlsx-rows.mjs +51 -0
  156. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/render.mjs +42 -0
  157. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/score-review.mjs +46 -0
  158. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/template/arch-link.js +9 -0
  159. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/template/click.js +28 -0
  160. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/template/prelude.js +4 -0
  161. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/template/view.js +63 -0
  162. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/browser.test.mjs +127 -0
  163. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/build-pages.test.mjs +43 -0
  164. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/build-template.test.mjs +18 -0
  165. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/cli.test.mjs +48 -0
  166. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/estimator-system.test.mjs +66 -0
  167. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/fixtures/ARCHITECTURE-mini.md +31 -0
  168. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/fixtures/feedback.json +19 -0
  169. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/fixtures/inputs-pass.json +80 -0
  170. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/fixtures/measurements.jsonl +0 -0
  171. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/fixtures/requirements.json +79 -0
  172. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/page-view.test.mjs +54 -0
  173. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/pages-browser.test.mjs +209 -0
  174. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/quality-gates.test.mjs +25 -0
  175. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/render.test.mjs +54 -0
  176. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/requirements.test.mjs +33 -0
  177. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/rollup.test.mjs +80 -0
  178. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/schema.test.mjs +61 -0
  179. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/score-review.test.mjs +108 -0
  180. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/stage.mjs +32 -0
  181. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/workflow-script.test.mjs +24 -0
  182. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/xlsx-rows.test.mjs +58 -0
  183. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/validate.mjs +19 -0
  184. package/plugins/solution-architect/skills/proposal/README.md +13 -0
  185. package/plugins/solution-architect/skills/proposal/SKILL.md +8 -0
  186. package/plugins/solution-architect/skills/proposal/assets/proposal-workflow.html +143 -0
  187. package/plugins/solution-architect/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/ARCHITECTURE.md +31 -0
  188. package/plugins/solution-architect/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/estimation-inputs.json +468 -0
  189. package/plugins/solution-architect/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/estimation.json +773 -0
  190. package/plugins/solution-architect/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/measurements.jsonl +0 -0
  191. package/plugins/solution-architect/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/requirements.json +79 -0
  192. package/plugins/solution-architect/skills/proposal/references/review.md +11 -0
  193. package/plugins/solution-architect/skills/proposal/references/workflow.md +88 -0
  194. package/plugins/solution-architect/skills/proposal/scripts/lib/docx-body.mjs +42 -0
  195. package/plugins/solution-architect/skills/proposal/scripts/lib/docx-package.mjs +56 -0
  196. package/plugins/solution-architect/skills/proposal/scripts/lib/docx-xml.mjs +44 -0
  197. package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-checks.mjs +71 -0
  198. package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-cli.mjs +46 -0
  199. package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-html.mjs +39 -0
  200. package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-lead.mjs +45 -0
  201. package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-page.mjs +30 -0
  202. package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-view.mjs +80 -0
  203. package/plugins/solution-architect/skills/proposal/scripts/render.mjs +5 -1
  204. package/plugins/solution-architect/skills/proposal/scripts/test/docx.test.mjs +68 -0
  205. package/plugins/solution-architect/skills/proposal/scripts/test/e2e.test.mjs +2 -2
  206. package/plugins/solution-architect/skills/proposal/scripts/test/evals-fixtures.test.mjs +9 -2
  207. package/plugins/solution-architect/skills/proposal/scripts/test/fixtures/proposal-inputs-pass.json +17 -0
  208. package/plugins/solution-architect/skills/proposal/scripts/test/render.test.mjs +2 -2
  209. package/plugins/solution-architect/skills/proposal/scripts/test/validate.test.mjs +2 -2
  210. package/plugins/solution-architect/skills/proposal/scripts/test/workflow-browser.test.mjs +96 -0
  211. package/plugins/solution-architect/skills/proposal/scripts/test/workflow-checks.test.mjs +98 -0
  212. package/plugins/solution-architect/skills/proposal/scripts/test/workflow-docs.test.mjs +25 -0
  213. package/plugins/solution-architect/skills/proposal/scripts/test/workflow-render.test.mjs +75 -0
  214. package/plugins/solution-architect/skills/proposal/scripts/test/workflow-stage.mjs +15 -0
  215. package/plugins/solution-architect/skills/proposal/scripts/test/workflow-view.test.mjs +78 -0
  216. package/plugins/solution-architect/skills/proposal/scripts/validate.mjs +4 -1
  217. package/plugins/solution-architect/workflows/review-links.js +61 -0
  218. package/plugins/solution-architect/skills/estimate/assets/estimate-template.html +0 -1677
  219. /package/plugins/solution-architect/skills/estimate/{assets → classic/assets}/estimate-template-agentic.html +0 -0
  220. /package/plugins/solution-architect/skills/estimate/{assets → classic/assets}/scores-review-template.html +0 -0
  221. /package/plugins/solution-architect/skills/estimate/{references → classic/references}/agentic-estimation.md +0 -0
  222. /package/plugins/solution-architect/skills/estimate/{references → classic/references}/ai-multipliers.md +0 -0
  223. /package/plugins/solution-architect/skills/estimate/{references → classic/references}/interview.md +0 -0
  224. /package/plugins/solution-architect/skills/estimate/{references → classic/references}/scoring-guide.md +0 -0
  225. /package/plugins/solution-architect/skills/estimate/{references → classic/references}/slicing.md +0 -0
  226. /package/plugins/solution-architect/skills/estimate/{references → classic/references}/techniques.md +0 -0
  227. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/agentic-checks.mjs +0 -0
  228. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/components.mjs +0 -0
  229. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/md-tables.mjs +0 -0
  230. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/redact.mjs +0 -0
  231. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/scoring-checks.mjs +0 -0
  232. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/agentic-estimation-fail.md +0 -0
  233. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/agentic-estimation-pass.md +0 -0
  234. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/agentic-inputs.json +0 -0
  235. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/booking-inputs.json +0 -0
  236. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/estimation-fail.md +0 -0
  237. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/estimation-pass.md +0 -0
  238. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/measurements.jsonl +0 -0
  239. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/zip.mjs +0 -0
  240. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/validate.mjs +0 -0
  241. /package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/baselines.mjs +0 -0
  242. /package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/estimate-math.mjs +0 -0
  243. /package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/measurements.mjs +0 -0
  244. /package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/pricing.mjs +0 -0
  245. /package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/project-price.mjs +0 -0
  246. /package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/score-diff.mjs +0 -0
@@ -384,7 +384,7 @@ body {
384
384
  }
385
385
  .doc { max-width: var(--measure); margin: 0 auto; }
386
386
  .main :is(h1, h2, h3, h4, h5, h6) { scroll-margin-top: calc(var(--topbar-h) + 20px); }
387
- .diagram-shell, .table-wrap { scroll-margin-top: calc(var(--topbar-h) + 20px); }
387
+ .diagram-shell, .table-wrap, .view-tabs { scroll-margin-top: calc(var(--topbar-h) + 20px); }
388
388
 
389
389
  /* The document title. It used to carry a "Document 07" eyebrow and a hairline
390
390
  above it, both of which separated one document from the next in a single
@@ -1351,6 +1351,9 @@ document.querySelectorAll('.doc table').forEach(function (t) {
1351
1351
  });
1352
1352
 
1353
1353
  /* ---- view tabs: one system at several zoom levels, one panel at a time ---- */
1354
+ /* Panel id → its tab's select, so the router can open the view a link names:
1355
+ another page (the estimate) links to #panel-containers rather than redraw C2. */
1356
+ var revealPanel = {};
1354
1357
  document.querySelectorAll('.view-tabs').forEach(function (group) {
1355
1358
  var tabs = [].slice.call(group.querySelectorAll('.view-tab'));
1356
1359
  var panels = [].slice.call(group.querySelectorAll('.view-panel'));
@@ -1363,6 +1366,7 @@ document.querySelectorAll('.view-tabs').forEach(function (group) {
1363
1366
  if (focus) tabs[n].focus();
1364
1367
  dispatchEvent(new Event('resize'));
1365
1368
  }
1369
+ panels.forEach(function (p, i) { revealPanel[p.id] = function () { select(i, false); }; });
1366
1370
  tabs.forEach(function (tab, i) {
1367
1371
  tab.addEventListener('click', function () { select(i, false); });
1368
1372
  tab.addEventListener('keydown', function (e) {
@@ -1922,6 +1926,12 @@ function navigate(jump) {
1922
1926
  closeDrawer();
1923
1927
  if (!jump) return;
1924
1928
  var el = parts.id && document.getElementById(parts.id);
1929
+ /* A link into a hidden view panel opens its tab first; scrolling to a panel
1930
+ that is still display:none goes nowhere. */
1931
+ var panel = el && el.closest('.view-panel');
1932
+ if (panel && panel.hidden && revealPanel[panel.id]) revealPanel[panel.id]();
1933
+ /* ...and lands on its tab bar, so the reader sees which view is open. */
1934
+ if (panel) el = panel.closest('.view-tabs');
1925
1935
  /* Instant when the router changed the page, smooth when it did not.
1926
1936
  `scroll-behavior: smooth` cannot tell the two apart, so a deep link into
1927
1937
  another document used to animate the whole way there — through content the
@@ -71,6 +71,14 @@ const REFLOW_DOC = [
71
71
  // injectSectionHelp still leaves "an excluded document grew an explainer"
72
72
  // green, because none of this fixture's real headings matches a lookup key.
73
73
  ['## Security', ''],
74
+ // Two consecutive view markers render as one tab group, the shape §5 of a real
75
+ // architecture document has. Another page links to a single view by its panel
76
+ // id, so the second tab is the one a deep link has to open.
77
+ // Prose after the group gives the jump room to overshoot: at the end of the
78
+ // page the scroll clamps, and a link that lands past the tab bar looks fine.
79
+ ['## Views', '', '<!-- likec4:view index -->', '<!-- likec4:view containers -->', ''],
80
+ Array.from({ length: 12 }, (_, i) => `Paragraph ${i + 1} after the views keeps the page`
81
+ + ' long enough that a jump to the second view is not clamped by the end of the document.\n'),
74
82
  ).join('\n');
75
83
 
76
84
  function buildViewer() {
@@ -212,6 +220,25 @@ describe('the viewer in a real browser', { skip: findChrome() ? false : 'no chro
212
220
  assert.equal(nav.after, 1, 'navigation left more than one page visible');
213
221
  });
214
222
 
223
+ // The estimate's component page links straight to the C2 or C3 view instead of
224
+ // redrawing it. Those views are tabs, and a panel that is not the first one is
225
+ // hidden, so a link to its id used to land on the tab group's first view.
226
+ test('a link to a view panel opens that tab', async () => {
227
+ const tab = await page.eval(`(async () => {
228
+ location.hash = '#panel-containers';
229
+ await new Promise((r) => setTimeout(r, 100));
230
+ const panel = document.getElementById('panel-containers');
231
+ return { hidden: panel.hidden, selected: document.getElementById('tab-containers').getAttribute('aria-selected'),
232
+ first: document.getElementById('panel-index').hidden, onPage: Boolean(panel.closest('.page').offsetParent),
233
+ // the reader lands on the tab bar, not under the sticky top bar past it
234
+ barTop: Math.round(panel.closest('.view-tabs').querySelector('.view-tabs__bar').getBoundingClientRect().top),
235
+ topbar: Math.round(document.querySelector('.topbar')?.getBoundingClientRect().bottom ?? 0) };
236
+ })()`);
237
+ assert.ok(tab.barTop >= tab.topbar, `tab bar at ${tab.barTop}px is under the top bar (ends ${tab.topbar}px)`);
238
+ delete tab.barTop; delete tab.topbar;
239
+ assert.deepEqual(tab, { hidden: false, selected: 'true', first: true, onPage: true });
240
+ });
241
+
215
242
  // Paper has no router. Every page is already in the DOM, only hidden, so print
216
243
  // shows the whole set — which is what somebody printing an architecture
217
244
  // document meant.
@@ -3,6 +3,21 @@
3
3
  Produce an honest, validated project estimate, then serve it on localhost as an
4
4
  interactive page.
5
5
 
6
+ ## Two flows
7
+
8
+ `SKILL.md` routes on `requirements.json#scopeMode`: `classic/` is the
9
+ interview-driven flow (today's behaviour), `workflow-based/` prices the
10
+ business-analyst features and links them to components. Shared pricing
11
+ lives in `shared/lib/`.
12
+ Commands below are the classic ones; prefix `workflow-based/` for workflow
13
+ mode (`compute.mjs`, `validate.mjs`, `score-review.mjs`, `render.mjs`), whose
14
+ render writes two internal pages into the lead's `dist/`: `estimate.html`
15
+ (Workflow-based) and `estimate-components.html` (Component-based, with the
16
+ xlsx download). The xlsx export itself lives in `shared/assets/xlsx-export.js`.
17
+ In workflow mode the workbook adds a SYSTEM / MODULE column (rows grouped by
18
+ system) from `workflow-based/assets/estimator-system.xlsx`; rebuild it with
19
+ `/usr/bin/python3 workflow-based/scripts/build-xlsx-template.py` (needs LibreOffice).
20
+
6
21
  ## What it produces
7
22
 
8
23
  **`estimation.md`** — scope split into `stated` vs `proposed` items, a task-level
@@ -41,9 +56,9 @@ and states plainly that it is not priced, and a proposal cannot quote it.
41
56
  ## Run it
42
57
 
43
58
  ```
44
- node scripts/compute.mjs --inputs estimation-inputs.json --out estimation.json
45
- node scripts/validate.mjs --md estimation.md --json estimation.json
46
- node scripts/render.mjs --json estimation.json --md estimation.md --out .
59
+ node classic/scripts/compute.mjs --inputs estimation-inputs.json --out estimation.json
60
+ node classic/scripts/validate.mjs --md estimation.md --json estimation.json
61
+ node classic/scripts/render.mjs --json estimation.json --md estimation.md --out .
47
62
  ```
48
63
 
49
64
  `validate.mjs` must exit 0 before `render.mjs` will produce a page — an
@@ -5,78 +5,21 @@ description: Interview-driven project estimation that prices work from weighted
5
5
 
6
6
  # estimate
7
7
 
8
- Produce an honest, validated estimate: confirmed scope split from assumptions,
9
- a technique that fits the evidence, a score-driven price band per feature,
10
- and an interactive page served on localhost.
11
-
12
- ## Hard rules
13
-
14
- 1. Every estimate row carries confidence + assumptions. A row nobody estimated
15
- renders `not estimated` — never `0`.
16
- 2. Every scope item is labeled `stated` or `proposed` — no unlabeled scope.
17
- 3. Agent judges, script computes: every number in a deliverable comes from
18
- `scripts/compute.mjs`. Never total, average, or price by hand.
19
- 4. Never apply one blanket price or multiplier to a feature — score all
20
- five factors (`references/scoring-guide.md`) and let `pricing.mjs`'s
21
- weighted score and bands set the price; the weights already encode what
22
- matters most (uncertainty 30%, size 10% — `references/ai-multipliers.md`).
23
- 5. `node scripts/validate.mjs` must exit 0 before the page renders.
24
- 6. Agentic estimates: baselines and confidence come from scripts reading
25
- measurements.jsonl — the agent never writes a duration, confidence, or
26
- evidence row.
27
-
28
- ## Flow
29
-
30
- 1. **Detect evidence**: requirements/RFP? ARCHITECTURE.md? codebase? none?
31
- State findings; the user can override. (`references/interview.md` §1)
32
- 2. **Depth and delivery mode**: ask QUICK / STANDARD / DEEP, then assume
33
- AGENTIC and ask only "humans writing the code?" as the opt-out
34
- (`references/interview.md` §2b). Delivery mode decides step 4, and is
35
- written to `estimation-inputs.json` explicitly either way.
36
- 3. **Interview**: follow `references/interview.md` — pre-fill from evidence,
37
- ask only holes, run the clear-vs-assumed gate before sizing. Read
38
- `references/scoring-guide.md` before proposing any score; offer the
39
- review channel (terminal cards, csv, or html via
40
- `node scripts/score-review.mjs`). Before proposing milestones, read
41
- `references/slicing.md` — slices are judged there, not computed. Score
42
- the five context factors too — four derived, one asked — per
43
- `references/interview.md` §4.
44
- 4. **Technique**: TRADITIONAL-only — recommend from `references/techniques.md`,
45
- state why, cite the method's sources (its §Sources — attribution + link,
46
- never quoted text), confirm. AGENTIC reads
47
- `references/agentic-estimation.md` and `references/task-shapes.md`
48
- instead: no technique to recommend, shape + scope + seed minutes per task.
49
- 5. **Size**: write judgments to `estimation-inputs.json`
50
- (`references/writing.md` — the booking fixture is the canonical shape).
51
- 6. **Compute**: `node scripts/compute.mjs --inputs estimation-inputs.json --out estimation.json`
52
- 7. **Write**: estimation.md per `references/writing.md`.
53
- 8. **Validate**: `node scripts/validate.mjs --md estimation.md --json estimation.json`
54
- — fix findings, re-run until clean.
55
- 9. **Render + serve**:
56
- `node scripts/render.mjs --json estimation.json --md estimation.md --out <dir>`
57
- (add `--client-only` for a client-safe file; add `--figures proposal-figures.json`
58
- once `/proposal` has written it, so the Summary shows the client's quoted
59
- range) — render re-runs the validation
60
- checks itself and refuses on findings, so an unvalidated page cannot ship.
61
- `deliveryMode: "agentic"` routes rendering to the agentic HTML template
62
- automatically; nothing to choose here. Then serve with the
63
- analyze-requirements skill's `serve.mjs`; report the URL.
64
-
65
- ## Companion mode
66
-
67
- When ARCHITECTURE.md exists: §6 components seed the WBS, §15 risks seed the
68
- risk register, seed the `components` roster from §6 rows (use the LikeC4
69
- model's container and component ids where one exists — dotted ids like
70
- `atlas.goldStore`) and tag every feature with the component it implements,
71
- flip the `electedDocs` estimation entry to `elected: true`,
72
- place estimation.md beside ARCHITECTURE.md so the analyze-requirements viewer picks it
73
- up as a companion page; link the interactive page from it. Render
74
- estimate.html **into `<dir>/dist/`** — the same folder the viewer renders
75
- into. When a rendered viewer exists, add `--viewer index.html` for the
76
- back-link (internal view only; the client render strips it) — index.html and
77
- estimate.html then ship as one self-contained folder, and the viewer's
78
- estimation tab links the copy inside it.
79
-
80
- ## Dependency
81
-
82
- Node ≥ 20. No npm install needed — the scripts are dependency-free.
8
+ Two flows share one command. Pick the flow from the lead's requirements
9
+ package, never by asking:
10
+
11
+ 1. Look for `requirements.json` in the lead folder (the business-analyst
12
+ skill writes it). Read its top-level `scopeMode`.
13
+ 2. `"workflow"` → follow `workflow-based/FLOW.md`: features come from the
14
+ package, components from `ARCHITECTURE.md`, the review is a plugin
15
+ workflow, and the price is per feature.
16
+ 3. Anything else — `"classic"`, no field, or no file → follow
17
+ `classic/FLOW.md`: today's interview, techniques and pages.
18
+
19
+ Paths inside each `FLOW.md` are relative to that flow's folder; run its
20
+ scripts from there. Both flows price with `shared/lib/pricing.mjs` and
21
+ `project-price.mjs`. Nothing in `classic/` reads `workflow-based/`.
22
+ `workflow-based/` reuses three classic references: the scoring guide,
23
+ the task shapes, and the context-factor section of the interview.
24
+
25
+ Dependency: Node ≥ 20. No npm install needed — the scripts are dependency-free.
@@ -0,0 +1,77 @@
1
+ # estimate
2
+
3
+ Produce an honest, validated estimate: confirmed scope split from assumptions,
4
+ a technique that fits the evidence, a score-driven price band per feature,
5
+ and an interactive page served on localhost.
6
+
7
+ ## Hard rules
8
+
9
+ 1. Every estimate row carries confidence + assumptions. A row nobody estimated
10
+ renders `not estimated` — never `0`.
11
+ 2. Every scope item is labeled `stated` or `proposed` — no unlabeled scope.
12
+ 3. Agent judges, script computes: every number in a deliverable comes from
13
+ `scripts/compute.mjs`. Never total, average, or price by hand.
14
+ 4. Never apply one blanket price or multiplier to a feature — score all
15
+ five factors (`references/scoring-guide.md`) and let `pricing.mjs`'s
16
+ weighted score and bands set the price; the weights already encode what
17
+ matters most (uncertainty 30%, size 10% — `references/ai-multipliers.md`).
18
+ 5. `node scripts/validate.mjs` must exit 0 before the page renders.
19
+ 6. Agentic estimates: baselines and confidence come from scripts reading
20
+ measurements.jsonl — the agent never writes a duration, confidence, or
21
+ evidence row.
22
+
23
+ ## Flow
24
+
25
+ 1. **Detect evidence**: requirements/RFP? ARCHITECTURE.md? codebase? none?
26
+ State findings; the user can override. (`references/interview.md` §1)
27
+ 2. **Depth and delivery mode**: ask QUICK / STANDARD / DEEP, then assume
28
+ AGENTIC and ask only "humans writing the code?" as the opt-out
29
+ (`references/interview.md` §2b). Delivery mode decides step 4, and is
30
+ written to `estimation-inputs.json` explicitly either way.
31
+ 3. **Interview**: follow `references/interview.md` — pre-fill from evidence,
32
+ ask only holes, run the clear-vs-assumed gate before sizing. Read
33
+ `references/scoring-guide.md` before proposing any score; offer the
34
+ review channel (terminal cards, csv, or html via
35
+ `node scripts/score-review.mjs`). Before proposing milestones, read
36
+ `references/slicing.md` — slices are judged there, not computed. Score
37
+ the five context factors too — four derived, one asked — per
38
+ `references/interview.md` §4.
39
+ 4. **Technique**: TRADITIONAL-only — recommend from `references/techniques.md`,
40
+ state why, cite the method's sources (its §Sources — attribution + link,
41
+ never quoted text), confirm. AGENTIC reads
42
+ `references/agentic-estimation.md` and `references/task-shapes.md`
43
+ instead: no technique to recommend, shape + scope + seed minutes per task.
44
+ 5. **Size**: write judgments to `estimation-inputs.json`
45
+ (`references/writing.md` — the booking fixture is the canonical shape).
46
+ 6. **Compute**: `node scripts/compute.mjs --inputs estimation-inputs.json --out estimation.json`
47
+ 7. **Write**: estimation.md per `references/writing.md`.
48
+ 8. **Validate**: `node scripts/validate.mjs --md estimation.md --json estimation.json`
49
+ — fix findings, re-run until clean.
50
+ 9. **Render + serve**:
51
+ `node scripts/render.mjs --json estimation.json --md estimation.md --out <dir>`
52
+ (add `--client-only` for a client-safe file; add `--figures proposal-figures.json`
53
+ once `/proposal` has written it, so the Summary shows the client's quoted
54
+ range) — render re-runs the validation
55
+ checks itself and refuses on findings, so an unvalidated page cannot ship.
56
+ `deliveryMode: "agentic"` routes rendering to the agentic HTML template
57
+ automatically; nothing to choose here. Then serve with the
58
+ analyze-requirements skill's `serve.mjs`; report the URL.
59
+
60
+ ## Companion mode
61
+
62
+ When ARCHITECTURE.md exists: §6 components seed the WBS, §15 risks seed the
63
+ risk register, seed the `components` roster from §6 rows (use the LikeC4
64
+ model's container and component ids where one exists — dotted ids like
65
+ `atlas.goldStore`) and tag every feature with the component it implements,
66
+ flip the `electedDocs` estimation entry to `elected: true`,
67
+ place estimation.md beside ARCHITECTURE.md so the analyze-requirements viewer picks it
68
+ up as a companion page; link the interactive page from it. Render
69
+ estimate.html **into `<dir>/dist/`** — the same folder the viewer renders
70
+ into. When a rendered viewer exists, add `--viewer index.html` for the
71
+ back-link (internal view only; the client render strips it) — index.html and
72
+ estimate.html then ship as one self-contained folder, and the viewer's
73
+ estimation tab links the copy inside it.
74
+
75
+ ## Dependency
76
+
77
+ Node ≥ 20. No npm install needed — the scripts are dependency-free.