spatial-views 0.0.0-stage → 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/LICENSE +21 -0
- package/README.md +245 -2
- package/dist/app/assets/abnfDiagram-S7VZAUFO-CFbb_Sz2.js +1 -0
- package/dist/app/assets/architecture-WOLXFQ4H-CsBD__5a.js +1 -0
- package/dist/app/assets/architectureDiagram-YGSQEFNW-C0ic4ib1.js +36 -0
- package/dist/app/assets/blockDiagram-APKKGZFW-BZDPbzAG.js +140 -0
- package/dist/app/assets/bpmnIcons-APHXDYXF-C0jbCElo.js +1 -0
- package/dist/app/assets/c4Diagram-KJ2TOQU5-BilBWuq5.js +38 -0
- package/dist/app/assets/chunk-2Q5K7J3B-C1jixKkw.js +1 -0
- package/dist/app/assets/chunk-5VM5RSS4-ZNzvKenW.js +15 -0
- package/dist/app/assets/chunk-6MUBBAK2-BBl-4tQr.js +2 -0
- package/dist/app/assets/chunk-AXFCVDMN-BhsttQ-k.js +62 -0
- package/dist/app/assets/chunk-BG4553SI-mWcPcFZr.js +127 -0
- package/dist/app/assets/chunk-DQASFODM-7FKe2gLt.js +10 -0
- package/dist/app/assets/chunk-DUW6YSOI-Dgx8z5s3.js +1 -0
- package/dist/app/assets/chunk-HFQBQIA3-nXrQ08BL.js +1 -0
- package/dist/app/assets/chunk-J5ZVWO5B-oDCd-gWO.js +1 -0
- package/dist/app/assets/chunk-JWPE2WC7-DVXcaiue.js +1 -0
- package/dist/app/assets/chunk-KQLB2F66-swukhFmZ.js +2 -0
- package/dist/app/assets/chunk-KS47KZWR-DkDkwO82.js +1 -0
- package/dist/app/assets/chunk-LEVMRMFU-DXH6iXv3.js +1 -0
- package/dist/app/assets/chunk-M57EVK23-B-kEyOJF.js +1 -0
- package/dist/app/assets/chunk-NGNAAXSQ-DI_UYJZ4.js +136 -0
- package/dist/app/assets/chunk-OY52VR5R-DweG7qYw.js +88 -0
- package/dist/app/assets/chunk-QB3YPZ4I-DyozK3lV.js +213 -0
- package/dist/app/assets/chunk-R3KSYZAL-BEXCUN6J.js +1 -0
- package/dist/app/assets/chunk-STOXU5M4-BaTlty4O.js +72 -0
- package/dist/app/assets/chunk-TU62E6Q5-_rcUP1Fh.js +1 -0
- package/dist/app/assets/chunk-X3CZISLH-NOpCnvgE.js +1 -0
- package/dist/app/assets/chunk-X4PVCEUW-DGxTL3kB.js +1 -0
- package/dist/app/assets/chunk-XXDRQBXY-C02Gpej2.js +1 -0
- package/dist/app/assets/chunk-Y2CYZVJY-DsF7k-Jl.js +1 -0
- package/dist/app/assets/classDiagram-v2-L25IHNXF-DLEBwpvk.js +217 -0
- 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-CLFstukD.js +62 -0
- package/dist/app/assets/cytoscape.esm-nTrd5EVq.js +321 -0
- package/dist/app/assets/d3-scale-CaJQQYkF.js +1 -0
- package/dist/app/assets/dagre-SPEB5RXH-BaSAny1T.js +4 -0
- package/dist/app/assets/diagram-3B7GL73J-DJNlt5Sg.js +200 -0
- package/dist/app/assets/diagram-DNEMPZML-DEHeuILB.js +24 -0
- package/dist/app/assets/diagram-L3MUGCDN-ob5Ka2Xc.js +41 -0
- package/dist/app/assets/diagram-LA4NIPWU-DNESzFAc.js +24 -0
- package/dist/app/assets/diagram-MHCOC4E2-CVi9zKjG.js +3 -0
- package/dist/app/assets/diagram-XPFHEONP-DInT4C7e.js +30 -0
- package/dist/app/assets/dist-CjvHN74u.js +1 -0
- package/dist/app/assets/ebnfDiagram-UZSYDL2S-CRCZNsji.js +1 -0
- package/dist/app/assets/elk-XV6XMXQE-D4fsWI2l.js +2 -0
- package/dist/app/assets/erDiagram-EYBAPDEH-YQNM5StV.js +99 -0
- package/dist/app/assets/eventmodeling-K75KTNOO-Bev08J2F.js +1 -0
- 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-D15ZdQ-Z.js +106 -0
- package/dist/app/assets/graphlib-DS17s2tU.js +1 -0
- 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-DT7LbBRQ.js +2 -0
- package/dist/app/assets/ishikawaDiagram-M35NCXHK-CF51lhjB.js +70 -0
- package/dist/app/assets/journeyDiagram-OPLOXDXO-_36FonKk.js +139 -0
- package/dist/app/assets/kanban-definition-BZKZHSQY-tLk_OlQ-.js +89 -0
- package/dist/app/assets/katex-MEuSR36T.js +257 -0
- package/dist/app/assets/mermaid-parser.core-_3Vo8x6b.js +7 -0
- package/dist/app/assets/mermaid.core-y-x1CYxC.js +44 -0
- package/dist/app/assets/mindmap-definition-I2QAS2VK-BCI4HRX3.js +98 -0
- package/dist/app/assets/packet-JDAUHWVQ-Cco3UoaI.js +1 -0
- package/dist/app/assets/pegDiagram-FD4XPPHP-BOzSoNji.js +1 -0
- package/dist/app/assets/pie-XZMESJXO-reOB2GXn.js +1 -0
- package/dist/app/assets/pieDiagram-J4AKIIQI-PlHpwT_c.js +39 -0
- package/dist/app/assets/quadrantDiagram-XTYBLID2-CdxZ0ael.js +7 -0
- 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-C49jJE4Y.js +1 -0
- package/dist/app/assets/railroad-ebnf-DWYD2UWJ-Bx-pcPc7.js +1 -0
- package/dist/app/assets/railroad-peg-JR7BVNR7-DjBPSCKV.js +1 -0
- package/dist/app/assets/railroadDiagram-MRQ6NCDL-wGcmIMqq.js +1 -0
- package/dist/app/assets/requirementDiagram-Y7LWUY3S-DprFI03z.js +84 -0
- package/dist/app/assets/rolldown-runtime-XKyaHtl9.js +1 -0
- package/dist/app/assets/rough.esm-Dy-Kn_BL.js +1 -0
- package/dist/app/assets/sankeyDiagram-WGJFYUXA-DygYWLTR.js +40 -0
- package/dist/app/assets/sequenceDiagram-5NDRBG5M-BzIr2DBO.js +169 -0
- package/dist/app/assets/sizeCapture-INFHLROL-3uHXrFqA.js +1 -0
- package/dist/app/assets/stateDiagram-v2-FJ4FJNEA-MGCqKnm_.js +291 -0
- package/dist/app/assets/swimlanes-UMQ2AFYF-CIEH82Zt.js +1 -0
- package/dist/app/assets/swimlanesDiagram-OMPLPG4O-YWNJjl0g.js +8 -0
- package/dist/app/assets/timeline-definition-SEUHKTQE-BGYSqup2.js +120 -0
- 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-dy6oVOke.js +328 -0
- package/dist/app/assets/vennDiagram-NNMJR3RB-CUyuhcAk.js +34 -0
- package/dist/app/assets/wardley-7MLQ67FV-sYPAvQ06.js +1 -0
- package/dist/app/assets/wardleyDiagram-S7YFUSEH-DYtxYUHe.js +78 -0
- package/dist/app/assets/xychartDiagram-GGNKY7IX-ClR06AlB.js +7 -0
- package/dist/app/index.html +14 -0
- package/dist/cli/index.js +338 -0
- package/dist/core/api.js +420 -0
- package/dist/core/approvals.js +426 -0
- package/dist/core/context.js +259 -0
- package/dist/core/diff.js +156 -0
- package/dist/core/docs.js +140 -0
- package/dist/core/doctor.js +152 -0
- package/dist/core/doctypes.js +79 -0
- package/dist/core/edit.js +130 -0
- package/dist/core/errors.js +3 -0
- package/dist/core/flags.js +13 -0
- package/dist/core/gaps.js +119 -0
- package/dist/core/heading.js +4 -0
- package/dist/core/history.js +50 -0
- 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/links.js +68 -0
- package/dist/core/mermaid.js +175 -0
- package/dist/core/newdoc.js +66 -0
- package/dist/core/open-folder.js +30 -0
- package/dist/core/openspec.js +120 -0
- package/dist/core/paths.js +90 -0
- package/dist/core/project.js +392 -0
- package/dist/core/resolve.js +35 -0
- package/dist/core/route.js +420 -0
- package/dist/core/scan.js +514 -0
- package/dist/core/schema.js +270 -0
- package/dist/core/scope.js +126 -0
- package/dist/core/setup.js +134 -0
- package/dist/core/skills.js +181 -0
- 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 +589 -0
- 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 -0
- package/dist/core/versions.js +245 -0
- package/dist/core/watch.js +2 -0
- package/dist/core/xml.js +68 -0
- 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 +785 -0
- 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 +69 -4
- package/schema/approval.schema.json +173 -0
- package/schema/gap.schema.json +56 -0
- package/schema/pins.schema.json +122 -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 +240 -0
- package/skills/claude/build-gap/SKILL.md +28 -0
- package/skills/claude/check-ui/SKILL.md +40 -0
- package/skills/claude/draw-system/SKILL.md +38 -0
- package/skills/claude/gap-from-view/SKILL.md +29 -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 +38 -0
- 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 +212 -0
- 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
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://raw.githubusercontent.com/Hotchilli-Cloud/spatial-views/main/schema/toolbox.schema.json",
|
|
4
|
+
"title": "Spatial Views: a toolbox (toolboxes/<id>.yaml): its module types and doc types",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"id": {
|
|
8
|
+
"description": "default: the file name. The same id in a later file (user, project) overrides or extends this toolbox",
|
|
9
|
+
"type": "string",
|
|
10
|
+
"pattern": "^[a-z0-9][a-z0-9_-]*$"
|
|
11
|
+
},
|
|
12
|
+
"name": {
|
|
13
|
+
"description": "the toolbox's name on the bar (default: from the id)",
|
|
14
|
+
"type": "string",
|
|
15
|
+
"minLength": 1
|
|
16
|
+
},
|
|
17
|
+
"icon": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"pattern": "^(lucide:[a-z0-9]+(-[a-z0-9]+)*|\\.\\/([A-Za-z0-9_ -]+\\/)*[A-Za-z0-9_ .-]+\\.svg|[a-z0-9]+(-[a-z0-9]+)*)$",
|
|
20
|
+
"description": "lucide:<name> (https://lucide.dev/icons), or ./icons/<file>.svg relative to this YAML file"
|
|
21
|
+
},
|
|
22
|
+
"description": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"order": {
|
|
26
|
+
"type": "number"
|
|
27
|
+
},
|
|
28
|
+
"types": {
|
|
29
|
+
"type": "array",
|
|
30
|
+
"items": {
|
|
31
|
+
"type": "object",
|
|
32
|
+
"properties": {
|
|
33
|
+
"id": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"pattern": "^[a-z0-9][a-z0-9_-]*$",
|
|
36
|
+
"description": "unique across toolboxes; prefix it with the toolbox id (aws-ec2, gcp-run)"
|
|
37
|
+
},
|
|
38
|
+
"name": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"minLength": 1
|
|
41
|
+
},
|
|
42
|
+
"description": {
|
|
43
|
+
"type": "string"
|
|
44
|
+
},
|
|
45
|
+
"icon": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"pattern": "^(lucide:[a-z0-9]+(-[a-z0-9]+)*|\\.\\/([A-Za-z0-9_ -]+\\/)*[A-Za-z0-9_ .-]+\\.svg|[a-z0-9]+(-[a-z0-9]+)*)$",
|
|
48
|
+
"description": "lucide:<name> (https://lucide.dev/icons), or ./icons/<file>.svg relative to this YAML file"
|
|
49
|
+
},
|
|
50
|
+
"color": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"enum": [
|
|
53
|
+
"slate",
|
|
54
|
+
"gray",
|
|
55
|
+
"blue",
|
|
56
|
+
"indigo",
|
|
57
|
+
"violet",
|
|
58
|
+
"pink",
|
|
59
|
+
"red",
|
|
60
|
+
"orange",
|
|
61
|
+
"amber",
|
|
62
|
+
"green",
|
|
63
|
+
"teal",
|
|
64
|
+
"cyan"
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
"size": {
|
|
68
|
+
"type": "object",
|
|
69
|
+
"properties": {
|
|
70
|
+
"w": {
|
|
71
|
+
"type": "number",
|
|
72
|
+
"minimum": 60,
|
|
73
|
+
"maximum": 600
|
|
74
|
+
},
|
|
75
|
+
"h": {
|
|
76
|
+
"type": "number",
|
|
77
|
+
"minimum": 28,
|
|
78
|
+
"maximum": 400
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"required": [
|
|
82
|
+
"w",
|
|
83
|
+
"h"
|
|
84
|
+
],
|
|
85
|
+
"additionalProperties": false
|
|
86
|
+
},
|
|
87
|
+
"tier": {
|
|
88
|
+
"type": "integer",
|
|
89
|
+
"minimum": 0,
|
|
90
|
+
"maximum": 6
|
|
91
|
+
},
|
|
92
|
+
"side": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"enum": [
|
|
95
|
+
"right"
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
"properties": {
|
|
99
|
+
"type": "array",
|
|
100
|
+
"items": {
|
|
101
|
+
"type": "object",
|
|
102
|
+
"properties": {
|
|
103
|
+
"name": {
|
|
104
|
+
"type": "string",
|
|
105
|
+
"pattern": "^[a-z][a-z0-9_]*$"
|
|
106
|
+
},
|
|
107
|
+
"label": {
|
|
108
|
+
"type": "string"
|
|
109
|
+
},
|
|
110
|
+
"type": {
|
|
111
|
+
"default": "string",
|
|
112
|
+
"type": "string",
|
|
113
|
+
"enum": [
|
|
114
|
+
"string",
|
|
115
|
+
"text",
|
|
116
|
+
"number",
|
|
117
|
+
"boolean",
|
|
118
|
+
"enum",
|
|
119
|
+
"url"
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
"default": {
|
|
123
|
+
"type": [
|
|
124
|
+
"string",
|
|
125
|
+
"number",
|
|
126
|
+
"boolean"
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
"options": {
|
|
130
|
+
"type": "array",
|
|
131
|
+
"items": {
|
|
132
|
+
"type": "string"
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"required": [
|
|
137
|
+
"name"
|
|
138
|
+
],
|
|
139
|
+
"additionalProperties": false
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"required": [
|
|
144
|
+
"id"
|
|
145
|
+
],
|
|
146
|
+
"additionalProperties": false
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"docs": {
|
|
150
|
+
"type": "array",
|
|
151
|
+
"items": {
|
|
152
|
+
"type": "object",
|
|
153
|
+
"properties": {
|
|
154
|
+
"id": {
|
|
155
|
+
"type": "string",
|
|
156
|
+
"pattern": "^[a-z0-9][a-z0-9_-]*$"
|
|
157
|
+
},
|
|
158
|
+
"name": {
|
|
159
|
+
"type": "string",
|
|
160
|
+
"minLength": 1
|
|
161
|
+
},
|
|
162
|
+
"description": {
|
|
163
|
+
"type": "string"
|
|
164
|
+
},
|
|
165
|
+
"icon": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"pattern": "^(lucide:[a-z0-9]+(-[a-z0-9]+)*|\\.\\/([A-Za-z0-9_ -]+\\/)*[A-Za-z0-9_ .-]+\\.svg|[a-z0-9]+(-[a-z0-9]+)*)$",
|
|
168
|
+
"description": "lucide:<name> (https://lucide.dev/icons), or ./icons/<file>.svg relative to this YAML file"
|
|
169
|
+
},
|
|
170
|
+
"color": {
|
|
171
|
+
"type": "string",
|
|
172
|
+
"enum": [
|
|
173
|
+
"slate",
|
|
174
|
+
"gray",
|
|
175
|
+
"blue",
|
|
176
|
+
"indigo",
|
|
177
|
+
"violet",
|
|
178
|
+
"pink",
|
|
179
|
+
"red",
|
|
180
|
+
"orange",
|
|
181
|
+
"amber",
|
|
182
|
+
"green",
|
|
183
|
+
"teal",
|
|
184
|
+
"cyan"
|
|
185
|
+
]
|
|
186
|
+
},
|
|
187
|
+
"folder": {
|
|
188
|
+
"type": "string",
|
|
189
|
+
"pattern": "^[A-Za-z0-9_-]+(\\/[A-Za-z0-9_-]+)*$"
|
|
190
|
+
},
|
|
191
|
+
"title": {
|
|
192
|
+
"type": "string"
|
|
193
|
+
},
|
|
194
|
+
"template": {
|
|
195
|
+
"type": "string"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"required": [
|
|
199
|
+
"id"
|
|
200
|
+
],
|
|
201
|
+
"additionalProperties": false
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
"additionalProperties": false
|
|
206
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://raw.githubusercontent.com/Hotchilli-Cloud/spatial-views/main/schema/type.schema.json",
|
|
4
|
+
"title": "Spatial Views: a module type, as written in a toolbox's types list",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"id": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"pattern": "^[a-z0-9][a-z0-9_-]*$",
|
|
10
|
+
"description": "unique across toolboxes; prefix it with the toolbox id (aws-ec2, gcp-run)"
|
|
11
|
+
},
|
|
12
|
+
"name": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"minLength": 1
|
|
15
|
+
},
|
|
16
|
+
"description": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
"icon": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"pattern": "^(lucide:[a-z0-9]+(-[a-z0-9]+)*|\\.\\/([A-Za-z0-9_ -]+\\/)*[A-Za-z0-9_ .-]+\\.svg|[a-z0-9]+(-[a-z0-9]+)*)$",
|
|
22
|
+
"description": "lucide:<name> (https://lucide.dev/icons), or ./icons/<file>.svg relative to this YAML file"
|
|
23
|
+
},
|
|
24
|
+
"color": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"enum": [
|
|
27
|
+
"slate",
|
|
28
|
+
"gray",
|
|
29
|
+
"blue",
|
|
30
|
+
"indigo",
|
|
31
|
+
"violet",
|
|
32
|
+
"pink",
|
|
33
|
+
"red",
|
|
34
|
+
"orange",
|
|
35
|
+
"amber",
|
|
36
|
+
"green",
|
|
37
|
+
"teal",
|
|
38
|
+
"cyan"
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
"size": {
|
|
42
|
+
"type": "object",
|
|
43
|
+
"properties": {
|
|
44
|
+
"w": {
|
|
45
|
+
"type": "number",
|
|
46
|
+
"minimum": 60,
|
|
47
|
+
"maximum": 600
|
|
48
|
+
},
|
|
49
|
+
"h": {
|
|
50
|
+
"type": "number",
|
|
51
|
+
"minimum": 28,
|
|
52
|
+
"maximum": 400
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"required": [
|
|
56
|
+
"w",
|
|
57
|
+
"h"
|
|
58
|
+
],
|
|
59
|
+
"additionalProperties": false
|
|
60
|
+
},
|
|
61
|
+
"tier": {
|
|
62
|
+
"type": "integer",
|
|
63
|
+
"minimum": 0,
|
|
64
|
+
"maximum": 6
|
|
65
|
+
},
|
|
66
|
+
"side": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"enum": [
|
|
69
|
+
"right"
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
"properties": {
|
|
73
|
+
"type": "array",
|
|
74
|
+
"items": {
|
|
75
|
+
"type": "object",
|
|
76
|
+
"properties": {
|
|
77
|
+
"name": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"pattern": "^[a-z][a-z0-9_]*$"
|
|
80
|
+
},
|
|
81
|
+
"label": {
|
|
82
|
+
"type": "string"
|
|
83
|
+
},
|
|
84
|
+
"type": {
|
|
85
|
+
"default": "string",
|
|
86
|
+
"type": "string",
|
|
87
|
+
"enum": [
|
|
88
|
+
"string",
|
|
89
|
+
"text",
|
|
90
|
+
"number",
|
|
91
|
+
"boolean",
|
|
92
|
+
"enum",
|
|
93
|
+
"url"
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
"default": {
|
|
97
|
+
"type": [
|
|
98
|
+
"string",
|
|
99
|
+
"number",
|
|
100
|
+
"boolean"
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
"options": {
|
|
104
|
+
"type": "array",
|
|
105
|
+
"items": {
|
|
106
|
+
"type": "string"
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"required": [
|
|
111
|
+
"name"
|
|
112
|
+
],
|
|
113
|
+
"additionalProperties": false
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"required": [
|
|
118
|
+
"id"
|
|
119
|
+
],
|
|
120
|
+
"additionalProperties": false
|
|
121
|
+
}
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://raw.githubusercontent.com/Hotchilli-Cloud/spatial-views/main/schema/view.schema.json",
|
|
4
|
+
"title": "Spatial Views: a View (.spatial/views/<id>.json)",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"id": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"pattern": "^[A-Za-z0-9_-]+$"
|
|
10
|
+
},
|
|
11
|
+
"name": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"type": {
|
|
15
|
+
"default": "sub-view",
|
|
16
|
+
"type": "string",
|
|
17
|
+
"enum": [
|
|
18
|
+
"high-level",
|
|
19
|
+
"repo",
|
|
20
|
+
"sub-view",
|
|
21
|
+
"feature"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
"kind": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"enum": [
|
|
27
|
+
"flow",
|
|
28
|
+
"sequence"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"lanes": {
|
|
32
|
+
"type": "array",
|
|
33
|
+
"items": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"properties": {
|
|
36
|
+
"id": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"pattern": "^[A-Za-z0-9_-]+$"
|
|
39
|
+
},
|
|
40
|
+
"label": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"minLength": 1
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"required": [
|
|
46
|
+
"id",
|
|
47
|
+
"label"
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"messages": {
|
|
52
|
+
"type": "array",
|
|
53
|
+
"items": {
|
|
54
|
+
"type": "object",
|
|
55
|
+
"properties": {
|
|
56
|
+
"id": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"minLength": 1
|
|
59
|
+
},
|
|
60
|
+
"from": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"minLength": 1
|
|
63
|
+
},
|
|
64
|
+
"to": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"minLength": 1
|
|
67
|
+
},
|
|
68
|
+
"text": {
|
|
69
|
+
"type": "string"
|
|
70
|
+
},
|
|
71
|
+
"kind": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"enum": [
|
|
74
|
+
"sync",
|
|
75
|
+
"async",
|
|
76
|
+
"reply"
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"required": [
|
|
81
|
+
"id",
|
|
82
|
+
"from",
|
|
83
|
+
"to",
|
|
84
|
+
"text"
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"modules": {
|
|
89
|
+
"default": [],
|
|
90
|
+
"type": "array",
|
|
91
|
+
"items": {
|
|
92
|
+
"type": "object",
|
|
93
|
+
"properties": {
|
|
94
|
+
"id": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"minLength": 1
|
|
97
|
+
},
|
|
98
|
+
"name": {
|
|
99
|
+
"type": "string"
|
|
100
|
+
},
|
|
101
|
+
"x": {
|
|
102
|
+
"default": 0,
|
|
103
|
+
"type": "number"
|
|
104
|
+
},
|
|
105
|
+
"y": {
|
|
106
|
+
"default": 0,
|
|
107
|
+
"type": "number"
|
|
108
|
+
},
|
|
109
|
+
"description": {
|
|
110
|
+
"type": "string"
|
|
111
|
+
},
|
|
112
|
+
"linked_view_id": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"minLength": 1
|
|
115
|
+
},
|
|
116
|
+
"files": {
|
|
117
|
+
"type": "array",
|
|
118
|
+
"items": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"minLength": 1
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"lane": {
|
|
124
|
+
"type": "string",
|
|
125
|
+
"minLength": 1
|
|
126
|
+
},
|
|
127
|
+
"type": {
|
|
128
|
+
"type": "string",
|
|
129
|
+
"minLength": 1
|
|
130
|
+
},
|
|
131
|
+
"properties": {
|
|
132
|
+
"type": "object",
|
|
133
|
+
"propertyNames": {
|
|
134
|
+
"type": "string"
|
|
135
|
+
},
|
|
136
|
+
"additionalProperties": {
|
|
137
|
+
"type": [
|
|
138
|
+
"string",
|
|
139
|
+
"number",
|
|
140
|
+
"boolean"
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"required": [
|
|
146
|
+
"id",
|
|
147
|
+
"name"
|
|
148
|
+
]
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"connections": {
|
|
152
|
+
"default": [],
|
|
153
|
+
"type": "array",
|
|
154
|
+
"items": {
|
|
155
|
+
"type": "object",
|
|
156
|
+
"properties": {
|
|
157
|
+
"id": {
|
|
158
|
+
"type": "string",
|
|
159
|
+
"minLength": 1
|
|
160
|
+
},
|
|
161
|
+
"from": {
|
|
162
|
+
"type": "string",
|
|
163
|
+
"minLength": 1
|
|
164
|
+
},
|
|
165
|
+
"to": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"minLength": 1
|
|
168
|
+
},
|
|
169
|
+
"label": {
|
|
170
|
+
"type": "string"
|
|
171
|
+
},
|
|
172
|
+
"bends": {
|
|
173
|
+
"type": "array",
|
|
174
|
+
"items": {
|
|
175
|
+
"type": "object",
|
|
176
|
+
"properties": {
|
|
177
|
+
"x": {
|
|
178
|
+
"type": "number"
|
|
179
|
+
},
|
|
180
|
+
"y": {
|
|
181
|
+
"type": "number"
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
"required": [
|
|
185
|
+
"x",
|
|
186
|
+
"y"
|
|
187
|
+
]
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"required": [
|
|
192
|
+
"id",
|
|
193
|
+
"from",
|
|
194
|
+
"to"
|
|
195
|
+
]
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"features": {
|
|
199
|
+
"type": "array",
|
|
200
|
+
"items": {
|
|
201
|
+
"type": "object",
|
|
202
|
+
"properties": {
|
|
203
|
+
"id": {
|
|
204
|
+
"type": "string",
|
|
205
|
+
"pattern": "^[A-Za-z0-9_-]+$"
|
|
206
|
+
},
|
|
207
|
+
"name": {
|
|
208
|
+
"type": "string",
|
|
209
|
+
"minLength": 1
|
|
210
|
+
},
|
|
211
|
+
"module_ids": {
|
|
212
|
+
"default": [],
|
|
213
|
+
"type": "array",
|
|
214
|
+
"items": {
|
|
215
|
+
"type": "string",
|
|
216
|
+
"minLength": 1
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"required": [
|
|
221
|
+
"id",
|
|
222
|
+
"name"
|
|
223
|
+
]
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"auto_layout": {
|
|
227
|
+
"type": "boolean"
|
|
228
|
+
},
|
|
229
|
+
"draft": {
|
|
230
|
+
"type": "boolean"
|
|
231
|
+
},
|
|
232
|
+
"source": {
|
|
233
|
+
"type": "string"
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"required": [
|
|
237
|
+
"id",
|
|
238
|
+
"name"
|
|
239
|
+
]
|
|
240
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: build-gap
|
|
3
|
+
description: Build a Gap from its Spatial Views context - get_context first, build only inside the scope, then archive the OpenSpec change, update the View and close the Gap. Use when asked to build, implement or apply a Gap.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# build-gap
|
|
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
|
+
## Steps
|
|
15
|
+
1. **Context first**: `get_context` with the Gap id (XML by default). It holds the Big Picture, the path down to the Gap's View, the Gap's modules with their connections and files, and the text of every pinned spec, change and doc. Read all of it before touching code. Note the token count.
|
|
16
|
+
2. **Plan** from the change's `tasks.md` (or the Gap's intent). `update_gap` with `state: "building"`.
|
|
17
|
+
3. **Build** inside the scope: the Gap's modules and their files. A connection marked `Outside="true"` is a contract with a module outside the Gap; keep it. Tick tasks in `tasks.md` as they are done.
|
|
18
|
+
4. **Test** what you built.
|
|
19
|
+
5. **Archive** the change with OpenSpec (its archive command, or `openspec archive <id>` on the CLI), which folds the delta specs into `openspec/specs/`.
|
|
20
|
+
6. **Update the picture**: `add_file_pointer` for new files; `add_module` / `connect` / `update_module` if the architecture changed; `pin` any new spec to its module.
|
|
21
|
+
7. **Close**: `list_gaps` shows the Gap as done once the change is archived (or `update_gap` with `state: "done"` when there is no change). The module's history now shows the change.
|
|
22
|
+
8. Report what changed, the files, and the tests.
|
|
23
|
+
|
|
24
|
+
## Rules
|
|
25
|
+
- Never build from memory of the repo: build from `get_context`.
|
|
26
|
+
- Build only in the project's sources. A file outside them is out of scope: stop and say so.
|
|
27
|
+
- Don't widen the scope silently. If the work needs another module, stop and update the Gap.
|
|
28
|
+
- Don't mark a Gap done while its tasks or tests are failing.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: check-ui
|
|
3
|
+
description: 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.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# check-ui
|
|
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
|
+
`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`.
|
|
11
|
+
|
|
12
|
+
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.
|
|
13
|
+
|
|
14
|
+
## Start: the project and the browser
|
|
15
|
+
1. `list_projects`, then `use_project` with the project's name. If you can't tell which one is meant, stop and ask.
|
|
16
|
+
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.
|
|
17
|
+
|
|
18
|
+
## Steps
|
|
19
|
+
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.
|
|
20
|
+
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.
|
|
21
|
+
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.
|
|
22
|
+
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.
|
|
23
|
+
5. **Compare.** Check each item from step 1 against the snapshot and the screenshot:
|
|
24
|
+
- Present: every screen, section, module, label and state the spec names is on the page.
|
|
25
|
+
- Order: the layout follows the spec (top to bottom, left to right).
|
|
26
|
+
- Text: headings, labels and button text match the spec's words.
|
|
27
|
+
- Nothing extra: anything on the page the spec doesn't name.
|
|
28
|
+
- Both themes: text readable and nothing missing in light and dark.
|
|
29
|
+
6. **Report.** A short table, one row per difference:
|
|
30
|
+
|
|
31
|
+
| Expected (spec) | Seen on page | Where | Severity |
|
|
32
|
+
|---|---|---|---|
|
|
33
|
+
| "Save" button under the form | missing | Settings, Profile section | high |
|
|
34
|
+
|
|
35
|
+
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.
|
|
36
|
+
|
|
37
|
+
## Rules
|
|
38
|
+
- 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.
|
|
39
|
+
- Compare with what the spec says, not with what you think looks good.
|
|
40
|
+
- Say what you could not check (a state you could not reach, a page behind a login).
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: draw-system
|
|
3
|
+
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.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# draw-system
|
|
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
|
+
Build the picture of the system with the `spatial-views` MCP tools. People see it live on the canvas (`npx spatial-views`).
|
|
15
|
+
|
|
16
|
+
## Steps
|
|
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.
|
|
24
|
+
8. `open_view` the top View, and report: the Views drawn, which specs went on which modules, and anything left unpinned.
|
|
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
|
+
|
|
33
|
+
## Rules
|
|
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.
|
|
36
|
+
- Don't invent parts that aren't in the code or the docs; say what you could not place.
|
|
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.
|