@v11g/agents-rock 1.0.4 → 1.0.6

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 (48) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/plugins/solution-architect/.claude-plugin/plugin.json +1 -1
  4. package/plugins/solution-architect/skills/estimate/README.md +8 -5
  5. package/plugins/solution-architect/skills/estimate/SKILL.md +13 -7
  6. package/plugins/solution-architect/skills/estimate/assets/estimate-template-agentic.html +142 -376
  7. package/plugins/solution-architect/skills/estimate/assets/estimate-template.html +619 -601
  8. package/plugins/solution-architect/skills/estimate/assets/scores-review-template.html +363 -0
  9. package/plugins/solution-architect/skills/estimate/references/ai-multipliers.md +5 -9
  10. package/plugins/solution-architect/skills/estimate/references/interview.md +132 -12
  11. package/plugins/solution-architect/skills/estimate/references/scoring-guide.md +23 -0
  12. package/plugins/solution-architect/skills/estimate/references/techniques.md +9 -2
  13. package/plugins/solution-architect/skills/estimate/references/writing.md +28 -5
  14. package/plugins/solution-architect/skills/estimate/scripts/lib/agentic-checks.mjs +1 -1
  15. package/plugins/solution-architect/skills/estimate/scripts/lib/checks.mjs +4 -30
  16. package/plugins/solution-architect/skills/estimate/scripts/lib/estimate-math.mjs +14 -10
  17. package/plugins/solution-architect/skills/estimate/scripts/lib/inline.mjs +6 -8
  18. package/plugins/solution-architect/skills/estimate/scripts/lib/md-tables.mjs +31 -0
  19. package/plugins/solution-architect/skills/estimate/scripts/lib/redact.mjs +14 -3
  20. package/plugins/solution-architect/skills/estimate/scripts/lib/rollup.mjs +5 -4
  21. package/plugins/solution-architect/skills/estimate/scripts/lib/scenario-schema.mjs +39 -0
  22. package/plugins/solution-architect/skills/estimate/scripts/lib/schema.mjs +4 -14
  23. package/plugins/solution-architect/skills/estimate/scripts/lib/score-csv.mjs +58 -0
  24. package/plugins/solution-architect/skills/estimate/scripts/lib/score-diff.mjs +30 -0
  25. package/plugins/solution-architect/skills/estimate/scripts/lib/score-html.mjs +17 -0
  26. package/plugins/solution-architect/skills/estimate/scripts/lib/scoring-checks.mjs +24 -0
  27. package/plugins/solution-architect/skills/estimate/scripts/lib/scoring-schema.mjs +48 -0
  28. package/plugins/solution-architect/skills/estimate/scripts/lib/scoring.mjs +45 -0
  29. package/plugins/solution-architect/skills/estimate/scripts/render.mjs +14 -13
  30. package/plugins/solution-architect/skills/estimate/scripts/score-review.mjs +59 -0
  31. package/plugins/solution-architect/skills/estimate/scripts/test/browser.test.mjs +403 -316
  32. package/plugins/solution-architect/skills/estimate/scripts/test/compute.test.mjs +25 -1
  33. package/plugins/solution-architect/skills/estimate/scripts/test/estimate-math.test.mjs +29 -10
  34. package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/agentic-inputs.json +2 -2
  35. package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/booking-inputs.json +21 -3
  36. package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/estimation-fail.md +1 -1
  37. package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/estimation-pass.md +4 -4
  38. package/plugins/solution-architect/skills/estimate/scripts/test/references.test.mjs +64 -6
  39. package/plugins/solution-architect/skills/estimate/scripts/test/render.test.mjs +96 -13
  40. package/plugins/solution-architect/skills/estimate/scripts/test/schema.test.mjs +105 -4
  41. package/plugins/solution-architect/skills/estimate/scripts/test/score-review.test.mjs +187 -0
  42. package/plugins/solution-architect/skills/estimate/scripts/test/scoring.test.mjs +49 -0
  43. package/plugins/solution-architect/skills/estimate/scripts/test/url-state.test.mjs +198 -0
  44. package/plugins/solution-architect/skills/estimate/scripts/test/validate.test.mjs +38 -0
  45. package/plugins/solution-architect/skills/estimate/scripts/test/xlsx-export.test.mjs +114 -28
  46. package/plugins/solution-architect/skills/new-lead/scripts/lib/map-nodes.mjs +1 -1
  47. package/plugins/solution-architect/skills/proposal/scripts/test/checks-client.test.mjs +2 -2
  48. package/plugins/solution-architect/skills/proposal/scripts/test/figures.test.mjs +1 -1
package/README.md CHANGED
@@ -82,7 +82,7 @@ rather than a hang.
82
82
  | Plugin | Description | Version |
83
83
  | -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
84
84
  | `business-analyst` | Business-analysis toolkit: interview-driven requirements discovery that turns raw client input into a validated, traceable requirements package ready for solution architecture. | 0.2.0 |
85
- | `solution-architect` | Solution-architecture toolkit: interview-driven architecture documentation with interactive diagrams and provenance-tagged facts, AI-aware project estimation, and client-ready proposals. | 1.1.1 |
85
+ | `solution-architect` | Solution-architecture toolkit: interview-driven architecture documentation with interactive diagrams and provenance-tagged facts, AI-aware project estimation, and client-ready proposals. | 2.0.1 |
86
86
  | `lmk` | Terminal-native visual explainer: explains the current topic with cheap diagrams (flowcharts, sequences, timelines, tables) rendered directly in the terminal via a bundled Mermaid renderer. | 0.1.0 |
