spatial-views 0.1.0 → 0.2.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 +201 -19
- package/dist/app/assets/{abnfDiagram-S7VZAUFO-BVgtb0Hw.js → abnfDiagram-S7VZAUFO-CFbb_Sz2.js} +1 -1
- package/dist/app/assets/{architecture-WOLXFQ4H-DxylGHqT.js → architecture-WOLXFQ4H-CsBD__5a.js} +1 -1
- package/dist/app/assets/architectureDiagram-YGSQEFNW-C0ic4ib1.js +36 -0
- package/dist/app/assets/{blockDiagram-APKKGZFW-C7fb3MCE.js → blockDiagram-APKKGZFW-BZDPbzAG.js} +1 -1
- package/dist/app/assets/{c4Diagram-KJ2TOQU5-Bkb_0fbd.js → c4Diagram-KJ2TOQU5-BilBWuq5.js} +1 -1
- package/dist/app/assets/{chunk-6MUBBAK2-DU4vZ03M.js → chunk-6MUBBAK2-BBl-4tQr.js} +1 -1
- package/dist/app/assets/{chunk-AXFCVDMN-De96BVTB.js → chunk-AXFCVDMN-BhsttQ-k.js} +1 -1
- package/dist/app/assets/{chunk-BG4553SI-J33jsRLV.js → chunk-BG4553SI-mWcPcFZr.js} +2 -2
- package/dist/app/assets/{chunk-DQASFODM-Bh85SSGO.js → chunk-DQASFODM-7FKe2gLt.js} +1 -1
- package/dist/app/assets/{chunk-HFQBQIA3-CCklgplR.js → chunk-HFQBQIA3-nXrQ08BL.js} +1 -1
- package/dist/app/assets/{chunk-KQLB2F66-B04qR8ED.js → chunk-KQLB2F66-swukhFmZ.js} +1 -1
- package/dist/app/assets/{chunk-KS47KZWR-BsqDyyAt.js → chunk-KS47KZWR-DkDkwO82.js} +1 -1
- package/dist/app/assets/{chunk-LEVMRMFU-DwxrBz2u.js → chunk-LEVMRMFU-DXH6iXv3.js} +1 -1
- package/dist/app/assets/{chunk-M57EVK23-D9YIHjps.js → chunk-M57EVK23-B-kEyOJF.js} +1 -1
- package/dist/app/assets/{chunk-OY52VR5R-WB63DeTA.js → chunk-OY52VR5R-DweG7qYw.js} +1 -1
- package/dist/app/assets/{chunk-QB3YPZ4I-cHzzKdtb.js → chunk-QB3YPZ4I-DyozK3lV.js} +1 -1
- package/dist/app/assets/{chunk-R3KSYZAL-C7rDagaa.js → chunk-R3KSYZAL-BEXCUN6J.js} +1 -1
- package/dist/app/assets/{chunk-STOXU5M4-CG6pnJtH.js → chunk-STOXU5M4-BaTlty4O.js} +1 -1
- package/dist/app/assets/{chunk-TU62E6Q5-BbcGYfy_.js → chunk-TU62E6Q5-_rcUP1Fh.js} +1 -1
- package/dist/app/assets/chunk-X3CZISLH-NOpCnvgE.js +1 -0
- package/dist/app/assets/{chunk-X4PVCEUW-BUI1Oi3q.js → chunk-X4PVCEUW-DGxTL3kB.js} +1 -1
- package/dist/app/assets/{chunk-XXDRQBXY-DYhK5YW-.js → chunk-XXDRQBXY-C02Gpej2.js} +1 -1
- package/dist/app/assets/{classDiagram-v2-L25IHNXF-K-k5GTUn.js → classDiagram-v2-L25IHNXF-DLEBwpvk.js} +1 -1
- package/dist/app/assets/cose-bilkent-JH36ORCC-kNCXOm8k.js +1 -0
- package/dist/app/assets/cynefin-EF2NZ3EQ-6MWNLbuF.js +1 -0
- package/dist/app/assets/{cynefinDiagram-L36ESFBY-mkV33_Xx.js → cynefinDiagram-L36ESFBY-CLFstukD.js} +1 -1
- package/dist/app/assets/{d3-scale-ygdFCUH8.js → d3-scale-CaJQQYkF.js} +1 -1
- package/dist/app/assets/{dagre-SPEB5RXH-BNIymLsu.js → dagre-SPEB5RXH-BaSAny1T.js} +1 -1
- package/dist/app/assets/{diagram-3B7GL73J-CGOiolFW.js → diagram-3B7GL73J-DJNlt5Sg.js} +1 -1
- package/dist/app/assets/{diagram-DNEMPZML-DZFkHNly.js → diagram-DNEMPZML-DEHeuILB.js} +1 -1
- package/dist/app/assets/{diagram-L3MUGCDN-B42GAYLq.js → diagram-L3MUGCDN-ob5Ka2Xc.js} +1 -1
- package/dist/app/assets/{diagram-LA4NIPWU-BYuLRYId.js → diagram-LA4NIPWU-DNESzFAc.js} +1 -1
- package/dist/app/assets/{diagram-MHCOC4E2-DGzI6TJG.js → diagram-MHCOC4E2-CVi9zKjG.js} +1 -1
- package/dist/app/assets/{diagram-XPFHEONP-CTBEgDQ8.js → diagram-XPFHEONP-DInT4C7e.js} +1 -1
- package/dist/app/assets/dist-CjvHN74u.js +1 -0
- package/dist/app/assets/{ebnfDiagram-UZSYDL2S-GuMdOCvL.js → ebnfDiagram-UZSYDL2S-CRCZNsji.js} +1 -1
- package/dist/app/assets/{elk-XV6XMXQE-BpY3loT5.js → elk-XV6XMXQE-D4fsWI2l.js} +1 -1
- package/dist/app/assets/{erDiagram-EYBAPDEH-nDZ2PMGl.js → erDiagram-EYBAPDEH-YQNM5StV.js} +1 -1
- package/dist/app/assets/{eventmodeling-K75KTNOO-BN42Mgwh.js → eventmodeling-K75KTNOO-Bev08J2F.js} +1 -1
- package/dist/app/assets/flowDiagram-MALGAFMO-BhJ554DH.js +1 -0
- package/dist/app/assets/ganttDiagram-23REXITY-CkaBMYM4.js +292 -0
- package/dist/app/assets/gitGraph-VSP46ZUC-CtbZ0sIS.js +1 -0
- package/dist/app/assets/{gitGraphDiagram-STJD7YCW-CDkKLrvO.js → gitGraphDiagram-STJD7YCW-D15ZdQ-Z.js} +1 -1
- package/dist/app/assets/index-Bn6_wHEp.js +98 -0
- package/dist/app/assets/index-H-Z7MFhZ.css +1 -0
- package/dist/app/assets/info-OHQRW6UA-CfUW1XFR.js +1 -0
- package/dist/app/assets/{infoDiagram-KBXO4MBG-B92P8pjY.js → infoDiagram-KBXO4MBG-DT7LbBRQ.js} +1 -1
- package/dist/app/assets/{ishikawaDiagram-M35NCXHK-BRZsbCvK.js → ishikawaDiagram-M35NCXHK-CF51lhjB.js} +1 -1
- package/dist/app/assets/{journeyDiagram-OPLOXDXO-Bppwb1oF.js → journeyDiagram-OPLOXDXO-_36FonKk.js} +1 -1
- package/dist/app/assets/{kanban-definition-BZKZHSQY-ByD_x5cm.js → kanban-definition-BZKZHSQY-tLk_OlQ-.js} +1 -1
- package/dist/app/assets/{mermaid-parser.core-CKmnV0Md.js → mermaid-parser.core-_3Vo8x6b.js} +3 -3
- package/dist/app/assets/mermaid.core-y-x1CYxC.js +44 -0
- package/dist/app/assets/{mindmap-definition-I2QAS2VK-fRbUh23C.js → mindmap-definition-I2QAS2VK-BCI4HRX3.js} +1 -1
- package/dist/app/assets/packet-JDAUHWVQ-Cco3UoaI.js +1 -0
- package/dist/app/assets/{pegDiagram-FD4XPPHP-qIABf6H8.js → pegDiagram-FD4XPPHP-BOzSoNji.js} +1 -1
- package/dist/app/assets/pie-XZMESJXO-reOB2GXn.js +1 -0
- package/dist/app/assets/{pieDiagram-J4AKIIQI-Bb4RBdrc.js → pieDiagram-J4AKIIQI-PlHpwT_c.js} +1 -1
- package/dist/app/assets/{quadrantDiagram-XTYBLID2-B0CpcVWE.js → quadrantDiagram-XTYBLID2-CdxZ0ael.js} +1 -1
- package/dist/app/assets/radar-ABXABTNO-DfCl8uV2.js +1 -0
- package/dist/app/assets/railroad-I3PHUGI6-4s14UyW1.js +1 -0
- package/dist/app/assets/{railroad-abnf-LNEFI6M7-BUhw7Iuo.js → railroad-abnf-LNEFI6M7-C49jJE4Y.js} +1 -1
- package/dist/app/assets/{railroad-ebnf-DWYD2UWJ-nQNF56LJ.js → railroad-ebnf-DWYD2UWJ-Bx-pcPc7.js} +1 -1
- package/dist/app/assets/{railroad-peg-JR7BVNR7-CwvbVIo6.js → railroad-peg-JR7BVNR7-DjBPSCKV.js} +1 -1
- package/dist/app/assets/{railroadDiagram-MRQ6NCDL-Dwr-mPZL.js → railroadDiagram-MRQ6NCDL-wGcmIMqq.js} +1 -1
- package/dist/app/assets/{requirementDiagram-Y7LWUY3S-Ctv2DKJM.js → requirementDiagram-Y7LWUY3S-DprFI03z.js} +1 -1
- package/dist/app/assets/rolldown-runtime-XKyaHtl9.js +1 -0
- package/dist/app/assets/{sankeyDiagram-WGJFYUXA-BvKX0eIe.js → sankeyDiagram-WGJFYUXA-DygYWLTR.js} +1 -1
- package/dist/app/assets/{sequenceDiagram-5NDRBG5M-Y4YqU2Xt.js → sequenceDiagram-5NDRBG5M-BzIr2DBO.js} +1 -1
- package/dist/app/assets/{stateDiagram-v2-FJ4FJNEA-DmjIjn4u.js → stateDiagram-v2-FJ4FJNEA-MGCqKnm_.js} +1 -1
- package/dist/app/assets/{swimlanes-UMQ2AFYF-B2O5JCjs.js → swimlanes-UMQ2AFYF-CIEH82Zt.js} +1 -1
- package/dist/app/assets/swimlanesDiagram-OMPLPG4O-YWNJjl0g.js +8 -0
- package/dist/app/assets/{timeline-definition-SEUHKTQE-DJJdixAI.js → timeline-definition-SEUHKTQE-BGYSqup2.js} +1 -1
- package/dist/app/assets/treeView-D4JQ5SDB-B39o1sJo.js +1 -0
- package/dist/app/assets/treemap-SAJKECNS-BoGxrUH4.js +1 -0
- package/dist/app/assets/{usecaseDiagram-AFA6YXN4-Bp8pXgvR.js → usecaseDiagram-AFA6YXN4-dy6oVOke.js} +1 -1
- package/dist/app/assets/{vennDiagram-NNMJR3RB-DYSfZMWT.js → vennDiagram-NNMJR3RB-CUyuhcAk.js} +1 -1
- package/dist/app/assets/wardley-7MLQ67FV-sYPAvQ06.js +1 -0
- package/dist/app/assets/{wardleyDiagram-S7YFUSEH-CGJ8qg76.js → wardleyDiagram-S7YFUSEH-DYtxYUHe.js} +1 -1
- package/dist/app/assets/{xychartDiagram-GGNKY7IX-CRSvraFc.js → xychartDiagram-GGNKY7IX-ClR06AlB.js} +1 -1
- package/dist/app/index.html +3 -2
- package/dist/cli/index.js +281 -53
- package/dist/core/api.js +262 -51
- package/dist/core/approvals.js +426 -0
- package/dist/core/context.js +68 -3
- package/dist/core/diff.js +156 -0
- package/dist/core/docs.js +9 -3
- package/dist/core/doctor.js +152 -0
- package/dist/core/doctypes.js +79 -0
- package/dist/core/edit.js +25 -0
- package/dist/core/flags.js +13 -0
- package/dist/core/gaps.js +7 -2
- package/dist/core/heading.js +4 -0
- package/dist/core/history.js +36 -5
- package/dist/core/home.js +345 -0
- package/dist/core/lanes.js +134 -0
- package/dist/core/launch.js +34 -0
- package/dist/core/layout.js +362 -0
- package/dist/core/newdoc.js +66 -0
- package/dist/core/open-folder.js +30 -0
- package/dist/core/openspec.js +6 -6
- package/dist/core/paths.js +71 -4
- package/dist/core/project.js +392 -0
- package/dist/core/route.js +420 -0
- package/dist/core/scan.js +514 -0
- package/dist/core/schema.js +170 -1
- package/dist/core/scope.js +126 -0
- package/dist/core/setup.js +134 -0
- package/dist/core/skills.js +92 -14
- package/dist/core/storage/config.js +74 -0
- package/dist/core/storage/events.js +54 -0
- package/dist/core/storage/folder-watch.js +147 -0
- package/dist/core/storage/folder.js +469 -0
- package/dist/core/storage/index.js +8 -0
- package/dist/core/storage/local.js +22 -0
- package/dist/core/storage/migrate.js +48 -0
- package/dist/core/storage/postgres.js +290 -0
- package/dist/core/storage/types.js +101 -0
- package/dist/core/storage.js +483 -77
- package/dist/core/suggest.js +283 -0
- package/dist/core/tree.js +254 -0
- package/dist/core/types.js +583 -0
- package/dist/core/version.js +1 -1
- package/dist/core/versions.js +245 -0
- package/dist/core/watch.js +2 -136
- package/dist/core/xml.js +23 -5
- package/dist/demo/args.js +58 -0
- package/dist/demo/browser.js +301 -0
- package/dist/demo/platform.js +147 -0
- package/dist/demo/run.js +198 -0
- package/dist/demo/steps.js +328 -0
- package/dist/mcp/project-tools.js +193 -0
- package/dist/mcp/server.js +493 -65
- package/examples/platform/README.md +33 -0
- package/examples/platform/api/package.json +8 -0
- package/examples/platform/api/src/auth-middleware.js +16 -0
- package/examples/platform/api/src/proxy.js +7 -0
- package/examples/platform/api/src/rate-limit.js +13 -0
- package/examples/platform/api/src/server.js +40 -0
- package/examples/platform/auth/package.json +9 -0
- package/examples/platform/auth/src/server.js +24 -0
- package/examples/platform/auth/src/tokens.js +19 -0
- package/examples/platform/auth/src/users.js +16 -0
- package/examples/platform/docs/api/PRD.md +10 -0
- package/examples/platform/docs/api/SDD.md +15 -0
- package/examples/platform/docs/auth/PRD.md +10 -0
- package/examples/platform/docs/auth/SDD.md +8 -0
- package/examples/platform/docs/frontend/PRD.md +18 -0
- package/examples/platform/docs/frontend/SDD.md +13 -0
- package/examples/platform/docs/pricing/PRD.md +9 -0
- package/examples/platform/docs/pricing/SDD.md +8 -0
- package/examples/platform/docs/products/PRD.md +9 -0
- package/examples/platform/docs/products/SDD.md +8 -0
- package/examples/platform/frontend/package.json +8 -0
- package/examples/platform/frontend/src/api-client.js +21 -0
- package/examples/platform/frontend/src/main.js +21 -0
- package/examples/platform/frontend/src/pages/products.js +12 -0
- package/examples/platform/frontend/src/pages/sign-in.js +14 -0
- package/examples/platform/frontend/src/session.js +11 -0
- package/examples/platform/pricing/package.json +9 -0
- package/examples/platform/pricing/src/cache.js +19 -0
- package/examples/platform/pricing/src/product-events.js +17 -0
- package/examples/platform/pricing/src/rules.js +19 -0
- package/examples/platform/pricing/src/server.js +32 -0
- package/examples/platform/products/package.json +9 -0
- package/examples/platform/products/src/catalog.js +20 -0
- package/examples/platform/products/src/events.js +11 -0
- package/examples/platform/products/src/search.js +9 -0
- package/examples/platform/products/src/server.js +31 -0
- package/migrations/postgres/001_init.sql +55 -0
- package/migrations/postgres/002_view_versions.sql +18 -0
- package/package.json +18 -2
- package/schema/approval.schema.json +173 -0
- package/schema/gap.schema.json +3 -0
- package/schema/project.schema.json +93 -0
- package/schema/settings.schema.json +86 -0
- package/schema/toolbox.schema.json +206 -0
- package/schema/type.schema.json +121 -0
- package/schema/view.schema.json +106 -0
- package/skills/claude/build-gap/SKILL.md +7 -0
- package/skills/claude/check-ui/SKILL.md +40 -0
- package/skills/claude/draw-system/SKILL.md +24 -9
- package/skills/claude/gap-from-view/SKILL.md +7 -0
- package/skills/claude/post-audit/SKILL.md +58 -0
- package/skills/claude/pre-audit/SKILL.md +82 -0
- package/skills/claude/update-state/SKILL.md +56 -0
- package/skills/cursor/check-ui.mdc +40 -0
- package/skills/cursor/draw-system.mdc +24 -9
- package/skills/cursor/post-audit.mdc +44 -0
- package/skills/cursor/pre-audit.mdc +49 -0
- package/skills/cursor/update-state.mdc +45 -0
- package/skills/windsurf/spatial-views.md +182 -36
- package/toolboxes/aws.yaml +43 -0
- package/toolboxes/azure.yaml +41 -0
- package/toolboxes/cloud.yaml +95 -0
- package/toolboxes/docs.yaml +111 -0
- package/toolboxes/software.yaml +114 -0
- package/toolboxes/types/docs/gap.yaml +15 -0
- package/toolboxes/types/docs/mdd.yaml +19 -0
- package/toolboxes/types/docs/plain.yaml +7 -0
- package/toolboxes/types/docs/prd.yaml +17 -0
- package/dist/app/assets/architectureDiagram-YGSQEFNW-BrBCHqUH.js +0 -36
- package/dist/app/assets/chunk-X3CZISLH-FMl4PpWt.js +0 -1
- package/dist/app/assets/cose-bilkent-JH36ORCC-BJmLLpaN.js +0 -1
- package/dist/app/assets/cynefin-EF2NZ3EQ-DrzwMKdm.js +0 -1
- package/dist/app/assets/dist-1Q8ng3tu.js +0 -1
- package/dist/app/assets/flowDiagram-MALGAFMO-BCwwiLzb.js +0 -1
- package/dist/app/assets/ganttDiagram-23REXITY-xMRHaU3y.js +0 -292
- package/dist/app/assets/gitGraph-VSP46ZUC-DyGq5mdd.js +0 -1
- package/dist/app/assets/index-BY66fc8Q.js +0 -95
- package/dist/app/assets/index-ByetEVbs.css +0 -1
- package/dist/app/assets/info-OHQRW6UA-DOBf-fQH.js +0 -1
- package/dist/app/assets/mermaid.core-BoRvk1Q-.js +0 -44
- package/dist/app/assets/packet-JDAUHWVQ-CgHq03Zj.js +0 -1
- package/dist/app/assets/pie-XZMESJXO-DtNh3cDE.js +0 -1
- package/dist/app/assets/radar-ABXABTNO-BS0FcsIX.js +0 -1
- package/dist/app/assets/railroad-I3PHUGI6-lO8vfGdI.js +0 -1
- package/dist/app/assets/swimlanesDiagram-OMPLPG4O-DhCl-Cjg.js +0 -8
- package/dist/app/assets/treeView-D4JQ5SDB-Dd1no4eE.js +0 -1
- package/dist/app/assets/treemap-SAJKECNS-t6wtsaki.js +0 -1
- package/dist/app/assets/wardley-7MLQ67FV-Bx60QTuu.js +0 -1
- package/skills/cursor/build-gap.mdc +0 -21
- package/skills/cursor/gap-from-view.mdc +0 -22
|
@@ -1,23 +1,38 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: "Draw (or update)
|
|
2
|
+
description: "Draw (or update) a project's architecture as Spatial Views and pin the existing specs and docs to it. Use when asked to draw, map or picture the system, or when the project has no Views yet."
|
|
3
3
|
alwaysApply: false
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# draw-system
|
|
7
7
|
|
|
8
|
+
> If the spatial-views MCP tools are not available, stop and tell the user to enable the spatial-views MCP server (and to check the WSL form on Windows). Do not write your own MCP client or call the CLI directly.
|
|
9
|
+
|
|
10
|
+
## Start: pick the project
|
|
11
|
+
1. `list_projects`, then `use_project` with the project's name. If it isn't listed, or you can't tell which one is meant, stop and ask (a new project starts with `pre-audit`).
|
|
12
|
+
2. Every tool now works on that project only, and reads only its sources (`list_sources`). A path outside them is refused: don't look for another way in, ask for the folder to be added with `add_source`.
|
|
13
|
+
|
|
8
14
|
Build the picture of the system with the `spatial-views` MCP tools. People see it live on the canvas (`npx spatial-views`).
|
|
9
15
|
|
|
10
16
|
## Steps
|
|
11
|
-
1. `list_views`. If Views exist, `get_view` the top one first and update it rather than starting again.
|
|
12
|
-
2. Read the
|
|
13
|
-
3. **
|
|
14
|
-
4. **Drill down** only where it helps: `create_view` with `from_module` makes a sub-view linked from that module. Keep each View to 3
|
|
15
|
-
5. **File pointers**: `add_file_pointer` for each module's main source folder or file.
|
|
16
|
-
6. **Pin what exists**: for each OpenSpec spec, `pin` it to the module(s) it describes (
|
|
17
|
-
7. `import_docs` on `docs/` (and `openspec/`)
|
|
17
|
+
1. `list_views`. If Views exist, `get_view` the top one (the System Overview) first and update it rather than starting again.
|
|
18
|
+
2. Read the project's sources: `scan_source` each one for the top-level folders, the entry points, `openspec/project.md` and `openspec/specs/*/spec.md` when OpenSpec is used, and the docs.
|
|
19
|
+
3. **System Overview**: the project's high-level View (`create_view` with `type: "high-level"` only if there is none). Add one module per deployable part or major component (`add_module`, with a one-line `description`), then `connect` them with short labels for what flows (`https`, `events`, `reads`).
|
|
20
|
+
4. **Drill down** only where it helps: `create_view` with `from_module` makes a sub-view linked from that module. Keep each View to 3 to 9 modules.
|
|
21
|
+
5. **File pointers**: `add_file_pointer` for each module's main source folder or file: `<source_id>:<path>` (repo-relative in a single-repo project).
|
|
22
|
+
6. **Pin what exists**: for each OpenSpec spec, `pin` it to the module(s) it describes (`<source_id>:openspec/specs/<capability>/spec.md`). Pin PRDs, MDDs and Feature docs to the View, module or Feature they cover. Never edit the docs.
|
|
23
|
+
7. In a single-repo project, `import_docs` on `docs/` (and `openspec/`) lists everything; pass `draft_views: true` only if asked to turn Mermaid flowcharts into draft Views.
|
|
18
24
|
8. `open_view` the top View, and report: the Views drawn, which specs went on which modules, and anything left unpinned.
|
|
19
25
|
|
|
26
|
+
## Drawing rules (draw it as an architect would)
|
|
27
|
+
- **Top down.** Frontend at the top, then the gateway and the API, then the services side by side, then workers and queues, and the data stores at the bottom. Externals (payments, email, someone else's API) go to the side. The `type` says where a module goes (each type has a `tier` in `list_types`), so give every module the type that fits and the layout puts it in its row.
|
|
28
|
+
- **One module per real deployable or store**: a frontend, a service you deploy, a database, a queue, an external service. Not a folder, a class or a library.
|
|
29
|
+
- **Short labels**: a module name of one to three words ("Pricing", "Orders DB"), a connection label of a word or two (`https`, `/prices`, `order.created`).
|
|
30
|
+
- **No more than about 9 modules on a View.** When there are more, group them and drill into Sub Views (`create_view` with `from_module`) instead.
|
|
31
|
+
- Leave out `x` and `y` on `add_module`: the layout places each module as you draw (top down, by tier, orthogonal lines that leave from the bottom and enter from the top). On a View a person has arranged, only what you add is placed. Call `layout_view` only when a person asks to tidy a View.
|
|
32
|
+
|
|
20
33
|
## Rules
|
|
21
|
-
-
|
|
34
|
+
- **Types**: `list_toolboxes` once (Software, Cloud, AWS, Azure, Docs, and any of the user's or the project's), then `list_types` for the toolboxes that fit the system (`toolbox: aws` for an AWS system) and give each module the `type` that fits (Service, API, Database, Queue, Worker, Gateway..., or aws-lambda, azure-functions...) and fill in the properties you know. A doc for a module (PRD, SDD, MDD, Feature doc, ADR, Runbook, Plain doc) is `create_doc` with its doc type, which pins it there. If none fits, say so; only `create_type` or `create_toolbox` when a person asks.
|
|
35
|
+
- Names a person would use, not file names.
|
|
22
36
|
- Don't invent parts that aren't in the code or the docs; say what you could not place.
|
|
23
37
|
- OpenSpec stays OpenSpec: read `openspec/`, never rewrite it.
|
|
38
|
+
- **Approvals**: a new project, and a View or Doc you make that no person has approved yet, take your writes directly. Only a change to approved content waits, as a draft of that View or Doc: the reply says "pending in Approvals" and where it stands, e.g. "amended pending approval #12 (3 revisions, from v4)", and nothing is live yet. A later write to the same View or Doc amends that same draft (a new revision), so keep working; there is nothing to send. When you are done, tell the person what is waiting in their words ("amended pending approval #12"), and check `get_approval` later for the outcome (approved, approved in part or denied, with any note). If nothing changed, nothing waits.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Check the build against the spec - list every requirement in the pinned specs and docs, find evidence for each (a file, test or View) or mark it missing, and write audit-report.md with a coverage figure pinned to the System Overview. Use for \"post-audit <project>\" or \"did we build what the specs say?\"."
|
|
3
|
+
alwaysApply: false
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# post-audit
|
|
7
|
+
|
|
8
|
+
> If the spatial-views MCP tools are not available, stop and tell the user to enable the spatial-views MCP server (and to check the WSL form on Windows). Do not write your own MCP client or call the CLI directly.
|
|
9
|
+
|
|
10
|
+
## Start: pick the project
|
|
11
|
+
1. `list_projects`, then `use_project` with the project's name. If it isn't listed, or you can't tell which one is meant, stop and ask (a new project starts with `pre-audit`).
|
|
12
|
+
2. Every tool now works on that project only, and reads only its sources (`list_sources`). A path outside them is refused: don't look for another way in, ask for the folder to be added with `add_source`.
|
|
13
|
+
|
|
14
|
+
`post-audit <project>`: did we build what the specs say?
|
|
15
|
+
|
|
16
|
+
Use the `spatial-views` MCP tools. The sources are only read.
|
|
17
|
+
|
|
18
|
+
## Spec format
|
|
19
|
+
Call `get_project` once and read its spec_format (Settings → Project → Spec format). Read and write specs in that format only:
|
|
20
|
+
- **spatial-views**: the specs are PRD, MDD and Gap docs (`specs/prd/`, `specs/mdd/`, `specs/gaps/`). A Gap here is a doc: title, intent, modules, acceptance.
|
|
21
|
+
- **openspec**: the specs are `openspec/specs/<capability>/spec.md`, and proposed work is a change in `openspec/changes/<id>/` (`proposal.md`, `tasks.md`, delta specs under `specs/`). Don't write PRD, MDD or Gap docs.
|
|
22
|
+
|
|
23
|
+
## Steps
|
|
24
|
+
1. `get_project`, `list_sources` and `list_pins`. The pinned specs and docs are what you audit against.
|
|
25
|
+
2. **Requirements.** Read each pinned spec and doc: OpenSpec requirements, PRD and SDD statements, PBI acceptance criteria, and documented endpoints, queues and flows. List each requirement once, with an id (for example `R1`) and where it is stated (`<source_id>:<path>` and the heading or line).
|
|
26
|
+
3. **Evidence.** For each requirement, look for evidence:
|
|
27
|
+
- **file**: the code that does it (`scan_source` routes, queues and DB use, then the file and line);
|
|
28
|
+
- **test**: a test that checks it;
|
|
29
|
+
- **View**: the module, connection or sequence message that shows it.
|
|
30
|
+
Mark each requirement **met** (evidence found), **partial** (some of it, and say what's missing) or **missing**. A requirement is never met without evidence.
|
|
31
|
+
4. **Coverage.** Coverage is met / total, as a percentage. Count partial as not met, and give its count separately.
|
|
32
|
+
5. **Report.** `save_report`, named `audit-report`:
|
|
33
|
+
- a header line: the date, the project, and coverage `N% (met/total)`, with partial and missing counts;
|
|
34
|
+
- a table: id, requirement, where it is stated, status, evidence;
|
|
35
|
+
- a list of the misses.
|
|
36
|
+
It is pinned to the System Overview.
|
|
37
|
+
6. **Record.** `record_audit` with `kind: "post-audit"` and `report: "audit-report"`.
|
|
38
|
+
7. Report the coverage figure and the misses.
|
|
39
|
+
|
|
40
|
+
## Rules
|
|
41
|
+
- Quote requirements as they are written. Don't reword them to fit the code.
|
|
42
|
+
- Every "met" cites a file and line, a test, or a View.
|
|
43
|
+
- Never fix code in an audit. Report the miss.
|
|
44
|
+
- Never write to a source.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "In one go, create the project (if missing) from one or more repos and doc folders, and draw it - the System Overview (one module per repo, connected), a Sub View for each - and pin each doc to the module it describes. Nothing else. Use for \"pre-audit <project> <path...>\" on an empty or new project."
|
|
3
|
+
alwaysApply: false
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# pre-audit
|
|
7
|
+
|
|
8
|
+
> If the spatial-views MCP tools are not available, stop and tell the user to enable the spatial-views MCP server (and to check the WSL form on Windows). Do not write your own MCP client or call the CLI directly.
|
|
9
|
+
|
|
10
|
+
`pre-audit <project> <path> [<path> ...]`. One path is enough: `pre-audit XYZ c:\git\1`. Several work too: `pre-audit payments c:\git\api c:\git\web c:\git\worker c:\git\docs c:\git\diagrams`.
|
|
11
|
+
|
|
12
|
+
This one command does it all. The user never has to say "create the project", "create the System Overview" or "add the repos": do each of those yourself, in order, without asking.
|
|
13
|
+
|
|
14
|
+
Use the `spatial-views` MCP tools. The sources are only read: never write, move or reformat anything in them. Everything you make goes in the project's own folder (`~/SpatialViews/projects/<slug>/`).
|
|
15
|
+
|
|
16
|
+
## Start: the project
|
|
17
|
+
1. `list_projects`. If `<project>` is there, `use_project` it. If not, `create_project` with that name: the System Overview is made with it, and it becomes the active project.
|
|
18
|
+
2. Every tool now works on that project only, and reads only the folders you add. Nothing else on disk is read, even if it sits next to them.
|
|
19
|
+
3. Before you change a View that already has modules, `name_version` it with `name: "before pre-audit"`, so a person can preview and restore it from History.
|
|
20
|
+
|
|
21
|
+
## Spec format
|
|
22
|
+
Call `get_project` once and read its spec_format (Settings → Project → Spec format). Read and write specs in that format only:
|
|
23
|
+
- **spatial-views**: the specs are PRD, MDD and Gap docs (`specs/prd/`, `specs/mdd/`, `specs/gaps/`). A Gap here is a doc: title, intent, modules, acceptance.
|
|
24
|
+
- **openspec**: the specs are `openspec/specs/<capability>/spec.md`, and proposed work is a change in `openspec/changes/<id>/` (`proposal.md`, `tasks.md`, delta specs under `specs/`). Don't write PRD, MDD or Gap docs.
|
|
25
|
+
|
|
26
|
+
## Steps
|
|
27
|
+
1. **Sources.** For each path given, `add_source` with the full path. It is a repo if it has `.git`, else docs. Pass `kind` when the folder name doesn't say which. Paths can be Windows or POSIX. Each repo gets a module on the System Overview. If no path was given and the project has no sources, ask for one path, then go on.
|
|
28
|
+
2. **Read.** `scan_source` on each source. Repos: the parts, entry points, HTTP routes, queues, stores, and how the repos call each other. Docs: read each PRD and SDD (and any other `.md`): which part of the system it is about.
|
|
29
|
+
3. **System Overview.** It already has one module per repo. `list_types` once, then `update_module` each repo module: the name a person would use ("Pricing", not `pricing-svc`), its `type` and a one-line `description`. `connect` the modules that call each other, with short labels (`https`, `/products`, `products.changed`). Keep the System Overview to the repos and the connections between them.
|
|
30
|
+
4. **Sub Views.** For each repo module, `create_view` with `type: "sub-view"` and `from_module` set to it, named after it. Add its main parts with `add_module` (3 to 6 modules, each with its `type` and the properties you know), `connect` them with short labels, and `add_file_pointer` on each (`<source_id>:<path>`).
|
|
31
|
+
5. **Pin.** `pin` each doc to the module it describes: an area's PRD and SDD go on that area's module on the System Overview (`docs:pricing/SDD.md` on Pricing). A doc about the whole system goes on the System Overview itself.
|
|
32
|
+
6. **Record.** `record_audit` with `kind: "pre-audit"`. This sets each source's last audit commit.
|
|
33
|
+
7. `open_view` the System Overview, and report in a few lines: the Views drawn, the docs pinned, and anything you could not place.
|
|
34
|
+
|
|
35
|
+
## Drawing rules (draw it as an architect would)
|
|
36
|
+
- **Top down.** Frontend at the top, then the gateway and the API, then the services side by side, then workers and queues, and the data stores at the bottom. Externals (payments, email, someone else's API) go to the side. The `type` says where a module goes (each type has a `tier` in `list_types`), so give every module the type that fits and the layout puts it in its row.
|
|
37
|
+
- **One module per real deployable or store**: a frontend, a service you deploy, a database, a queue, an external service. Not a folder, a class or a library.
|
|
38
|
+
- **Short labels**: a module name of one to three words ("Pricing", "Orders DB"), a connection label of a word or two (`https`, `/prices`, `order.created`).
|
|
39
|
+
- **No more than about 9 modules on a View.** When there are more, group them and drill into Sub Views (`create_view` with `from_module`) instead.
|
|
40
|
+
- Leave out `x` and `y` on `add_module`: the layout places each module as you draw (top down, by tier, orthogonal lines that leave from the bottom and enter from the top). On a View a person has arranged, only what you add is placed. Call `layout_view` only when a person asks to tidy a View.
|
|
41
|
+
|
|
42
|
+
## Rules
|
|
43
|
+
- **Types**: `list_toolboxes` once (Software, Cloud, AWS, Azure, Docs, and any of the user's or the project's), then `list_types` for the toolboxes that fit the system (`toolbox: aws` for an AWS system) and give each module the `type` that fits (Service, API, Database, Queue, Worker, Gateway..., or aws-lambda, azure-functions...) and fill in the properties you know. A doc for a module (PRD, SDD, MDD, Feature doc, ADR, Runbook, Plain doc) is `create_doc` with its doc type, which pins it there. If none fits, say so; only `create_type` or `create_toolbox` when a person asks.
|
|
44
|
+
- Draw only what the code, docs or diagrams show. If you infer something, say so in the module's `description`.
|
|
45
|
+
- Use names a person would use, not file names. Keep each Sub View to 3 to 6 modules.
|
|
46
|
+
- Never write to a source.
|
|
47
|
+
- Read only the project's sources. If a flow leads to a folder that isn't one, say so; don't read it.
|
|
48
|
+
- Draw and pin, nothing else: no reports, no sequence Views, no changes for drift. If the docs and the code disagree, say so in your report; a person decides which is right.
|
|
49
|
+
- **Approvals**: a new project, and a View or Doc you make that no person has approved yet, take your writes directly. Only a change to approved content waits, as a draft of that View or Doc: the reply says "pending in Approvals" and where it stands, e.g. "amended pending approval #12 (3 revisions, from v4)", and nothing is live yet. A later write to the same View or Doc amends that same draft (a new revision), so keep working; there is nothing to send. When you are done, tell the person what is waiting in their words ("amended pending approval #12"), and check `get_approval` later for the outcome (approved, approved in part or denied, with any note). If nothing changed, nothing waits.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Keep a Spatial Views project true - re-read only what changed in each source since its last audit, update the Views and file pointers, and write a short changes report. Use for \"update-state <project>\" (no paths needed; the project knows its sources)."
|
|
3
|
+
alwaysApply: false
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# update-state
|
|
7
|
+
|
|
8
|
+
> If the spatial-views MCP tools are not available, stop and tell the user to enable the spatial-views MCP server (and to check the WSL form on Windows). Do not write your own MCP client or call the CLI directly.
|
|
9
|
+
|
|
10
|
+
## Start: pick the project
|
|
11
|
+
1. `list_projects`, then `use_project` with the project's name. If it isn't listed, or you can't tell which one is meant, stop and ask (a new project starts with `pre-audit`).
|
|
12
|
+
2. Every tool now works on that project only, and reads only its sources (`list_sources`). A path outside them is refused: don't look for another way in, ask for the folder to be added with `add_source`.
|
|
13
|
+
|
|
14
|
+
`update-state <project>`. You don't need any paths: the project knows its sources.
|
|
15
|
+
|
|
16
|
+
Use the `spatial-views` MCP tools. The sources are only read.
|
|
17
|
+
|
|
18
|
+
## Spec format
|
|
19
|
+
Call `get_project` once and read its spec_format (Settings → Project → Spec format). Read and write specs in that format only:
|
|
20
|
+
- **spatial-views**: the specs are PRD, MDD and Gap docs (`specs/prd/`, `specs/mdd/`, `specs/gaps/`). A Gap here is a doc: title, intent, modules, acceptance.
|
|
21
|
+
- **openspec**: the specs are `openspec/specs/<capability>/spec.md`, and proposed work is a change in `openspec/changes/<id>/` (`proposal.md`, `tasks.md`, delta specs under `specs/`). Don't write PRD, MDD or Gap docs.
|
|
22
|
+
|
|
23
|
+
## Steps
|
|
24
|
+
1. `get_project` and `list_sources`. Note each source's `last_audit_sha`.
|
|
25
|
+
2. **What changed.** For a repo, list the files changed since its `last_audit_sha`, with a read-only git command run in the source (`git diff --name-status <sha> HEAD`, plus `git status --porcelain` for uncommitted work). For a docs or diagrams folder, which isn't a git repo, `last_audit_sha` is a time: take the files whose mtime is later. If a source has no `last_audit_sha`, run `pre-audit` instead.
|
|
26
|
+
3. **Re-read.** `scan_source` on each changed source, and read the changed files themselves. Leave alone anything that hasn't changed.
|
|
27
|
+
4. **Update the picture.**
|
|
28
|
+
- `list_views` and `get_view` the Views that hold the changed files (look for their file pointers).
|
|
29
|
+
- Add, rename or remove modules (`add_module`, `update_module`, `remove`), and connections and messages (`connect`, `add_message`), keeping to the drawing rules below. A new module gets its `type` (`list_types`). Fix the file pointers (`add_file_pointer`, as `<source_id>:<path>`).
|
|
30
|
+
- Re-`pin` new or moved docs.
|
|
31
|
+
5. **Report.** `save_report`, named `changes-<yyyy-mm-dd>`: for each source, what changed, then the Views updated and any new place where the docs and the code disagree. Keep it short. If nothing changed, don't write a report.
|
|
32
|
+
6. **Record.** `record_audit` with `kind: "update-state"`, `report` set to that report, and `sources` set to the sources you re-read.
|
|
33
|
+
7. Report the same summary back in a few lines, and `open_view` the View that changed most.
|
|
34
|
+
|
|
35
|
+
## Drawing rules (draw it as an architect would)
|
|
36
|
+
- **Top down.** Frontend at the top, then the gateway and the API, then the services side by side, then workers and queues, and the data stores at the bottom. Externals (payments, email, someone else's API) go to the side. The `type` says where a module goes (each type has a `tier` in `list_types`), so give every module the type that fits and the layout puts it in its row.
|
|
37
|
+
- **One module per real deployable or store**: a frontend, a service you deploy, a database, a queue, an external service. Not a folder, a class or a library.
|
|
38
|
+
- **Short labels**: a module name of one to three words ("Pricing", "Orders DB"), a connection label of a word or two (`https`, `/prices`, `order.created`).
|
|
39
|
+
- **No more than about 9 modules on a View.** When there are more, group them and drill into Sub Views (`create_view` with `from_module`) instead.
|
|
40
|
+
- Leave out `x` and `y` on `add_module`: the layout places each module as you draw (top down, by tier, orthogonal lines that leave from the bottom and enter from the top). On a View a person has arranged, only what you add is placed. Call `layout_view` only when a person asks to tidy a View.
|
|
41
|
+
|
|
42
|
+
## Rules
|
|
43
|
+
- Change only what changed. Don't redraw Views that are still true.
|
|
44
|
+
- Never write to a source. The git commands are read-only: no checkout, no fetch, no stash.
|
|
45
|
+
- **Approvals**: a new project, and a View or Doc you make that no person has approved yet, take your writes directly. Only a change to approved content waits, as a draft of that View or Doc: the reply says "pending in Approvals" and where it stands, e.g. "amended pending approval #12 (3 revisions, from v4)", and nothing is live yet. A later write to the same View or Doc amends that same draft (a new revision), so keep working; there is nothing to send. When you are done, tell the person what is waiting in their words ("amended pending approval #12"), and check `get_approval` later for the outcome (approved, approved in part or denied, with any note). If nothing changed, nothing waits.
|
|
@@ -1,66 +1,212 @@
|
|
|
1
1
|
---
|
|
2
2
|
trigger: model_decision
|
|
3
|
-
description: "Spatial Views: draw the system as Views (draw-system)
|
|
3
|
+
description: "Spatial Views: draw the system as Views (draw-system) and audit a project of repos and docs (pre-audit, update-state, post-audit), and check a built page against its View or spec (check-ui). Use for architecture diagrams, the docs pinned to them, audits and UI checks."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Spatial Views skills
|
|
7
7
|
|
|
8
|
+
> If the spatial-views MCP tools are not available, stop and tell the user to enable the spatial-views MCP server (and to check the WSL form on Windows). Do not write your own MCP client or call the CLI directly.
|
|
9
|
+
|
|
8
10
|
Use the `spatial-views` MCP tools. Pick the skill that fits:
|
|
9
11
|
|
|
10
|
-
- **draw-system**: Draw (or update)
|
|
11
|
-
- **
|
|
12
|
-
- **
|
|
12
|
+
- **draw-system**: Draw (or update) a project's architecture as Spatial Views and pin the existing specs and docs to it. Use when asked to draw, map or picture the system, or when the project has no Views yet.
|
|
13
|
+
- **pre-audit**: In one go, create the project (if missing) from one or more repos and doc folders, and draw it - the System Overview (one module per repo, connected), a Sub View for each - and pin each doc to the module it describes. Nothing else. Use for "pre-audit <project> <path...>" on an empty or new project.
|
|
14
|
+
- **update-state**: Keep a Spatial Views project true - re-read only what changed in each source since its last audit, update the Views and file pointers, and write a short changes report. Use for "update-state <project>" (no paths needed; the project knows its sources).
|
|
15
|
+
- **post-audit**: Check the build against the spec - list every requirement in the pinned specs and docs, find evidence for each (a file, test or View) or mark it missing, and write audit-report.md with a coverage figure pinned to the System Overview. Use for "post-audit <project>" or "did we build what the specs say?".
|
|
16
|
+
- **check-ui**: Open the page being built in a browser (Microsoft's Playwright MCP), screenshot it, and compare it with the View or spec it was built from, then report the differences as a short table. Reports only, never changes the spec or the code. Use for "check-ui <url> <view or spec>" or when asked whether the UI matches its design.
|
|
13
17
|
|
|
14
18
|
## draw-system
|
|
15
19
|
|
|
20
|
+
> If the spatial-views MCP tools are not available, stop and tell the user to enable the spatial-views MCP server (and to check the WSL form on Windows). Do not write your own MCP client or call the CLI directly.
|
|
21
|
+
|
|
22
|
+
### Start: pick the project
|
|
23
|
+
1. `list_projects`, then `use_project` with the project's name. If it isn't listed, or you can't tell which one is meant, stop and ask (a new project starts with `pre-audit`).
|
|
24
|
+
2. Every tool now works on that project only, and reads only its sources (`list_sources`). A path outside them is refused: don't look for another way in, ask for the folder to be added with `add_source`.
|
|
25
|
+
|
|
16
26
|
Build the picture of the system with the `spatial-views` MCP tools. People see it live on the canvas (`npx spatial-views`).
|
|
17
27
|
|
|
18
28
|
### Steps
|
|
19
|
-
1. `list_views`. If Views exist, `get_view` the top one first and update it rather than starting again.
|
|
20
|
-
2. Read the
|
|
21
|
-
3. **
|
|
22
|
-
4. **Drill down** only where it helps: `create_view` with `from_module` makes a sub-view linked from that module. Keep each View to 3
|
|
23
|
-
5. **File pointers**: `add_file_pointer` for each module's main source folder or file.
|
|
24
|
-
6. **Pin what exists**: for each OpenSpec spec, `pin` it to the module(s) it describes (
|
|
25
|
-
7. `import_docs` on `docs/` (and `openspec/`)
|
|
29
|
+
1. `list_views`. If Views exist, `get_view` the top one (the System Overview) first and update it rather than starting again.
|
|
30
|
+
2. Read the project's sources: `scan_source` each one for the top-level folders, the entry points, `openspec/project.md` and `openspec/specs/*/spec.md` when OpenSpec is used, and the docs.
|
|
31
|
+
3. **System Overview**: the project's high-level View (`create_view` with `type: "high-level"` only if there is none). Add one module per deployable part or major component (`add_module`, with a one-line `description`), then `connect` them with short labels for what flows (`https`, `events`, `reads`).
|
|
32
|
+
4. **Drill down** only where it helps: `create_view` with `from_module` makes a sub-view linked from that module. Keep each View to 3 to 9 modules.
|
|
33
|
+
5. **File pointers**: `add_file_pointer` for each module's main source folder or file: `<source_id>:<path>` (repo-relative in a single-repo project).
|
|
34
|
+
6. **Pin what exists**: for each OpenSpec spec, `pin` it to the module(s) it describes (`<source_id>:openspec/specs/<capability>/spec.md`). Pin PRDs, MDDs and Feature docs to the View, module or Feature they cover. Never edit the docs.
|
|
35
|
+
7. In a single-repo project, `import_docs` on `docs/` (and `openspec/`) lists everything; pass `draft_views: true` only if asked to turn Mermaid flowcharts into draft Views.
|
|
26
36
|
8. `open_view` the top View, and report: the Views drawn, which specs went on which modules, and anything left unpinned.
|
|
27
37
|
|
|
38
|
+
### Drawing rules (draw it as an architect would)
|
|
39
|
+
- **Top down.** Frontend at the top, then the gateway and the API, then the services side by side, then workers and queues, and the data stores at the bottom. Externals (payments, email, someone else's API) go to the side. The `type` says where a module goes (each type has a `tier` in `list_types`), so give every module the type that fits and the layout puts it in its row.
|
|
40
|
+
- **One module per real deployable or store**: a frontend, a service you deploy, a database, a queue, an external service. Not a folder, a class or a library.
|
|
41
|
+
- **Short labels**: a module name of one to three words ("Pricing", "Orders DB"), a connection label of a word or two (`https`, `/prices`, `order.created`).
|
|
42
|
+
- **No more than about 9 modules on a View.** When there are more, group them and drill into Sub Views (`create_view` with `from_module`) instead.
|
|
43
|
+
- Leave out `x` and `y` on `add_module`: the layout places each module as you draw (top down, by tier, orthogonal lines that leave from the bottom and enter from the top). On a View a person has arranged, only what you add is placed. Call `layout_view` only when a person asks to tidy a View.
|
|
44
|
+
|
|
28
45
|
### Rules
|
|
29
|
-
-
|
|
46
|
+
- **Types**: `list_toolboxes` once (Software, Cloud, AWS, Azure, Docs, and any of the user's or the project's), then `list_types` for the toolboxes that fit the system (`toolbox: aws` for an AWS system) and give each module the `type` that fits (Service, API, Database, Queue, Worker, Gateway..., or aws-lambda, azure-functions...) and fill in the properties you know. A doc for a module (PRD, SDD, MDD, Feature doc, ADR, Runbook, Plain doc) is `create_doc` with its doc type, which pins it there. If none fits, say so; only `create_type` or `create_toolbox` when a person asks.
|
|
47
|
+
- Names a person would use, not file names.
|
|
30
48
|
- Don't invent parts that aren't in the code or the docs; say what you could not place.
|
|
31
49
|
- OpenSpec stays OpenSpec: read `openspec/`, never rewrite it.
|
|
50
|
+
- **Approvals**: a new project, and a View or Doc you make that no person has approved yet, take your writes directly. Only a change to approved content waits, as a draft of that View or Doc: the reply says "pending in Approvals" and where it stands, e.g. "amended pending approval #12 (3 revisions, from v4)", and nothing is live yet. A later write to the same View or Doc amends that same draft (a new revision), so keep working; there is nothing to send. When you are done, tell the person what is waiting in their words ("amended pending approval #12"), and check `get_approval` later for the outcome (approved, approved in part or denied, with any note). If nothing changed, nothing waits.
|
|
51
|
+
|
|
52
|
+
## pre-audit
|
|
32
53
|
|
|
33
|
-
|
|
54
|
+
> If the spatial-views MCP tools are not available, stop and tell the user to enable the spatial-views MCP server (and to check the WSL form on Windows). Do not write your own MCP client or call the CLI directly.
|
|
34
55
|
|
|
35
|
-
|
|
56
|
+
`pre-audit <project> <path> [<path> ...]`. One path is enough: `pre-audit XYZ c:\git\1`. Several work too: `pre-audit payments c:\git\api c:\git\web c:\git\worker c:\git\docs c:\git\diagrams`.
|
|
57
|
+
|
|
58
|
+
This one command does it all. The user never has to say "create the project", "create the System Overview" or "add the repos": do each of those yourself, in order, without asking.
|
|
59
|
+
|
|
60
|
+
Use the `spatial-views` MCP tools. The sources are only read: never write, move or reformat anything in them. Everything you make goes in the project's own folder (`~/SpatialViews/projects/<slug>/`).
|
|
61
|
+
|
|
62
|
+
### Start: the project
|
|
63
|
+
1. `list_projects`. If `<project>` is there, `use_project` it. If not, `create_project` with that name: the System Overview is made with it, and it becomes the active project.
|
|
64
|
+
2. Every tool now works on that project only, and reads only the folders you add. Nothing else on disk is read, even if it sits next to them.
|
|
65
|
+
3. Before you change a View that already has modules, `name_version` it with `name: "before pre-audit"`, so a person can preview and restore it from History.
|
|
66
|
+
|
|
67
|
+
### Spec format
|
|
68
|
+
Call `get_project` once and read its spec_format (Settings → Project → Spec format). Read and write specs in that format only:
|
|
69
|
+
- **spatial-views**: the specs are PRD, MDD and Gap docs (`specs/prd/`, `specs/mdd/`, `specs/gaps/`). A Gap here is a doc: title, intent, modules, acceptance.
|
|
70
|
+
- **openspec**: the specs are `openspec/specs/<capability>/spec.md`, and proposed work is a change in `openspec/changes/<id>/` (`proposal.md`, `tasks.md`, delta specs under `specs/`). Don't write PRD, MDD or Gap docs.
|
|
36
71
|
|
|
37
72
|
### Steps
|
|
38
|
-
1. **
|
|
39
|
-
2. **
|
|
40
|
-
3. **
|
|
41
|
-
4. **
|
|
42
|
-
5. **
|
|
43
|
-
6. **
|
|
44
|
-
7.
|
|
73
|
+
1. **Sources.** For each path given, `add_source` with the full path. It is a repo if it has `.git`, else docs. Pass `kind` when the folder name doesn't say which. Paths can be Windows or POSIX. Each repo gets a module on the System Overview. If no path was given and the project has no sources, ask for one path, then go on.
|
|
74
|
+
2. **Read.** `scan_source` on each source. Repos: the parts, entry points, HTTP routes, queues, stores, and how the repos call each other. Docs: read each PRD and SDD (and any other `.md`): which part of the system it is about.
|
|
75
|
+
3. **System Overview.** It already has one module per repo. `list_types` once, then `update_module` each repo module: the name a person would use ("Pricing", not `pricing-svc`), its `type` and a one-line `description`. `connect` the modules that call each other, with short labels (`https`, `/products`, `products.changed`). Keep the System Overview to the repos and the connections between them.
|
|
76
|
+
4. **Sub Views.** For each repo module, `create_view` with `type: "sub-view"` and `from_module` set to it, named after it. Add its main parts with `add_module` (3 to 6 modules, each with its `type` and the properties you know), `connect` them with short labels, and `add_file_pointer` on each (`<source_id>:<path>`).
|
|
77
|
+
5. **Pin.** `pin` each doc to the module it describes: an area's PRD and SDD go on that area's module on the System Overview (`docs:pricing/SDD.md` on Pricing). A doc about the whole system goes on the System Overview itself.
|
|
78
|
+
6. **Record.** `record_audit` with `kind: "pre-audit"`. This sets each source's last audit commit.
|
|
79
|
+
7. `open_view` the System Overview, and report in a few lines: the Views drawn, the docs pinned, and anything you could not place.
|
|
80
|
+
|
|
81
|
+
### Drawing rules (draw it as an architect would)
|
|
82
|
+
- **Top down.** Frontend at the top, then the gateway and the API, then the services side by side, then workers and queues, and the data stores at the bottom. Externals (payments, email, someone else's API) go to the side. The `type` says where a module goes (each type has a `tier` in `list_types`), so give every module the type that fits and the layout puts it in its row.
|
|
83
|
+
- **One module per real deployable or store**: a frontend, a service you deploy, a database, a queue, an external service. Not a folder, a class or a library.
|
|
84
|
+
- **Short labels**: a module name of one to three words ("Pricing", "Orders DB"), a connection label of a word or two (`https`, `/prices`, `order.created`).
|
|
85
|
+
- **No more than about 9 modules on a View.** When there are more, group them and drill into Sub Views (`create_view` with `from_module`) instead.
|
|
86
|
+
- Leave out `x` and `y` on `add_module`: the layout places each module as you draw (top down, by tier, orthogonal lines that leave from the bottom and enter from the top). On a View a person has arranged, only what you add is placed. Call `layout_view` only when a person asks to tidy a View.
|
|
45
87
|
|
|
46
88
|
### Rules
|
|
47
|
-
-
|
|
48
|
-
-
|
|
49
|
-
-
|
|
89
|
+
- **Types**: `list_toolboxes` once (Software, Cloud, AWS, Azure, Docs, and any of the user's or the project's), then `list_types` for the toolboxes that fit the system (`toolbox: aws` for an AWS system) and give each module the `type` that fits (Service, API, Database, Queue, Worker, Gateway..., or aws-lambda, azure-functions...) and fill in the properties you know. A doc for a module (PRD, SDD, MDD, Feature doc, ADR, Runbook, Plain doc) is `create_doc` with its doc type, which pins it there. If none fits, say so; only `create_type` or `create_toolbox` when a person asks.
|
|
90
|
+
- Draw only what the code, docs or diagrams show. If you infer something, say so in the module's `description`.
|
|
91
|
+
- Use names a person would use, not file names. Keep each Sub View to 3 to 6 modules.
|
|
92
|
+
- Never write to a source.
|
|
93
|
+
- Read only the project's sources. If a flow leads to a folder that isn't one, say so; don't read it.
|
|
94
|
+
- Draw and pin, nothing else: no reports, no sequence Views, no changes for drift. If the docs and the code disagree, say so in your report; a person decides which is right.
|
|
95
|
+
- **Approvals**: a new project, and a View or Doc you make that no person has approved yet, take your writes directly. Only a change to approved content waits, as a draft of that View or Doc: the reply says "pending in Approvals" and where it stands, e.g. "amended pending approval #12 (3 revisions, from v4)", and nothing is live yet. A later write to the same View or Doc amends that same draft (a new revision), so keep working; there is nothing to send. When you are done, tell the person what is waiting in their words ("amended pending approval #12"), and check `get_approval` later for the outcome (approved, approved in part or denied, with any note). If nothing changed, nothing waits.
|
|
50
96
|
|
|
51
|
-
##
|
|
97
|
+
## update-state
|
|
98
|
+
|
|
99
|
+
> If the spatial-views MCP tools are not available, stop and tell the user to enable the spatial-views MCP server (and to check the WSL form on Windows). Do not write your own MCP client or call the CLI directly.
|
|
100
|
+
|
|
101
|
+
### Start: pick the project
|
|
102
|
+
1. `list_projects`, then `use_project` with the project's name. If it isn't listed, or you can't tell which one is meant, stop and ask (a new project starts with `pre-audit`).
|
|
103
|
+
2. Every tool now works on that project only, and reads only its sources (`list_sources`). A path outside them is refused: don't look for another way in, ask for the folder to be added with `add_source`.
|
|
104
|
+
|
|
105
|
+
`update-state <project>`. You don't need any paths: the project knows its sources.
|
|
106
|
+
|
|
107
|
+
Use the `spatial-views` MCP tools. The sources are only read.
|
|
108
|
+
|
|
109
|
+
### Spec format
|
|
110
|
+
Call `get_project` once and read its spec_format (Settings → Project → Spec format). Read and write specs in that format only:
|
|
111
|
+
- **spatial-views**: the specs are PRD, MDD and Gap docs (`specs/prd/`, `specs/mdd/`, `specs/gaps/`). A Gap here is a doc: title, intent, modules, acceptance.
|
|
112
|
+
- **openspec**: the specs are `openspec/specs/<capability>/spec.md`, and proposed work is a change in `openspec/changes/<id>/` (`proposal.md`, `tasks.md`, delta specs under `specs/`). Don't write PRD, MDD or Gap docs.
|
|
52
113
|
|
|
53
114
|
### Steps
|
|
54
|
-
1.
|
|
55
|
-
2. **
|
|
56
|
-
3. **
|
|
57
|
-
4. **
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
115
|
+
1. `get_project` and `list_sources`. Note each source's `last_audit_sha`.
|
|
116
|
+
2. **What changed.** For a repo, list the files changed since its `last_audit_sha`, with a read-only git command run in the source (`git diff --name-status <sha> HEAD`, plus `git status --porcelain` for uncommitted work). For a docs or diagrams folder, which isn't a git repo, `last_audit_sha` is a time: take the files whose mtime is later. If a source has no `last_audit_sha`, run `pre-audit` instead.
|
|
117
|
+
3. **Re-read.** `scan_source` on each changed source, and read the changed files themselves. Leave alone anything that hasn't changed.
|
|
118
|
+
4. **Update the picture.**
|
|
119
|
+
- `list_views` and `get_view` the Views that hold the changed files (look for their file pointers).
|
|
120
|
+
- Add, rename or remove modules (`add_module`, `update_module`, `remove`), and connections and messages (`connect`, `add_message`), keeping to the drawing rules below. A new module gets its `type` (`list_types`). Fix the file pointers (`add_file_pointer`, as `<source_id>:<path>`).
|
|
121
|
+
- Re-`pin` new or moved docs.
|
|
122
|
+
5. **Report.** `save_report`, named `changes-<yyyy-mm-dd>`: for each source, what changed, then the Views updated and any new place where the docs and the code disagree. Keep it short. If nothing changed, don't write a report.
|
|
123
|
+
6. **Record.** `record_audit` with `kind: "update-state"`, `report` set to that report, and `sources` set to the sources you re-read.
|
|
124
|
+
7. Report the same summary back in a few lines, and `open_view` the View that changed most.
|
|
125
|
+
|
|
126
|
+
### Drawing rules (draw it as an architect would)
|
|
127
|
+
- **Top down.** Frontend at the top, then the gateway and the API, then the services side by side, then workers and queues, and the data stores at the bottom. Externals (payments, email, someone else's API) go to the side. The `type` says where a module goes (each type has a `tier` in `list_types`), so give every module the type that fits and the layout puts it in its row.
|
|
128
|
+
- **One module per real deployable or store**: a frontend, a service you deploy, a database, a queue, an external service. Not a folder, a class or a library.
|
|
129
|
+
- **Short labels**: a module name of one to three words ("Pricing", "Orders DB"), a connection label of a word or two (`https`, `/prices`, `order.created`).
|
|
130
|
+
- **No more than about 9 modules on a View.** When there are more, group them and drill into Sub Views (`create_view` with `from_module`) instead.
|
|
131
|
+
- Leave out `x` and `y` on `add_module`: the layout places each module as you draw (top down, by tier, orthogonal lines that leave from the bottom and enter from the top). On a View a person has arranged, only what you add is placed. Call `layout_view` only when a person asks to tidy a View.
|
|
132
|
+
|
|
133
|
+
### Rules
|
|
134
|
+
- Change only what changed. Don't redraw Views that are still true.
|
|
135
|
+
- Never write to a source. The git commands are read-only: no checkout, no fetch, no stash.
|
|
136
|
+
- **Approvals**: a new project, and a View or Doc you make that no person has approved yet, take your writes directly. Only a change to approved content waits, as a draft of that View or Doc: the reply says "pending in Approvals" and where it stands, e.g. "amended pending approval #12 (3 revisions, from v4)", and nothing is live yet. A later write to the same View or Doc amends that same draft (a new revision), so keep working; there is nothing to send. When you are done, tell the person what is waiting in their words ("amended pending approval #12"), and check `get_approval` later for the outcome (approved, approved in part or denied, with any note). If nothing changed, nothing waits.
|
|
137
|
+
|
|
138
|
+
## post-audit
|
|
139
|
+
|
|
140
|
+
> If the spatial-views MCP tools are not available, stop and tell the user to enable the spatial-views MCP server (and to check the WSL form on Windows). Do not write your own MCP client or call the CLI directly.
|
|
141
|
+
|
|
142
|
+
### Start: pick the project
|
|
143
|
+
1. `list_projects`, then `use_project` with the project's name. If it isn't listed, or you can't tell which one is meant, stop and ask (a new project starts with `pre-audit`).
|
|
144
|
+
2. Every tool now works on that project only, and reads only its sources (`list_sources`). A path outside them is refused: don't look for another way in, ask for the folder to be added with `add_source`.
|
|
145
|
+
|
|
146
|
+
`post-audit <project>`: did we build what the specs say?
|
|
147
|
+
|
|
148
|
+
Use the `spatial-views` MCP tools. The sources are only read.
|
|
149
|
+
|
|
150
|
+
### Spec format
|
|
151
|
+
Call `get_project` once and read its spec_format (Settings → Project → Spec format). Read and write specs in that format only:
|
|
152
|
+
- **spatial-views**: the specs are PRD, MDD and Gap docs (`specs/prd/`, `specs/mdd/`, `specs/gaps/`). A Gap here is a doc: title, intent, modules, acceptance.
|
|
153
|
+
- **openspec**: the specs are `openspec/specs/<capability>/spec.md`, and proposed work is a change in `openspec/changes/<id>/` (`proposal.md`, `tasks.md`, delta specs under `specs/`). Don't write PRD, MDD or Gap docs.
|
|
154
|
+
|
|
155
|
+
### Steps
|
|
156
|
+
1. `get_project`, `list_sources` and `list_pins`. The pinned specs and docs are what you audit against.
|
|
157
|
+
2. **Requirements.** Read each pinned spec and doc: OpenSpec requirements, PRD and SDD statements, PBI acceptance criteria, and documented endpoints, queues and flows. List each requirement once, with an id (for example `R1`) and where it is stated (`<source_id>:<path>` and the heading or line).
|
|
158
|
+
3. **Evidence.** For each requirement, look for evidence:
|
|
159
|
+
- **file**: the code that does it (`scan_source` routes, queues and DB use, then the file and line);
|
|
160
|
+
- **test**: a test that checks it;
|
|
161
|
+
- **View**: the module, connection or sequence message that shows it.
|
|
162
|
+
Mark each requirement **met** (evidence found), **partial** (some of it, and say what's missing) or **missing**. A requirement is never met without evidence.
|
|
163
|
+
4. **Coverage.** Coverage is met / total, as a percentage. Count partial as not met, and give its count separately.
|
|
164
|
+
5. **Report.** `save_report`, named `audit-report`:
|
|
165
|
+
- a header line: the date, the project, and coverage `N% (met/total)`, with partial and missing counts;
|
|
166
|
+
- a table: id, requirement, where it is stated, status, evidence;
|
|
167
|
+
- a list of the misses.
|
|
168
|
+
It is pinned to the System Overview.
|
|
169
|
+
6. **Record.** `record_audit` with `kind: "post-audit"` and `report: "audit-report"`.
|
|
170
|
+
7. Report the coverage figure and the misses.
|
|
171
|
+
|
|
172
|
+
### Rules
|
|
173
|
+
- Quote requirements as they are written. Don't reword them to fit the code.
|
|
174
|
+
- Every "met" cites a file and line, a test, or a View.
|
|
175
|
+
- Never fix code in an audit. Report the miss.
|
|
176
|
+
- Never write to a source.
|
|
177
|
+
|
|
178
|
+
## check-ui
|
|
179
|
+
|
|
180
|
+
> If the spatial-views MCP tools are not available, stop and tell the user to enable the spatial-views MCP server (and to check the WSL form on Windows). Do not write your own MCP client or call the CLI directly.
|
|
181
|
+
|
|
182
|
+
`check-ui <url> <view or spec>`, for example `check-ui http://localhost:5173/settings "Settings screen"` or `check-ui http://localhost:3000 docs/specs/checkout.md`.
|
|
183
|
+
|
|
184
|
+
You need two things: the URL of the page being built, and the View or spec doc it was built from. If either is missing, ask for it.
|
|
185
|
+
|
|
186
|
+
### Start: the project and the browser
|
|
187
|
+
1. `list_projects`, then `use_project` with the project's name. If you can't tell which one is meant, stop and ask.
|
|
188
|
+
2. Check that the Playwright MCP tools are there (`browser_navigate`, `browser_resize`, `browser_take_screenshot`, `browser_snapshot`). If they are not, stop and tell the user to add Microsoft's Playwright MCP (`@playwright/mcp`) themselves, as the README shows under "Check the UI with Playwright MCP". Never install it yourself.
|
|
189
|
+
|
|
190
|
+
### Steps
|
|
191
|
+
1. **Read what it should be.** For a View: `list_views`, then `get_view` it, and `list_pins` for the specs pinned to it; read those too. For a spec doc: read the file. List every screen, section, module, label, button, field and state (empty, loading, error) it names, in the order it gives them.
|
|
192
|
+
2. **Open the page.** `browser_resize` to a desktop size (1440 by 900), then `browser_navigate` to the URL. If it doesn't load, stop and report that.
|
|
193
|
+
3. **Look at it.** `browser_take_screenshot` (full page) and note where it was saved. `browser_snapshot` for the page's text, headings, landmarks and controls.
|
|
194
|
+
4. **Light and dark.** If the app has both, switch with `browser_emulate_media` (`colorScheme: "dark"`) or the app's own theme toggle, and take a second screenshot and snapshot. Then switch back.
|
|
195
|
+
5. **Compare.** Check each item from step 1 against the snapshot and the screenshot:
|
|
196
|
+
- Present: every screen, section, module, label and state the spec names is on the page.
|
|
197
|
+
- Order: the layout follows the spec (top to bottom, left to right).
|
|
198
|
+
- Text: headings, labels and button text match the spec's words.
|
|
199
|
+
- Nothing extra: anything on the page the spec doesn't name.
|
|
200
|
+
- Both themes: text readable and nothing missing in light and dark.
|
|
201
|
+
6. **Report.** A short table, one row per difference:
|
|
202
|
+
|
|
203
|
+
| Expected (spec) | Seen on page | Where | Severity |
|
|
204
|
+
|---|---|---|---|
|
|
205
|
+
| "Save" button under the form | missing | Settings, Profile section | high |
|
|
206
|
+
|
|
207
|
+
Severity: **high** (missing or wrong function), **medium** (wrong order, wrong text), **low** (spacing, colour, small extras). Then the screenshot paths, and one line saying what matched. If nothing differs, say so.
|
|
62
208
|
|
|
63
209
|
### Rules
|
|
64
|
-
- Never
|
|
65
|
-
-
|
|
66
|
-
-
|
|
210
|
+
- Report only. Never change the spec, the View or the code in this skill, and never fix what you find; a person decides what to do.
|
|
211
|
+
- Compare with what the spec says, not with what you think looks good.
|
|
212
|
+
- Say what you could not check (a state you could not reach, a page behind a login).
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# yaml-language-server: $schema=../schema/toolbox.schema.json
|
|
2
|
+
# The AWS toolbox. Icons are lucide; the official AWS icons are not bundled (their terms limit
|
|
3
|
+
# redistribution). To use them, download them yourself and point each type at the SVG:
|
|
4
|
+
# see "Use the official AWS or Azure icons" in the README.
|
|
5
|
+
name: AWS
|
|
6
|
+
order: 30
|
|
7
|
+
icon: lucide:cloud-cog
|
|
8
|
+
description: Amazon Web Services.
|
|
9
|
+
types:
|
|
10
|
+
- { id: aws-ec2, name: EC2, description: "Virtual servers.", icon: "lucide:cpu", color: orange,
|
|
11
|
+
properties: [{ name: instance_type, type: string, label: Instance type, default: t3.medium }, { name: count, type: number, default: 1 }] }
|
|
12
|
+
- { id: aws-lambda, name: Lambda, description: "Functions run on events.", icon: "lucide:square-function", color: orange,
|
|
13
|
+
properties: [{ name: runtime, type: enum, options: [nodejs22.x, python3.13, java21, dotnet8, go (provided.al2023), Other], default: nodejs22.x }, { name: memory, type: number, label: Memory (MB), default: 512 }] }
|
|
14
|
+
- { id: aws-ecs, name: ECS, description: "Containers on Elastic Container Service.", icon: "lucide:container", color: orange,
|
|
15
|
+
properties: [{ name: launch_type, type: enum, label: Launch type, options: [Fargate, EC2], default: Fargate }, { name: desired_count, type: number, label: Tasks, default: 2 }] }
|
|
16
|
+
- { id: aws-eks, name: EKS, description: "Managed Kubernetes.", icon: "lucide:ship", color: orange,
|
|
17
|
+
properties: [{ name: version, type: string, label: Kubernetes version }, { name: node_groups, type: text, label: Node groups }] }
|
|
18
|
+
- { id: aws-s3, name: S3, description: "Object storage in buckets.", icon: "lucide:archive", color: green,
|
|
19
|
+
properties: [{ name: bucket, type: string }, { name: versioning, type: boolean, default: false }] }
|
|
20
|
+
- { id: aws-rds, name: RDS, description: "Managed relational databases.", icon: "lucide:database", color: blue,
|
|
21
|
+
properties: [{ name: engine, type: enum, options: [PostgreSQL, MySQL, MariaDB, Aurora PostgreSQL, Aurora MySQL, SQL Server, Oracle], default: PostgreSQL }, { name: multi_az, type: boolean, label: Multi-AZ, default: true }] }
|
|
22
|
+
- { id: aws-dynamodb, name: DynamoDB, description: "Key-value and document tables.", icon: "lucide:table", color: blue,
|
|
23
|
+
properties: [{ name: table, type: string }, { name: billing, type: enum, options: [On-demand, Provisioned], default: On-demand }] }
|
|
24
|
+
- { id: aws-sqs, name: SQS, description: "Message queues.", icon: "lucide:list-ordered", color: pink,
|
|
25
|
+
properties: [{ name: fifo, type: boolean, label: FIFO, default: false }, { name: dlq, type: string, label: Dead-letter queue }] }
|
|
26
|
+
- { id: aws-sns, name: SNS, description: "Pub/sub topics and notifications.", icon: "lucide:bell", color: pink,
|
|
27
|
+
properties: [{ name: topic, type: string }] }
|
|
28
|
+
- { id: aws-eventbridge, name: EventBridge, description: "Event buses, rules and schedules.", icon: "lucide:workflow", color: pink,
|
|
29
|
+
properties: [{ name: bus, type: string, default: default }, { name: rules, type: text }] }
|
|
30
|
+
- { id: aws-api-gateway, name: API Gateway, description: "Managed HTTP, REST and WebSocket APIs.", icon: "lucide:door-open", color: violet,
|
|
31
|
+
properties: [{ name: kind, type: enum, options: [HTTP, REST, WebSocket], default: HTTP }, { name: stage, type: string, default: prod }] }
|
|
32
|
+
- { id: aws-cloudfront, name: CloudFront, description: "The CDN.", icon: "lucide:earth", color: violet,
|
|
33
|
+
properties: [{ name: origin, type: string }] }
|
|
34
|
+
- { id: aws-route53, name: Route 53, description: "DNS and health checks.", icon: "lucide:signpost", color: violet,
|
|
35
|
+
properties: [{ name: zone, type: string, label: Hosted zone }] }
|
|
36
|
+
- { id: aws-cognito, name: Cognito, description: "User pools and sign-in.", icon: "lucide:shield-check", color: red,
|
|
37
|
+
properties: [{ name: user_pool, type: string, label: User pool }, { name: mfa, type: boolean, label: MFA, default: false }] }
|
|
38
|
+
- { id: aws-iam, name: IAM, description: "Roles, policies and permissions.", icon: "lucide:key-round", color: red,
|
|
39
|
+
properties: [{ name: role, type: string }, { name: policies, type: text }] }
|
|
40
|
+
- { id: aws-cloudwatch, name: CloudWatch, description: "Logs, metrics and alarms.", icon: "lucide:activity", color: pink,
|
|
41
|
+
properties: [{ name: alarms, type: text }] }
|
|
42
|
+
- { id: aws-vpc, name: VPC, description: "A virtual private cloud and its subnets.", icon: "lucide:network", color: violet,
|
|
43
|
+
properties: [{ name: cidr, type: string, label: CIDR, default: 10.0.0.0/16 }, { name: region, type: string, default: eu-west-2 }] }
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# yaml-language-server: $schema=../schema/toolbox.schema.json
|
|
2
|
+
# The Azure toolbox. Icons are lucide; the official Azure icons are not bundled (their terms limit
|
|
3
|
+
# redistribution). To use them, download them yourself and point each type at the SVG:
|
|
4
|
+
# see "Use the official AWS or Azure icons" in the README.
|
|
5
|
+
name: Azure
|
|
6
|
+
order: 40
|
|
7
|
+
icon: lucide:cloudy
|
|
8
|
+
description: Microsoft Azure.
|
|
9
|
+
types:
|
|
10
|
+
- { id: azure-vm, name: Virtual Machine, description: "Virtual servers.", icon: "lucide:cpu", color: blue, size: { w: 180, h: 48 },
|
|
11
|
+
properties: [{ name: size, type: string, default: Standard_D2s_v5 }, { name: os, type: enum, label: OS, options: [Linux, Windows], default: Linux }] }
|
|
12
|
+
- { id: azure-functions, name: Functions, description: "Functions run on events.", icon: "lucide:square-function", color: blue,
|
|
13
|
+
properties: [{ name: runtime, type: enum, options: [Node.js, Python, .NET, Java, PowerShell, Other], default: Node.js }, { name: plan, type: enum, options: [Consumption, Flex Consumption, Premium, Dedicated], default: Flex Consumption }] }
|
|
14
|
+
- { id: azure-app-service, name: App Service, description: "Managed web apps and APIs.", icon: "lucide:app-window", color: blue,
|
|
15
|
+
properties: [{ name: plan, type: string, label: App Service plan }, { name: runtime, type: string }] }
|
|
16
|
+
- { id: azure-aks, name: AKS, description: "Managed Kubernetes.", icon: "lucide:ship", color: blue,
|
|
17
|
+
properties: [{ name: version, type: string, label: Kubernetes version }, { name: node_pools, type: text, label: Node pools }] }
|
|
18
|
+
- { id: azure-container-apps, name: Container Apps, description: "Serverless containers.", icon: "lucide:container", color: blue, size: { w: 180, h: 48 },
|
|
19
|
+
properties: [{ name: image, type: string }, { name: min_replicas, type: number, label: Min replicas, default: 0 }] }
|
|
20
|
+
- { id: azure-blob, name: Blob Storage, description: "Object storage in containers.", icon: "lucide:archive", color: green,
|
|
21
|
+
properties: [{ name: account, type: string, label: Storage account }, { name: tier, type: enum, options: [Hot, Cool, Cold, Archive], default: Hot }] }
|
|
22
|
+
- { id: azure-sql, name: Azure SQL, description: "Managed SQL Server databases.", icon: "lucide:database", color: teal,
|
|
23
|
+
properties: [{ name: tier, type: string, default: General Purpose }] }
|
|
24
|
+
- { id: azure-cosmos-db, name: Cosmos DB, description: "Globally distributed NoSQL.", icon: "lucide:earth", color: teal,
|
|
25
|
+
properties: [{ name: api, type: enum, label: API, options: [NoSQL, MongoDB, PostgreSQL, Cassandra, Gremlin, Table], default: NoSQL }] }
|
|
26
|
+
- { id: azure-service-bus, name: Service Bus, description: "Queues and topics.", icon: "lucide:list-ordered", color: pink,
|
|
27
|
+
properties: [{ name: entity, type: enum, options: [Queue, Topic], default: Queue }] }
|
|
28
|
+
- { id: azure-event-grid, name: Event Grid, description: "Event routing.", icon: "lucide:workflow", color: pink,
|
|
29
|
+
properties: [{ name: topic, type: string }] }
|
|
30
|
+
- { id: azure-api-management, name: API Management, description: "The API gateway and developer portal.", icon: "lucide:door-open", color: violet, size: { w: 180, h: 48 },
|
|
31
|
+
properties: [{ name: tier, type: enum, options: [Consumption, Developer, Basic, Standard, Premium], default: Standard }] }
|
|
32
|
+
- { id: azure-front-door, name: Front Door, description: "Global entry point, CDN and WAF.", icon: "lucide:globe", color: violet,
|
|
33
|
+
properties: [{ name: waf, type: boolean, label: WAF, default: true }] }
|
|
34
|
+
- { id: azure-entra-id, name: Entra ID, description: "Identity, sign-in and app registrations.", icon: "lucide:shield-check", color: red,
|
|
35
|
+
properties: [{ name: tenant, type: string }] }
|
|
36
|
+
- { id: azure-key-vault, name: Key Vault, description: "Secrets, keys and certificates.", icon: "lucide:key-round", color: red,
|
|
37
|
+
properties: [{ name: vault, type: string }] }
|
|
38
|
+
- { id: azure-monitor, name: Monitor, description: "Logs, metrics, Application Insights and alerts.", icon: "lucide:activity", color: pink,
|
|
39
|
+
properties: [{ name: workspace, type: string, label: Log Analytics workspace }] }
|
|
40
|
+
- { id: azure-vnet, name: VNet, description: "A virtual network and its subnets.", icon: "lucide:network", color: violet,
|
|
41
|
+
properties: [{ name: cidr, type: string, label: CIDR, default: 10.0.0.0/16 }, { name: region, type: string, default: uksouth }] }
|