@v11g/agents-rock 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +65 -0
- package/bin/agents-rock.mjs +4 -0
- package/package.json +13 -0
- package/plugins/solution-architect/.claude-plugin/plugin.json +9 -0
- package/plugins/solution-architect/skills/analyze-requirements/README.md +75 -0
- package/plugins/solution-architect/skills/analyze-requirements/SKILL.md +31 -0
- package/plugins/solution-architect/skills/analyze-requirements/assets/fonts/OFL.txt +98 -0
- package/plugins/solution-architect/skills/analyze-requirements/assets/fonts/ibm-plex-mono-latin-400-normal.woff2 +0 -0
- package/plugins/solution-architect/skills/analyze-requirements/assets/fonts/ibm-plex-mono-latin-600-normal.woff2 +0 -0
- package/plugins/solution-architect/skills/analyze-requirements/assets/fonts/ibm-plex-sans-latin-400-normal.woff2 +0 -0
- package/plugins/solution-architect/skills/analyze-requirements/assets/fonts/ibm-plex-sans-latin-500-normal.woff2 +0 -0
- package/plugins/solution-architect/skills/analyze-requirements/assets/fonts/ibm-plex-sans-latin-600-normal.woff2 +0 -0
- package/plugins/solution-architect/skills/analyze-requirements/assets/mermaid-theme.json +52 -0
- package/plugins/solution-architect/skills/analyze-requirements/assets/section-help.json +101 -0
- package/plugins/solution-architect/skills/analyze-requirements/assets/viewer-template.html +2389 -0
- package/plugins/solution-architect/skills/analyze-requirements/references/interview.md +53 -0
- package/plugins/solution-architect/skills/analyze-requirements/references/likec4.md +157 -0
- package/plugins/solution-architect/skills/analyze-requirements/references/project-types.md +60 -0
- package/plugins/solution-architect/skills/analyze-requirements/references/research.md +78 -0
- package/plugins/solution-architect/skills/analyze-requirements/references/viewer.md +772 -0
- package/plugins/solution-architect/skills/analyze-requirements/references/writing.md +206 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/cdp.mjs +74 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/chrome.mjs +66 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/companion-links.mjs +20 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/doc-kinds.mjs +37 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/doc-links.mjs +26 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/doc-routes.mjs +27 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/doc-sections.mjs +78 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/embed.mjs +8 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/er-entities.mjs +16 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/fonts.mjs +39 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/frontmatter.mjs +17 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/inputs.mjs +41 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/likec4-config.mjs +41 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/likec4-extract.mjs +29 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/likec4-steps.mjs +22 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/md-defs.mjs +20 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/md-flows.mjs +46 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/md-inline.mjs +31 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/md-links.mjs +7 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/md-list.mjs +64 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/md-render.mjs +127 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/md-shape.mjs +19 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/md-tables.mjs +30 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/md-views.mjs +48 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/md-wide.mjs +44 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/nav.mjs +72 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/offline.mjs +19 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/port.mjs +13 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/quality-gate.mjs +113 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/section-help.mjs +49 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/slug-registry.mjs +11 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/validate-clusters.mjs +15 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/validate-deployment.mjs +8 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/validate-elections.mjs +20 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/validate-links.mjs +23 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/validate-model-tables.mjs +24 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/validate-palette.mjs +34 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/validate-provenance.mjs +20 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/validate-tree.mjs +16 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/likec4-config.mjs +19 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/likec4-export.mjs +35 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/likec4-gen.mjs +39 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/render.mjs +130 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/serve.mjs +71 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/browser.test.mjs +553 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/companion-links.test.mjs +60 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/doc-kinds.test.mjs +41 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/doc-links.test.mjs +104 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/doc-routes.test.mjs +54 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/doc-sections.test.mjs +197 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/embed.test.mjs +28 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/er-entities.test.mjs +14 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/fixtures/docs-pass/ARCHITECTURE.md +47 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/fixtures/docs-pass/c4-src/broken/model.c4 +27 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/fixtures/docs-pass/c4-src/pass/model.c4 +29 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/fixtures/docs-pass/docs/adr/0001-sample.md +18 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/fixtures/docs-pass/docs/estimate.html +2 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/fixtures/docs-pass/docs/estimation.md +8 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/fixtures/docs-pass/model-broken.json +1 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/fixtures/docs-pass/model.json +1 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/fixtures/docs-pass/threat-model.md +8 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/fixtures/sample-model.json +1 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/fixtures/sample.c4 +28 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/fonts.test.mjs +38 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/frontmatter.test.mjs +27 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/inputs.test.mjs +72 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/likec4-config-cli.test.mjs +26 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/likec4-config.test.mjs +74 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/likec4-export-cli.test.mjs +61 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/likec4-extract.test.mjs +37 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/likec4-gen-cli.test.mjs +73 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/likec4-steps.test.mjs +32 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/md-flows.test.mjs +82 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/md-links.test.mjs +16 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/md-provenance.test.mjs +42 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/md-render.test.mjs +226 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/md-tables.test.mjs +30 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/md-views.test.mjs +76 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/md-wide.test.mjs +76 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/nav.test.mjs +236 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/offline.test.mjs +37 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/quality-gate.test.mjs +86 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/quality-gates.test.mjs +20 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/render.test.mjs +171 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/research-workflow.test.mjs +38 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/section-help.test.mjs +101 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/serve.test.mjs +48 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/validate-clusters.test.mjs +46 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/validate-deployment.test.mjs +23 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/validate-elections.test.mjs +30 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/validate-links.test.mjs +38 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/validate-model-tables.test.mjs +51 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/validate-provenance.test.mjs +28 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/validate-tree.test.mjs +43 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/viewer-template.test.mjs +1206 -0
- package/plugins/solution-architect/skills/analyze-requirements/scripts/validate.mjs +88 -0
- package/plugins/solution-architect/skills/analyze-requirements/workflows/research.js +57 -0
- package/plugins/solution-architect/skills/estimate/README.md +67 -0
- package/plugins/solution-architect/skills/estimate/SKILL.md +64 -0
- package/plugins/solution-architect/skills/estimate/assets/estimate-template.html +1128 -0
- package/plugins/solution-architect/skills/estimate/references/ai-multipliers.md +95 -0
- package/plugins/solution-architect/skills/estimate/references/interview.md +80 -0
- package/plugins/solution-architect/skills/estimate/references/slicing.md +55 -0
- package/plugins/solution-architect/skills/estimate/references/techniques.md +111 -0
- package/plugins/solution-architect/skills/estimate/references/writing.md +211 -0
- package/plugins/solution-architect/skills/estimate/scripts/compute.mjs +23 -0
- package/plugins/solution-architect/skills/estimate/scripts/lib/checks.mjs +128 -0
- package/plugins/solution-architect/skills/estimate/scripts/lib/components.mjs +19 -0
- package/plugins/solution-architect/skills/estimate/scripts/lib/estimate-math.mjs +85 -0
- package/plugins/solution-architect/skills/estimate/scripts/lib/inline.mjs +10 -0
- package/plugins/solution-architect/skills/estimate/scripts/lib/redact.mjs +30 -0
- package/plugins/solution-architect/skills/estimate/scripts/lib/roadmap.mjs +32 -0
- package/plugins/solution-architect/skills/estimate/scripts/lib/rollup.mjs +122 -0
- package/plugins/solution-architect/skills/estimate/scripts/lib/schema.mjs +128 -0
- package/plugins/solution-architect/skills/estimate/scripts/render.mjs +65 -0
- package/plugins/solution-architect/skills/estimate/scripts/test/browser.test.mjs +623 -0
- package/plugins/solution-architect/skills/estimate/scripts/test/compute.test.mjs +88 -0
- package/plugins/solution-architect/skills/estimate/scripts/test/e2e.test.mjs +34 -0
- package/plugins/solution-architect/skills/estimate/scripts/test/estimate-math.test.mjs +112 -0
- package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/booking-inputs.json +58 -0
- package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/estimation-fail.md +30 -0
- package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/estimation-pass.md +60 -0
- package/plugins/solution-architect/skills/estimate/scripts/test/quality-gates.test.mjs +20 -0
- package/plugins/solution-architect/skills/estimate/scripts/test/references.test.mjs +71 -0
- package/plugins/solution-architect/skills/estimate/scripts/test/render.test.mjs +121 -0
- package/plugins/solution-architect/skills/estimate/scripts/test/schema.test.mjs +129 -0
- package/plugins/solution-architect/skills/estimate/scripts/test/validate.test.mjs +72 -0
- package/plugins/solution-architect/skills/estimate/scripts/validate.mjs +20 -0
- package/plugins/solution-architect/skills/new-lead/README.md +48 -0
- package/plugins/solution-architect/skills/new-lead/SKILL.md +113 -0
- package/plugins/solution-architect/skills/new-lead/assets/dashboard/detail.html +842 -0
- package/plugins/solution-architect/skills/new-lead/assets/dashboard/index.html +655 -0
- package/plugins/solution-architect/skills/new-lead/assets/dashboard/start.sh +3 -0
- package/plugins/solution-architect/skills/new-lead/assets/dashboard/stats.mjs +98 -0
- package/plugins/solution-architect/skills/new-lead/assets/dashboard/vendor/reactflow-bundle.js +473 -0
- package/plugins/solution-architect/skills/new-lead/assets/vendor-build/entry.jsx +33 -0
- package/plugins/solution-architect/skills/new-lead/assets/vendor-build/package-lock.json +1055 -0
- package/plugins/solution-architect/skills/new-lead/assets/vendor-build/package.json +19 -0
- package/plugins/solution-architect/skills/new-lead/scripts/init-root.mjs +73 -0
- package/plugins/solution-architect/skills/new-lead/scripts/lead-upsert.mjs +31 -0
- package/plugins/solution-architect/skills/new-lead/scripts/lib/enrich.mjs +20 -0
- package/plugins/solution-architect/skills/new-lead/scripts/lib/map-nodes.mjs +124 -0
- package/plugins/solution-architect/skills/new-lead/scripts/lib/map.mjs +117 -0
- package/plugins/solution-architect/skills/new-lead/scripts/lib/port.mjs +15 -0
- package/plugins/solution-architect/skills/new-lead/scripts/lib/registry.mjs +116 -0
- package/plugins/solution-architect/skills/new-lead/scripts/serve.mjs +163 -0
- package/plugins/solution-architect/skills/new-lead/scripts/test/e2e-workspace.test.mjs +59 -0
- package/plugins/solution-architect/skills/new-lead/scripts/test/enrich.test.mjs +16 -0
- package/plugins/solution-architect/skills/new-lead/scripts/test/fixtures/root/leads/acme-crm/ARCHITECTURE.md +16 -0
- package/plugins/solution-architect/skills/new-lead/scripts/test/fixtures/root/leads/acme-crm/brief.md +4 -0
- package/plugins/solution-architect/skills/new-lead/scripts/test/fixtures/root/leads/acme-crm/dist/index.html +11 -0
- package/plugins/solution-architect/skills/new-lead/scripts/test/fixtures/root/leads/acme-crm/dist/proposal-non-tech.html +2 -0
- package/plugins/solution-architect/skills/new-lead/scripts/test/fixtures/root/leads/acme-crm/dist/threat-model.html +2 -0
- package/plugins/solution-architect/skills/new-lead/scripts/test/fixtures/root/leads/acme-crm/estimation-inputs.json +6 -0
- package/plugins/solution-architect/skills/new-lead/scripts/test/fixtures/root/leads/acme-crm/estimation.json +10 -0
- package/plugins/solution-architect/skills/new-lead/scripts/test/fixtures/root/leads/acme-crm/notes.md +3 -0
- package/plugins/solution-architect/skills/new-lead/scripts/test/fixtures/root/leads/acme-crm/proposal-non-tech.md +3 -0
- package/plugins/solution-architect/skills/new-lead/scripts/test/fixtures/root/leads/acme-crm/rfp.md +3 -0
- package/plugins/solution-architect/skills/new-lead/scripts/test/fixtures/root/leads.json +25 -0
- package/plugins/solution-architect/skills/new-lead/scripts/test/init-root.test.mjs +81 -0
- package/plugins/solution-architect/skills/new-lead/scripts/test/lead-upsert.test.mjs +67 -0
- package/plugins/solution-architect/skills/new-lead/scripts/test/map.test.mjs +72 -0
- package/plugins/solution-architect/skills/new-lead/scripts/test/port.test.mjs +31 -0
- package/plugins/solution-architect/skills/new-lead/scripts/test/registry-io.test.mjs +57 -0
- package/plugins/solution-architect/skills/new-lead/scripts/test/registry.test.mjs +49 -0
- package/plugins/solution-architect/skills/new-lead/scripts/test/serve.test.mjs +205 -0
- package/plugins/solution-architect/skills/new-lead/scripts/test/stats.test.mjs +92 -0
- package/plugins/solution-architect/skills/new-lead/scripts/test/validate-cli.test.mjs +24 -0
- package/plugins/solution-architect/skills/new-lead/scripts/test/vendor-bundle.test.mjs +9 -0
- package/plugins/solution-architect/skills/new-lead/scripts/validate.mjs +9 -0
- package/plugins/solution-architect/skills/proposal/README.md +36 -0
- package/plugins/solution-architect/skills/proposal/SKILL.md +58 -0
- package/plugins/solution-architect/skills/proposal/assets/proposal-template.html +82 -0
- package/plugins/solution-architect/skills/proposal/references/interview.md +63 -0
- package/plugins/solution-architect/skills/proposal/references/review.md +28 -0
- package/plugins/solution-architect/skills/proposal/references/writing.md +102 -0
- package/plugins/solution-architect/skills/proposal/scripts/derive.mjs +22 -0
- package/plugins/solution-architect/skills/proposal/scripts/lib/checks-client.mjs +75 -0
- package/plugins/solution-architect/skills/proposal/scripts/lib/checks-doc.mjs +54 -0
- package/plugins/solution-architect/skills/proposal/scripts/lib/checks.mjs +17 -0
- package/plugins/solution-architect/skills/proposal/scripts/lib/figures.mjs +43 -0
- package/plugins/solution-architect/skills/proposal/scripts/lib/jargon.mjs +9 -0
- package/plugins/solution-architect/skills/proposal/scripts/lib/sections.mjs +32 -0
- package/plugins/solution-architect/skills/proposal/scripts/render.mjs +60 -0
- package/plugins/solution-architect/skills/proposal/scripts/test/checks-client.test.mjs +144 -0
- package/plugins/solution-architect/skills/proposal/scripts/test/checks-doc.test.mjs +93 -0
- package/plugins/solution-architect/skills/proposal/scripts/test/docs.test.mjs +51 -0
- package/plugins/solution-architect/skills/proposal/scripts/test/e2e.test.mjs +30 -0
- package/plugins/solution-architect/skills/proposal/scripts/test/figures.test.mjs +81 -0
- package/plugins/solution-architect/skills/proposal/scripts/test/fixtures/proposal-fail.md +22 -0
- package/plugins/solution-architect/skills/proposal/scripts/test/fixtures/proposal-pass.md +55 -0
- package/plugins/solution-architect/skills/proposal/scripts/test/quality-gates.test.mjs +20 -0
- package/plugins/solution-architect/skills/proposal/scripts/test/render.test.mjs +70 -0
- package/plugins/solution-architect/skills/proposal/scripts/test/validate.test.mjs +40 -0
- package/plugins/solution-architect/skills/proposal/scripts/validate.mjs +20 -0
- package/src/cli/agents.mjs +12 -0
- package/src/cli/args.mjs +46 -0
- package/src/cli/install.mjs +68 -0
- package/src/cli/main.mjs +124 -0
- package/src/cli/picker.mjs +78 -0
- package/src/cli/registry.mjs +26 -0
- package/src/cli/uninstall.mjs +38 -0
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# AI multipliers — categories, formula, seniority, the blanket-multiplier ban
|
|
2
|
+
|
|
3
|
+
Read while assigning a `category` to each task and again while choosing
|
|
4
|
+
`verificationPct`. Defines what each AI-speedup category means concretely,
|
|
5
|
+
how the formula in `estimate-math.mjs` uses it, and the one rule that keeps
|
|
6
|
+
an agent from inventing a project-wide speedup number.
|
|
7
|
+
|
|
8
|
+
## 1. Category table
|
|
9
|
+
|
|
10
|
+
| Category | AI speedup range | Example tasks |
|
|
11
|
+
| --- | --- | --- |
|
|
12
|
+
| `boilerplate` | 50-80% | CRUD endpoint, DB migration, form scaffold, DTO/type definitions, config wiring, standard test scaffolding |
|
|
13
|
+
| `logic` | 20-40% | validation rules, state machines, pricing/scheduling rules, non-trivial data transforms, API integration glue |
|
|
14
|
+
| `novel` | 0-10% | new algorithm design, novel UX interaction, unfamiliar third-party API with thin docs, performance-critical tuning, security-sensitive design |
|
|
15
|
+
|
|
16
|
+
Pick the category per task, not per feature or per project — a feature that
|
|
17
|
+
mixes a CRUD endpoint (`boilerplate`) with a pricing rule engine (`logic`)
|
|
18
|
+
has tasks in both categories.
|
|
19
|
+
|
|
20
|
+
## 2. Formula
|
|
21
|
+
|
|
22
|
+
The blended AI-adjusted estimate for a task is:
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
(AO + 2×AR + TR) / 4
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
where `TR` is the task's seniority-scaled hours with no AI help, `AR` is TR
|
|
29
|
+
reduced by the category's average speedup, and `AO` is TR reduced by the
|
|
30
|
+
category's *maximum* speedup — the optimistic case weighted at 1, the
|
|
31
|
+
average case weighted at 2, so a single lucky run doesn't drag the whole
|
|
32
|
+
estimate down. This doc explains the formula; the code computes it, in
|
|
33
|
+
`taskHours()`/`aiAdjust()` in `scripts/lib/estimate-math.mjs`. Never
|
|
34
|
+
re-derive this arithmetic by hand or in prose — call the function.
|
|
35
|
+
|
|
36
|
+
## 3. Seniority scaling
|
|
37
|
+
|
|
38
|
+
Task PERT hours assume a mid-level engineer. `SENIORITY_FACTOR` scales the
|
|
39
|
+
**base effort** on every path — traditional and AI alike:
|
|
40
|
+
|
|
41
|
+
| Seniority | Factor | Effect |
|
|
42
|
+
| --- | --- | --- |
|
|
43
|
+
| junior | 1.15 | slower baseline — same task takes 15% longer |
|
|
44
|
+
| mid | 1.0 | baseline, no scaling |
|
|
45
|
+
| senior | 0.85 | faster baseline — same task takes 15% less |
|
|
46
|
+
|
|
47
|
+
The AI reduction itself is a property of the task category, not of the
|
|
48
|
+
engineer: scaling the reduction by seniority (an earlier draft of this
|
|
49
|
+
model) made juniors come out *faster than seniors* on AI plans, which no
|
|
50
|
+
delivery data supports. With base-effort scaling, a senior with AI is always
|
|
51
|
+
at or below a junior with AI on the same task.
|
|
52
|
+
|
|
53
|
+
## 4. Verification overhead
|
|
54
|
+
|
|
55
|
+
Default `verificationPct` is **12%**, added on top of the blended AI-adjusted
|
|
56
|
+
hours. AI output is not free to trust: someone still reads the diff, runs
|
|
57
|
+
it, and checks it against the actual requirement. Skipping this line item
|
|
58
|
+
means the estimate only counts the time to generate code, not the time to
|
|
59
|
+
ship code — the two are not the same number.
|
|
60
|
+
|
|
61
|
+
## 5. Blanket-multiplier prohibition — hard rule
|
|
62
|
+
|
|
63
|
+
**Never apply a single AI speedup percentage to a whole project or a whole
|
|
64
|
+
feature.** Assign category and speedup per task, and let the formula roll
|
|
65
|
+
totals up from there.
|
|
66
|
+
|
|
67
|
+
The reason: a project that is 70% faster on its CRUD tasks is not 70% faster
|
|
68
|
+
overall. The CRUD tasks might be 20% of total hours; the other 80% is
|
|
69
|
+
`logic` and `novel` work where AI barely moves the needle. Blending at the
|
|
70
|
+
project level erases that mix and produces a number nobody can defend.
|
|
71
|
+
|
|
72
|
+
## Claude Code plan pricing (checked 2026-08, update on renewal)
|
|
73
|
+
|
|
74
|
+
| Plan | USD/seat/month | Constant |
|
|
75
|
+
| --- | --- | --- |
|
|
76
|
+
| none | 0 | PLAN_PRICES.none |
|
|
77
|
+
| Max 5x | 100 | PLAN_PRICES.max5x |
|
|
78
|
+
| Max 20x | 200 | PLAN_PRICES.max20x |
|
|
79
|
+
|
|
80
|
+
Prices are a manually maintained snapshot. When they change, update BOTH this
|
|
81
|
+
table and PLAN_PRICES in scripts/lib/estimate-math.mjs in the same commit.
|
|
82
|
+
|
|
83
|
+
## Sources
|
|
84
|
+
|
|
85
|
+
- Formula `(AO + 2×AR + TR) / 4`, per-category reduction ranges, and the
|
|
86
|
+
non-uniform-acceleration warning — Kmino, *Software Estimation with AI*
|
|
87
|
+
(kmino.io/blog/software-estimation-with-ai). Published practitioner
|
|
88
|
+
observations, not peer-reviewed data. Kmino also varies AI gains by
|
|
89
|
+
seniority; this skill departs from that and scales base effort instead
|
|
90
|
+
(see §3 for why).
|
|
91
|
+
- Blanket-multiplier prohibition — Kmino's caveat, promoted to hard rule here.
|
|
92
|
+
- Capacity and calibration constants (`HOURS_PER_MONTH`, `COORDINATION_TAX`,
|
|
93
|
+
seniority factors, 12% verification overhead) — this skill's own defaults,
|
|
94
|
+
not sourced; tune against real delivery history.
|
|
95
|
+
- Plan prices — manual snapshot, see the dated table above.
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# Interview — evidence first, depth, gate, question sequence
|
|
2
|
+
|
|
3
|
+
Read during the interview phase (SKILL.md step 2). Defines what to pre-fill
|
|
4
|
+
before asking, what order to ask in, and the gate that stands between a scope
|
|
5
|
+
guess and a sized number.
|
|
6
|
+
|
|
7
|
+
## 1. Evidence detection table
|
|
8
|
+
|
|
9
|
+
Scan for evidence before asking anything. Each source pre-fills specific
|
|
10
|
+
fields and stamps them with a provenance label — carry that label straight
|
|
11
|
+
into `estimation-inputs.json`, never upgrade it on your own judgment.
|
|
12
|
+
|
|
13
|
+
| Source | Pre-fills | Provenance label |
|
|
14
|
+
| --- | --- | --- |
|
|
15
|
+
| Requirements doc / RFP / backlog | feature list, scope text, named deadlines | `stated` |
|
|
16
|
+
| `ARCHITECTURE.md` (companion mode) | tech stack, existing components, integration points | `stated` |
|
|
17
|
+
| Codebase scan (brownfield, no docs) | languages, frameworks, existing test coverage, rough size of touched areas | `observed` |
|
|
18
|
+
| None found (greenfield, no docs, no code) | nothing — every field starts as a hole | — |
|
|
19
|
+
|
|
20
|
+
Show the pre-filled scope table, with its provenance column, **before**
|
|
21
|
+
asking a single question. Then ask only the holes the scan left open — never
|
|
22
|
+
re-ask what a document already stated or a scan already observed. A hole the
|
|
23
|
+
user declines to answer is filled with the skill's best guess and labeled
|
|
24
|
+
`proposed`, never silently upgraded to `stated`.
|
|
25
|
+
|
|
26
|
+
## 2. Depth question — ask first
|
|
27
|
+
|
|
28
|
+
Depth sizes every question that follows it, so it is the first thing asked,
|
|
29
|
+
before scope confirmation and before any factor scoring.
|
|
30
|
+
|
|
31
|
+
| Depth | What it drives | Precision |
|
|
32
|
+
| --- | --- | --- |
|
|
33
|
+
| QUICK | feature-level factor-scored tiering only | ±wide |
|
|
34
|
+
| STANDARD | task-level three-point PERT | ± moderate |
|
|
35
|
+
| DEEP | STANDARD plus per-scenario detail (multiple team/plan combinations sized individually) | ± narrower |
|
|
36
|
+
|
|
37
|
+
## 3. Clear-vs-assumed gate
|
|
38
|
+
|
|
39
|
+
Before any sizing happens, present two lists side by side:
|
|
40
|
+
|
|
41
|
+
- **confirmed scope** — what the evidence stated or the user confirmed.
|
|
42
|
+
- **assumptions I'm making** — every gap filled by a guess, each one paired
|
|
43
|
+
with its impact-if-wrong (what changes, and by how much, if the guess is
|
|
44
|
+
wrong).
|
|
45
|
+
|
|
46
|
+
The user corrects this pair of lists before sizing starts. Every assumption
|
|
47
|
+
here transfers verbatim into the `assumptions` array of
|
|
48
|
+
`estimation-inputs.json` and, from there, into the deliverable's Assumptions
|
|
49
|
+
table — do not paraphrase it between the gate and the file.
|
|
50
|
+
|
|
51
|
+
## 4. Question sequence
|
|
52
|
+
|
|
53
|
+
Ask one thing at a time, in this order:
|
|
54
|
+
|
|
55
|
+
1. **Scope confirm** — walk the clear-vs-assumed gate; get sign-off or
|
|
56
|
+
corrections.
|
|
57
|
+
2. **Milestone grouping** (STANDARD/DEEP only) — propose a grouping of the
|
|
58
|
+
confirmed features into ordered milestones ("M1 - <name>", "M2 - …");
|
|
59
|
+
the user confirms, reorders, or declines. Declining skips the roadmap
|
|
60
|
+
entirely (the `milestone` field stays off every feature). Ordering
|
|
61
|
+
provenance is `proposed` unless the client stated the order — then
|
|
62
|
+
`stated`, recorded in the deliverable's Roadmap section.
|
|
63
|
+
3. **Factor scores per feature** — five factors, each scored 1-5: tech
|
|
64
|
+
complexity, feature size, dependencies, uncertainty, risk. (STANDARD/DEEP
|
|
65
|
+
also want task-level O/M/P — see `techniques.md`.)
|
|
66
|
+
4. **Team options + rates + seniority mix** — how many engineers, what they
|
|
67
|
+
cost per hour, and whether each is junior/mid/senior.
|
|
68
|
+
5. **Claude plan availability** — none / Max 5x / Max 20x, per scenario.
|
|
69
|
+
6. **Deadline / constraints** — any hard date or budget ceiling.
|
|
70
|
+
7. **calibration table** — ask for the org's own tier → hour-band history; if
|
|
71
|
+
none exists, offer the defaults `S 20-60h, M 60-160h, L 160-400h`.
|
|
72
|
+
8. **Expose-rates-to-client** — y/n; controls whether the client-facing render
|
|
73
|
+
shows labor rates or only totals.
|
|
74
|
+
|
|
75
|
+
## 5. Loop rule
|
|
76
|
+
|
|
77
|
+
If answering a later question (factor scoring, team sizing, whatever)
|
|
78
|
+
surfaces a scope hole — a feature nobody named, a dependency nobody
|
|
79
|
+
mentioned — stop and go back to the clear-vs-assumed gate. Never absorb new
|
|
80
|
+
scope silently mid-sizing; the gate is the only place scope changes.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Slicing — vertical milestones before sizing
|
|
2
|
+
|
|
3
|
+
Read before proposing milestones (Flow step 3, or companion mode right after
|
|
4
|
+
seeding the WBS). Milestones are judgment, not computation: nothing in
|
|
5
|
+
`compute.mjs` can tell a good slice from a bad one, so the judgment happens
|
|
6
|
+
here, explicitly, before any number is attached.
|
|
7
|
+
|
|
8
|
+
## The rules
|
|
9
|
+
|
|
10
|
+
1. **Walking skeleton first.** M1 is the thinnest end-to-end path through the
|
|
11
|
+
architecture — deploy pipeline included. A demo that pushes one record
|
|
12
|
+
through real infrastructure beats a finished layer nobody can click.
|
|
13
|
+
2. **Every milestone demos user-visible value.** A milestone whose features
|
|
14
|
+
touch no user-visible component is a horizontal slice — rework it. "All
|
|
15
|
+
schema, then all API, then all UI" is the failure mode, not a plan.
|
|
16
|
+
3. **Sequence from dependency direction.** The architecture doc's §5/§6 edges
|
|
17
|
+
decide order: if pricing reads what the ledger records, ledger work
|
|
18
|
+
precedes pricing work. Never invent an order the diagrams contradict.
|
|
19
|
+
4. **Balance the slices.** A milestone above ~30% of total effort is a split
|
|
20
|
+
signal; roughly equal slices keep the roadmap's band widths meaningful.
|
|
21
|
+
5. **Client priority breaks ties.** When dependencies allow either order, the
|
|
22
|
+
product the client named first ships first.
|
|
23
|
+
|
|
24
|
+
The component roster makes rule 2 checkable by eye: tag features against the
|
|
25
|
+
roster (two levels max, container → component) and scan each milestone's
|
|
26
|
+
features for at least one user-visible component.
|
|
27
|
+
|
|
28
|
+
## Splitting a too-fat milestone
|
|
29
|
+
|
|
30
|
+
Patterns, in the order to try them (digest of the Humanizing Work guide —
|
|
31
|
+
see Sources):
|
|
32
|
+
|
|
33
|
+
- **Workflow steps** — ship the simple end-to-end case; add middle steps later.
|
|
34
|
+
- **Operations** — split "manage X" into create / read / update / delete.
|
|
35
|
+
- **Business-rule variations** — one rule per slice.
|
|
36
|
+
- **Data variations** — one data shape per slice; defer exotic formats.
|
|
37
|
+
- **Data-entry methods** — simplest interface first, rich UI later.
|
|
38
|
+
- **Major effort** — pull shared infrastructure into the slice that needs it
|
|
39
|
+
first; later slices lean on it.
|
|
40
|
+
- **Simple/complex** — extract the minimal version; defer edge cases.
|
|
41
|
+
- **Defer performance** — make it work in one slice, fast in another.
|
|
42
|
+
- **Spike** — when uncertainty blocks slicing, time-box an investigation
|
|
43
|
+
feature and size only the spike.
|
|
44
|
+
|
|
45
|
+
Meta-pattern: find the core complexity, name its variations, cut one complete
|
|
46
|
+
slice through the complex part.
|
|
47
|
+
|
|
48
|
+
## Sources
|
|
49
|
+
|
|
50
|
+
Attribution + link, never quoted text:
|
|
51
|
+
|
|
52
|
+
- Story-splitting patterns — Humanizing Work,
|
|
53
|
+
humanizingwork.com/the-humanizing-work-guide-to-splitting-user-stories.
|
|
54
|
+
- Dependency-graph-then-vertical-slice process — Addy Osmani,
|
|
55
|
+
planning-and-task-breakdown skill, github.com/addyosmani/agent-skills.
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# Techniques — which method fits which evidence, and how to run each
|
|
2
|
+
|
|
3
|
+
Read when choosing a sizing technique and again while eliciting numbers for
|
|
4
|
+
it. Defines the decision table that picks a technique from evidence quality,
|
|
5
|
+
then the mechanics of each named technique.
|
|
6
|
+
|
|
7
|
+
## 1. Decision table
|
|
8
|
+
|
|
9
|
+
| Evidence quality | Recommended technique | Precision |
|
|
10
|
+
| --- | --- | --- |
|
|
11
|
+
| Vague RFP, no history | factor-scored tiering (5 factors) at feature level | ±100%, bands |
|
|
12
|
+
| Detailed backlog or ARCHITECTURE.md | task-level three-point PERT | ±50% |
|
|
13
|
+
| Backlog + codebase + calibration data | PERT + analogy cross-check; flag divergence >30% | ±25% |
|
|
14
|
+
| Change request on a known repo | analogy to similar past change + code-scan sizing | ±25% |
|
|
15
|
+
|
|
16
|
+
The skill states its recommended technique and the reason it picked that row
|
|
17
|
+
(evidence quality observed during the interview), then lets the user confirm
|
|
18
|
+
or override before any numbers are elicited.
|
|
19
|
+
|
|
20
|
+
## 2. Factor-scored tiering
|
|
21
|
+
|
|
22
|
+
Used for row 1 — a vague RFP with no delivery history, no task breakdown
|
|
23
|
+
yet. This is also the technique QUICK depth commits to. Score each feature
|
|
24
|
+
1-5 on five factors:
|
|
25
|
+
|
|
26
|
+
- tech complexity
|
|
27
|
+
- feature size
|
|
28
|
+
- dependencies
|
|
29
|
+
- uncertainty
|
|
30
|
+
- risk
|
|
31
|
+
|
|
32
|
+
Sum the five scores per feature. Tier breaks: ≤10 S / 11-17 M / ≥18 L.
|
|
33
|
+
|
|
34
|
+
A tier is not itself an hour figure. It is looked up against the
|
|
35
|
+
**calibration table** — the org's own historical tier → hour-band data if
|
|
36
|
+
supplied during the interview, or the defaults `S 20-60h, M 60-160h, L
|
|
37
|
+
160-400h` if not. The calibration table is what turns "this is an M" into a
|
|
38
|
+
number; never assign hours from the tier letter directly.
|
|
39
|
+
|
|
40
|
+
At QUICK depth this is the only technique in play, so the tier still has to
|
|
41
|
+
reach `compute.mjs` through the normal task-shaped path: for each feature,
|
|
42
|
+
write exactly one synthetic task whose `o`/`m`/`p` are the calibration
|
|
43
|
+
band's low/mid/high (mid = `(low + high) / 2`), tagged with whichever AI
|
|
44
|
+
category dominates the feature's expected work. The agent still does the
|
|
45
|
+
judgment — scoring the five factors, picking the tier, reading the
|
|
46
|
+
calibration table — the script only turns that one task's three numbers
|
|
47
|
+
into an hour figure, so rule 3 (agent judges, script computes) holds even
|
|
48
|
+
at the coarsest depth.
|
|
49
|
+
|
|
50
|
+
## 3. Three-point PERT
|
|
51
|
+
|
|
52
|
+
Used for row 2 — a detailed backlog or an existing `ARCHITECTURE.md` gives
|
|
53
|
+
enough to break work into tasks (STANDARD/DEEP depth). Alone, this is
|
|
54
|
+
±50% precision; combined with the analogy cross-check below (row 3, once
|
|
55
|
+
codebase evidence and a calibration table also exist), precision tightens
|
|
56
|
+
to ±25%. Elicit three numbers per task — optimistic (O), most-likely (M),
|
|
57
|
+
pessimistic (P) — and feed them to `pert()` in `estimate-math.mjs`, which
|
|
58
|
+
computes `(O + 4M + P) / 6`.
|
|
59
|
+
|
|
60
|
+
Elicitation guidance, asked in this order:
|
|
61
|
+
|
|
62
|
+
- **O (optimistic):** "if everything goes right — no surprises, no
|
|
63
|
+
rework — how many hours?"
|
|
64
|
+
- **M (most likely):** "realistically, accounting for the normal amount of
|
|
65
|
+
friction, how many hours?"
|
|
66
|
+
- **P (pessimistic):** "if the risks you can actually name land — not the
|
|
67
|
+
worst thing you can imagine, but a specific named risk (a dependency
|
|
68
|
+
slips, a library doesn't do what the docs say) — how many hours?"
|
|
69
|
+
|
|
70
|
+
P must anchor to a named risk, never to "worst imaginable." An unanchored P
|
|
71
|
+
inflates the buffer for no reason and erodes trust in the range.
|
|
72
|
+
|
|
73
|
+
## 4. Analogy cross-check
|
|
74
|
+
|
|
75
|
+
Two applications, both anchored to a comparable past delivered item:
|
|
76
|
+
|
|
77
|
+
- **Row 3 — cross-check on top of PERT.** Once backlog, codebase, and a
|
|
78
|
+
calibration table are all available, compare the PERT total for the
|
|
79
|
+
current scope against the actual hours the past item took (or its own
|
|
80
|
+
PERT total, if it was never closed out). If the two diverge by more than
|
|
81
|
+
30%, flag it and reconcile — either the current breakdown is missing
|
|
82
|
+
tasks the analogy remembers, or the analogy isn't as comparable as it
|
|
83
|
+
looked — before writing anything to `estimation-inputs.json`. Do not
|
|
84
|
+
average the two numbers away; the divergence itself is the useful signal.
|
|
85
|
+
- **Row 4 — standalone technique for a change request on a known repo.**
|
|
86
|
+
No fresh PERT elicitation: size the change by comparing it directly to a
|
|
87
|
+
similar past change on the same repo, then confirm that comparison with a
|
|
88
|
+
codebase scan (how many call sites, how many tests, how much of the
|
|
89
|
+
touched code is boilerplate vs logic vs novel). The same >30% divergence
|
|
90
|
+
flag-and-reconcile rule applies between the analogy's hours and the
|
|
91
|
+
code-scan's implied hours before the number ships.
|
|
92
|
+
|
|
93
|
+
## Sources
|
|
94
|
+
|
|
95
|
+
Cite these when stating a recommendation (step 4) — attribution + link only,
|
|
96
|
+
never quoted text:
|
|
97
|
+
|
|
98
|
+
- Three-point weighting `E = (O + 4M + P) / 6` and `σ = (P − O) / 6` — PERT
|
|
99
|
+
(US Navy Special Projects Office, 1958). Applied to software estimates per
|
|
100
|
+
Atomic Object, *Better Custom Software Estimates*
|
|
101
|
+
(atomicobject.com/client-resources/better-custom-software-estimates).
|
|
102
|
+
- Project buffer `√Σσ²`, range estimates, decomposition, discrete buckets,
|
|
103
|
+
risk = probability × impact, assumptions register — same Atomic Object
|
|
104
|
+
article.
|
|
105
|
+
- Factor-scored tiering — this team's own delivery practice (5-factor
|
|
106
|
+
spreadsheet); tier breaks calibrated to it.
|
|
107
|
+
- Depth tiers and per-row confidence ratings — Modular-Earth
|
|
108
|
+
solutions-architecture-agent, `skills/estimate/SKILL.md` (github.com).
|
|
109
|
+
- AI-adjusted sizing — Kmino, *Software Estimation with AI*
|
|
110
|
+
(kmino.io/blog/software-estimation-with-ai); details and constants in
|
|
111
|
+
`ai-multipliers.md` Sources.
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
# Writing — inputs shape, deliverable skeleton, contract, pipeline
|
|
2
|
+
|
|
3
|
+
Read while writing `estimation-inputs.json` and again while writing
|
|
4
|
+
`estimation.md`. Defines the inputs shape by pointing at the canonical
|
|
5
|
+
fixture, the two-part skeleton the deliverable must follow, the contract
|
|
6
|
+
rules the validator enforces against that skeleton, where the files live,
|
|
7
|
+
and the exact command sequence from computed numbers to a served page.
|
|
8
|
+
|
|
9
|
+
## 1. `estimation-inputs.json` shape
|
|
10
|
+
|
|
11
|
+
Do not re-derive the shape from prose — read
|
|
12
|
+
`scripts/test/fixtures/booking-inputs.json` and match it field for field:
|
|
13
|
+
top-level `project`, `technique`, `depth`, `calibration`, `overheadPct`,
|
|
14
|
+
`verificationPct`, `exposeRatesToClient`, `features` (each with `id`, `name`,
|
|
15
|
+
`provenance`, `tasks`), `risks`, `assumptions`, `scenarios`, and
|
|
16
|
+
`recommendedScenario`. Every task carries `id`, `name`, `category`, `o`,
|
|
17
|
+
`m`, `p`, `confidence`, `assumptions`, `provenance`. `schema.mjs` is the
|
|
18
|
+
enforced half of this contract (`checkInputs`) — this doc is the readable
|
|
19
|
+
half; if the two ever disagree, the code wins.
|
|
20
|
+
|
|
21
|
+
At `depth: QUICK`, each feature's `tasks` array holds exactly one synthetic
|
|
22
|
+
task carrying the tiering technique's calibration band as its `o`/`m`/`p`
|
|
23
|
+
(mid = the band's midpoint) — see `references/techniques.md` §2. That keeps
|
|
24
|
+
`schema.mjs`'s at-least-one-task rule and `compute.mjs`'s PERT path
|
|
25
|
+
unchanged; QUICK never bypasses the compute pipeline.
|
|
26
|
+
|
|
27
|
+
Features may each carry an optional `milestone` string (e.g. `"M1 - Booking
|
|
28
|
+
core"`). Milestones are all-or-nothing: if any feature has one, every feature
|
|
29
|
+
must, or `schema.mjs` refuses the inputs. Features sharing a label form one
|
|
30
|
+
milestone; label order of first appearance in `features` = delivery order.
|
|
31
|
+
|
|
32
|
+
Inputs may also carry a top-level `components` roster (each entry `id`,
|
|
33
|
+
`name`, optional `parent` naming a top-level entry — two levels max, C4
|
|
34
|
+
container → component — and optional `notEstimated: "<reason>"`). Components
|
|
35
|
+
are all-or-nothing like milestones: when the roster exists, every feature
|
|
36
|
+
carries a `component` that resolves to a roster id. Every leaf entry must be
|
|
37
|
+
covered by at least one feature or carry a `notEstimated` reason —
|
|
38
|
+
`schema.mjs` refuses an uncovered component, because a component in the
|
|
39
|
+
architecture with no planned work is a scope hole, not an omission to paper
|
|
40
|
+
over.
|
|
41
|
+
|
|
42
|
+
## 2. `estimation.md` — two-part skeleton
|
|
43
|
+
|
|
44
|
+
Mirror `scripts/test/fixtures/estimation-pass.md` exactly. Two top-level
|
|
45
|
+
sections, in this order:
|
|
46
|
+
|
|
47
|
+
```markdown
|
|
48
|
+
# <Project> — Estimation
|
|
49
|
+
|
|
50
|
+
## Summary
|
|
51
|
+
|
|
52
|
+
| Feature | Tier | Range (h) | src |
|
|
53
|
+
| --- | --- | --- | --- |
|
|
54
|
+
| <feature name> | S/M/L | <low>–<high> | stated|proposed |
|
|
55
|
+
|
|
56
|
+
Recommended delivery: <team + plan summary> — see detail.
|
|
57
|
+
|
|
58
|
+
| Line | Hours |
|
|
59
|
+
| --- | --- |
|
|
60
|
+
| Development | <hours> |
|
|
61
|
+
| Overhead (<pct>%) | <hours> |
|
|
62
|
+
| Risk buffer | <hours> |
|
|
63
|
+
| Estimate-spread buffer | <hours> |
|
|
64
|
+
|
|
65
|
+
### Roadmap
|
|
66
|
+
|
|
67
|
+
(only when features carry milestones — omit the heading entirely otherwise)
|
|
68
|
+
|
|
69
|
+
| Milestone | Features | Months (from start) |
|
|
70
|
+
| --- | --- | --- |
|
|
71
|
+
| <label> | <feature names> | <start>–<end> |
|
|
72
|
+
|
|
73
|
+
Sequential delivery by the recommended scenario team. Bands are relative
|
|
74
|
+
months, not calendar dates. Ordering: <stated|proposed>.
|
|
75
|
+
|
|
76
|
+
### Assumptions
|
|
77
|
+
|
|
78
|
+
| Assumption | Impact if wrong |
|
|
79
|
+
| --- | --- |
|
|
80
|
+
| <text> | <impactIfWrong> |
|
|
81
|
+
|
|
82
|
+
### Out of scope
|
|
83
|
+
|
|
84
|
+
- <explicitly excluded item>
|
|
85
|
+
|
|
86
|
+
## Estimation detail
|
|
87
|
+
|
|
88
|
+
Technique: <technique name> — <one line on why>.
|
|
89
|
+
|
|
90
|
+
| Task | Category | O/M/P | E (h) | Confidence | Assumptions | src |
|
|
91
|
+
| --- | --- | --- | --- | --- | --- | --- |
|
|
92
|
+
| <task name> | boilerplate|logic|novel | <o>/<m>/<p> | <e> | HIGH|MED|LOW | <text or "none"> | observed|stated|researched|proposed |
|
|
93
|
+
|
|
94
|
+
### Scenario comparison
|
|
95
|
+
|
|
96
|
+
| Scenario | Team | Plan | Months | Cost | Notes |
|
|
97
|
+
| --- | --- | --- | --- | --- | --- |
|
|
98
|
+
| <scenario id> | <team summary> | <plan> | <months> | <cost> | <"recommended" or "—"> |
|
|
99
|
+
|
|
100
|
+
### Calibration
|
|
101
|
+
|
|
102
|
+
Tier hour bands used: <bands> (state whether these are the org's own
|
|
103
|
+
history or the S 20-60h / M 60-160h / L 160-400h defaults).
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
## 3. Contract rules
|
|
107
|
+
|
|
108
|
+
These mirror `scripts/lib/checks.mjs` exactly — the validator enforces every
|
|
109
|
+
line below, so a doc that satisfies this list passes `validate.mjs` by
|
|
110
|
+
construction.
|
|
111
|
+
|
|
112
|
+
Structure:
|
|
113
|
+
|
|
114
|
+
1. `## Summary` and `## Estimation detail` headings must both exist.
|
|
115
|
+
2. Summary must contain an `### Out of scope` heading.
|
|
116
|
+
3. Summary must contain an `### Assumptions` heading whose table has at
|
|
117
|
+
least one row.
|
|
118
|
+
4. Summary must contain a line item matching `/buffer/i` (the buffer table
|
|
119
|
+
row above).
|
|
120
|
+
5. Estimation detail must contain a table with a `Scenario` column and at
|
|
121
|
+
least 2 rows.
|
|
122
|
+
6. Estimation detail must contain a line matching `/calibration/i`.
|
|
123
|
+
|
|
124
|
+
Row-level, on the task table (found by header, needs `Task`, `Confidence`,
|
|
125
|
+
`Assumptions`, `src` columns):
|
|
126
|
+
|
|
127
|
+
7. No cell is the bare string `0` — write **"not estimated"** instead of a
|
|
128
|
+
zero when a number genuinely isn't known yet.
|
|
129
|
+
8. `src` is one of `observed | stated | researched | proposed`.
|
|
130
|
+
9. `Confidence` is one of `HIGH | MED | LOW`.
|
|
131
|
+
10. `Assumptions` is never blank — write the literal **"none"** when there
|
|
132
|
+
are none.
|
|
133
|
+
|
|
134
|
+
Row-level, on the Summary's feature/tier table (the table with an `src`
|
|
135
|
+
column but no `Task` column):
|
|
136
|
+
|
|
137
|
+
11. `src` is `stated` or `proposed` only — this table is the clear-vs-assumed
|
|
138
|
+
split itself, so it does not carry the full four-word provenance
|
|
139
|
+
vocabulary.
|
|
140
|
+
|
|
141
|
+
JSON-side (checked against `estimation.json`, not the prose):
|
|
142
|
+
|
|
143
|
+
12. The `computed` block must equal a fresh recompute of `computed` from
|
|
144
|
+
`inputs` — never hand-edit numbers into the JSON after `compute.mjs` has
|
|
145
|
+
run.
|
|
146
|
+
13. Every feature's `low < hours < high` strictly (equal only in the
|
|
147
|
+
degenerate all-equal case) — a feature where that ordering breaks means
|
|
148
|
+
the PERT inputs for its tasks are inconsistent.
|
|
149
|
+
|
|
150
|
+
Roadmap (mirrors `checkRoadmap` in `scripts/lib/checks.mjs`):
|
|
151
|
+
|
|
152
|
+
14. Inputs carry milestones → Summary must contain a `### Roadmap` heading
|
|
153
|
+
with a table of at least one row; no milestones → the heading must be
|
|
154
|
+
absent.
|
|
155
|
+
15. The Roadmap section must contain a line matching `/not calendar dates/i`
|
|
156
|
+
— the bands claim sequence and rough size, never dates.
|
|
157
|
+
16. Band numbers come from
|
|
158
|
+
`computed.scenarios[recommendedScenario].roadmap` — covered by the
|
|
159
|
+
recompute rule 12, same as every other number.
|
|
160
|
+
|
|
161
|
+
## 4. File placement
|
|
162
|
+
|
|
163
|
+
Two modes:
|
|
164
|
+
|
|
165
|
+
- **Companion mode** — the project already has (or is getting)
|
|
166
|
+
`ARCHITECTURE.md` from the `analyze-requirements` skill. `estimation-inputs.json`,
|
|
167
|
+
`estimation.json`, and `estimation.md` live beside `ARCHITECTURE.md`.
|
|
168
|
+
Flip the `estimation` entry in `ARCHITECTURE.md`'s frontmatter
|
|
169
|
+
`electedDocs` to `elected: true` (dropping any `reason` that justified
|
|
170
|
+
leaving it un-elected) — see `analyze-requirements/references/writing.md` for the
|
|
171
|
+
`electedDocs` convention.
|
|
172
|
+
- **Standalone mode** — no `ARCHITECTURE.md`, or the user wants estimation
|
|
173
|
+
only. Files live under `docs/estimate/` at the project root instead.
|
|
174
|
+
|
|
175
|
+
## 5. Command sequence
|
|
176
|
+
|
|
177
|
+
Run from the skill's own directory (`plugins/solution-architect/skills/estimate/`).
|
|
178
|
+
`<dir>` is the placement chosen in §4 — the companion location or
|
|
179
|
+
`docs/estimate/`.
|
|
180
|
+
|
|
181
|
+
```
|
|
182
|
+
node scripts/compute.mjs --inputs <dir>/estimation-inputs.json --out <dir>/estimation.json
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
Write `<dir>/estimation.md` by hand, following the §2 skeleton, then:
|
|
186
|
+
|
|
187
|
+
```
|
|
188
|
+
node scripts/validate.mjs --md <dir>/estimation.md --json <dir>/estimation.json
|
|
189
|
+
node scripts/render.mjs --json <dir>/estimation.json --md <dir>/estimation.md --out <dir>/dist/
|
|
190
|
+
node ../analyze-requirements/scripts/serve.mjs <dir>/
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
`<dir>/dist/` is the one rendered-pages folder — the analyze-requirements viewer
|
|
194
|
+
renders into it too. When a rendered viewer exists, add `--viewer index.html`:
|
|
195
|
+
index.html and estimate.html then ship as one self-contained folder, and the
|
|
196
|
+
viewer's estimation tab links the copy inside it (it falls back to an
|
|
197
|
+
estimate.html beside estimation.md).
|
|
198
|
+
|
|
199
|
+
`render.mjs` runs the same `checkDeliverables` validation `validate.mjs`
|
|
200
|
+
runs and **refuses to write `estimate.html` on any finding** — running
|
|
201
|
+
`validate.mjs` first is a convenience for a readable error, not a separate
|
|
202
|
+
gate `render.mjs` trusts you to have passed.
|
|
203
|
+
|
|
204
|
+
## 6. The one rule that matters most
|
|
205
|
+
|
|
206
|
+
**Never write a number into `estimation.md` that is not present in
|
|
207
|
+
`estimation.json`.** Every hour, every cost, every tier band in the prose
|
|
208
|
+
must trace to a field `compute.mjs` produced. If a number you want to write
|
|
209
|
+
doesn't exist in the JSON yet, that means `estimation-inputs.json` is
|
|
210
|
+
missing something — fix the inputs and recompute, don't hand-calculate a
|
|
211
|
+
number to fill the gap.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { readFileSync, writeFileSync, mkdirSync } from 'node:fs';
|
|
2
|
+
import { dirname } from 'node:path';
|
|
3
|
+
import { checkInputs } from './lib/schema.mjs';
|
|
4
|
+
import { computeEstimation } from './lib/rollup.mjs';
|
|
5
|
+
|
|
6
|
+
function parseArgs(argv) {
|
|
7
|
+
const args = {};
|
|
8
|
+
for (let i = 0; i < argv.length; i += 1) {
|
|
9
|
+
if (argv[i].startsWith('--')) args[argv[i].slice(2)] = argv[++i];
|
|
10
|
+
}
|
|
11
|
+
return args;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const args = parseArgs(process.argv.slice(2));
|
|
15
|
+
const inputs = JSON.parse(readFileSync(args.inputs, 'utf8'));
|
|
16
|
+
const findings = checkInputs(inputs);
|
|
17
|
+
if (findings.length) {
|
|
18
|
+
console.error(findings.join('\n'));
|
|
19
|
+
process.exit(1);
|
|
20
|
+
}
|
|
21
|
+
mkdirSync(dirname(args.out), { recursive: true });
|
|
22
|
+
writeFileSync(args.out, `${JSON.stringify(computeEstimation(inputs), null, 2)}\n`);
|
|
23
|
+
console.log(args.out);
|