87
87
 
88
88
  ## Skills
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@v11g/agents-rock",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "solution-architect",
3
- "version": "1.1.1",
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",
@@ -1,19 +1,22 @@
1
1
  # estimate
2
2
 
3
3
  Produce an honest, validated project estimate, then serve it on localhost as an
4
- interactive what-if page.
4
+ interactive page.
5
5
 
6
6
  ## What it produces
7
7
 
8
8
  **`estimation.md`** — scope split into `stated` vs `proposed` items, a task-level
9
9
  backlog with confidence and assumptions per row, an AI-aware scenario comparison
10
- (team composition × Claude Code plan), and the technique used, all backed by
10
+ (team composition × AI assistance), and the technique used, all backed by
11
11
  `estimation.json` (the numbers every table cell comes from — nothing in the
12
12
  doc is hand-totaled).
13
13
 
14
14
  **An interactive page** (`estimate.html`) — the same data rendered as a
15
- self-contained, offline-capable HTML file with live what-if controls (swap
16
- team/plan, see months and cost recompute), served on `localhost:4173` (or the
15
+ self-contained, offline-capable HTML file: a Summary (recommended team, months,
16
+ cost, and the committed alternatives), the feature breakdown (the interview's
17
+ five factor scores per feature, Σ, tier and hours side by side; a
18
+ spreadsheet export with a scoring tab, a Score Rationale tab and a task
19
+ tab), containers, roadmap and risks, served on `localhost:4173` (or the
17
20
  next free port).
18
21
 
19
22
  ## Two run modes
@@ -42,7 +45,7 @@ node scripts/render.mjs --json estimation.json --md estimation.md --out .
42
45
 
43
46
  `validate.mjs` must exit 0 before `render.mjs` will produce a page — an
44
47
  unvalidated estimate cannot ship. Add `--client-only` to `render.mjs` for a
45
- client-safe file with rates and the labor/plan cost breakdown stripped from
48
+ client-safe file with rates and the labor/tooling cost breakdown stripped from
46
49
  both the embedded data and the task register (totals and months stay) —
47
50
  unless `exposeRatesToClient: true` is set in `estimation-inputs.json`, which
48
51
  keeps them.
@@ -7,7 +7,7 @@ description: Interview-driven project estimation with AI-aware delivery scenario
7
7
 
8
8
  Produce an honest, validated estimate: confirmed scope split from assumptions,
9
9
  a technique that fits the evidence, AI-assisted staffing scenarios, and an
10
- interactive what-if page served on localhost.
10
+ interactive page served on localhost.
11
11
 
12
12
  ## Hard rules
13
13
 
@@ -27,12 +27,16 @@ interactive what-if page served on localhost.
27
27
 
28
28
  1. **Detect evidence**: requirements/RFP? ARCHITECTURE.md? codebase? none?
29
29
  State findings; the user can override. (`references/interview.md` §1)
30
- 2. **Depth and delivery mode**: ask QUICK / STANDARD / DEEP, then TRADITIONAL
31
- / AGENTIC (`references/interview.md` §2b). Delivery mode decides step 4.
30
+ 2. **Depth and delivery mode**: ask QUICK / STANDARD / DEEP, then assume
31
+ AGENTIC and ask only "humans writing the code?" as the opt-out
32
+ (`references/interview.md` §2b). Delivery mode decides step 4, and is
33
+ written to `estimation-inputs.json` explicitly either way.
32
34
  3. **Interview**: follow `references/interview.md` — pre-fill from evidence,
33
- ask only holes, run the clear-vs-assumed gate before sizing. Before
34
- proposing milestones, read `references/slicing.md` — slices are judged
35
- there, not computed.
35
+ ask only holes, run the clear-vs-assumed gate before sizing. Read
36
+ `references/scoring-guide.md` before proposing any score; offer the
37
+ review channel (terminal cards, csv, or html via
38
+ `node scripts/score-review.mjs`). Before proposing milestones, read
39
+ `references/slicing.md` — slices are judged there, not computed.
36
40
  4. **Technique**: TRADITIONAL-only — recommend from `references/techniques.md`,
37
41
  state why, cite the method's sources (its §Sources — attribution + link,
38
42
  never quoted text), confirm. AGENTIC reads
@@ -46,7 +50,9 @@ interactive what-if page served on localhost.
46
50
  — fix findings, re-run until clean.
47
51
  9. **Render + serve**:
48
52
  `node scripts/render.mjs --json estimation.json --md estimation.md --out <dir>`
49
- (add `--client-only` for a client-safe file) — render re-runs the validation
53
+ (add `--client-only` for a client-safe file; add `--figures proposal-figures.json`
54
+ once `/proposal` has written it, so the Summary shows the client's quoted
55
+ range) — render re-runs the validation
50
56
  checks itself and refuses on findings, so an unvalidated page cannot ship.
51
57
  `deliveryMode: "agentic"` routes rendering to the agentic HTML template
52
58
  automatically; nothing to choose here. Then serve with the