intent-format 0.0.0-stage → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. package/.github/ISSUE_TEMPLATE/1-something-wrong.yml +18 -0
  2. package/.github/ISSUE_TEMPLATE/2-idea.yml +11 -0
  3. package/.github/ISSUE_TEMPLATE/config.yml +5 -0
  4. package/AGENTS.md +11 -0
  5. package/CHANGELOG.md +288 -0
  6. package/CLAUDE.md +1 -0
  7. package/CODE_OF_CONDUCT.md +128 -0
  8. package/CONTRIBUTING.md +19 -0
  9. package/LICENSE +21 -0
  10. package/README.md +72 -2
  11. package/SECURITY.md +10 -0
  12. package/VERSION +1 -0
  13. package/examples/example-app/AGENTS.md +19 -0
  14. package/examples/example-app/CLAUDE.md +1 -0
  15. package/examples/example-app/V1.0/apis/_index.md +14 -0
  16. package/examples/example-app/V1.0/apis/ap000001-list-items.md +20 -0
  17. package/examples/example-app/V1.0/apis/ap000002-save-item.md +28 -0
  18. package/examples/example-app/V1.0/backend/_index.md +15 -0
  19. package/examples/example-app/V1.0/backend/bn000001-app-server.md +24 -0
  20. package/examples/example-app/V1.0/backend/bn000002-main-database.md +22 -0
  21. package/examples/example-app/V1.0/backend/bn000003-file-storage.md +22 -0
  22. package/examples/example-app/V1.0/comments/_index.md +13 -0
  23. package/examples/example-app/V1.0/comments/cm000001-empty-list-message.md +15 -0
  24. package/examples/example-app/V1.0/components/_index.md +16 -0
  25. package/examples/example-app/V1.0/components/cp000001-button.md +32 -0
  26. package/examples/example-app/V1.0/components/cp000002-text-field.md +31 -0
  27. package/examples/example-app/V1.0/components/cp000003-item-row.md +34 -0
  28. package/examples/example-app/V1.0/components/cp000004-top-bar.md +26 -0
  29. package/examples/example-app/V1.0/decisions/_index.md +13 -0
  30. package/examples/example-app/V1.0/decisions/dc000001-where-do-item-images-live.md +26 -0
  31. package/examples/example-app/V1.0/edge-cases/_index.md +13 -0
  32. package/examples/example-app/V1.0/edge-cases/ec000001-save-fails.md +24 -0
  33. package/examples/example-app/V1.0/features/_index.md +17 -0
  34. package/examples/example-app/V1.0/features/ft000001-items.md +22 -0
  35. package/examples/example-app/V1.0/features/ft000002-account.md +21 -0
  36. package/examples/example-app/V1.0/features/ft000003-browse-items.md +26 -0
  37. package/examples/example-app/V1.0/features/ft000004-edit-an-item.md +33 -0
  38. package/examples/example-app/V1.0/features/ft000005-change-settings.md +21 -0
  39. package/examples/example-app/V1.0/ia/_index.md +13 -0
  40. package/examples/example-app/V1.0/ia/ia000001-main-map.md +23 -0
  41. package/examples/example-app/V1.0/intent-format.md +12 -0
  42. package/examples/example-app/V1.0/project.md +51 -0
  43. package/examples/example-app/V1.0/roles/_index.md +14 -0
  44. package/examples/example-app/V1.0/roles/ro000001-member.md +22 -0
  45. package/examples/example-app/V1.0/roles/ro000002-admin.md +19 -0
  46. package/examples/example-app/V1.0/rules/_index.md +13 -0
  47. package/examples/example-app/V1.0/rules/rl000001-item-name-is-required.md +20 -0
  48. package/examples/example-app/V1.0/screens/_index.md +17 -0
  49. package/examples/example-app/V1.0/screens/sc000001-home.md +18 -0
  50. package/examples/example-app/V1.0/screens/sc000002-item-list.md +43 -0
  51. package/examples/example-app/V1.0/screens/sc000003-item-detail.md +24 -0
  52. package/examples/example-app/V1.0/screens/sc000004-edit-item.md +35 -0
  53. package/examples/example-app/V1.0/screens/sc000005-settings.md +19 -0
  54. package/examples/example-app/V1.0/shells/_index.md +8 -0
  55. package/examples/example-app/V1.0/tech/_index.md +14 -0
  56. package/examples/example-app/V1.0/tech/tc000001-ui-framework.md +23 -0
  57. package/examples/example-app/V1.0/tech/tc000002-relational-database.md +25 -0
  58. package/examples/example-app/V1.0/userflows/_index.md +14 -0
  59. package/examples/example-app/V1.0/userflows/uf000001-create-an-item.md +66 -0
  60. package/examples/example-app/V1.0/userflows/uf000002-edit-an-item.md +47 -0
  61. package/examples/example-app/V1.1/CHANGES.md +12 -0
  62. package/examples/example-app/V1.1/apis/_index.md +14 -0
  63. package/examples/example-app/V1.1/apis/ap000001-list-items.md +20 -0
  64. package/examples/example-app/V1.1/apis/ap000002-save-item.md +28 -0
  65. package/examples/example-app/V1.1/backend/_index.md +15 -0
  66. package/examples/example-app/V1.1/backend/bn000001-app-server.md +24 -0
  67. package/examples/example-app/V1.1/backend/bn000002-main-database.md +22 -0
  68. package/examples/example-app/V1.1/backend/bn000003-file-storage.md +22 -0
  69. package/examples/example-app/V1.1/comments/_index.md +14 -0
  70. package/examples/example-app/V1.1/comments/cm000001-empty-list-message.md +15 -0
  71. package/examples/example-app/V1.1/comments/cm000002-filter-placement.md +12 -0
  72. package/examples/example-app/V1.1/components/_index.md +16 -0
  73. package/examples/example-app/V1.1/components/cp000001-button.md +32 -0
  74. package/examples/example-app/V1.1/components/cp000002-text-field.md +32 -0
  75. package/examples/example-app/V1.1/components/cp000003-item-row.md +34 -0
  76. package/examples/example-app/V1.1/components/cp000004-top-bar.md +26 -0
  77. package/examples/example-app/V1.1/decisions/_index.md +13 -0
  78. package/examples/example-app/V1.1/decisions/dc000001-where-do-item-images-live.md +26 -0
  79. package/examples/example-app/V1.1/edge-cases/_index.md +13 -0
  80. package/examples/example-app/V1.1/edge-cases/ec000001-save-fails.md +24 -0
  81. package/examples/example-app/V1.1/features/_index.md +17 -0
  82. package/examples/example-app/V1.1/features/ft000001-items.md +22 -0
  83. package/examples/example-app/V1.1/features/ft000002-account.md +21 -0
  84. package/examples/example-app/V1.1/features/ft000003-browse-items.md +26 -0
  85. package/examples/example-app/V1.1/features/ft000004-edit-an-item.md +33 -0
  86. package/examples/example-app/V1.1/features/ft000005-change-settings.md +21 -0
  87. package/examples/example-app/V1.1/ia/_index.md +13 -0
  88. package/examples/example-app/V1.1/ia/ia000001-main-map.md +23 -0
  89. package/examples/example-app/V1.1/intent-format.md +13 -0
  90. package/examples/example-app/V1.1/project.md +51 -0
  91. package/examples/example-app/V1.1/roles/_index.md +14 -0
  92. package/examples/example-app/V1.1/roles/ro000001-member.md +22 -0
  93. package/examples/example-app/V1.1/roles/ro000002-admin.md +19 -0
  94. package/examples/example-app/V1.1/rules/_index.md +13 -0
  95. package/examples/example-app/V1.1/rules/rl000001-item-name-is-required.md +20 -0
  96. package/examples/example-app/V1.1/screens/_index.md +17 -0
  97. package/examples/example-app/V1.1/screens/sc000001-home.md +18 -0
  98. package/examples/example-app/V1.1/screens/sc000002-item-list.md +44 -0
  99. package/examples/example-app/V1.1/screens/sc000003-item-detail.md +24 -0
  100. package/examples/example-app/V1.1/screens/sc000004-edit-item.md +35 -0
  101. package/examples/example-app/V1.1/screens/sc000005-settings.md +19 -0
  102. package/examples/example-app/V1.1/shells/_index.md +8 -0
  103. package/examples/example-app/V1.1/tech/_index.md +14 -0
  104. package/examples/example-app/V1.1/tech/tc000001-ui-framework.md +23 -0
  105. package/examples/example-app/V1.1/tech/tc000002-relational-database.md +25 -0
  106. package/examples/example-app/V1.1/userflows/_index.md +14 -0
  107. package/examples/example-app/V1.1/userflows/uf000001-create-an-item.md +66 -0
  108. package/examples/example-app/V1.1/userflows/uf000002-edit-an-item.md +47 -0
  109. package/examples/example-app/_ids.md +78 -0
  110. package/examples/example-app/_index.md +14 -0
  111. package/examples/example-app/inputs/brief.md +3 -0
  112. package/examples/example-app/inputs/links.md +3 -0
  113. package/kit/cli/README.md +128 -0
  114. package/kit/cli/intent-format.mjs +342 -0
  115. package/kit/cli/lib/agents.mjs +39 -0
  116. package/kit/cli/lib/check.mjs +412 -0
  117. package/kit/cli/lib/create.mjs +190 -0
  118. package/kit/cli/lib/frame.mjs +182 -0
  119. package/kit/cli/lib/generate.mjs +418 -0
  120. package/kit/cli/lib/kit.mjs +203 -0
  121. package/kit/cli/lib/migrate.mjs +97 -0
  122. package/kit/cli/lib/model.mjs +409 -0
  123. package/kit/cli/lib/next.mjs +134 -0
  124. package/kit/cli/lib/open.mjs +34 -0
  125. package/kit/cli/lib/parse.mjs +260 -0
  126. package/kit/cli/lib/project.mjs +120 -0
  127. package/kit/cli/lib/regen.mjs +112 -0
  128. package/kit/cli/lib/relations.mjs +380 -0
  129. package/kit/cli/lib/rename.mjs +23 -0
  130. package/kit/cli/lib/schema.mjs +185 -0
  131. package/kit/cli/lib/templates.mjs +41 -0
  132. package/kit/cli/lib/util.mjs +165 -0
  133. package/kit/cli/test/nav.mjs +145 -0
  134. package/kit/cli/test/roles.mjs +85 -0
  135. package/kit/cli/test/smoke.mjs +716 -0
  136. package/kit/skills/intent-format/SKILL.md +91 -0
  137. package/kit/skills/intent-format/links.md +142 -0
  138. package/kit/skills/intent-format/types/_overview.md +73 -0
  139. package/kit/skills/intent-format/types/api.md +111 -0
  140. package/kit/skills/intent-format/types/backend.md +110 -0
  141. package/kit/skills/intent-format/types/comment.md +66 -0
  142. package/kit/skills/intent-format/types/component.md +139 -0
  143. package/kit/skills/intent-format/types/decision.md +91 -0
  144. package/kit/skills/intent-format/types/edge-case.md +107 -0
  145. package/kit/skills/intent-format/types/feature.md +154 -0
  146. package/kit/skills/intent-format/types/ia.md +106 -0
  147. package/kit/skills/intent-format/types/project.md +131 -0
  148. package/kit/skills/intent-format/types/role.md +98 -0
  149. package/kit/skills/intent-format/types/rule.md +100 -0
  150. package/kit/skills/intent-format/types/screen.md +153 -0
  151. package/kit/skills/intent-format/types/shell.md +156 -0
  152. package/kit/skills/intent-format/types/tech.md +109 -0
  153. package/kit/skills/intent-format/types/userflow.md +197 -0
  154. package/kit/skills/kb-cold-start/SKILL.md +124 -0
  155. package/kit/skills/kb-cold-start/kickoff-questionnaire.md +42 -0
  156. package/kit/skills/kb-cold-start/templates.md +108 -0
  157. package/package.json +30 -4
  158. package/rationale.md +180 -0
  159. package/schema.json +5895 -0
  160. package/spec.md +1173 -0
  161. package/templates/api.md +16 -0
  162. package/templates/backend.md +15 -0
  163. package/templates/comment.md +11 -0
  164. package/templates/component.md +15 -0
  165. package/templates/decision.md +23 -0
  166. package/templates/edge-case.md +14 -0
  167. package/templates/feature.md +14 -0
  168. package/templates/ia.md +14 -0
  169. package/templates/project.md +34 -0
  170. package/templates/role.md +14 -0
  171. package/templates/rule.md +14 -0
  172. package/templates/screen.md +14 -0
  173. package/templates/shell.md +24 -0
  174. package/templates/tech.md +18 -0
  175. package/templates/userflow.md +20 -0
