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.
- package/.github/ISSUE_TEMPLATE/1-something-wrong.yml +18 -0
- package/.github/ISSUE_TEMPLATE/2-idea.yml +11 -0
- package/.github/ISSUE_TEMPLATE/config.yml +5 -0
- package/AGENTS.md +11 -0
- package/CHANGELOG.md +288 -0
- package/CLAUDE.md +1 -0
- package/CODE_OF_CONDUCT.md +128 -0
- package/CONTRIBUTING.md +19 -0
- package/LICENSE +21 -0
- package/README.md +72 -2
- package/SECURITY.md +10 -0
- package/VERSION +1 -0
- package/examples/example-app/AGENTS.md +19 -0
- package/examples/example-app/CLAUDE.md +1 -0
- package/examples/example-app/V1.0/apis/_index.md +14 -0
- package/examples/example-app/V1.0/apis/ap000001-list-items.md +20 -0
- package/examples/example-app/V1.0/apis/ap000002-save-item.md +28 -0
- package/examples/example-app/V1.0/backend/_index.md +15 -0
- package/examples/example-app/V1.0/backend/bn000001-app-server.md +24 -0
- package/examples/example-app/V1.0/backend/bn000002-main-database.md +22 -0
- package/examples/example-app/V1.0/backend/bn000003-file-storage.md +22 -0
- package/examples/example-app/V1.0/comments/_index.md +13 -0
- package/examples/example-app/V1.0/comments/cm000001-empty-list-message.md +15 -0
- package/examples/example-app/V1.0/components/_index.md +16 -0
- package/examples/example-app/V1.0/components/cp000001-button.md +32 -0
- package/examples/example-app/V1.0/components/cp000002-text-field.md +31 -0
- package/examples/example-app/V1.0/components/cp000003-item-row.md +34 -0
- package/examples/example-app/V1.0/components/cp000004-top-bar.md +26 -0
- package/examples/example-app/V1.0/decisions/_index.md +13 -0
- package/examples/example-app/V1.0/decisions/dc000001-where-do-item-images-live.md +26 -0
- package/examples/example-app/V1.0/edge-cases/_index.md +13 -0
- package/examples/example-app/V1.0/edge-cases/ec000001-save-fails.md +24 -0
- package/examples/example-app/V1.0/features/_index.md +17 -0
- package/examples/example-app/V1.0/features/ft000001-items.md +22 -0
- package/examples/example-app/V1.0/features/ft000002-account.md +21 -0
- package/examples/example-app/V1.0/features/ft000003-browse-items.md +26 -0
- package/examples/example-app/V1.0/features/ft000004-edit-an-item.md +33 -0
- package/examples/example-app/V1.0/features/ft000005-change-settings.md +21 -0
- package/examples/example-app/V1.0/ia/_index.md +13 -0
- package/examples/example-app/V1.0/ia/ia000001-main-map.md +23 -0
- package/examples/example-app/V1.0/intent-format.md +12 -0
- package/examples/example-app/V1.0/project.md +51 -0
- package/examples/example-app/V1.0/roles/_index.md +14 -0
- package/examples/example-app/V1.0/roles/ro000001-member.md +22 -0
- package/examples/example-app/V1.0/roles/ro000002-admin.md +19 -0
- package/examples/example-app/V1.0/rules/_index.md +13 -0
- package/examples/example-app/V1.0/rules/rl000001-item-name-is-required.md +20 -0
- package/examples/example-app/V1.0/screens/_index.md +17 -0
- package/examples/example-app/V1.0/screens/sc000001-home.md +18 -0
- package/examples/example-app/V1.0/screens/sc000002-item-list.md +43 -0
- package/examples/example-app/V1.0/screens/sc000003-item-detail.md +24 -0
- package/examples/example-app/V1.0/screens/sc000004-edit-item.md +35 -0
- package/examples/example-app/V1.0/screens/sc000005-settings.md +19 -0
- package/examples/example-app/V1.0/shells/_index.md +8 -0
- package/examples/example-app/V1.0/tech/_index.md +14 -0
- package/examples/example-app/V1.0/tech/tc000001-ui-framework.md +23 -0
- package/examples/example-app/V1.0/tech/tc000002-relational-database.md +25 -0
- package/examples/example-app/V1.0/userflows/_index.md +14 -0
- package/examples/example-app/V1.0/userflows/uf000001-create-an-item.md +66 -0
- package/examples/example-app/V1.0/userflows/uf000002-edit-an-item.md +47 -0
- package/examples/example-app/V1.1/CHANGES.md +12 -0
- package/examples/example-app/V1.1/apis/_index.md +14 -0
- package/examples/example-app/V1.1/apis/ap000001-list-items.md +20 -0
- package/examples/example-app/V1.1/apis/ap000002-save-item.md +28 -0
- package/examples/example-app/V1.1/backend/_index.md +15 -0
- package/examples/example-app/V1.1/backend/bn000001-app-server.md +24 -0
- package/examples/example-app/V1.1/backend/bn000002-main-database.md +22 -0
- package/examples/example-app/V1.1/backend/bn000003-file-storage.md +22 -0
- package/examples/example-app/V1.1/comments/_index.md +14 -0
- package/examples/example-app/V1.1/comments/cm000001-empty-list-message.md +15 -0
- package/examples/example-app/V1.1/comments/cm000002-filter-placement.md +12 -0
- package/examples/example-app/V1.1/components/_index.md +16 -0
- package/examples/example-app/V1.1/components/cp000001-button.md +32 -0
- package/examples/example-app/V1.1/components/cp000002-text-field.md +32 -0
- package/examples/example-app/V1.1/components/cp000003-item-row.md +34 -0
- package/examples/example-app/V1.1/components/cp000004-top-bar.md +26 -0
- package/examples/example-app/V1.1/decisions/_index.md +13 -0
- package/examples/example-app/V1.1/decisions/dc000001-where-do-item-images-live.md +26 -0
- package/examples/example-app/V1.1/edge-cases/_index.md +13 -0
- package/examples/example-app/V1.1/edge-cases/ec000001-save-fails.md +24 -0
- package/examples/example-app/V1.1/features/_index.md +17 -0
- package/examples/example-app/V1.1/features/ft000001-items.md +22 -0
- package/examples/example-app/V1.1/features/ft000002-account.md +21 -0
- package/examples/example-app/V1.1/features/ft000003-browse-items.md +26 -0
- package/examples/example-app/V1.1/features/ft000004-edit-an-item.md +33 -0
- package/examples/example-app/V1.1/features/ft000005-change-settings.md +21 -0
- package/examples/example-app/V1.1/ia/_index.md +13 -0
- package/examples/example-app/V1.1/ia/ia000001-main-map.md +23 -0
- package/examples/example-app/V1.1/intent-format.md +13 -0
- package/examples/example-app/V1.1/project.md +51 -0
- package/examples/example-app/V1.1/roles/_index.md +14 -0
- package/examples/example-app/V1.1/roles/ro000001-member.md +22 -0
- package/examples/example-app/V1.1/roles/ro000002-admin.md +19 -0
- package/examples/example-app/V1.1/rules/_index.md +13 -0
- package/examples/example-app/V1.1/rules/rl000001-item-name-is-required.md +20 -0
- package/examples/example-app/V1.1/screens/_index.md +17 -0
- package/examples/example-app/V1.1/screens/sc000001-home.md +18 -0
- package/examples/example-app/V1.1/screens/sc000002-item-list.md +44 -0
- package/examples/example-app/V1.1/screens/sc000003-item-detail.md +24 -0
- package/examples/example-app/V1.1/screens/sc000004-edit-item.md +35 -0
- package/examples/example-app/V1.1/screens/sc000005-settings.md +19 -0
- package/examples/example-app/V1.1/shells/_index.md +8 -0
- package/examples/example-app/V1.1/tech/_index.md +14 -0
- package/examples/example-app/V1.1/tech/tc000001-ui-framework.md +23 -0
- package/examples/example-app/V1.1/tech/tc000002-relational-database.md +25 -0
- package/examples/example-app/V1.1/userflows/_index.md +14 -0
- package/examples/example-app/V1.1/userflows/uf000001-create-an-item.md +66 -0
- package/examples/example-app/V1.1/userflows/uf000002-edit-an-item.md +47 -0
- package/examples/example-app/_ids.md +78 -0
- package/examples/example-app/_index.md +14 -0
- package/examples/example-app/inputs/brief.md +3 -0
- package/examples/example-app/inputs/links.md +3 -0
- package/kit/cli/README.md +128 -0
- package/kit/cli/intent-format.mjs +342 -0
- package/kit/cli/lib/agents.mjs +39 -0
- package/kit/cli/lib/check.mjs +412 -0
- package/kit/cli/lib/create.mjs +190 -0
- package/kit/cli/lib/frame.mjs +182 -0
- package/kit/cli/lib/generate.mjs +418 -0
- package/kit/cli/lib/kit.mjs +203 -0
- package/kit/cli/lib/migrate.mjs +97 -0
- package/kit/cli/lib/model.mjs +409 -0
- package/kit/cli/lib/next.mjs +134 -0
- package/kit/cli/lib/open.mjs +34 -0
- package/kit/cli/lib/parse.mjs +260 -0
- package/kit/cli/lib/project.mjs +120 -0
- package/kit/cli/lib/regen.mjs +112 -0
- package/kit/cli/lib/relations.mjs +380 -0
- package/kit/cli/lib/rename.mjs +23 -0
- package/kit/cli/lib/schema.mjs +185 -0
- package/kit/cli/lib/templates.mjs +41 -0
- package/kit/cli/lib/util.mjs +165 -0
- package/kit/cli/test/nav.mjs +145 -0
- package/kit/cli/test/roles.mjs +85 -0
- package/kit/cli/test/smoke.mjs +716 -0
- package/kit/skills/intent-format/SKILL.md +91 -0
- package/kit/skills/intent-format/links.md +142 -0
- package/kit/skills/intent-format/types/_overview.md +73 -0
- package/kit/skills/intent-format/types/api.md +111 -0
- package/kit/skills/intent-format/types/backend.md +110 -0
- package/kit/skills/intent-format/types/comment.md +66 -0
- package/kit/skills/intent-format/types/component.md +139 -0
- package/kit/skills/intent-format/types/decision.md +91 -0
- package/kit/skills/intent-format/types/edge-case.md +107 -0
- package/kit/skills/intent-format/types/feature.md +154 -0
- package/kit/skills/intent-format/types/ia.md +106 -0
- package/kit/skills/intent-format/types/project.md +131 -0
- package/kit/skills/intent-format/types/role.md +98 -0
- package/kit/skills/intent-format/types/rule.md +100 -0
- package/kit/skills/intent-format/types/screen.md +153 -0
- package/kit/skills/intent-format/types/shell.md +156 -0
- package/kit/skills/intent-format/types/tech.md +109 -0
- package/kit/skills/intent-format/types/userflow.md +197 -0
- package/kit/skills/kb-cold-start/SKILL.md +124 -0
- package/kit/skills/kb-cold-start/kickoff-questionnaire.md +42 -0
- package/kit/skills/kb-cold-start/templates.md +108 -0
- package/package.json +30 -4
- package/rationale.md +180 -0
- package/schema.json +5895 -0
- package/spec.md +1173 -0
- package/templates/api.md +16 -0
- package/templates/backend.md +15 -0
- package/templates/comment.md +11 -0
- package/templates/component.md +15 -0
- package/templates/decision.md +23 -0
- package/templates/edge-case.md +14 -0
- package/templates/feature.md +14 -0
- package/templates/ia.md +14 -0
- package/templates/project.md +34 -0
- package/templates/role.md +14 -0
- package/templates/rule.md +14 -0
- package/templates/screen.md +14 -0
- package/templates/shell.md +24 -0
- package/templates/tech.md +18 -0
- package/templates/userflow.md +20 -0
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
# component · CP · folder `components/`
|
|
2
|
+
|
|
3
|
+
> Generated by `intent-format build-kit` from `schema.json` — do not edit by hand.
|
|
4
|
+
|
|
5
|
+
A reusable part placed in screens or other components: what it does wherever it appears.
|
|
6
|
+
|
|
7
|
+
**When to use.** A building block that appears inside places: atom, molecule, organism, or an integration wrapping a third-party capability. The frame around places (top bar, tabs, a stepper, a modal's close and confirm) is a shell, its own type.
|
|
8
|
+
|
|
9
|
+
**Not to confuse with**
|
|
10
|
+
- **shell** — The frame around places, described once and resolved per placement → shell. A part inside places → component.
|
|
11
|
+
- **screen** — Navigated to, or hosts its own component list → screen.
|
|
12
|
+
- **tech** — The library or service it is made with is tech; the UI part is the component.
|
|
13
|
+
|
|
14
|
+
**Altitude.** What the part does anywhere — not what one screen uses it for.
|
|
15
|
+
|
|
16
|
+
## Front matter
|
|
17
|
+
|
|
18
|
+
| Key | Required | Values |
|
|
19
|
+
|---|---|---|
|
|
20
|
+
| `standard` | yes | `IntentFormat/1.2` — always the first key |
|
|
21
|
+
| `type` | yes | `component` |
|
|
22
|
+
| `id` | yes | `CP000000`-style core (CP + 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
|
+
| `component-type` | yes | `atom` · `molecule` · `organism` · `integration` — Size class; integration = wraps a third-party capability. |
|
|
28
|
+
| `provider` | no | Who provides the wrapped capability (integration only). |
|
|
29
|
+
| `origin` | no | `<kb>/<core>` — written by import |
|
|
30
|
+
| `x-*` | no | extension keys; kept untouched, always last |
|
|
31
|
+
|
|
32
|
+
Keys in this order. Unknown = `—` (never quoted); `version`-like values are quoted.
|
|
33
|
+
|
|
34
|
+
## Status
|
|
35
|
+
|
|
36
|
+
`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.
|
|
37
|
+
|
|
38
|
+
## Sections
|
|
39
|
+
|
|
40
|
+
| Section | Kind | Guidance |
|
|
41
|
+
|---|---|---|
|
|
42
|
+
| ## Description | required | What the part does and its contract, true on every screen that uses it; GWT blocks. |
|
|
43
|
+
| ## Why | optional | Optional. Why this element, this way? Text (optionally ending [likely] or [assumed]), none[ — note], same as #<id> (another card's why covers it) or —. Absent = nothing to say. |
|
|
44
|
+
| ## Rules | optional | Rules that govern this card, one line each; never restate the rule text. Default relation: Applies rule. |
|
|
45
|
+
| ## Do & Don'ts | optional | Paired usage guidance: ✅ <do> / 🚫 <don't> lines. |
|
|
46
|
+
| ## Components | required (optional without components/) | Inner components, top to bottom; none for atoms. Default relation: Part (ordered 1. 2. …). |
|
|
47
|
+
| ## Variants | optional | Named alternatives (### <Name> · #CV…), each with its own component list. |
|
|
48
|
+
| ## APIs | optional | APIs this card calls directly, one line each. Default relation: Uses API. |
|
|
49
|
+
| ## Built with | optional | Technologies specific to this card: TC references, or [~ <generic name>] for an open need. Default relation: Built with. |
|
|
50
|
+
| ## Links | optional | External links: - [title](url) · type: Design\|Code\|Doc\|Source\|Analytics\|Other. Source = evidence (inputs/ file or URL). Default relation: Link. |
|
|
51
|
+
| ## Tags | optional | One line of comma-separated tags. |
|
|
52
|
+
| ## Comments | optional | Comment cards attached here, one line each; the remark lives in the CM file. Default relation: Comment. |
|
|
53
|
+
| ## ⚙ Used in | generated | Every screen, variant and component that contains this component. |
|
|
54
|
+
| ## ⚙ In user flows | generated | Flow steps that happen here. |
|
|
55
|
+
| ## ⚙ Features | generated | Features that name this card as an explicit touchpoint. |
|
|
56
|
+
| ## ⚙ Edge cases | generated | Edge cases that can happen here. |
|
|
57
|
+
| ## ⚙ Decisions | generated | Decisions that affect this card. |
|
|
58
|
+
|
|
59
|
+
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`.
|
|
60
|
+
|
|
61
|
+
**Why.** `## Why` is optional (absent = nothing to say) here. Its question (choice): *Why this element, 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: …]`.
|
|
62
|
+
|
|
63
|
+
## Requirement blocks
|
|
64
|
+
|
|
65
|
+
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.)
|
|
66
|
+
|
|
67
|
+
```markdown
|
|
68
|
+
**R1 · User story** As a <role>, I want <goal>, so that <benefit>.
|
|
69
|
+
|
|
70
|
+
**R2 · GWT**
|
|
71
|
+
Given <context>
|
|
72
|
+
When <event>
|
|
73
|
+
Then <observable outcome>
|
|
74
|
+
|
|
75
|
+
**R3 · EARS** [When <trigger>|While <state>|If <condition>|Where <feature>, [then ]]the system shall <response>.
|
|
76
|
+
|
|
77
|
+
**R4 · Checklist**
|
|
78
|
+
- [ ] <verifiable item>
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
**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).
|
|
82
|
+
|
|
83
|
+
## Relations written on this type
|
|
84
|
+
|
|
85
|
+
| Relation | Written in | Targets | Qualifiers | Generated reverse |
|
|
86
|
+
|---|---|---|---|---|
|
|
87
|
+
| Part | ## Components (no prefix); ### variant (#CV) (no prefix) | component | variant: … · opens-as: Opens-as | ⚙ Used in on component |
|
|
88
|
+
| Applies rule | ## Rules (no prefix) | rule | — | ⚙ Applied in on rule |
|
|
89
|
+
| Uses API | ## APIs (no prefix) | api | — | ⚙ Called from on api |
|
|
90
|
+
| Built with | ## Built with (no prefix) | tech | — | ⚙ Used by on tech |
|
|
91
|
+
| Comment | ## Comments (no prefix); ### variant (#CV) | comment | — | ⚙ Attached to on comment |
|
|
92
|
+
| Link | ## Links (no prefix); ### variant (#CV) | URL, or a path to a file in inputs/ | type: Design\|Code\|Doc\|Source\|Analytics\|Other | — |
|
|
93
|
+
| Home | front matter `feature:` | feature | — | ⚙ Screens, ⚙ User flows, ⚙ Components on feature |
|
|
94
|
+
|
|
95
|
+
## Sub-document: component-variant
|
|
96
|
+
|
|
97
|
+
Heading `### <Name> · #CV<6 digits>` in ## Variants; anchor `<a id="cv000001"></a>` on the next line.
|
|
98
|
+
Optional passport line: `state:` · `opens-as:` · `platform:` · `flag:` (as listed; omit keys at their default).
|
|
99
|
+
Optional one prose line, then its own component list as ordered Part lines (or none / —); explicit - Comment: and - Link: (· type: Design) lines may follow.
|
|
100
|
+
- A variant holds its whole component list; it never inherits lines from ## Components.
|
|
101
|
+
- There is no Default variant: the default is the host's ## Components, and unpinned references resolve to it.
|
|
102
|
+
- Variant names are unique within the host; references pin one with · variant: <name or core>.
|
|
103
|
+
- Error, empty and loading presentations are ordinary variants.
|
|
104
|
+
|
|
105
|
+
## Example
|
|
106
|
+
|
|
107
|
+
```markdown
|
|
108
|
+
---
|
|
109
|
+
standard: IntentFormat/1.2
|
|
110
|
+
type: component
|
|
111
|
+
id: CP000003
|
|
112
|
+
name: Item row
|
|
113
|
+
status: In design
|
|
114
|
+
feature: FT000002
|
|
115
|
+
component-type: molecule
|
|
116
|
+
---
|
|
117
|
+
# Item row · #CP000003
|
|
118
|
+
> ⚙ #CP000003V1.0 · V1.0 in-progress
|
|
119
|
+
|
|
120
|
+
## Description
|
|
121
|
+
Shows one item's name in a list and opens the item when chosen.
|
|
122
|
+
|
|
123
|
+
## Do & Don'ts
|
|
124
|
+
✅ Show the whole name on one line and cut it at the end.
|
|
125
|
+
🚫 Don't put more than one button in a row.
|
|
126
|
+
|
|
127
|
+
## Components
|
|
128
|
+
1. [#CP000001 Button](cp000001-button.md) — opens the item
|
|
129
|
+
|
|
130
|
+
## Variants
|
|
131
|
+
### Compact · #CV000001
|
|
132
|
+
<a id="cv000001"></a>
|
|
133
|
+
|
|
134
|
+
none
|
|
135
|
+
|
|
136
|
+
## ⚙ Used in
|
|
137
|
+
- [#SC000002 Item list](../screens/sc000002-item-list.md)
|
|
138
|
+
- [#SC000002 Item list](../screens/sc000002-item-list.md) · at: #SV000001
|
|
139
|
+
```
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# decision · DC · folder `decisions/`
|
|
2
|
+
|
|
3
|
+
> Generated by `intent-format build-kit` from `schema.json` — do not edit by hand.
|
|
4
|
+
|
|
5
|
+
A question that needs or got a decision: options, outcome and the cards it affects.
|
|
6
|
+
|
|
7
|
+
**When to use.** Every open question, judgment call or conflict between inputs: record it Open, later Decided with its Outcome. Travels with exports.
|
|
8
|
+
|
|
9
|
+
**Not to confuse with**
|
|
10
|
+
- **comment** — A remark on a card is a comment; a choice between options that changes cards is a decision.
|
|
11
|
+
- **flow-step** — A fork is a runtime branch in a journey, not a product decision.
|
|
12
|
+
|
|
13
|
+
## Front matter
|
|
14
|
+
|
|
15
|
+
| Key | Required | Values |
|
|
16
|
+
|---|---|---|
|
|
17
|
+
| `standard` | yes | `IntentFormat/1.2` — always the first key |
|
|
18
|
+
| `type` | yes | `decision` |
|
|
19
|
+
| `id` | yes | `DC000000`-style core (DC + 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
|
+
| `decided` | no | pattern `^\d{4}-\d{2}-\d{2}$` — Date the decision was taken (YYYY-MM-DD). Expected once status is Decided or Superseded. |
|
|
24
|
+
| `by` | no | Who decided: owner, agent, or the name of a role card. |
|
|
25
|
+
| `superseded-by` | no | pattern `^DC\d{6}$` — Superseded only: the DC core of the decision that replaced this one. |
|
|
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
|
+
`Open` · `Proposed` · `Decided` · `Superseded` · `Dropped` — Open/Proposed count as open decisions in health. Template: `Open`. status: — when there is no evidence for any value. Status only with evidence.
|
|
34
|
+
|
|
35
|
+
## Sections
|
|
36
|
+
|
|
37
|
+
| Section | Kind | Guidance |
|
|
38
|
+
|---|---|---|
|
|
39
|
+
| ## Question | required | The question in one or two sentences. |
|
|
40
|
+
| ## Why | required | Why does this question matter — what hangs on the outcome? Text (optionally ending [likely] or [assumed]), none[ — note], same as #<id> (another card's why covers it) or —. |
|
|
41
|
+
| ## Options | required | Each option with its trade-off; the recommendation, if any. |
|
|
42
|
+
| ## Outcome | required | — while Open or Proposed; the chosen option and why once Decided. Not edited after that: a later note goes to History; a new question reopens the decision. |
|
|
43
|
+
| ## Affects | required | Every card or sub-document the outcome changes. Default relation: Affects. |
|
|
44
|
+
| ## History | optional | Dated lines added after the decision, newest last: - <YYYY-MM-DD> · <what happened> · <source>. Carried out, a later change that leaves the decision as it is, a reopening. Never an edit of the Outcome. |
|
|
45
|
+
| ## Links | optional | External links: - [title](url) · type: Design\|Code\|Doc\|Source\|Analytics\|Other. Source = evidence (inputs/ file or URL). Default relation: Link. |
|
|
46
|
+
| ## Tags | optional | One line of comma-separated tags. |
|
|
47
|
+
| ## Comments | optional | Comment cards attached here, one line each; the remark lives in the CM file. Default relation: Comment. |
|
|
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 required here. Its question (choice): *Why does this question matter — what hangs on the outcome?* 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
|
+
## Relations written on this type
|
|
55
|
+
|
|
56
|
+
| Relation | Written in | Targets | Qualifiers | Generated reverse |
|
|
57
|
+
|---|---|---|---|---|
|
|
58
|
+
| Affects | ## Affects (no prefix) | project, screen, component, shell, userflow, ia, rule, api, feature, edge-case, backend, tech, decision, screen-variant, component-variant, flow-step, shell-variant, role | — | ⚙ Decisions on project, screen, component, userflow, ia, rule, api, feature, edge-case, backend, tech, decision |
|
|
59
|
+
| Comment | ## Comments (no prefix) | comment | — | ⚙ Attached to on comment |
|
|
60
|
+
| Link | ## Links (no prefix) | URL, or a path to a file in inputs/ | type: Design\|Code\|Doc\|Source\|Analytics\|Other | — |
|
|
61
|
+
|
|
62
|
+
## Example
|
|
63
|
+
|
|
64
|
+
```markdown
|
|
65
|
+
---
|
|
66
|
+
standard: IntentFormat/1.2
|
|
67
|
+
type: decision
|
|
68
|
+
id: DC000001
|
|
69
|
+
name: Where do item images live?
|
|
70
|
+
status: Open
|
|
71
|
+
---
|
|
72
|
+
# Where do item images live? · #DC000001
|
|
73
|
+
> ⚙ #DC000001V1.0 · V1.0 in-progress
|
|
74
|
+
|
|
75
|
+
## Question
|
|
76
|
+
Should item images be kept in File storage or inside the Main database?
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
## Why
|
|
80
|
+
Images are the largest data the app stores; where they live decides backup and cost. [likely]
|
|
81
|
+
## Options
|
|
82
|
+
1. File storage — cheap and fast to serve; needs a cleanup job.
|
|
83
|
+
2. Main database — one backup for everything; larger tables.
|
|
84
|
+
|
|
85
|
+
## Outcome
|
|
86
|
+
—
|
|
87
|
+
|
|
88
|
+
## Affects
|
|
89
|
+
- [#BN000003 File storage](../backend/bn000003-file-storage.md)
|
|
90
|
+
- [#AP000002 Save item](../apis/ap000002-save-item.md)
|
|
91
|
+
```
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# edge-case · EC · folder `edge-cases/`
|
|
2
|
+
|
|
3
|
+
> Generated by `intent-format build-kit` from `schema.json` — do not edit by hand.
|
|
4
|
+
|
|
5
|
+
A named exceptional situation: what happens (If/Then) and every place it can occur.
|
|
6
|
+
|
|
7
|
+
**When to use.** A rare or failure situation with agreed handling; status reads as a risk register (Idea = spotted, Approved = handling agreed, Live = handled).
|
|
8
|
+
|
|
9
|
+
**Not to confuse with**
|
|
10
|
+
- **rule** — The policy applied is a rule; the situation and its handling is the edge case.
|
|
11
|
+
- **requirement** — Normal-path acceptance criteria stay in the owning card.
|
|
12
|
+
- **userflow** — An edge case that grew steps becomes a small flow attached where it applies.
|
|
13
|
+
|
|
14
|
+
## Front matter
|
|
15
|
+
|
|
16
|
+
| Key | Required | Values |
|
|
17
|
+
|---|---|---|
|
|
18
|
+
| `standard` | yes | `IntentFormat/1.2` — always the first key |
|
|
19
|
+
| `type` | yes | `edge-case` |
|
|
20
|
+
| `id` | yes | `EC000000`-style core (EC + 6 digits) — minted by `intent-format new`, never by hand |
|
|
21
|
+
| `name` | yes | the card name (no `[` `]`); title, references and filename slug derive from it |
|
|
22
|
+
| `status` | yes | status vocabulary below, or `—` |
|
|
23
|
+
| `state` | no | a State of project.md (one value or a list); omitted = Shared; only when States are declared |
|
|
24
|
+
| `severity` | no | `High` · `Medium` · `Low` — Impact if unhandled. |
|
|
25
|
+
| `origin` | no | `<kb>/<core>` — written by import |
|
|
26
|
+
| `x-*` | no | extension keys; kept untouched, always last |
|
|
27
|
+
|
|
28
|
+
Keys in this order. Unknown = `—` (never quoted); `version`-like values are quoted.
|
|
29
|
+
|
|
30
|
+
## Status
|
|
31
|
+
|
|
32
|
+
`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.
|
|
33
|
+
|
|
34
|
+
## Sections
|
|
35
|
+
|
|
36
|
+
| Section | Kind | Guidance |
|
|
37
|
+
|---|---|---|
|
|
38
|
+
| ## Description | required | If <situation> then <handling>: a GWT or EARS block with both parts. |
|
|
39
|
+
| ## Why | optional | Optional. Why does this case need handling of its own? Text (optionally ending [likely] or [assumed]), none[ — note], same as #<id> (another card's why covers it) or —. Absent = nothing to say. |
|
|
40
|
+
| ## Rules | optional | Rules that govern this card, one line each; never restate the rule text. Default relation: Applies rule. |
|
|
41
|
+
| ## Where | required | Every place it can happen: screens, components, flows, steps, APIs, backend nodes. Default relation: Where. |
|
|
42
|
+
| ## Links | optional | External links: - [title](url) · type: Design\|Code\|Doc\|Source\|Analytics\|Other. Source = evidence (inputs/ file or URL). Default relation: Link. |
|
|
43
|
+
| ## Tags | optional | One line of comma-separated tags. |
|
|
44
|
+
| ## Comments | optional | Comment cards attached here, one line each; the remark lives in the CM file. Default relation: Comment. |
|
|
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 optional (absent = nothing to say) here. Its question (constraint): *Why does this case need handling of its own?* 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: **GWT** (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
|
+
| Applies rule | ## Rules (no prefix) | rule | — | ⚙ Applied in on rule |
|
|
76
|
+
| Where | ## Where (no prefix) | screen, screen-variant, component, component-variant, shell, userflow, flow-step, api, backend | variant: … | ⚙ Edge cases on screen, component, userflow, api, backend |
|
|
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: edge-case
|
|
86
|
+
id: EC000001
|
|
87
|
+
name: Save fails
|
|
88
|
+
status: Idea
|
|
89
|
+
severity: Medium
|
|
90
|
+
---
|
|
91
|
+
# Save fails · #EC000001
|
|
92
|
+
> ⚙ #EC000001V1.0 · V1.0 in-progress
|
|
93
|
+
|
|
94
|
+
## Description
|
|
95
|
+
**R1 · GWT**
|
|
96
|
+
Given a Member editing an item
|
|
97
|
+
When Save item does not answer in time
|
|
98
|
+
Then the edits stay on screen and a retry option is shown
|
|
99
|
+
|
|
100
|
+
## Rules
|
|
101
|
+
none
|
|
102
|
+
|
|
103
|
+
## Where
|
|
104
|
+
- [#SC000004 Edit item](../screens/sc000004-edit-item.md)
|
|
105
|
+
- [#FS000004 Save the item](../userflows/uf000001-create-an-item.md#fs000004)
|
|
106
|
+
- [#AP000002 Save item](../apis/ap000002-save-item.md)
|
|
107
|
+
```
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
# feature · FT · folder `features/`
|
|
2
|
+
|
|
3
|
+
> Generated by `intent-format build-kit` from `schema.json` — do not edit by hand.
|
|
4
|
+
|
|
5
|
+
A product domain (Feature) or a capability inside one (Sub-feature, with parent:).
|
|
6
|
+
|
|
7
|
+
**When to use.** Feature: one per product domain. Anything with a why, rules or decisions of its own is a Feature, wherever the user reaches it from — a loyalty programme opened from the profile screen is its own Feature, not part of Profile. Sub-feature: one per user-facing capability named by its outcome, under its Feature, only while its why is the Feature's (`same as #FT…`). One level deep: a needed third level means a Feature is missing in the middle. Screens, flows and components point at their home with feature:.
|
|
8
|
+
|
|
9
|
+
**Not to confuse with**
|
|
10
|
+
- **userflow** — A Sub-feature names a capability; the flows homed in it describe how the user moves.
|
|
11
|
+
- **project** — The project card frames the whole product; a Feature scopes one domain.
|
|
12
|
+
- **rule** — Numbers, limits and conditions go to rules, never into a Feature's description.
|
|
13
|
+
- **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.
|
|
14
|
+
|
|
15
|
+
**Levels.** Feature: Top-level product domain; no parent:. Sub-feature: A capability; parent: <FT core of a Feature>; its Why is same as the parent's. Max two levels. When it outgrows its Feature (a why, rules or decisions of its own): remove parent:, keep its id and its children, record the move as a decision.
|
|
16
|
+
|
|
17
|
+
**Altitude.** Feature: Why it exists and its scope in/out. Sub-feature: What capability, for whom.
|
|
18
|
+
|
|
19
|
+
## Front matter
|
|
20
|
+
|
|
21
|
+
| Key | Required | Values |
|
|
22
|
+
|---|---|---|
|
|
23
|
+
| `standard` | yes | `IntentFormat/1.2` — always the first key |
|
|
24
|
+
| `type` | yes | `feature` |
|
|
25
|
+
| `id` | yes | `FT000000`-style core (FT + 6 digits) — minted by `intent-format new`, never by hand |
|
|
26
|
+
| `name` | yes | the card name (no `[` `]`); title, references and filename slug derive from it |
|
|
27
|
+
| `status` | yes | status vocabulary below, or `—` |
|
|
28
|
+
| `state` | no | a State of project.md (one value or a list); omitted = Shared; only when States are declared |
|
|
29
|
+
| `parent` | no | pattern `^FT\d{6}$` — Sub-features only: FT core of their top-level Feature. |
|
|
30
|
+
| `priority` | no | `High` · `Medium` · `Low` — Delivery priority. |
|
|
31
|
+
| `origin` | no | `<kb>/<core>` — written by import |
|
|
32
|
+
| `x-*` | no | extension keys; kept untouched, always last |
|
|
33
|
+
|
|
34
|
+
Keys in this order. Unknown = `—` (never quoted); `version`-like values are quoted.
|
|
35
|
+
|
|
36
|
+
## Status
|
|
37
|
+
|
|
38
|
+
`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.
|
|
39
|
+
|
|
40
|
+
## Sections
|
|
41
|
+
|
|
42
|
+
| Section | Kind | Guidance |
|
|
43
|
+
|---|---|---|
|
|
44
|
+
| ## Description | required | Feature: why it exists, then In scope / Out of scope. Sub-feature: one sentence on the capability and for whom, then User story blocks. |
|
|
45
|
+
| ## Why | required | What problem does this solve, or what goal does it serve? Text (optionally ending [likely] or [assumed]), none[ — note], same as #<id> (another card's why covers it) or —. |
|
|
46
|
+
| ## Touchpoints | optional | Optional: delivery points not covered by home lines or flows, e.g. a component or one variant (#SV…). Default relation: Touchpoint. |
|
|
47
|
+
| ## Links | optional | External links: - [title](url) · type: Design\|Code\|Doc\|Source\|Analytics\|Other. Source = evidence (inputs/ file or URL). Default relation: Link. |
|
|
48
|
+
| ## Tags | optional | One line of comma-separated tags. |
|
|
49
|
+
| ## Comments | optional | Comment cards attached here, one line each; the remark lives in the CM file. Default relation: Comment. |
|
|
50
|
+
| ## ⚙ Sub-features | generated | This Feature's capabilities, each with its one-liner. |
|
|
51
|
+
| ## ⚙ Screens | generated | Screens homed here. |
|
|
52
|
+
| ## ⚙ Also uses | generated | Other features' screens this feature's flows pass through. |
|
|
53
|
+
| ## ⚙ User flows | generated | Flows homed here. |
|
|
54
|
+
| ## ⚙ Components | generated | Components homed here. |
|
|
55
|
+
| ## ⚙ Also connects | generated | Other features' flows connected into this feature's flows. |
|
|
56
|
+
| ## ⚙ Decisions | generated | Decisions that affect this card. |
|
|
57
|
+
|
|
58
|
+
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`.
|
|
59
|
+
|
|
60
|
+
**Why.** `## Why` is required here. Its question (purpose): *What problem does this solve, or what goal does it serve?* 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: …]`.
|
|
61
|
+
|
|
62
|
+
## Requirement blocks
|
|
63
|
+
|
|
64
|
+
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: **User story** (any preset is legal anywhere; the default is the one templates and agents use first.)
|
|
65
|
+
|
|
66
|
+
```markdown
|
|
67
|
+
**R1 · User story** As a <role>, I want <goal>, so that <benefit>.
|
|
68
|
+
|
|
69
|
+
**R2 · GWT**
|
|
70
|
+
Given <context>
|
|
71
|
+
When <event>
|
|
72
|
+
Then <observable outcome>
|
|
73
|
+
|
|
74
|
+
**R3 · EARS** [When <trigger>|While <state>|If <condition>|Where <feature>, [then ]]the system shall <response>.
|
|
75
|
+
|
|
76
|
+
**R4 · Checklist**
|
|
77
|
+
- [ ] <verifiable item>
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
**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).
|
|
81
|
+
|
|
82
|
+
## Relations written on this type
|
|
83
|
+
|
|
84
|
+
| Relation | Written in | Targets | Qualifiers | Generated reverse |
|
|
85
|
+
|---|---|---|---|---|
|
|
86
|
+
| Touchpoint | ## Touchpoints (no prefix) | screen, screen-variant, component, component-variant, userflow, flow-step | variant: … | ⚙ Features on screen, component, userflow |
|
|
87
|
+
| Comment | ## Comments (no prefix) | comment | — | ⚙ Attached to on comment |
|
|
88
|
+
| Link | ## Links (no prefix) | URL, or a path to a file in inputs/ | type: Design\|Code\|Doc\|Source\|Analytics\|Other | — |
|
|
89
|
+
| Parent | front matter `parent:` | feature | — | ⚙ Sub-features on feature |
|
|
90
|
+
|
|
91
|
+
## Example
|
|
92
|
+
|
|
93
|
+
```markdown
|
|
94
|
+
---
|
|
95
|
+
standard: IntentFormat/1.2
|
|
96
|
+
type: feature
|
|
97
|
+
id: FT000001
|
|
98
|
+
name: Items
|
|
99
|
+
status: In design
|
|
100
|
+
priority: High
|
|
101
|
+
---
|
|
102
|
+
# Items · #FT000001
|
|
103
|
+
> ⚙ #FT000001V1.0 · V1.0 in-progress
|
|
104
|
+
|
|
105
|
+
## Description
|
|
106
|
+
Members need one dependable place for the things they keep track of.
|
|
107
|
+
|
|
108
|
+
In scope: finding, creating and changing items. Out of scope: sharing items with other people.
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
## Why
|
|
112
|
+
Keeping track of things is the reason the app exists.
|
|
113
|
+
## ⚙ Sub-features
|
|
114
|
+
- [#FT000002 Browse items](ft000002-browse-items.md) — Lets a Member find an item in their list.
|
|
115
|
+
- [#FT000003 Edit an item](ft000003-edit-an-item.md) — Lets a Member create an item or change its details.
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
Sub-feature:
|
|
119
|
+
|
|
120
|
+
```markdown
|
|
121
|
+
---
|
|
122
|
+
standard: IntentFormat/1.2
|
|
123
|
+
type: feature
|
|
124
|
+
id: FT000003
|
|
125
|
+
name: Edit an item
|
|
126
|
+
status: In design
|
|
127
|
+
parent: FT000001
|
|
128
|
+
priority: High
|
|
129
|
+
---
|
|
130
|
+
# Edit an item · #FT000003
|
|
131
|
+
> ⚙ #FT000003V1.0 · V1.0 in-progress
|
|
132
|
+
|
|
133
|
+
## Description
|
|
134
|
+
Lets a Member create an item or change its details.
|
|
135
|
+
|
|
136
|
+
**R1 · User story** As a Member, I want to change an item's details, so that my list stays accurate.
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
## Why
|
|
140
|
+
same as #FT000001
|
|
141
|
+
|
|
142
|
+
## Touchpoints
|
|
143
|
+
- [#CP000002 Text field](../components/cp000002-text-field.md) — name entry
|
|
144
|
+
|
|
145
|
+
## ⚙ Screens
|
|
146
|
+
- [#SC000004 Edit item](../screens/sc000004-edit-item.md)
|
|
147
|
+
|
|
148
|
+
## ⚙ Also uses
|
|
149
|
+
- [#SC000002 Item list](../screens/sc000002-item-list.md) · home: #FT000002
|
|
150
|
+
|
|
151
|
+
## ⚙ User flows
|
|
152
|
+
- [#UF000001 Create an item](../userflows/uf000001-create-an-item.md)
|
|
153
|
+
- [#UF000002 Edit an item](../userflows/uf000002-edit-an-item.md)
|
|
154
|
+
```
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
# ia · IA · folder `ia/`
|
|
2
|
+
|
|
3
|
+
> Generated by `intent-format build-kit` from `schema.json` — do not edit by hand.
|
|
4
|
+
|
|
5
|
+
One IA map: screens arranged in a hierarchy plus lateral edges — pure arrangement.
|
|
6
|
+
|
|
7
|
+
**When to use.** One map per arrangement of the product (per State when States change which screens exist); the root is a real place (Home); shells frame subtrees through · shell: on a node.
|
|
8
|
+
|
|
9
|
+
**Not to confuse with**
|
|
10
|
+
- **screen** — A map holds only references; screen facts live on the screen.
|
|
11
|
+
- **userflow** — A map says where places sit; a flow says how a user moves through them.
|
|
12
|
+
|
|
13
|
+
## Front matter
|
|
14
|
+
|
|
15
|
+
| Key | Required | Values |
|
|
16
|
+
|---|---|---|
|
|
17
|
+
| `standard` | yes | `IntentFormat/1.2` — always the first key |
|
|
18
|
+
| `type` | yes | `ia` |
|
|
19
|
+
| `id` | yes | `IA000000`-style core (IA + 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); omitted = Shared; only when States are declared |
|
|
23
|
+
| `platform` | no | a value of ### Platforms in project.md (or `All`) — Platforms this map applies to; omitted = All. |
|
|
24
|
+
| `default` | no | `true` · `false` — true = the default map of its state; at most one per state. |
|
|
25
|
+
| `origin` | no | `<kb>/<core>` — written by import |
|
|
26
|
+
| `x-*` | no | extension keys; kept untouched, always last |
|
|
27
|
+
|
|
28
|
+
Keys in this order. Unknown = `—` (never quoted); `version`-like values are quoted.
|
|
29
|
+
|
|
30
|
+
## Status
|
|
31
|
+
|
|
32
|
+
`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.
|
|
33
|
+
|
|
34
|
+
## Sections
|
|
35
|
+
|
|
36
|
+
| Section | Kind | Guidance |
|
|
37
|
+
|---|---|---|
|
|
38
|
+
| ## Description | required | What this arrangement covers and why it exists. |
|
|
39
|
+
| ## Why | optional | Optional. Why this arrangement of places? Text (optionally ending [likely] or [assumed]), none[ — note], same as #<id> (another card's why covers it) or —. Absent = nothing to say. |
|
|
40
|
+
| ## Parts | required | Indentation tree of screen references, two spaces per level; then ### Lateral with - Edge: lines. Default relation: Node. |
|
|
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
|
+
| ## ⚙ Decisions | generated | Decisions that affect this card. |
|
|
45
|
+
|
|
46
|
+
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`.
|
|
47
|
+
|
|
48
|
+
**Why.** `## Why` is optional (absent = nothing to say) here. Its question (choice): *Why this arrangement of 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: …]`.
|
|
49
|
+
|
|
50
|
+
## Requirement blocks
|
|
51
|
+
|
|
52
|
+
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.
|
|
53
|
+
|
|
54
|
+
```markdown
|
|
55
|
+
**R1 · User story** As a <role>, I want <goal>, so that <benefit>.
|
|
56
|
+
|
|
57
|
+
**R2 · GWT**
|
|
58
|
+
Given <context>
|
|
59
|
+
When <event>
|
|
60
|
+
Then <observable outcome>
|
|
61
|
+
|
|
62
|
+
**R3 · EARS** [When <trigger>|While <state>|If <condition>|Where <feature>, [then ]]the system shall <response>.
|
|
63
|
+
|
|
64
|
+
**R4 · Checklist**
|
|
65
|
+
- [ ] <verifiable item>
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
**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).
|
|
69
|
+
|
|
70
|
+
## Relations written on this type
|
|
71
|
+
|
|
72
|
+
| Relation | Written in | Targets | Qualifiers | Generated reverse |
|
|
73
|
+
|---|---|---|---|---|
|
|
74
|
+
| Node | ## Parts (no prefix) | screen | variant: … · opens-as: Opens-as · shell: … · group: … | ⚙ On maps on screen |
|
|
75
|
+
| Edge | ## Parts › ### Lateral | screen | label: … | — |
|
|
76
|
+
| Comment | ## Comments (no prefix) | comment | — | ⚙ Attached to on comment |
|
|
77
|
+
| Link | ## Links (no prefix) | URL, or a path to a file in inputs/ | type: Design\|Code\|Doc\|Source\|Analytics\|Other | — |
|
|
78
|
+
| Shell | `· shell:` on Node | shell | — | ⚙ Wraps on shell |
|
|
79
|
+
|
|
80
|
+
## Example
|
|
81
|
+
|
|
82
|
+
```markdown
|
|
83
|
+
---
|
|
84
|
+
standard: IntentFormat/1.2
|
|
85
|
+
type: ia
|
|
86
|
+
id: IA000001
|
|
87
|
+
name: Main map
|
|
88
|
+
status: In design
|
|
89
|
+
default: true
|
|
90
|
+
---
|
|
91
|
+
# Main map · #IA000001
|
|
92
|
+
> ⚙ #IA000001V1.0 · V1.0 in-progress
|
|
93
|
+
|
|
94
|
+
## Description
|
|
95
|
+
How the places of Example app are arranged for every Member.
|
|
96
|
+
|
|
97
|
+
## Parts
|
|
98
|
+
- [#SC000001 Home](../screens/sc000001-home.md)
|
|
99
|
+
- [#SC000002 Item list](../screens/sc000002-item-list.md) · group: Items
|
|
100
|
+
- [#SC000003 Item detail](../screens/sc000003-item-detail.md) · group: Items
|
|
101
|
+
- [#SC000004 Edit item](../screens/sc000004-edit-item.md) · opens-as: Side panel · group: Items
|
|
102
|
+
- [#SC000005 Settings](../screens/sc000005-settings.md)
|
|
103
|
+
|
|
104
|
+
### Lateral
|
|
105
|
+
- Edge: [#SC000005 Settings](../screens/sc000005-settings.md) → [#SC000002 Item list](../screens/sc000002-item-list.md) · label: Back to items
|
|
106
|
+
```
|