intent-format 0.0.0-stage → 1.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.
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 +287 -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 +71 -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,131 @@
1
+ # project · PR · `project.md`
2
+
3
+ > Generated by `intent-format build-kit` from `schema.json` — do not edit by hand.
4
+
5
+ The front door: what the product is and for whom, main use cases, constraints, vocabularies and project-wide tech.
6
+
7
+ **When to use.** Exactly one per workspace, at its root; the first card an agent reads.
8
+
9
+ **Not to confuse with**
10
+ - **manifest** — intent-format.md describes the KB as an artifact (version, lifecycle, modules); project.md describes the product.
11
+ - **feature** — A top-level Feature scopes one product domain; the project card frames the whole product.
12
+
13
+ ## Front matter
14
+
15
+ | Key | Required | Values |
16
+ |---|---|---|
17
+ | `standard` | yes | `IntentFormat/1.2` — always the first key |
18
+ | `type` | yes | `project` |
19
+ | `id` | yes | `PR000000`-style core (PR + 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
+ | `industry` | no | The product's domain, free text (E-commerce, Travel, Fintech, Health, Education, Media, SaaS tool, Logistics, Hospitality, Real estate, Social, Gaming …). Agents read it first: it sets the vocabulary, the usual journeys and the rules that apply. |
23
+ | `audience` | no | Who the product is sold or given to: B2C, B2B, B2B2C, Internal system, Marketplace — one or several. With industry it frames every suggestion an agent makes. |
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 product is and for whom, in a few sentences; product-wide requirement blocks if any. |
38
+ | ## Why | required | What problem does the product solve, for whom, and why now? Text (optionally ending [likely] or [assumed]), none[ — note], same as #<id> (another card's why covers it) or —. |
39
+ | ## User stories | required | 5–10 lines: - As a <Role>, I want <goal>, so that <benefit>. <Role> is the exact name of a role card (roles/). |
40
+ | ## Keep in mind | required | Non-functional requirements (performance, offline, privacy, accessibility, languages) as requirement blocks; none if there are none. |
41
+ | ## Vocabularies | required | The only place States, Platforms, Opens-as values and Tech categories are defined; all start empty. User types are role cards (roles/); a ### Roles table is deprecated (W050, intent-format migrate). |
42
+ | ## Built with | required (optional without tech/) | Project-wide technologies: TC references; an open need is [~ <generic name>] plus an Open decision. Default relation: Built with. |
43
+ | ## Links | optional | External links: - [title](url) · type: Design\|Code\|Doc\|Source\|Analytics\|Other. Source = evidence (inputs/ file or URL). Default relation: Link. |
44
+ | ## Tags | optional | One line of comma-separated tags. |
45
+ | ## Comments | optional | Comment cards attached here, one line each; the remark lives in the CM file. Default relation: Comment. |
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 required here. Its question (purpose): *What problem does the product solve, for whom, and why now?* 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. Default preset here: **Checklist** (any preset is legal anywhere; the default is the one templates and agents use first.)
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
+ | Built with | ## Built with (no prefix) | tech | — | ⚙ Used by on tech |
77
+ | Comment | ## Comments (no prefix) | comment | — | ⚙ Attached to on comment |
78
+ | Link | ## Links (no prefix) | URL, or a path to a file in inputs/ | type: Design\|Code\|Doc\|Source\|Analytics\|Other | — |
79
+
80
+ ## Example
81
+
82
+ ```markdown
83
+ ---
84
+ standard: IntentFormat/1.2
85
+ type: project
86
+ id: PR000001
87
+ name: Example app
88
+ status: In design
89
+ ---
90
+ # Example app · #PR000001
91
+ > ⚙ #PR000001V1.0 · V1.0 in-progress
92
+
93
+ ## Description
94
+ A small app in which a Member keeps a list of items: create, browse and change them.
95
+
96
+
97
+ ## Why
98
+ Members lose track of things kept in notes and chats; one list that is always at hand fixes that.
99
+ ## User stories
100
+ - As a Member, I want to create an item, so that I can keep track of it.
101
+ - As a Member, I want to browse my items, so that I find one quickly.
102
+ - As a Member, I want to edit an item, so that its details stay current.
103
+ - As a Member, I want to change my settings, so that the app fits how I work.
104
+ - As an Admin, I want to review all items, so that the list stays clean.
105
+
106
+ ## Keep in mind
107
+ **R1 · Checklist**
108
+ - [ ] The Item list opens in under one second with 1000 items.
109
+ - [ ] Every screen works with the keyboard alone.
110
+
111
+ ## Vocabularies
112
+ ### States
113
+ | State | Code | Note |
114
+ |---|---|---|
115
+
116
+ ### Platforms
117
+ - Web
118
+ - Mobile
119
+
120
+ ### Opens-as
121
+ - Side panel — opens beside the current page
122
+
123
+ ### Tech categories
124
+ - Frontend
125
+ - Data & storage
126
+
127
+ ## Built with
128
+ - [#TC000001 UI framework](tech/tc000001-ui-framework.md)
129
+ - [#TC000002 Relational database](tech/tc000002-relational-database.md)
130
+ - [~ Graph canvas library]
131
+ ```
@@ -0,0 +1,98 @@
1
+ # role · RO · folder `roles/`
2
+
3
+ > Generated by `intent-format build-kit` from `schema.json` — do not edit by hand.
4
+
5
+ A user type: who uses the product, why they come and how they use it. User stories name it.
6
+
7
+ **When to use.** One card per kind of user the product serves (Guest, Member, Admin), and per kind of user of a neighbouring system the product must know about (back-office staff). Not a persona: a named person with a story is future work.
8
+
9
+ **Not to confuse with**
10
+ - **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:.
11
+ - **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.
12
+
13
+ **Altitude.** Who they are and why they come — never the steps they take (flows) or the policy that limits them (rules).
14
+
15
+ ## Front matter
16
+
17
+ | Key | Required | Values |
18
+ |---|---|---|
19
+ | `standard` | yes | `IntentFormat/1.2` — always the first key |
20
+ | `type` | yes | `role` |
21
+ | `id` | yes | `RO000000`-style core (RO + 6 digits) — minted by `intent-format new`, never by hand |
22
+ | `name` | yes | the card name (no `[` `]`); title, references and filename slug derive from it |
23
+ | `status` | yes | status vocabulary below, or `—` |
24
+ | `state` | no | a State of project.md (one value or a list); omitted = Shared; only when States are declared |
25
+ | `platform` | no | a value of ### Platforms in project.md (or `All`) — Platforms this role uses; omitted = all. Their frames are the app shells of these platforms. |
26
+ | `origin` | no | `<kb>/<core>` — written by import |
27
+ | `x-*` | no | extension keys; kept untouched, always last |
28
+
29
+ Keys in this order. Unknown = `—` (never quoted); `version`-like values are quoted.
30
+
31
+ ## Status
32
+
33
+ `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.
34
+
35
+ ## Sections
36
+
37
+ | Section | Kind | Guidance |
38
+ |---|---|---|
39
+ | ## Description | required | Who they are, their context, what they come to do and what matters to them (devices, frequency, expertise, accessibility needs); requirement blocks only for needs that hold wherever this role appears. |
40
+ | ## Why | required | Why does this user type matter to the product? Text (optionally ending [likely] or [assumed]), none[ — note], same as #<id> (another card's why covers it) or —. |
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
+ | ## ⚙ Stories | generated | Every user story that names this role: User stories and User story blocks on any card. |
45
+ | ## ⚙ Decisions | generated | Decisions that affect this card. |
46
+
47
+ 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`.
48
+
49
+ **Why.** `## Why` is required here. Its question (purpose): *Why does this user type matter to the product?* 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: …]`.
50
+
51
+ ## Requirement blocks
52
+
53
+ 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.
54
+
55
+ ```markdown
56
+ **R1 · User story** As a <role>, I want <goal>, so that <benefit>.
57
+
58
+ **R2 · GWT**
59
+ Given <context>
60
+ When <event>
61
+ Then <observable outcome>
62
+
63
+ **R3 · EARS** [When <trigger>|While <state>|If <condition>|Where <feature>, [then ]]the system shall <response>.
64
+
65
+ **R4 · Checklist**
66
+ - [ ] <verifiable item>
67
+ ```
68
+
69
+ **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).
70
+
71
+ ## Relations written on this type
72
+
73
+ | Relation | Written in | Targets | Qualifiers | Generated reverse |
74
+ |---|---|---|---|---|
75
+ | Comment | ## Comments (no prefix) | comment | — | ⚙ Attached to on comment |
76
+ | Link | ## Links (no prefix) | URL, or a path to a file in inputs/ | type: Design\|Code\|Doc\|Source\|Analytics\|Other | — |
77
+
78
+ ## Example
79
+
80
+ ```markdown
81
+ ---
82
+ standard: IntentFormat/1.2
83
+ type: role
84
+ id: RO000001
85
+ name: Member
86
+ status: In design
87
+ platform: [Web, Mobile]
88
+ ---
89
+ # Member · #RO000001
90
+ > ⚙ #RO000001V1.0 · V1.0 in-progress
91
+
92
+ ## Description
93
+ Someone who keeps a personal list of items. Uses the app several times a week, mostly on the phone; expects to find an item in a few taps.
94
+
95
+
96
+ ## Why
97
+ The product exists for this user; every story names them.
98
+ ```
@@ -0,0 +1,100 @@
1
+ # rule · RL · folder `rules/`
2
+
3
+ > Generated by `intent-format build-kit` from `schema.json` — do not edit by hand.
4
+
5
+ One business rule stated once, in plain words; every other card references it.
6
+
7
+ **When to use.** An always-true policy cited from several places, and any specific limit, number or condition (the lowest owner of specifics).
8
+
9
+ **Not to confuse with**
10
+ - **edge-case** — A situation plus its agreed handling is an edge case; the policy it applies is a rule.
11
+ - **flow-step** — A fork is a decision point in a journey; it cites the rule.
12
+ - **requirement** — An acceptance criterion of one card stays in that card's Description.
13
+
14
+ **Altitude.** The exact policy with its numbers and conditions — stated here only.
15
+
16
+ ## Front matter
17
+
18
+ | Key | Required | Values |
19
+ |---|---|---|
20
+ | `standard` | yes | `IntentFormat/1.2` — always the first key |
21
+ | `type` | yes | `rule` |
22
+ | `id` | yes | `RL000000`-style core (RL + 6 digits) — minted by `intent-format new`, never by hand |
23
+ | `name` | yes | the card name (no `[` `]`); title, references and filename slug derive from it |
24
+ | `status` | yes | status vocabulary below, or `—` |
25
+ | `state` | no | a State of project.md (one value or a list); omitted = Shared; only when States are declared |
26
+ | `origin` | no | `<kb>/<core>` — written by import |
27
+ | `x-*` | no | extension keys; kept untouched, always last |
28
+
29
+ Keys in this order. Unknown = `—` (never quoted); `version`-like values are quoted.
30
+
31
+ ## Status
32
+
33
+ `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.
34
+
35
+ ## Sections
36
+
37
+ | Section | Kind | Guidance |
38
+ |---|---|---|
39
+ | ## Description | required | The rule itself, once: one precise sentence or an EARS block. |
40
+ | ## Why | required | What goes wrong without it? Text (optionally ending [likely] or [assumed]), none[ — note], same as #<id> (another card's why covers it) or —. |
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
+ | ## ⚙ Applied in | generated | Everywhere this rule applies. |
45
+ | ## ⚙ Decisions | generated | Decisions that affect this card. |
46
+
47
+ 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`.
48
+
49
+ **Why.** `## Why` is required here. Its question (constraint): *What goes wrong without it?* 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: …]`.
50
+
51
+ ## Requirement blocks
52
+
53
+ 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. Default preset here: **EARS** (any preset is legal anywhere; the default is the one templates and agents use first.)
54
+
55
+ ```markdown
56
+ **R1 · User story** As a <role>, I want <goal>, so that <benefit>.
57
+
58
+ **R2 · GWT**
59
+ Given <context>
60
+ When <event>
61
+ Then <observable outcome>
62
+
63
+ **R3 · EARS** [When <trigger>|While <state>|If <condition>|Where <feature>, [then ]]the system shall <response>.
64
+
65
+ **R4 · Checklist**
66
+ - [ ] <verifiable item>
67
+ ```
68
+
69
+ **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).
70
+
71
+ ## Relations written on this type
72
+
73
+ | Relation | Written in | Targets | Qualifiers | Generated reverse |
74
+ |---|---|---|---|---|
75
+ | Comment | ## Comments (no prefix) | comment | — | ⚙ Attached to on comment |
76
+ | Link | ## Links (no prefix) | URL, or a path to a file in inputs/ | type: Design\|Code\|Doc\|Source\|Analytics\|Other | — |
77
+
78
+ ## Example
79
+
80
+ ```markdown
81
+ ---
82
+ standard: IntentFormat/1.2
83
+ type: rule
84
+ id: RL000001
85
+ name: Item name is required
86
+ status: Approved
87
+ ---
88
+ # Item name is required · #RL000001
89
+ > ⚙ #RL000001V1.0 · V1.0 in-progress
90
+
91
+ ## Description
92
+ **R1 · EARS** If the item name is empty, then the system shall refuse to save the item and say why.
93
+
94
+
95
+ ## Why
96
+ An item without a name cannot be found again in the list.
97
+ ## ⚙ Applied in
98
+ - [#SC000004 Edit item](../screens/sc000004-edit-item.md)
99
+ - [#UF000001 Create an item](../userflows/uf000001-create-an-item.md) · at: #FS000003
100
+ ```
@@ -0,0 +1,153 @@
1
+ # screen · SC · folder `screens/`
2
+
3
+ > Generated by `intent-format build-kit` from `schema.json` — do not edit by hand.
4
+
5
+ A place the user can be: what it is for and what it is made of.
6
+
7
+ **When to use.** Anything the user navigates to or that hosts its own list of components: a page, a modal, a panel with its own composition. The frame around it (navigation, close, confirm) belongs to a shell, not to the screen; the map's root is a real place such as Home.
8
+
9
+ **Not to confuse with**
10
+ - **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.
11
+ - **screen-variant** — Same place with another composition or presentation → a variant; a different purpose → a new screen.
12
+ - **ia** — A screen never states where it sits or what it leads to; IA maps arrange screens.
13
+
14
+ **Altitude.** What the place is for and made of — not how users move through it (flows) or where it sits (IA maps).
15
+
16
+ ## Front matter
17
+
18
+ | Key | Required | Values |
19
+ |---|---|---|
20
+ | `standard` | yes | `IntentFormat/1.2` — always the first key |
21
+ | `type` | yes | `screen` |
22
+ | `id` | yes | `SC000000`-style core (SC + 6 digits) — minted by `intent-format new`, never by hand |
23
+ | `name` | yes | the card name (no `[` `]`); title, references and filename slug derive from it |
24
+ | `status` | yes | status vocabulary below, or `—` |
25
+ | `state` | no | a State of project.md (one value or a list); omitted = Shared; only when States are declared |
26
+ | `feature` | no | FT core of this card's home Feature or Sub-feature (one) |
27
+ | `users` | no | The user types this card is for: one role card name, or a list; omitted = every user type whose states include its state. |
28
+ | `opens-as` | no | a value of ### Opens-as in project.md (or `Page`) — Default presentation; omitted = Page. |
29
+ | `shell` | no | pattern `^(?:SH\d{6}|none)$` — The shell this screen normally sits in (an SH core), or none; omitted = resolved per placement (section 6.4). |
30
+ | `origin` | no | `<kb>/<core>` — written by import |
31
+ | `x-*` | no | extension keys; kept untouched, always last |
32
+
33
+ Keys in this order. Unknown = `—` (never quoted); `version`-like values are quoted.
34
+
35
+ ## Status
36
+
37
+ `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.
38
+
39
+ ## Sections
40
+
41
+ | Section | Kind | Guidance |
42
+ |---|---|---|
43
+ | ## Description | required | What the place is for and what the user can do there; acceptance criteria as GWT blocks. |
44
+ | ## Why | optional | Optional. Why this screen, this way — and not folded into another? Text (optionally ending [likely] or [assumed]), none[ — note], same as #<id> (another card's why covers it) or —. Absent = nothing to say. |
45
+ | ## Rules | optional | Rules that govern this card, one line each; never restate the rule text. Default relation: Applies rule. |
46
+ | ## Do & Don'ts | optional | Paired usage guidance: ✅ <do> / 🚫 <don't> lines. |
47
+ | ## Components | required (optional without components/) | Default composition, top to bottom: 1. <component>[ · variant: <name>][ — note]. Default relation: Part (ordered 1. 2. …). |
48
+ | ## Variants | optional | Named alternatives (### <Name> · #SV…), each with its own component list; there is no Default variant — the default is ## Components. |
49
+ | ## APIs | optional | APIs this card calls directly, one line each. Default relation: Uses API. |
50
+ | ## Built with | optional | Technologies specific to this card: TC references, or [~ <generic name>] for an open need. Default relation: Built with. |
51
+ | ## Links | optional | External links: - [title](url) · type: Design\|Code\|Doc\|Source\|Analytics\|Other. Source = evidence (inputs/ file or URL). Default relation: Link. |
52
+ | ## Tags | optional | One line of comma-separated tags. |
53
+ | ## Comments | optional | Comment cards attached here, one line each; the remark lives in the CM file. Default relation: Comment. |
54
+ | ## ⚙ On maps | generated | The IA maps that place this screen. |
55
+ | ## ⚙ Reached from | generated | Shells whose Navigation leads to this screen. |
56
+ | ## ⚙ In user flows | generated | Flow steps that happen here. |
57
+ | ## ⚙ Features | generated | Features that name this card as an explicit touchpoint. |
58
+ | ## ⚙ Edge cases | generated | Edge cases that can happen here. |
59
+ | ## ⚙ Decisions | generated | Decisions that affect this card. |
60
+
61
+ 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`.
62
+
63
+ **Why.** `## Why` is optional (absent = nothing to say) here. Its question (choice): *Why this screen, this way — and not folded into another?* 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: …]`.
64
+
65
+ ## Requirement blocks
66
+
67
+ 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. Default preset here: **GWT** (any preset is legal anywhere; the default is the one templates and agents use first.)
68
+
69
+ ```markdown
70
+ **R1 · User story** As a <role>, I want <goal>, so that <benefit>.
71
+
72
+ **R2 · GWT**
73
+ Given <context>
74
+ When <event>
75
+ Then <observable outcome>
76
+
77
+ **R3 · EARS** [When <trigger>|While <state>|If <condition>|Where <feature>, [then ]]the system shall <response>.
78
+
79
+ **R4 · Checklist**
80
+ - [ ] <verifiable item>
81
+ ```
82
+
83
+ **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).
84
+
85
+ ## Relations written on this type
86
+
87
+ | Relation | Written in | Targets | Qualifiers | Generated reverse |
88
+ |---|---|---|---|---|
89
+ | Part | ## Components (no prefix); ### variant (#SV) (no prefix) | component | variant: … · opens-as: Opens-as | ⚙ Used in on component |
90
+ | Applies rule | ## Rules (no prefix) | rule | — | ⚙ Applied in on rule |
91
+ | Uses API | ## APIs (no prefix) | api | — | ⚙ Called from on api |
92
+ | Built with | ## Built with (no prefix) | tech | — | ⚙ Used by on tech |
93
+ | Comment | ## Comments (no prefix); ### variant (#SV) | comment | — | ⚙ Attached to on comment |
94
+ | Link | ## Links (no prefix); ### variant (#SV) | URL, or a path to a file in inputs/ | type: Design\|Code\|Doc\|Source\|Analytics\|Other | — |
95
+ | Home | front matter `feature:` | feature | — | ⚙ Screens, ⚙ User flows, ⚙ Components on feature |
96
+ | Shell | front matter `shell:`; ### variant (#SV) passport `shell:` | shell | — | ⚙ Wraps on shell |
97
+
98
+ ## Sub-document: screen-variant
99
+
100
+ Heading `### <Name> · #SV<6 digits>` in ## Variants; anchor `<a id="sv000001"></a>` on the next line.
101
+ Optional passport line: `state:` · `opens-as:` · `shell:` · `platform:` · `flag:` (as listed; omit keys at their default).
102
+ Optional one prose line, then its own component list as ordered Part lines (or none / —); explicit - Comment: and - Link: (· type: Design) lines may follow.
103
+ - A variant holds its whole component list; it never inherits lines from ## Components.
104
+ - There is no Default variant: the default is the host's ## Components, and unpinned references resolve to it.
105
+ - Variant names are unique within the host; references pin one with · variant: <name or core>.
106
+ - Error, empty and loading presentations are ordinary variants.
107
+
108
+ ## Example
109
+
110
+ ```markdown
111
+ ---
112
+ standard: IntentFormat/1.2
113
+ type: screen
114
+ id: SC000002
115
+ name: Item list
116
+ status: In design
117
+ feature: FT000002
118
+ ---
119
+ # Item list · #SC000002
120
+ > ⚙ #SC000002V1.0 · V1.0 in-progress
121
+
122
+ ## Description
123
+ Shows all of a Member's items as rows; choosing a row opens Item detail.
124
+
125
+ **R1 · GWT**
126
+ Given a Member with no items
127
+ When the Item list opens
128
+ Then an empty-list message and a create button are shown
129
+
130
+ ## Components
131
+ 1. [#CP000003 Item row](../components/cp000003-item-row.md) — one per item
132
+ 2. [#CP000001 Button](../components/cp000001-button.md) — creates an item
133
+
134
+ ## Variants
135
+ ### Picker · #SV000001
136
+ <a id="sv000001"></a>
137
+ opens-as: Side panel
138
+
139
+ 1. [#CP000003 Item row](../components/cp000003-item-row.md) · variant: Compact
140
+
141
+ ## APIs
142
+ - [#AP000001 List items](../apis/ap000001-list-items.md)
143
+
144
+ ## Comments
145
+ - [#CM000001 Empty-list message](../comments/cm000001-empty-list-message.md)
146
+
147
+ ## ⚙ On maps
148
+ - [#IA000001 Main map](../ia/ia000001-main-map.md) · under: #SC000001
149
+
150
+ ## ⚙ In user flows
151
+ - [#UF000001 Create an item](../userflows/uf000001-create-an-item.md) · at: #FS000001
152
+ - [#UF000001 Create an item](../userflows/uf000001-create-an-item.md) · at: #FS000005
153
+ ```
@@ -0,0 +1,156 @@
1
+ # shell · SH · folder `shells/`
2
+
3
+ > Generated by `intent-format build-kit` from `schema.json` — do not edit by hand.
4
+
5
+ The frame around places: what is always there, where it leads, and the rules for whatever it frames. Described once, resolved per placement.
6
+
7
+ **When to use.** Persistent UI around places: the app frame (navigation, account, consent), a section's back and breadcrumbs, a stepper's progress and Continue, a modal's title, close and confirm, a focus mode, a split view, an embedded host. Typically three to eight per product.
8
+
9
+ **Not to confuse with**
10
+ - **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.
11
+ - **component** — A shell is never placed as a Part; it frames. Its own parts (top bar, burger, breadcrumbs) are components.
12
+ - **ia** — A shell says what surrounds a place; the map says where the place sits. A node binds a shell with · shell:.
13
+
14
+ **How to model**
15
+ - Screens are content, shells are context. A screen says what the place is for, its outcome and its primary action by name; the shell says what surrounds it and renders that action.
16
+ - Does the user go somewhere with a purpose of its own → a screen (a modal or sheet via opens-as). Does the frame unfold (a navigation drawer, an account menu) → a part of the shell with · opens-as:.
17
+ - New shell or variant? A new shell when the frame does another job (another shell-type) or follows another navigation model — mostly different destinations or parts, or different rules in ## Places inside (a variant cannot change them). A variant when the same frame adds or swaps a part or two for a platform, a state or a level.
18
+ - Typical set: one app shell per platform family whose frame is built differently (a desktop header vs a native tab bar), a section shell per area with its own wayfinding, a stepper per task flow, one overlay shell per presentation.
19
+ - Variants stack: every variant whose passport matches applies, so write Signed in, Level 2+ and Mobile once each — never their combinations.
20
+ - Navigation is one ordered list on the host, in display order. A line shown only on some platforms or in some states carries · platform: / · state:; · in: names the part that holds the entry (Header, Footer, Tab bar, Account menu).
21
+ - Write the exception, not the rule: every page gets the app shell of its platform and state, every modal the Modal shell. Bind a section once on its map node (· shell:). Run intent-format frame <root> <screen> to see what a place resolves to.
22
+
23
+ **Altitude.** What the frame provides and demands — never the content of the places inside it.
24
+
25
+ ## Front matter
26
+
27
+ | Key | Required | Values |
28
+ |---|---|---|
29
+ | `standard` | yes | `IntentFormat/1.2` — always the first key |
30
+ | `type` | yes | `shell` |
31
+ | `id` | yes | `SH000000`-style core (SH + 6 digits) — minted by `intent-format new`, never by hand |
32
+ | `name` | yes | the card name (no `[` `]`); title, references and filename slug derive from it |
33
+ | `status` | yes | status vocabulary below, or `—` |
34
+ | `state` | no | a State of project.md (one value or a list); omitted = Shared; only when States are declared |
35
+ | `shell-type` | yes | `app` · `section` · `stepper` · `overlay` · `focus` · `split` · `embedded` — Kind of frame: app = the home frame of a platform and state · section = back, breadcrumbs, section tabs · stepper = progress and Continue, realises a flow · overlay = the frame of a modal, sheet or drawer · focus = everything hidden but an exit · split = a list that stays while the detail changes · embedded = a host provides the frame. |
36
+ | `platform` | no | a value of ### Platforms in project.md (or `All`) — Platforms this shell is the frame for; omitted = all. Variants refine it. |
37
+ | `opens-as` | no | a value of ### Opens-as in project.md (or `Page`) — Overlay shells only: the presentation this shell frames (Modal, Bottom sheet …); every placement with that presentation resolves to it. |
38
+ | `flow` | no | pattern `^UF\d{6}$` — Stepper shells only: the user flow whose steps the stepper shows; progress and order come from it, never from a hand-written list. |
39
+ | `origin` | no | `<kb>/<core>` — written by import |
40
+ | `x-*` | no | extension keys; kept untouched, always last |
41
+
42
+ Keys in this order. Unknown = `—` (never quoted); `version`-like values are quoted.
43
+
44
+ ## Status
45
+
46
+ `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.
47
+
48
+ ## Sections
49
+
50
+ | Section | Kind | Guidance |
51
+ |---|---|---|
52
+ | ## Description | required | What the frame is for and the platform conventions it carries (back gesture, Escape, swipe to close); requirement blocks for the frame itself. |
53
+ | ## Why | required | Why this frame around the places? Text (optionally ending [likely] or [assumed]), none[ — note], same as #<id> (another card's why covers it) or —. |
54
+ | ## Rules | optional | Rules that govern this frame, one line each. Default relation: Applies rule. |
55
+ | ## Components | required (optional without components/) | The frame's own parts, top to bottom: 1. <component>[ · variant: <name>][ · opens-as: <value>][ — note]. A part that unfolds over the page (a navigation drawer, an account menu) carries · opens-as:. none for an embedded shell. Default relation: Part (ordered 1. 2. …). |
56
+ | ## Navigation | recommended | Where the frame leads, in display order: 1. <screen>[ · kind: tab\|menu\|link][ · label: <text>][ · in: <part>][ · platform: <list>][ · state: <State>][ — note]. One list for every variant: · platform: / · state: limit a line, · in: names the part(s) holding the entry. A stepper's order comes from flow:, not from here. Default relation: Leads to (ordered 1. 2. …). |
57
+ | ## Places inside | recommended | The contract for whatever this shell frames: ✅ / 🚫 lines and requirement blocks — what the frame provides, what it expects (a primary action by name, valid or not, done), what a place must not do (own navigation, own close), and what happens on complete, cancel, leave and error. |
58
+ | ## Variants | optional | The frame for a platform, a state or a level (### <Name> · #HV…): the parts it adds to ## Components. Every matching variant applies (they stack); navigation stays in ## Navigation. |
59
+ | ## Links | optional | External links: - [title](url) · type: Design\|Code\|Doc\|Source\|Analytics\|Other. Default relation: Link. |
60
+ | ## Tags | optional | One line of comma-separated tags. |
61
+ | ## Comments | optional | Comment cards attached here, one line each. Default relation: Comment. |
62
+ | ## ⚙ Wraps | generated | Everything bound to this shell explicitly; default bindings are computed, not listed. |
63
+ | ## ⚙ Edge cases | generated | Edge cases that can happen here. |
64
+ | ## ⚙ Decisions | generated | Decisions that affect this card. |
65
+
66
+ 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`.
67
+
68
+ **Why.** `## Why` is required here. Its question (choice): *Why this frame around the places?* 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: …]`.
69
+
70
+ ## Requirement blocks
71
+
72
+ 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.
73
+
74
+ ```markdown
75
+ **R1 · User story** As a <role>, I want <goal>, so that <benefit>.
76
+
77
+ **R2 · GWT**
78
+ Given <context>
79
+ When <event>
80
+ Then <observable outcome>
81
+
82
+ **R3 · EARS** [When <trigger>|While <state>|If <condition>|Where <feature>, [then ]]the system shall <response>.
83
+
84
+ **R4 · Checklist**
85
+ - [ ] <verifiable item>
86
+ ```
87
+
88
+ **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).
89
+
90
+ ## Relations written on this type
91
+
92
+ | Relation | Written in | Targets | Qualifiers | Generated reverse |
93
+ |---|---|---|---|---|
94
+ | Part | ## Components (no prefix); ### variant (#HV) (no prefix) | component | variant: … · opens-as: Opens-as | ⚙ Used in on component |
95
+ | Leads to | ## Navigation (no prefix) | screen | kind: tab\|menu\|link · label: … · in: … · platform: Platforms · state: States | ⚙ Reached from on screen |
96
+ | Applies rule | ## Rules (no prefix) | rule | — | ⚙ Applied in on rule |
97
+ | Comment | ## Comments (no prefix); ### variant (#HV) | comment | — | ⚙ Attached to on comment |
98
+ | Link | ## Links (no prefix); ### variant (#HV) | URL, or a path to a file in inputs/ | type: Design\|Code\|Doc\|Source\|Analytics\|Other | — |
99
+ | Realises | front matter `flow:` | userflow | — | ⚙ Shown in on userflow |
100
+
101
+ ## Sub-document: shell-variant
102
+
103
+ Heading `### <Name> · #HV<6 digits>` in ## Variants; anchor `<a id="hv000001"></a>` on the next line.
104
+ Optional passport line: `platform:` · `state:` · `level:` (as listed; omit keys at their default).
105
+ Optional one prose line, then the parts this variant ADDS to the host's ## Components, as ordered Part lines (or none / —); explicit - Comment: and - Link: lines may follow.
106
+ - A shell variant adds parts to the host's ## Components; it never repeats them (the one place the all-parts rule of screen and component variants is relaxed).
107
+ - Variants stack: every variant whose passport matches the placement's platform, state and level applies, in variant order; none matching = the host alone. Never write a variant for a combination.
108
+ - Navigation lines live only in the host's ## Navigation; limit them with · platform: / · state:.
109
+ - Variant names are unique within the host.
110
+
111
+ ## Example
112
+
113
+ ```markdown
114
+ ---
115
+ standard: IntentFormat/1.2
116
+ type: shell
117
+ id: SH000001
118
+ name: App shell
119
+ status: In design
120
+ shell-type: app
121
+ ---
122
+ # App shell · #SH000001
123
+ > ⚙ #SH000001V1.0 · V1.0 in-progress
124
+
125
+ ## Description
126
+ The frame around every page: navigation, the account entry and the consent banner. On the phone the navigation unfolds from the burger.
127
+
128
+
129
+ ## Why
130
+ One frame around every page, so navigation and the account entry are learned once.
131
+ ## Components
132
+ 1. [#CP000006 Consent banner](../components/cp000006-consent-banner.md)
133
+
134
+ ## Navigation
135
+ 1. [#SC000001 Home](../screens/sc000001-home.md) · kind: tab · in: Top bar, Navigation drawer
136
+ 2. [#SC000002 Item list](../screens/sc000002-item-list.md) · kind: tab · label: Items · in: Top bar, Navigation drawer
137
+ 3. [#SC000005 Settings](../screens/sc000005-settings.md) · kind: menu · in: Top bar, Navigation drawer
138
+
139
+ ## Places inside
140
+ ✅ Declare one primary action by name; the frame renders it.
141
+ 🚫 Never show navigation of your own.
142
+
143
+ ## Variants
144
+ ### Web · #HV000001
145
+ <a id="hv000001"></a>
146
+ platform: Web
147
+
148
+ 1. [#CP000004 Top bar](../components/cp000004-top-bar.md)
149
+
150
+ ### Mobile · #HV000002
151
+ <a id="hv000002"></a>
152
+ platform: Mobile
153
+
154
+ 1. [#CP000007 Burger](../components/cp000007-burger.md)
155
+ 2. [#CP000008 Navigation drawer](../components/cp000008-navigation-drawer.md) · opens-as: Side panel — opened by the burger
156
+ ```