@@ -0,0 +1,91 @@
1
+ ---
2
+ name: intent-format
3
+ description: Read, write, check and answer questions from Intent Format knowledge bases — markdown KBs describing a software product (screens, components, user flows, IA maps, rules, APIs, backend, tech, decisions). Use whenever you create or edit a KB card, or work in a folder that contains an intent-format.md manifest.
4
+ ---
5
+
6
+ # Intent Format — router
7
+
8
+ A KB describes one software product as a folder of markdown **cards**: one card = one
9
+ file. Every card has front matter, a title `# <Name> · #<CORE>`, and fixed `##` sections.
10
+ Cards link to each other by **core ID** (`SC000006`). A tool (`intent-format`) mints IDs, computes
11
+ the generated (`⚙`) sections and checks the KB.
12
+
13
+ **Arriving at a KB folder?** Run `intent-format next <root>` first. It reads the folder and tells you
14
+ the one next step — mid cold start or long after — and which page to read for it.
15
+
16
+ Read this page, then **only** the sheet for what you are doing (routing table below).
17
+ Don't read the full spec unless a sheet sends you there.
18
+
19
+ ## Golden rules
20
+
21
+ 1. **Know the version.** Start at the workspace manifest `V<x.y>/intent-format.md` (version, lifecycle, based on). Name the version whenever you change something ("In V1.1 (in-progress): …"). If it's unclear which version is meant, ask.
22
+ 2. **Never mint IDs by hand.** Use `intent-format new`. Never reuse a core.
23
+ 3. **Reference by core.** `[#SC000006 Item list](../screens/sc000006-item-list.md)`. Never put rendered IDs (`#SC000006V1.0`) in references or front matter.
24
+ 4. **Never edit `⚙` sections or the `> ⚙` status line.** Run `intent-format regen`.
25
+ 5. **No invented facts.** Unknown → `—` (blind spot). Known to be empty → `none`. A list you know is incomplete → end it with `—`. Should exist but isn't a card yet → `[~ Name]`.
26
+ **Every card says why.** `## Why` right after Description (after Question on a decision): one or two sentences answering the type's why question — *purpose* (project, feature, flow, role: what problem, what goal), *choice* (screen, component, shell, tech, decision …: why this way and not another), *constraint* (rule, edge case: what goes wrong without it). The type sheet prints the question. A screen's why is not its feature's why. Required on project, feature, rule, decision, userflow, shell, role, tech; optional elsewhere. Says what the Description does not; nothing to add → `none` or `none — layout only`. Another card's why covers it → `same as #FT000003` (any card by id). Not asked yet → `—` (why debt).
27
+ **Ask inside the sentence.** A question for the owner that no value can hold — an unknown fact, a doubt about one sentence — goes where it belongs: `… sorted by date [ask: newest first?]`. `intent-format open` lists every `[ask: …]` with its card and line. The answer rewrites the sentence; `· later <date>` when the owner says later (due again after two days); "unknown" leaves it as it is. Never drop one yourself.
28
+ **Mark what you are not sure of.** End a why or a decision Outcome with `[likely]` (follows from inputs, not stated) or `[assumed]` (a guess). Unmarked = confirmed by the owner or an input. When the owner confirms, remove the mark. `intent-format open` lists what is still marked.
29
+ 6. **Write each relation once**, at its authored end (the type sheet says where). The reverse appears after `intent-format regen`.
30
+ 7. **Required sections must exist** (content, `—` or `none`). `Links`, `Tags`, `Comments` are optional.
31
+ 8. **Front matter:** fixed key order, values from the vocabularies in `project.md`, `—` never quoted.
32
+ 9. **Open questions and judgment calls → decision cards** (`status: Open`, `## Affects`). When decided: `status: Decided`, `decided: <date>`, `by: owner|agent|<role>`, the Outcome says which option and why. Replaced later → `status: Superseded` + `superseded-by:`.
33
+ 10. **One fact, one home.** Don't restate a rule or fact in several cards — link to the card that owns it.
34
+ 11. **Flows stay small:** ≤ 15 steps; extract reusable parts as subflows (⧉ Connected flow step).
35
+ 12. **After every batch of edits:** `intent-format regen`, then `intent-format check`; fix all errors and warnings.
36
+ 13. **Shells frame places.** Screens are content, shells are context. Before writing or editing a screen, run `intent-format frame <root> <screen>` and obey the `## Places inside` it prints. A screen card should not hold the frame's parts or controls (tabs, top bar, Continue, Close, Back) — allowed, but `check` flags it: it declares its content, its outcome and its primary action by name. Does the user go somewhere → a screen with `opens-as`. Does the frame unfold (a drawer, a menu) → a part of the shell. Navigation is one ordered list on the shell; variants stack. Details: **How to model** in `types/shell.md`.
37
+ 14. **User types are role cards.** A story names a role by its exact card name ("As a Member, …"); the role lists its stories in `⚙ Stories`. A `### Roles` table in `project.md` is the old form: `intent-format migrate`.
38
+
39
+ ## Routing table
40
+
41
+ | You are about to… | Read |
42
+ |---|---|
43
+ | decide which type something is (modelling) | `types/_overview.md` (one page) |
44
+ | write or edit a screen | `intent-format frame <root> <screen>`, then `types/screen.md` |
45
+ | shape navigation, frames, platforms | **How to model** in `types/shell.md` |
46
+ | write or edit a card of type X | `types/X.md` (X = project, screen, component, shell, userflow, ia, rule, api, feature, edge-case, backend, tech, decision, comment) |
47
+ | write relation lines or links | `links.md` |
48
+ | bootstrap a KB / add a project / ingest a big batch of material | `../kb-cold-start/SKILL.md` |
49
+ | create a new version | § Versions below, then `intent-format branch` |
50
+ | answer a question from a KB | `_ids.md` at the project root → the cards; `project.md` for vocabularies and use cases |
51
+ | find out what is still unknown, guessed or asked | `intent-format open <root>` |
52
+ | settle an edge case of the format | `spec.md` in the standard folder — search the one relevant section |
53
+
54
+ ## Versions
55
+
56
+ - Each version is a workspace folder: `V1.0/`, `V1.1/`, `V2.0/` (explorations: `V2.0-<label>/`).
57
+ - Its manifest says `lifecycle` (planned · in-progress · released · archived · exploration) and `based-on` (the version it was created from). Several versions can be in progress at once.
58
+ - A core means the same card in every version. IDs are unique across the whole project.
59
+ - After `intent-format regen`, each card's status line says whether it is **new**, **changed** (which sections) or **unchanged** compared with its base; `CHANGES.md` lists new, changed and removed cards.
60
+
61
+ ## CLI
62
+
63
+ `intent-format` = `node <standard>/kit/cli/intent-format.mjs` (Node ≥ 18, no install).
64
+
65
+ | Command | Does |
66
+ |---|---|
67
+ | `intent-format init <root> --name "<Name>" [--lifecycle planned]` | new project root with `V1.0/`, manifest, project card |
68
+ | `intent-format new <type> "<Name>" --root <root> [--ws V1.0]` | mints a core, creates the card from its template, prints `<core> <path>` |
69
+ | `intent-format mint <PREFIX> --root <root> [--count n]` | mints cores for flow steps (FS) and variants (SV screen, CV component, HV shell) |
70
+ | `intent-format scaffold <root> --inventory <file>` | creates every card listed in an inventory table in one call (features first) and writes the cores back |
71
+ | `intent-format regen <root>` | ID register, rosters, generated sections, status lines, `CHANGES.md` |
72
+ | `intent-format check <root> [--json]` | diagnostics (error · warning · info) and health numbers |
73
+ | `intent-format branch <root> <from> <to>` | new version workspace based on another |
74
+ | `intent-format next [<root>]` | where the project stands and the one next step (cold start and after) |
75
+ | `intent-format migrate <root>` | brings an older KB up to date (today: the `### Roles` table → role cards) |
76
+ | `intent-format frame <root> <screen>` | the resolved shell, stacked variants, parts, navigation and contract per placement |
77
+ | `intent-format open <root>` | the open list: `[ask: …]` questions, open decisions, `[assumed]` / `[likely]` marks, whys missing, other blind spots per card — what to ask the owner |
78
+
79
+ ## Project root at a glance
80
+
81
+ ```
82
+ <root>/
83
+ AGENTS.md CLAUDE.md how a fresh agent starts (written once by init; yours to edit)
84
+ _index.md _ids.md ⚙ versions tree · project-wide ID register
85
+ inputs/ raw sources (evidence); links in inputs/links.md — the only place a Source link may point
86
+ proposal/ report.md cold-start working files (inventory, frames, decisions, review)
87
+ V1.0/
88
+ intent-format.md manifest
89
+ project.md description, main use cases, constraints, vocabularies, built with
90
+ roles/ screens/ components/ shells/ userflows/ ia/ rules/ apis/ features/ edge-cases/ backend/ tech/ decisions/ comments/
91
+ ```
@@ -0,0 +1,142 @@
1
+ # Links and relations
2
+
3
+ > Generated by `intent-format build-kit` from `schema.json` — do not edit by hand.
4
+
5
+ ## Reference atoms
6
+
7
+ | Atom | Shape | Meaning |
8
+ |---|---|---|
9
+ | bound | `[#<CORE> <Name>](<relative-path>[#<anchor>])` | resolves by core; name and path are courtesy — `intent-format regen` rewrites them |
10
+ | hand | `#<CORE>` | valid; `intent-format regen` upgrades it to bound on relation lines |
11
+ | placeholder | `[~ <Name>]` | should exist, does not yet; counted as unresolved |
12
+ | unknown | `—` | target unknown (blind spot) |
13
+
14
+ Never write rendered IDs (`#SC000006V1.0`) in references or front matter.
15
+
16
+ ## Line shapes
17
+
18
+ - **relationLine**: `- <Relation>: <atom>[ · <key>: <value>]…[ — <note>]`
19
+ - **prefixlessLine**: `- <atom>[ · <key>: <value>]…[ — <note>]`
20
+ - **orderedLine**: `<n>. <atom>[ · <key>: <value>]…[ — <note>]`
21
+ - **twoSlotLine**: `- Edge: <atom> → <atom>[ · label: <text>][ — <note>]`
22
+ - **labelSlotLine**: `- Branch: <label> → <atom>[ · primary][ · rule: #RL…][ — <note>]`
23
+ - **textSlotLine**: `- Entry: <text> | - Outcome: <text>`
24
+ - **generatedLine**: `- ⚙ Prev: <atom>[ · variant: <name>] | - ⚙ Next: …`
25
+ - **titleLine**: `# <name> · #<CORE>`
26
+ - **statusLine**: `> ⚙ <rendered-id> · V<version> <lifecycle>[ · based on V<base>][ · new | unchanged | changed: <Part>, <Part>]`
27
+ - **subdocumentHeading**: `### [<glyph> ]<Name> · #<CORE>`
28
+ - **anchorLine**: `<a id="<core-lowercase>"></a>`
29
+ - **passportLine**: `<key>: <value>[ · <key>: <value>]…`
30
+ - **atoms**: `bound [#<CORE> <Name>](<relative-path>[#<anchor>]) · hand #<CORE> · placeholder [~ <Name>] · unknown —`
31
+ - **bodies**: `— alone = blind spot · none alone = verified none`
32
+
33
+ ## Rules
34
+
35
+ - One edge per line; each relation is written at exactly one end; reverses are generated.
36
+ - In a section with a default relation, lines drop the prefix; writing the default prefix anyway is tolerated (info).
37
+ - Explicit prefixes are required in sub-documents and for Edge, Branch, Entry, Outcome and x-<slug> relations.
38
+ - A relation word outside this vocabulary in a relation context is reported; x-<slug> relations are preserved untouched.
39
+ - Qualifier values are plain text or a bare core (#RL000007), never a bound link; quote values containing " · ", "—" or "→".
40
+ - Notes (" — <text>") are short and never restate the target card.
41
+ - Repetition at several granularities (a screen and its step both using one API) is fine; generated sections dedupe.
42
+
43
+ ## Sections with a default relation (write lines without a prefix)
44
+
45
+ | Type | Section | Default relation | Ordered |
46
+ |---|---|---|---|
47
+ | project | ## Built with | Built with | no |
48
+ | project | ## Links | Link | no |
49
+ | project | ## Comments | Comment | no |
50
+ | role | ## Links | Link | no |
51
+ | role | ## Comments | Comment | no |
52
+ | screen | ## Rules | Applies rule | no |
53
+ | screen | ## Components | Part | yes |
54
+ | screen | ## APIs | Uses API | no |
55
+ | screen | ## Built with | Built with | no |
56
+ | screen | ## Links | Link | no |
57
+ | screen | ## Comments | Comment | no |
58
+ | component | ## Rules | Applies rule | no |
59
+ | component | ## Components | Part | yes |
60
+ | component | ## APIs | Uses API | no |
61
+ | component | ## Built with | Built with | no |
62
+ | component | ## Links | Link | no |
63
+ | component | ## Comments | Comment | no |
64
+ | shell | ## Rules | Applies rule | no |
65
+ | shell | ## Components | Part | yes |
66
+ | shell | ## Navigation | Leads to | yes |
67
+ | shell | ## Links | Link | no |
68
+ | shell | ## Comments | Comment | no |
69
+ | userflow | ## Rules | Applies rule | no |
70
+ | userflow | ## Step list | Step | yes |
71
+ | userflow | ## Connected flows | Connected flow | no |
72
+ | userflow | ## Links | Link | no |
73
+ | userflow | ## Comments | Comment | no |
74
+ | ia | ## Parts | Node | no |
75
+ | ia | ## Links | Link | no |
76
+ | ia | ## Comments | Comment | no |
77
+ | rule | ## Links | Link | no |
78
+ | rule | ## Comments | Comment | no |
79
+ | api | ## Served by | Served by | no |
80
+ | api | ## Built with | Built with | no |
81
+ | api | ## Links | Link | no |
82
+ | api | ## Comments | Comment | no |
83
+ | feature | ## Touchpoints | Touchpoint | no |
84
+ | feature | ## Links | Link | no |
85
+ | feature | ## Comments | Comment | no |
86
+ | edge-case | ## Rules | Applies rule | no |
87
+ | edge-case | ## Where | Where | no |
88
+ | edge-case | ## Links | Link | no |
89
+ | edge-case | ## Comments | Comment | no |
90
+ | backend | ## Connections | Connects | no |
91
+ | backend | ## Built with | Built with | no |
92
+ | backend | ## Links | Link | no |
93
+ | backend | ## Comments | Comment | no |
94
+ | tech | ## Alternatives | Alternative | no |
95
+ | tech | ## Links | Link | no |
96
+ | tech | ## Comments | Comment | no |
97
+ | decision | ## Affects | Affects | no |
98
+ | decision | ## Links | Link | no |
99
+ | decision | ## Comments | Comment | no |
100
+ | comment | ## Links | Link | no |
101
+
102
+ ## Relation vocabulary
103
+
104
+ | Relation | Written in | Targets | Qualifiers | Generated reverse |
105
+ |---|---|---|---|---|
106
+ | Part | screen ## Components; component ## Components; screen-variant; component-variant; shell ## Components; shell-variant | component | variant · opens-as | ⚙ Used in |
107
+ | Leads to | shell ## Navigation | screen | kind: tab\|menu\|link · label · in · platform · state | ⚙ Reached from |
108
+ | Step | userflow ## Step list; flow-variant | flow-step | — | — |
109
+ | Node | ia ## Parts | screen | variant · opens-as · shell · group | ⚙ On maps |
110
+ | Edge | ia ## Parts › Lateral | screen | label | — |
111
+ | Branch | flow-step (Fork) | flow-step | primary · rule | — |
112
+ | Screen | flow-step (Start/Action/Fork/Finish) | screen | variant · opens-as · shell | ⚙ In user flows |
113
+ | Component | flow-step (Start/Action/Fork/Finish) | component | variant | ⚙ In user flows |
114
+ | API | flow-step (Fork/System action) | api | — | ⚙ Called from |
115
+ | Backend | flow-step (Fork/System action) | backend | — | ⚙ In user flows |
116
+ | Connected flow | flow-step; userflow ## Connected flows | userflow | variant | ⚙ Entered from |
117
+ | Hand-off | flow-step (Finish) | userflow | variant | ⚙ Entered from |
118
+ | Entry | flow-step (Start) | text | — | — |
119
+ | Outcome | flow-step (Finish) | text | — | — |
120
+ | Applies rule | screen ## Rules; component ## Rules; userflow ## Rules; edge-case ## Rules; flow-step; shell ## Rules | rule | — | ⚙ Applied in |
121
+ | Uses API | screen ## APIs; component ## APIs; flow-step | api | — | ⚙ Called from |
122
+ | Touchpoint | feature ## Touchpoints | screen, screen-variant, component, component-variant, userflow, flow-step | variant | ⚙ Features |
123
+ | Where | edge-case ## Where | screen, screen-variant, component, component-variant, shell, userflow, flow-step, api, backend | variant | ⚙ Edge cases |
124
+ | Served by | api ## Served by | backend | — | ⚙ Serves |
125
+ | Connects | backend ## Connections | backend | kind: calls\|stores\|deploys\|belongs | ⚙ Connected from |
126
+ | Built with | project ## Built with; screen ## Built with; component ## Built with; backend ## Built with; api ## Built with | tech | — | ⚙ Used by |
127
+ | Alternative | tech ## Alternatives | tech | — | — |
128
+ | Affects | decision ## Affects | project, screen, component, shell, userflow, ia, rule, api, feature, edge-case, backend, tech, decision, screen-variant, component-variant, flow-step, shell-variant, role | — | ⚙ Decisions |
129
+ | Comment | project ## Comments; screen ## Comments; component ## Comments; userflow ## Comments; ia ## Comments; rule ## Comments; api ## Comments; feature ## Comments; edge-case ## Comments; backend ## Comments; tech ## Comments; decision ## Comments; screen-variant; component-variant; flow-step; shell ## Comments; shell-variant; role ## Comments | comment | — | ⚙ Attached to |
130
+ | Link | project ## Links; screen ## Links; component ## Links; userflow ## Links; ia ## Links; rule ## Links; api ## Links; feature ## Links; edge-case ## Links; backend ## Links; tech ## Links; decision ## Links; comment ## Links; screen-variant; component-variant; flow-step; shell ## Links; shell-variant; role ## Links | URL, or a path to a file in inputs/ | type: Design\|Code\|Doc\|Source\|Analytics\|Other | — |
131
+ | Home | screen feature:; userflow feature:; component feature: | feature | — | ⚙ Screens, ⚙ User flows, ⚙ Components |
132
+ | Shell | screen shell:; screen-variant passport shell:; · shell: on Node; · shell: on Screen | shell | — | ⚙ Wraps |
133
+ | Realises | shell flow: | userflow | — | ⚙ Shown in |
134
+ | Parent | feature parent: | feature | — | ⚙ Sub-features |
135
+ | Prev | — | flow-step | variant | (generated line) |
136
+ | Next | — | flow-step | variant | (generated line) |
137
+ | Story | — | role | — | ⚙ Stories |
138
+
139
+ ## External links
140
+
141
+ `- [<title>](<url or relative path>) · type: <type>[ — note]` — Source = evidence: a file in inputs/ or a URL.
142
+
@@ -0,0 +1,73 @@
1
+ # Card types — overview
2
+
3
+ > Generated by `intent-format build-kit` from `schema.json` — do not edit by hand.
4
+
5
+ The modelling cheat sheet: pick the type by its purpose, then check what it is not. Details per type: `types/<type>.md`.
6
+
7
+ **project** · PR · `project.md` — The front door: what the product is and for whom, main use cases, constraints, vocabularies and project-wide tech.
8
+ - not manifest: intent-format.md describes the KB as an artifact (version, lifecycle, modules); project.md describes the product.
9
+ - not feature: A top-level Feature scopes one product domain; the project card frames the whole product.
10
+
11
+ **role** · RO · `roles/` — A user type: who uses the product, why they come and how they use it. User stories name it.
12
+ - not state: A State is a mode in which a different set of screens exists (signed in vs signed out); a role is who is there. A role lists the States it can be in with state:.
13
+ - not feature: What a role wants is its user stories, written on features and the project card; the role card lists them in ⚙ Stories, never restates them.
14
+
15
+ **screen** · SC · `screens/` — A place the user can be: what it is for and what it is made of.
16
+ - not component: Hosts its own component list → screen (modal/panel via opens-as); a piece placed inside places (row, toast, menu) → component; the frame around places → shell.
17
+ - not screen-variant: Same place with another composition or presentation → a variant; a different purpose → a new screen.
18
+ - not ia: A screen never states where it sits or what it leads to; IA maps arrange screens.
19
+
20
+ **component** · CP · `components/` — A reusable part placed in screens or other components: what it does wherever it appears.
21
+ - not shell: The frame around places, described once and resolved per placement → shell. A part inside places → component.
22
+ - not screen: Navigated to, or hosts its own component list → screen.
23
+ - not tech: The library or service it is made with is tech; the UI part is the component.
24
+
25
+ **shell** · SH · `shells/` — The frame around places: what is always there, where it leads, and the rules for whatever it frames. Described once, resolved per placement.
26
+ - not screen: A place the user goes to, with content of its own → screen. The frame that unfolds around it (navigation drawer, account menu) → a part of the shell.
27
+ - not component: A shell is never placed as a Part; it frames. Its own parts (top bar, burger, breadcrumbs) are components.
28
+ - not ia: A shell says what surrounds a place; the map says where the place sits. A node binds a shell with · shell:.
29
+
30
+ **userflow** · UF · `userflows/` — A journey in one file: typed steps, an ordered step list per variant, and fork wiring.
31
+ - not feature: A Sub-feature is a capability; the flows homed in it say how the user moves.
32
+ - not edge-case: A named exceptional situation with agreed handling is an edge case whose Where points at the step.
33
+ - not rule: Policy behind a fork branch is cited with · rule: #RL…, never paraphrased.
34
+
35
+ **ia** · IA · `ia/` — One IA map: screens arranged in a hierarchy plus lateral edges — pure arrangement.
36
+ - not screen: A map holds only references; screen facts live on the screen.
37
+ - not userflow: A map says where places sit; a flow says how a user moves through them.
38
+
39
+ **rule** · RL · `rules/` — One business rule stated once, in plain words; every other card references it.
40
+ - not edge-case: A situation plus its agreed handling is an edge case; the policy it applies is a rule.
41
+ - not flow-step: A fork is a decision point in a journey; it cites the rule.
42
+ - not requirement: An acceptance criterion of one card stays in that card's Description.
43
+
44
+ **api** · AP · `apis/` — One API call: method, endpoint, what it does and the backend node that serves it.
45
+ - not backend: The node that serves calls is backend; the call is api.
46
+
47
+ **feature** · FT · `features/` — A product domain (Feature) or a capability inside one (Sub-feature, with parent:).
48
+ - not userflow: A Sub-feature names a capability; the flows homed in it describe how the user moves.
49
+ - not project: The project card frames the whole product; a Feature scopes one domain.
50
+ - not rule: Numbers, limits and conditions go to rules, never into a Feature's description.
51
+ - not ia: Where a feature is reached from is navigation (the IA map, a screen's Navigation); the feature tree groups by purpose, never by screen.
52
+
53
+ **edge-case** · EC · `edge-cases/` — A named exceptional situation: what happens (If/Then) and every place it can occur.
54
+ - not rule: The policy applied is a rule; the situation and its handling is the edge case.
55
+ - not requirement: Normal-path acceptance criteria stay in the owning card.
56
+ - not userflow: An edge case that grew steps becomes a small flow attached where it applies.
57
+
58
+ **backend** · BN · `backend/` — A backend node of this product and its connections.
59
+ - not tech: The technology a node runs on is tech (Built with); the node itself is backend.
60
+ - not api: Each call is an api card that names this node in Served by.
61
+
62
+ **tech** · TC · `tech/` — A technology the product uses or considers: what it is, why, and the alternatives.
63
+ - not backend: A node of this product is backend; what it runs on is tech.
64
+ - not component: An integration component wraps a provider inside the UI; the provider technology is tech.
65
+
66
+ **decision** · DC · `decisions/` — A question that needs or got a decision: options, outcome and the cards it affects.
67
+ - not comment: A remark on a card is a comment; a choice between options that changes cards is a decision.
68
+ - not flow-step: A fork is a runtime branch in a journey, not a product decision.
69
+
70
+ **comment** · CM · `comments/` — One remark, attached from the cards it is about; its text lives only here.
71
+ - not decision: If it needs a choice between options, open a decision.
72
+
73
+ Sub-documents have their own core but no file: screen-variant (SV, a `### ` sub-document in ## Variants of a screen) · component-variant (CV, a `### ` sub-document in ## Variants of a component) · shell-variant (HV, a `### ` sub-document in ## Variants of a shell) · flow-step (FS, a `### ` sub-document in ## Steps of a userflow).
@@ -0,0 +1,111 @@
1
+ # api · AP · folder `apis/`
2
+
3
+ > Generated by `intent-format build-kit` from `schema.json` — do not edit by hand.
4
+
5
+ One API call: method, endpoint, what it does and the backend node that serves it.
6
+
7
+ **When to use.** Each call the product makes or exposes that a screen, component or step depends on.
8
+
9
+ **Not to confuse with**
10
+ - **backend** — The node that serves calls is backend; the call is api.
11
+
12
+ ## Front matter
13
+
14
+ | Key | Required | Values |
15
+ |---|---|---|
16
+ | `standard` | yes | `IntentFormat/1.2` — always the first key |
17
+ | `type` | yes | `api` |
18
+ | `id` | yes | `AP000000`-style core (AP + 6 digits) — minted by `intent-format new`, never by hand |
19
+ | `name` | yes | the card name (no `[` `]`); title, references and filename slug derive from it |
20
+ | `status` | yes | status vocabulary below, or `—` |
21
+ | `state` | no | a State of project.md (one value or a list); omitted = Shared; only when States are declared |
22
+ | `method` | yes | pattern `^[A-Z][A-Z_]*$` — Uppercase method, e.g. GET, POST, PUT, PATCH, DELETE. |
23
+ | `endpoint` | yes | Path or address, e.g. /items/{id}. |
24
+ | `origin` | no | `<kb>/<core>` — written by import |
25
+ | `x-*` | no | extension keys; kept untouched, always last |
26
+
27
+ Keys in this order. Unknown = `—` (never quoted); `version`-like values are quoted.
28
+
29
+ ## Status
30
+
31
+ `Idea` · `In design` · `Approved` · `In build` · `Live` · `Parked` — Product lifecycle; Parked = set aside from any stage. Movement is free in both directions. Template: `—`. status: — when there is no evidence for any value. Status only with evidence.
32
+
33
+ ## Sections
34
+
35
+ | Section | Kind | Guidance |
36
+ |---|---|---|
37
+ | ## Description | required | What the call does, its input and result, in one or two sentences. |
38
+ | ## Why | optional | Optional. Why this call, this shape? Text (optionally ending [likely] or [assumed]), none[ — note], same as #<id> (another card's why covers it) or —. Absent = nothing to say. |
39
+ | ## Served by | required (optional without backend/) | Exactly one line: the backend node that serves this call. Default relation: Served by. |
40
+ | ## Built with | optional | Technologies specific to this card: TC references, or [~ <generic name>] for an open need. Default relation: Built with. |
41
+ | ## Links | optional | External links: - [title](url) · type: Design\|Code\|Doc\|Source\|Analytics\|Other. Source = evidence (inputs/ file or URL). Default relation: Link. |
42
+ | ## Tags | optional | One line of comma-separated tags. |
43
+ | ## Comments | optional | Comment cards attached here, one line each; the remark lives in the CM file. Default relation: Comment. |
44
+ | ## ⚙ Called from | generated | Everything that calls this API. |
45
+ | ## ⚙ Edge cases | generated | Edge cases that can happen here. |
46
+ | ## ⚙ Decisions | generated | Decisions that affect this card. |
47
+
48
+ Body states: `—` alone = unknown (counted) · `none` alone = verified empty · a final `- —` / `N. —` list item = more items exist but are unknown. Never edit `⚙` sections or the `> ⚙` status line — run `intent-format regen`.
49
+
50
+ **Why.** `## Why` is optional (absent = nothing to say) here. Its question (choice): *Why this call, this shape?* It holds one of: the answer in one or two sentences, optionally ending `[likely]` (follows from inputs) or `[assumed]` (a guess; counted as open) — unmarked means confirmed; `none` or `none — <note>` (no why needed; not counted); `same as #<id>` (another card's why covers it; check follows the link); or `—` (nobody asked yet; counted as why debt). A Why says what the Description does not; a question for the owner goes in the sentence it concerns as `[ask: …]`.
51
+
52
+ ## Requirement blocks
53
+
54
+ Requirement blocks sit in Description (and the project's Keep in mind, and step bodies), after the descriptive prose. Marker `**R<n> · <Preset>**`: n is unique within the file; never reused or renumbered.
55
+
56
+ ```markdown
57
+ **R1 · User story** As a <role>, I want <goal>, so that <benefit>.
58
+
59
+ **R2 · GWT**
60
+ Given <context>
61
+ When <event>
62
+ Then <observable outcome>
63
+
64
+ **R3 · EARS** [When <trigger>|While <state>|If <condition>|Where <feature>, [then ]]the system shall <response>.
65
+
66
+ **R4 · Checklist**
67
+ - [ ] <verifiable item>
68
+ ```
69
+
70
+ **User story**: so that is mandatory; <role> is the exact name of a role card. · **GWT**: All three keywords present, in this sequence. · **EARS**: Contains "the system shall". · **Checklist**: At least one item. A slot written as — is a declared blind spot (counted).
71
+
72
+ ## Relations written on this type
73
+
74
+ | Relation | Written in | Targets | Qualifiers | Generated reverse |
75
+ |---|---|---|---|---|
76
+ | Served by | ## Served by (no prefix) | backend | — | ⚙ Serves on backend |
77
+ | Built with | ## Built with (no prefix) | tech | — | ⚙ Used by on tech |
78
+ | Comment | ## Comments (no prefix) | comment | — | ⚙ Attached to on comment |
79
+ | Link | ## Links (no prefix) | URL, or a path to a file in inputs/ | type: Design\|Code\|Doc\|Source\|Analytics\|Other | — |
80
+
81
+ ## Example
82
+
83
+ ```markdown
84
+ ---
85
+ standard: IntentFormat/1.2
86
+ type: api
87
+ id: AP000002
88
+ name: Save item
89
+ status: In build
90
+ method: PUT
91
+ endpoint: /items/{id}
92
+ ---
93
+ # Save item · #AP000002
94
+ > ⚙ #AP000002V1.0 · V1.0 in-progress
95
+
96
+ ## Description
97
+ Creates or updates one item and returns the stored version.
98
+
99
+ ## Served by
100
+ - [#BN000001 App server](../backend/bn000001-app-server.md)
101
+
102
+ ## ⚙ Called from
103
+ - [#SC000004 Edit item](../screens/sc000004-edit-item.md)
104
+ - [#UF000001 Create an item](../userflows/uf000001-create-an-item.md) · at: #FS000004
105
+
106
+ ## ⚙ Edge cases
107
+ - [#EC000001 Save fails](../edge-cases/ec000001-save-fails.md) · severity: Medium
108
+
109
+ ## ⚙ Decisions
110
+ - [#DC000001 Where do item images live?](../decisions/dc000001-where-do-item-images-live.md) · status: Open
111
+ ```
@@ -0,0 +1,110 @@
1
+ # backend · BN · folder `backend/`
2
+
3
+ > Generated by `intent-format build-kit` from `schema.json` — do not edit by hand.
4
+
5
+ A backend node of this product and its connections.
6
+
7
+ **When to use.** Each server, service, database, storage, integration, repo or environment that serves APIs, keeps data or connects to other nodes.
8
+
9
+ **Not to confuse with**
10
+ - **tech** — The technology a node runs on is tech (Built with); the node itself is backend.
11
+ - **api** — Each call is an api card that names this node in Served by.
12
+
13
+ ## Front matter
14
+
15
+ | Key | Required | Values |
16
+ |---|---|---|
17
+ | `standard` | yes | `IntentFormat/1.2` — always the first key |
18
+ | `type` | yes | `backend` |
19
+ | `id` | yes | `BN000000`-style core (BN + 6 digits) — minted by `intent-format new`, never by hand |
20
+ | `name` | yes | the card name (no `[` `]`); title, references and filename slug derive from it |
21
+ | `status` | yes | status vocabulary below, or `—` |
22
+ | `state` | no | a State of project.md (one value or a list); omitted = Shared; only when States are declared |
23
+ | `backend-type` | yes | `server` · `service` · `database` · `storage` · `integration` · `repo` · `environment` — Kind of node. |
24
+ | `origin` | no | `<kb>/<core>` — written by import |
25
+ | `x-*` | no | extension keys; kept untouched, always last |
26
+
27
+ Keys in this order. Unknown = `—` (never quoted); `version`-like values are quoted.
28
+
29
+ ## Status
30
+
31
+ `Idea` · `In design` · `Approved` · `In build` · `Live` · `Parked` — Product lifecycle; Parked = set aside from any stage. Movement is free in both directions. Template: `—`. status: — when there is no evidence for any value. Status only with evidence.
32
+
33
+ ## Sections
34
+
35
+ | Section | Kind | Guidance |
36
+ |---|---|---|
37
+ | ## Description | required | What the node is responsible for. |
38
+ | ## Why | optional | Optional. Why this part, this way? Text (optionally ending [likely] or [assumed]), none[ — note], same as #<id> (another card's why covers it) or —. Absent = nothing to say. |
39
+ | ## Connections | required | Nodes this one talks to: - <node> · kind: calls\|stores\|deploys\|belongs; none if isolated. Default relation: Connects. |
40
+ | ## Built with | optional | Technologies specific to this card: TC references, or [~ <generic name>] for an open need. Default relation: Built with. |
41
+ | ## Links | optional | External links: - [title](url) · type: Design\|Code\|Doc\|Source\|Analytics\|Other. Source = evidence (inputs/ file or URL). Default relation: Link. |
42
+ | ## Tags | optional | One line of comma-separated tags. |
43
+ | ## Comments | optional | Comment cards attached here, one line each; the remark lives in the CM file. Default relation: Comment. |
44
+ | ## ⚙ Serves | generated | APIs this node serves. |
45
+ | ## ⚙ Connected from | generated | Nodes that connect to this one. |
46
+ | ## ⚙ In user flows | generated | Flow steps that happen here. |
47
+ | ## ⚙ Edge cases | generated | Edge cases that can happen here. |
48
+ | ## ⚙ Decisions | generated | Decisions that affect this card. |
49
+
50
+ Body states: `—` alone = unknown (counted) · `none` alone = verified empty · a final `- —` / `N. —` list item = more items exist but are unknown. Never edit `⚙` sections or the `> ⚙` status line — run `intent-format regen`.
51
+
52
+ **Why.** `## Why` is optional (absent = nothing to say) here. Its question (choice): *Why this part, this way?* It holds one of: the answer in one or two sentences, optionally ending `[likely]` (follows from inputs) or `[assumed]` (a guess; counted as open) — unmarked means confirmed; `none` or `none — <note>` (no why needed; not counted); `same as #<id>` (another card's why covers it; check follows the link); or `—` (nobody asked yet; counted as why debt). A Why says what the Description does not; a question for the owner goes in the sentence it concerns as `[ask: …]`.
53
+
54
+ ## Requirement blocks
55
+
56
+ Requirement blocks sit in Description (and the project's Keep in mind, and step bodies), after the descriptive prose. Marker `**R<n> · <Preset>**`: n is unique within the file; never reused or renumbered.
57
+
58
+ ```markdown
59
+ **R1 · User story** As a <role>, I want <goal>, so that <benefit>.
60
+
61
+ **R2 · GWT**
62
+ Given <context>
63
+ When <event>
64
+ Then <observable outcome>
65
+
66
+ **R3 · EARS** [When <trigger>|While <state>|If <condition>|Where <feature>, [then ]]the system shall <response>.
67
+
68
+ **R4 · Checklist**
69
+ - [ ] <verifiable item>
70
+ ```
71
+
72
+ **User story**: so that is mandatory; <role> is the exact name of a role card. · **GWT**: All three keywords present, in this sequence. · **EARS**: Contains "the system shall". · **Checklist**: At least one item. A slot written as — is a declared blind spot (counted).
73
+
74
+ ## Relations written on this type
75
+
76
+ | Relation | Written in | Targets | Qualifiers | Generated reverse |
77
+ |---|---|---|---|---|
78
+ | Connects | ## Connections (no prefix) | backend | kind: calls\|stores\|deploys\|belongs | ⚙ Connected from on backend |
79
+ | Built with | ## Built with (no prefix) | tech | — | ⚙ Used by on tech |
80
+ | Comment | ## Comments (no prefix) | comment | — | ⚙ Attached to on comment |
81
+ | Link | ## Links (no prefix) | URL, or a path to a file in inputs/ | type: Design\|Code\|Doc\|Source\|Analytics\|Other | — |
82
+
83
+ ## Example
84
+
85
+ ```markdown
86
+ ---
87
+ standard: IntentFormat/1.2
88
+ type: backend
89
+ id: BN000001
90
+ name: App server
91
+ status: In build
92
+ backend-type: server
93
+ ---
94
+ # App server · #BN000001
95
+ > ⚙ #BN000001V1.0 · V1.0 in-progress
96
+
97
+ ## Description
98
+ Serves the item APIs and reads and writes the stored data.
99
+
100
+ ## Connections
101
+ - [#BN000002 Main database](bn000002-main-database.md) · kind: stores
102
+ - [#BN000003 File storage](bn000003-file-storage.md) · kind: stores
103
+
104
+ ## Built with
105
+ - [~ Server runtime]
106
+
107
+ ## ⚙ Serves
108
+ - [#AP000001 List items](../apis/ap000001-list-items.md)
109
+ - [#AP000002 Save item](../apis/ap000002-save-item.md)
110
+ ```
@@ -0,0 +1,66 @@
1
+ # comment · CM · folder `comments/`
2
+
3
+ > Generated by `intent-format build-kit` from `schema.json` — do not edit by hand.
4
+
5
+ One remark, attached from the cards it is about; its text lives only here.
6
+
7
+ **When to use.** A review remark or question about a card; attach it from that card's ## Comments. Excluded from export by default.
8
+
9
+ **Not to confuse with**
10
+ - **decision** — If it needs a choice between options, open a decision.
11
+
12
+ ## Front matter
13
+
14
+ | Key | Required | Values |
15
+ |---|---|---|
16
+ | `standard` | yes | `IntentFormat/1.2` — always the first key |
17
+ | `type` | yes | `comment` |
18
+ | `id` | yes | `CM000000`-style core (CM + 6 digits) — minted by `intent-format new`, never by hand |
19
+ | `name` | yes | the card name (no `[` `]`); title, references and filename slug derive from it |
20
+ | `status` | yes | status vocabulary below, or `—` |
21
+ | `author` | yes | Who wrote it (name or role). |
22
+ | `date` | no | pattern `^\d{4}-\d{2}-\d{2}$` — When it was written (authored value). |
23
+ | `origin` | no | `<kb>/<core>` — written by import |
24
+ | `x-*` | no | extension keys; kept untouched, always last |
25
+
26
+ Keys in this order. Unknown = `—` (never quoted); `version`-like values are quoted.
27
+
28
+ ## Status
29
+
30
+ `Open` · `Resolved` — The only representation of a comment's state. Template: `Open`. status: — when there is no evidence for any value. Status only with evidence.
31
+
32
+ ## Sections
33
+
34
+ | Section | Kind | Guidance |
35
+ |---|---|---|
36
+ | (text under the title) | required | The remark itself, directly under the title (and status line). |
37
+ | ## Links | optional | External links: - [title](url) · type: Design\|Code\|Doc\|Source\|Analytics\|Other. Source = evidence (inputs/ file or URL). Default relation: Link. |
38
+ | ## ⚙ Attached to | generated | Where this comment is attached. |
39
+
40
+ Body states: `—` alone = unknown (counted) · `none` alone = verified empty · a final `- —` / `N. —` list item = more items exist but are unknown. Never edit `⚙` sections or the `> ⚙` status line — run `intent-format regen`.
41
+
42
+ ## Relations written on this type
43
+
44
+ | Relation | Written in | Targets | Qualifiers | Generated reverse |
45
+ |---|---|---|---|---|
46
+ | Link | ## Links (no prefix) | URL, or a path to a file in inputs/ | type: Design\|Code\|Doc\|Source\|Analytics\|Other | — |
47
+
48
+ ## Example
49
+
50
+ ```markdown
51
+ ---
52
+ standard: IntentFormat/1.2
53
+ type: comment
54
+ id: CM000001
55
+ name: Empty-list message
56
+ status: Open
57
+ author: Product owner
58
+ ---
59
+ # Empty-list message · #CM000001
60
+ > ⚙ #CM000001V1.0 · V1.0 in-progress
61
+
62
+ Should the empty Item list also offer to import items? Only if it is cheap.
63
+
64
+ ## ⚙ Attached to
65
+ - [#SC000002 Item list](../screens/sc000002-item-list.md)
66
+ ```