@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,53 @@
|
|
|
1
|
+
# Interview — question bank, card batching, skip rules
|
|
2
|
+
|
|
3
|
+
Read during the interview phase (SKILL.md step 3). Defines what may be asked, in
|
|
4
|
+
what shape, and when to stay silent instead.
|
|
5
|
+
|
|
6
|
+
## Hard rules
|
|
7
|
+
|
|
8
|
+
1. Adaptive, hard cap **12 questions total** per run — never more, in either mode.
|
|
9
|
+
2. Delivered via `AskUserQuestion` cards, **≤4 options per card**.
|
|
10
|
+
3. Never ask what the scan already observed or research already answered — skip
|
|
11
|
+
on sight; don't ask a question only to discard the answer.
|
|
12
|
+
4. Every answer is recorded with provenance `stated` — including confirmations
|
|
13
|
+
of a detected default.
|
|
14
|
+
5. Domain questions (terms, actors, processes, rules) are asked **while the
|
|
15
|
+
mattpocock `domain-modeling` skill is invoked**, so resolved terms land in
|
|
16
|
+
`CONTEXT.md` inline — never batched for later.
|
|
17
|
+
|
|
18
|
+
## Question bank
|
|
19
|
+
|
|
20
|
+
| spine section | question | mode | skip when |
|
|
21
|
+
|---|---|---|---|
|
|
22
|
+
| §1 Goals & Scope | What is the primary goal of this system, and who are its intended users? | both | an existing README/pitch doc/ARCHITECTURE.md already states it |
|
|
23
|
+
| §2 Constraints | What constraints must the architecture respect — budget, compliance regime, timeline, mandated tech or vendor? | both | constraints are already documented (compliance docs, existing ADRs, a constraints file the scan found) |
|
|
24
|
+
| §13 Quality Requirements & SLOs | Which single quality attribute matters most for this system, and what is its measurable target (e.g. p99 latency < 200ms)? | both | never — this cannot be observed or researched |
|
|
25
|
+
| §13 Quality Requirements & SLOs | What availability target must this system meet (e.g. 99.9%, 99.99%)? | both | never — this cannot be observed or researched |
|
|
26
|
+
| §13 Quality Requirements & SLOs | What is the worst tolerable loss if this system fails — data loss window (RPO) or downtime (RTO)? | both | never — this cannot be observed or researched |
|
|
27
|
+
| CONTEXT.md (terms) | What are the key domain terms in this system, and how do you define each precisely? | greenfield or thin CONTEXT.md | `CONTEXT.md` already has 5 or more resolved terms |
|
|
28
|
+
| DOMAIN-OVERVIEW.md (actors) | Who are the actors/personas that interact with or are affected by this system? | greenfield or thin CONTEXT.md | same as above, or the project is not domain-heavy |
|
|
29
|
+
| DOMAIN-OVERVIEW.md (processes) | What are the key business processes, described as actor-level steps? | greenfield or thin CONTEXT.md | same as above |
|
|
30
|
+
| DOMAIN-OVERVIEW.md (rules) | What business rules must hold, and which component enforces each? | greenfield or thin CONTEXT.md | same as above |
|
|
31
|
+
| frontmatter `projectType` | Detected project type is `<type>` — confirm or correct? | both | detector confidence is high (unambiguous signal match — see `project-types.md`) |
|
|
32
|
+
| §10 Deployment & Infrastructure | What is the target deployment environment (cloud/on-prem, region, orchestration)? | greenfield | brownfield (observed from existing deployment config/CI) |
|
|
33
|
+
| frontmatter `team` | Which team or individual owns this system going forward? | both | already documented (CODEOWNERS, README, org chart) |
|
|
34
|
+
|
|
35
|
+
## Card batching
|
|
36
|
+
|
|
37
|
+
- Group cards by spine section — one `AskUserQuestion` call per section, not
|
|
38
|
+
one call per question.
|
|
39
|
+
- **Max 3 cards per call.**
|
|
40
|
+
- Within a card, the recommended option is listed first and labeled
|
|
41
|
+
`(Recommended)`.
|
|
42
|
+
|
|
43
|
+
## Honest absence
|
|
44
|
+
|
|
45
|
+
An unanswered or declined question is never invented and never silently
|
|
46
|
+
dropped. It renders wherever the answer would otherwise have landed — a table
|
|
47
|
+
cell, a prose line, a frontmatter field — as:
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
Not provided — <who declined/why>
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Provenance: `stated`.
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
# LikeC4 — conventions (thin by design)
|
|
2
|
+
|
|
3
|
+
Read whenever writing or reviewing a `.c4` model file, or generating a view
|
|
4
|
+
for the viewer. This file does not teach LikeC4's DSL — it only records the
|
|
5
|
+
conventions analyze-requirements layers on top of it.
|
|
6
|
+
|
|
7
|
+
## 1. First rule: DSL syntax lives elsewhere
|
|
8
|
+
|
|
9
|
+
Before writing any LikeC4 syntax — element declarations, relationships,
|
|
10
|
+
views, deployment nodes — fetch and follow LikeC4's own skill:
|
|
11
|
+
`github.com/likec4/likec4` → `skills/likec4-dsl/SKILL.md`. That skill is the
|
|
12
|
+
single source for DSL questions (grammar, view predicates, styling,
|
|
13
|
+
`include`/`exclude` rules, everything). This file adds only what LikeC4's
|
|
14
|
+
skill does not know: analyze-requirements' own naming and structure conventions.
|
|
15
|
+
|
|
16
|
+
## 2. Our conventions
|
|
17
|
+
|
|
18
|
+
- **Model files**: `docs/architecture/model/*.c4` — one directory, LikeC4
|
|
19
|
+
reads every `.c4` file in it as one model.
|
|
20
|
+
- **Element kinds**: `person` / `system` / `container` / `component`, plus
|
|
21
|
+
the `#external` tag on any `system` outside the documented boundary
|
|
22
|
+
(third-party services, external teams' systems).
|
|
23
|
+
- **Declare the tag before you use it.** `tag external` must appear inside
|
|
24
|
+
`specification { }` *before* any element references `#external` —
|
|
25
|
+
otherwise LikeC4 v1.59.2 drops the tag **silently**: the model still
|
|
26
|
+
exports without error, but the element loses its `external` kind, and the
|
|
27
|
+
Table ↔ model agreement validator check (spec §8) will flag it as missing
|
|
28
|
+
from the §9 External Integrations table even though the row is there.
|
|
29
|
+
There is no error message pointing at this — it just fails quietly
|
|
30
|
+
downstream. Correct order, from the committed fixture
|
|
31
|
+
(`scripts/test/fixtures/sample.c4`):
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
specification {
|
|
35
|
+
element person
|
|
36
|
+
element system
|
|
37
|
+
element container
|
|
38
|
+
deploymentNode node
|
|
39
|
+
tag external
|
|
40
|
+
}
|
|
41
|
+
model {
|
|
42
|
+
stripe = system 'Stripe' {
|
|
43
|
+
#external
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
- **Declare no colours at all. The plugin owns the palette.**
|
|
49
|
+
|
|
50
|
+
This used to say the opposite — write `color brand #0f766e` into
|
|
51
|
+
`specification { }` and style each element kind with it. That instruction was
|
|
52
|
+
wrong twice over, and the second way is why a real set shipped blue.
|
|
53
|
+
|
|
54
|
+
| Problem | Detail |
|
|
55
|
+
|---|---|
|
|
56
|
+
| it does not parse | `color muted #475569` is rejected. `muted` is a **reserved built-in** (`primary`, `secondary`, `muted`, `amber`, `gray`, `green`, `indigo`, `red`), and a built-in cannot be redefined in `specification` |
|
|
57
|
+
| it is prose enforcing an invariant | a model that simply omits the palette is **valid**, generates clean, exits 0 — and paints every node LikeC4's default blue beside teal mermaid diagrams. Nothing in the pipeline noticed. That is exactly what happened to the EOS set |
|
|
58
|
+
|
|
59
|
+
The palette now comes from a project config the plugin writes, not from the
|
|
60
|
+
model. Run before `gen webcomponent`:
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
node scripts/likec4-config.mjs --out <dir holding the .c4 sources>
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
It writes `likec4.config.json` from `assets/mermaid-theme.json`'s `likec4`
|
|
67
|
+
block — the single palette both renderers are cut from — overriding the
|
|
68
|
+
built-in colour names so output lands in-palette **however the model is
|
|
69
|
+
written**:
|
|
70
|
+
|
|
71
|
+
```json
|
|
72
|
+
{ "styles": {
|
|
73
|
+
"theme": { "colors": {
|
|
74
|
+
"primary": "#0f766e", "secondary": "#475569",
|
|
75
|
+
"muted": "#475569", "gray": "#475569" } },
|
|
76
|
+
"defaults": { "color": "primary" } } }
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
LikeC4 reads the config from the folder holding the `.c4` sources. The skill
|
|
80
|
+
generates that folder, so the target repo stays markdown-only.
|
|
81
|
+
|
|
82
|
+
Overriding the **built-in names** rather than adding a custom one is
|
|
83
|
+
deliberate: a custom name applies only where something references it, and
|
|
84
|
+
`styles.defaults.color` reaches only elements that declare no colour of their
|
|
85
|
+
own — LikeC4's precedence is kind spec → element → view, and each of those
|
|
86
|
+
beats a default.
|
|
87
|
+
|
|
88
|
+
One hex per colour is all there is to give. LikeC4 derives stroke, both
|
|
89
|
+
contrast shades, the relationship line and label colours, **and the entire
|
|
90
|
+
dark rendering** from that single value — verified against 1.59.2, where
|
|
91
|
+
`#0f766e` yields stroke `#00524b` and hiContrast `#c7ffff`, the values
|
|
92
|
+
`mermaid-theme.json` already records. Writing those out would be restating
|
|
93
|
+
derived numbers as if they were ours.
|
|
94
|
+
|
|
95
|
+
The derivations mermaid has to copy are recorded under `likec4.light` and
|
|
96
|
+
`likec4.dark` — compound group fill/stroke/title and the relation label chip,
|
|
97
|
+
each sampled pixel-for-pixel off a real render in that mode, because LikeC4
|
|
98
|
+
publishes no table of them. Change `brand` and those samples are stale: re-run
|
|
99
|
+
`gen webcomponent`, screenshot both modes, and re-measure
|
|
100
|
+
(`viewer.md` §2 lists the mermaid variables they feed).
|
|
101
|
+
|
|
102
|
+
**This bakes in at generate time**, not at view time. A viewer-side CSS
|
|
103
|
+
override does not work: `--likec4-palette-fill` set on `c4-view` reaches the
|
|
104
|
+
host and is then re-declared closer to the node inside the shadow root, so
|
|
105
|
+
the nodes keep whatever the bundle baked in.
|
|
106
|
+
|
|
107
|
+
`render.mjs` refuses a bundle whose theme palette is missing or off — see
|
|
108
|
+
`viewer.md` §1 step 1. It reads the **resolved node colour**, not a hex grep: a
|
|
109
|
+
model declaring its own colour leaves the brand hex sitting in the bundle's
|
|
110
|
+
colour registry, defined and never painted, so a grep passes on an all-blue
|
|
111
|
+
bundle.
|
|
112
|
+
|
|
113
|
+
- **Every container must appear in an `instanceOf`** somewhere under
|
|
114
|
+
`deployment { }`. A logical container with no deployment-node instance is
|
|
115
|
+
a validator failure (`scripts/lib/validate-deployment.mjs`: "container
|
|
116
|
+
... has no instanceOf in any deployment node") — it means the container
|
|
117
|
+
was modeled but never placed anywhere real.
|
|
118
|
+
- **View names** are fixed, not free text:
|
|
119
|
+
- `index` — C1 context view (the whole system + external actors/systems).
|
|
120
|
+
- `containers` — C2 container view.
|
|
121
|
+
- `components-<container>` — one C3 view per container that has
|
|
122
|
+
components, `<container>` being that container's element id.
|
|
123
|
+
- **Dynamic views** (runtime flows, §7 Runtime Behaviour) are named
|
|
124
|
+
`flow-<slug>`, one per named flow only — never an unnamed or generic
|
|
125
|
+
"flow1". Keep to 2–4 flows total; a flow worth diagramming is a flow worth
|
|
126
|
+
naming.
|
|
127
|
+
- **Deployment view** is always named `deployment` — one view, not one per
|
|
128
|
+
environment (per-environment differences belong in §10's table, not a
|
|
129
|
+
second view).
|
|
130
|
+
|
|
131
|
+
## 3. Generation commands
|
|
132
|
+
|
|
133
|
+
Two separate LikeC4 invocations, different outputs, different consumers:
|
|
134
|
+
|
|
135
|
+
| Command | Output | Consumer |
|
|
136
|
+
|---|---|---|
|
|
137
|
+
| `node scripts/likec4-export.mjs --dir <dir> --out <out>` | model JSON | the validator (`scripts/lib/likec4-extract.mjs` reads it) |
|
|
138
|
+
| `node scripts/likec4-gen.mjs --dir <dir> --out <bundle>` | webcomponent bundle | the viewer (`viewer.md`) |
|
|
139
|
+
|
|
140
|
+
The bundle is generated through the wrapper rather than by calling
|
|
141
|
+
`npx likec4 gen webcomponent` directly, because `gen` validates nothing: it
|
|
142
|
+
produced a 2.2 MB bundle from a workspace carrying 194 validation errors,
|
|
143
|
+
silently, exit 0. The wrapper checks the palette config is present, runs
|
|
144
|
+
`likec4 validate`, and only then generates — and it supplies
|
|
145
|
+
`--webcomponent-prefix c4`, which is **mandatory**. That flag pins the
|
|
146
|
+
generated custom-element tag to `<c4-view>`, which is what the viewer template
|
|
147
|
+
and renderer expect. Omit it and LikeC4 falls back to its own default prefix,
|
|
148
|
+
emitting `<likec4-view>` instead — the template's markers never match, and
|
|
149
|
+
every diagram renders blank with no error.
|
|
150
|
+
|
|
151
|
+
`export json` goes through its own wrapper for a different reason: the palette
|
|
152
|
+
config names the project `arch-docs`, so the workspace holds **two** projects
|
|
153
|
+
(`arch-docs` + `default`) and a bare `npx likec4 export json` emits an array of
|
|
154
|
+
project objects — a shape `likec4-extract.mjs` cannot read. The wrapper pins
|
|
155
|
+
`--project arch-docs` and refuses an export that does not parse to a single
|
|
156
|
+
object carrying `.elements`. It is still not a validation gate: a broken model
|
|
157
|
+
exports too, so run the bundle step first and let it fail there.
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Project Types — detection, elections, table variants
|
|
2
|
+
|
|
3
|
+
Read to detect project type (SKILL.md step 3) and to pick per-type companion
|
|
4
|
+
elections and table-column variants when writing (`writing.md`).
|
|
5
|
+
|
|
6
|
+
## Detection
|
|
7
|
+
|
|
8
|
+
| type | signals |
|
|
9
|
+
|---|---|
|
|
10
|
+
| web/SaaS | `package.json` + an HTTP framework dependency (Express, Fastify, Next.js, Rails, Django...) |
|
|
11
|
+
| AI/LLM app | model configs, a `prompts/` directory, or a vector-store dependency (pgvector, Pinecone, Chroma...) |
|
|
12
|
+
| ML/data pipeline | `dvc`, `airflow`, or `dbt` present (config or dependency) |
|
|
13
|
+
| mobile | Gradle build files plus Swift or Kotlin source directories |
|
|
14
|
+
| CLI/library | a `bin` entry with no server-framework dependency |
|
|
15
|
+
| embedded/IoT | PlatformIO, Zephyr, or another firmware toolchain config |
|
|
16
|
+
|
|
17
|
+
Confidence is high when exactly one row's signals match. Otherwise ask the
|
|
18
|
+
project-type confirmation question (`interview.md`).
|
|
19
|
+
|
|
20
|
+
## Election matrix
|
|
21
|
+
|
|
22
|
+
Copied verbatim from the design spec (§3.2 Companion documents):
|
|
23
|
+
|
|
24
|
+
| Companion | Elected when | Per-type variant |
|
|
25
|
+
|---|---|---|
|
|
26
|
+
| threat-model.md | non-trivial attack surface | STRIDE · OWASP LLM Top 10 2025 · data lineage/PII · device+transport · physical+firmware |
|
|
27
|
+
| interface contract | system exposes/consumes interfaces | OpenAPI · +tool schemas · data contracts +model card +datasheet · wire protocol · public API surface |
|
|
28
|
+
| estimation.md | user wants effort estimates | produced by the `estimate` skill, never hand-written here |
|
|
29
|
+
| DOMAIN-OVERVIEW.md | domain-heavy project (fintech, health, logistics…) | — |
|
|
30
|
+
|
|
31
|
+
DOMAIN-OVERVIEW.md is never elected silently on a heuristic guess: the
|
|
32
|
+
interview's domain rows (`interview.md`) confirm domain-heaviness first.
|
|
33
|
+
estimation.md is elected only when the user asks for effort estimates — never
|
|
34
|
+
by default. When elected, do not write it here: invoke the sibling `estimate`
|
|
35
|
+
skill (its companion mode seeds the WBS from §6 and the risk register from
|
|
36
|
+
§15). Its pipeline computes and validates every number; a hand-written
|
|
37
|
+
estimation.md has neither, and the two are indistinguishable by filename.
|
|
38
|
+
An un-elected companion is still recorded in frontmatter `electedDocs`, with
|
|
39
|
+
the reason.
|
|
40
|
+
|
|
41
|
+
## Table-column variants (§6 / §8 / §9 / §10)
|
|
42
|
+
|
|
43
|
+
Base spine columns (defined in `writing.md`) apply to every type unless a row
|
|
44
|
+
below adds to or overrides them.
|
|
45
|
+
|
|
46
|
+
| type | §6 Core Components | §8 Data Stores | §9 External Integrations | §10 Deployment & Infrastructure |
|
|
47
|
+
|---|---|---|---|---|
|
|
48
|
+
| web/SaaS | no variant | no variant | no variant | no variant |
|
|
49
|
+
| AI/LLM app | no variant | no variant | no variant | no variant |
|
|
50
|
+
| ML/data pipeline | no variant | adds `lineage` column | no variant | no variant |
|
|
51
|
+
| mobile | adds `offline behaviour` column | no variant | no variant | no variant |
|
|
52
|
+
| CLI/library | no variant | no variant | no variant | renders `Not applicable — no deployment: distributed as a binary/package` |
|
|
53
|
+
| embedded/IoT | no variant | no variant | adds `wire protocol` column | no variant |
|
|
54
|
+
|
|
55
|
+
## Fixed spine
|
|
56
|
+
|
|
57
|
+
The 16 headings never change, regardless of project type. A section that does
|
|
58
|
+
not apply to this project renders exactly one line:
|
|
59
|
+
`Not applicable — <reason>`. Project type varies table columns (above) and
|
|
60
|
+
companion doc elections (above) only — never the heading list itself.
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Research — phase order, workflow invocation, provenance rules
|
|
2
|
+
|
|
3
|
+
Read during the research phase (SKILL.md step 4), after the interview and
|
|
4
|
+
before any writing starts. Defines the order research runs in, exactly how to
|
|
5
|
+
invoke `workflows/research.js`, and how provenance travels from its result
|
|
6
|
+
into ARCHITECTURE.md.
|
|
7
|
+
|
|
8
|
+
## 1. Phase order, and why
|
|
9
|
+
|
|
10
|
+
Domain → Stack → per-aspect Design, always in that order:
|
|
11
|
+
|
|
12
|
+
1. **Domain** — concepts, canonical vocabulary, comparable systems. Runs
|
|
13
|
+
first because bounded contexts constrain component boundaries: design
|
|
14
|
+
cannot be proposed before the domain that shapes it is known.
|
|
15
|
+
2. **Stack** — verify every stated tech claim; research integration facts
|
|
16
|
+
(auth, rate limits, cost) for gaps the interview or scan left open.
|
|
17
|
+
3. **Design** (greenfield only) — per-aspect proposals for components, data,
|
|
18
|
+
deployment, security, constrained by the Domain phase's findings.
|
|
19
|
+
|
|
20
|
+
**Brownfield skips phase 3 entirely** — the code scan already owns observed
|
|
21
|
+
design facts, so there is nothing to propose. Its Stack phase also narrows:
|
|
22
|
+
it fills only the gaps the scan could not observe, never re-deriving what
|
|
23
|
+
the scan already knows.
|
|
24
|
+
|
|
25
|
+
## 2. Invoking the workflow
|
|
26
|
+
|
|
27
|
+
Invoke `workflows/research.js` via the Workflow tool, passing the `args`
|
|
28
|
+
object below. The script runs its phases (skipping Design in brownfield mode
|
|
29
|
+
per §1) and returns a result object; nothing else calls the research agents.
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
args = {
|
|
33
|
+
mode: 'greenfield' | 'brownfield',
|
|
34
|
+
projectType: string,
|
|
35
|
+
domain: string,
|
|
36
|
+
statedFacts: [{ claim: string }],
|
|
37
|
+
gaps: string[],
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Where each field comes from:
|
|
42
|
+
|
|
43
|
+
| field | source |
|
|
44
|
+
|---|---|
|
|
45
|
+
| `mode` | mode detected in SKILL.md step 1 (target has code → `brownfield`) |
|
|
46
|
+
| `projectType` | detected or confirmed per `project-types.md` |
|
|
47
|
+
| `domain` | the interview's domain answer (brownfield: scan/README if not asked) |
|
|
48
|
+
| `statedFacts` | interview answers recorded provenance `stated` (`interview.md`) — each becomes `{ claim }`; the Stack phase attempts to verify each one |
|
|
49
|
+
| `gaps` | §9 External Integrations candidates the scan found no config for — an integration the code imports or calls but no env var, secret, or config key documents |
|
|
50
|
+
|
|
51
|
+
Return value: `{ domain, stack, aspects, dropped }` — `domain`, `stack`, and
|
|
52
|
+
`aspects` are fact arrays; `dropped` is the failure list (see §4).
|
|
53
|
+
|
|
54
|
+
## 3. Provenance rules
|
|
55
|
+
|
|
56
|
+
Verbatim — apply these exactly, do not paraphrase into something weaker:
|
|
57
|
+
|
|
58
|
+
> `researched` requires a source; an unverifiable stated claim **stays
|
|
59
|
+
> `stated`** — never upgraded; agent proposals are `proposed`; scan output
|
|
60
|
+
> is `observed`.
|
|
61
|
+
|
|
62
|
+
These are the only four provenance values that may ever appear in a table's
|
|
63
|
+
`src` column or a prose fact's inline tag (`writing.md` §3). A fact's
|
|
64
|
+
provenance never changes once assigned except by the rule above: `stated`
|
|
65
|
+
can be confirmed but is never silently promoted to `researched` just because
|
|
66
|
+
an agent looked at it and found nothing to contradict it.
|
|
67
|
+
|
|
68
|
+
## 4. The dropped-items contract
|
|
69
|
+
|
|
70
|
+
`result.dropped` is a list of `{ item, reason }` entries — one per research
|
|
71
|
+
job whose agent returned nothing. This is not an internal log to discard:
|
|
72
|
+
|
|
73
|
+
**Every entry in `result.dropped` must be surfaced to the user before
|
|
74
|
+
writing begins.** Present it plainly (what was attempted, why it came back
|
|
75
|
+
empty) so the user can decide to re-run it, supply the fact by hand, or
|
|
76
|
+
accept the resulting honest absence. Writing must never start on a research
|
|
77
|
+
result the user hasn't seen the gaps in — a thin result must never present
|
|
78
|
+
as complete.
|