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.
- 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 +287 -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 +71 -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,109 @@
|
|
|
1
|
+
# tech · TC · folder `tech/`
|
|
2
|
+
|
|
3
|
+
> Generated by `intent-format build-kit` from `schema.json` — do not edit by hand.
|
|
4
|
+
|
|
5
|
+
A technology the product uses or considers: what it is, why, and the alternatives.
|
|
6
|
+
|
|
7
|
+
**When to use.** Each language, framework, library, platform or external service of the stack. An undecided need is a placeholder in a ## Built with plus an Open decision.
|
|
8
|
+
|
|
9
|
+
**Not to confuse with**
|
|
10
|
+
- **backend** — A node of this product is backend; what it runs on is tech.
|
|
11
|
+
- **component** — An integration component wraps a provider inside the UI; the provider technology is tech.
|
|
12
|
+
|
|
13
|
+
## Front matter
|
|
14
|
+
|
|
15
|
+
| Key | Required | Values |
|
|
16
|
+
|---|---|---|
|
|
17
|
+
| `standard` | yes | `IntentFormat/1.2` — always the first key |
|
|
18
|
+
| `type` | yes | `tech` |
|
|
19
|
+
| `id` | yes | `TC000000`-style core (TC + 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
|
+
| `category` | yes | a value of ### Tech categories in project.md — One Tech category from project.md. |
|
|
24
|
+
| `tech-version` | no | Version in use, always quoted, e.g. "2.1". (always quoted) |
|
|
25
|
+
| `license` | no | License or commercial terms. |
|
|
26
|
+
| `provider` | no | Who provides or maintains it. |
|
|
27
|
+
| `origin` | no | `<kb>/<core>` — written by import |
|
|
28
|
+
| `x-*` | no | extension keys; kept untouched, always last |
|
|
29
|
+
|
|
30
|
+
Keys in this order. Unknown = `—` (never quoted); `version`-like values are quoted.
|
|
31
|
+
|
|
32
|
+
## Status
|
|
33
|
+
|
|
34
|
+
`Candidate` · `Evaluating` · `Adopted` · `Deprecated` · `Rejected` — Adoption lifecycle of a technology. Template: `—`. status: — when there is no evidence for any value. Status only with evidence.
|
|
35
|
+
|
|
36
|
+
## Sections
|
|
37
|
+
|
|
38
|
+
| Section | Kind | Guidance |
|
|
39
|
+
|---|---|---|
|
|
40
|
+
| ## Description | required | What it is and what it is used for here. |
|
|
41
|
+
| ## Why | required | Why this library or service and not another? Text (optionally ending [likely] or [assumed]), none[ — note], same as #<id> (another card's why covers it) or —. |
|
|
42
|
+
| ## Alternatives | required | Other technologies considered: TC references or placeholders; none if none. Default relation: Alternative. |
|
|
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
|
+
| ## ⚙ Used by | generated | Cards built with this technology. |
|
|
47
|
+
| ## ⚙ Decisions | generated | Decisions that affect this card. |
|
|
48
|
+
|
|
49
|
+
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`.
|
|
50
|
+
|
|
51
|
+
**Why.** `## Why` is required here. Its question (choice): *Why this library or service and not 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: …]`.
|
|
52
|
+
|
|
53
|
+
## Requirement blocks
|
|
54
|
+
|
|
55
|
+
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.
|
|
56
|
+
|
|
57
|
+
```markdown
|
|
58
|
+
**R1 · User story** As a <role>, I want <goal>, so that <benefit>.
|
|
59
|
+
|
|
60
|
+
**R2 · GWT**
|
|
61
|
+
Given <context>
|
|
62
|
+
When <event>
|
|
63
|
+
Then <observable outcome>
|
|
64
|
+
|
|
65
|
+
**R3 · EARS** [When <trigger>|While <state>|If <condition>|Where <feature>, [then ]]the system shall <response>.
|
|
66
|
+
|
|
67
|
+
**R4 · Checklist**
|
|
68
|
+
- [ ] <verifiable item>
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
**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).
|
|
72
|
+
|
|
73
|
+
## Relations written on this type
|
|
74
|
+
|
|
75
|
+
| Relation | Written in | Targets | Qualifiers | Generated reverse |
|
|
76
|
+
|---|---|---|---|---|
|
|
77
|
+
| Alternative | ## Alternatives (no prefix) | tech | — | — |
|
|
78
|
+
| Comment | ## Comments (no prefix) | comment | — | ⚙ Attached to on comment |
|
|
79
|
+
| Link | ## Links (no prefix) | URL, or a path to a file in inputs/ | type: Design\|Code\|Doc\|Source\|Analytics\|Other | — |
|
|
80
|
+
|
|
81
|
+
## Example
|
|
82
|
+
|
|
83
|
+
```markdown
|
|
84
|
+
---
|
|
85
|
+
standard: IntentFormat/1.2
|
|
86
|
+
type: tech
|
|
87
|
+
id: TC000002
|
|
88
|
+
name: Relational database
|
|
89
|
+
status: Adopted
|
|
90
|
+
category: Data & storage
|
|
91
|
+
tech-version: "16"
|
|
92
|
+
license: Open source
|
|
93
|
+
---
|
|
94
|
+
# Relational database · #TC000002
|
|
95
|
+
> ⚙ #TC000002V1.0 · V1.0 in-progress
|
|
96
|
+
|
|
97
|
+
## Description
|
|
98
|
+
Keeps items and settings in tables with transactions.
|
|
99
|
+
|
|
100
|
+
## Why
|
|
101
|
+
Items have a fixed shape and need safe concurrent updates.
|
|
102
|
+
|
|
103
|
+
## Alternatives
|
|
104
|
+
- [~ Document database]
|
|
105
|
+
|
|
106
|
+
## ⚙ Used by
|
|
107
|
+
- [#PR000001 Example app](../project.md)
|
|
108
|
+
- [#BN000002 Main database](../backend/bn000002-main-database.md)
|
|
109
|
+
```
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
# userflow · UF · folder `userflows/`
|
|
2
|
+
|
|
3
|
+
> Generated by `intent-format build-kit` from `schema.json` — do not edit by hand.
|
|
4
|
+
|
|
5
|
+
A journey in one file: typed steps, an ordered step list per variant, and fork wiring.
|
|
6
|
+
|
|
7
|
+
**When to use.** One flow per main use case or recurring journey; reuse journeys as subflows (⧉ step or attached Connected flow) instead of copying steps.
|
|
8
|
+
|
|
9
|
+
**Not to confuse with**
|
|
10
|
+
- **feature** — A Sub-feature is a capability; the flows homed in it say how the user moves.
|
|
11
|
+
- **edge-case** — A named exceptional situation with agreed handling is an edge case whose Where points at the step.
|
|
12
|
+
- **rule** — Policy behind a fork branch is cited with · rule: #RL…, never paraphrased.
|
|
13
|
+
|
|
14
|
+
**Altitude.** How the user moves — not what each place is (screens) or the policy behind a fork (rules).
|
|
15
|
+
|
|
16
|
+
## Front matter
|
|
17
|
+
|
|
18
|
+
| Key | Required | Values |
|
|
19
|
+
|---|---|---|
|
|
20
|
+
| `standard` | yes | `IntentFormat/1.2` — always the first key |
|
|
21
|
+
| `type` | yes | `userflow` |
|
|
22
|
+
| `id` | yes | `UF000000`-style core (UF + 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); 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
|
+
| `platform` | no | a value of ### Platforms in project.md (or `All`) — Platforms this flow runs on; omitted = all. Its steps are framed per platform. |
|
|
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 | The journey's intent, for whom, and its success criteria. |
|
|
43
|
+
| ## Why | required | Why does this journey exist — what does the user have at the end of it? Text (optionally ending [likely] or [assumed]), none[ — note], same as #<id> (another card's why covers it) or —. |
|
|
44
|
+
| ## Rules | optional | Rules that govern this card, one line each; never restate the rule text. Default relation: Applies rule. |
|
|
45
|
+
| ## Step list | required | Default step list: 1. [#FS… <name>](#fs…); then optional flow variants as ### <Name> with their own lists. Default relation: Step (ordered 1. 2. …). |
|
|
46
|
+
| ## Steps | required | One ### <glyph> <Name> · #FS… per step; the glyph is the step type. |
|
|
47
|
+
| ## Connected flows | optional | Side journeys attached to the whole flow rather than to one step. Default relation: Connected flow. |
|
|
48
|
+
| ## Links | optional | External links: - [title](url) · type: Design\|Code\|Doc\|Source\|Analytics\|Other. Source = evidence (inputs/ file or URL). Default relation: Link. |
|
|
49
|
+
| ## Tags | optional | One line of comma-separated tags. |
|
|
50
|
+
| ## Comments | optional | Comment cards attached here, one line each; the remark lives in the CM file. Default relation: Comment. |
|
|
51
|
+
| ## ⚙ Entered from | generated | Flows that run or hand off to this flow. |
|
|
52
|
+
| ## ⚙ Features | generated | Features that name this card as an explicit touchpoint. |
|
|
53
|
+
| ## ⚙ Edge cases | generated | Edge cases that can happen here. |
|
|
54
|
+
| ## ⚙ Decisions | generated | Decisions that affect this card. |
|
|
55
|
+
| ## ⚙ Shown in | generated | Stepper shells that show this flow. |
|
|
56
|
+
|
|
57
|
+
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`.
|
|
58
|
+
|
|
59
|
+
**Why.** `## Why` is required here. Its question (purpose): *Why does this journey exist — what does the user have at the end of 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: …]`.
|
|
60
|
+
|
|
61
|
+
## Requirement blocks
|
|
62
|
+
|
|
63
|
+
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.)
|
|
64
|
+
|
|
65
|
+
```markdown
|
|
66
|
+
**R1 · User story** As a <role>, I want <goal>, so that <benefit>.
|
|
67
|
+
|
|
68
|
+
**R2 · GWT**
|
|
69
|
+
Given <context>
|
|
70
|
+
When <event>
|
|
71
|
+
Then <observable outcome>
|
|
72
|
+
|
|
73
|
+
**R3 · EARS** [When <trigger>|While <state>|If <condition>|Where <feature>, [then ]]the system shall <response>.
|
|
74
|
+
|
|
75
|
+
**R4 · Checklist**
|
|
76
|
+
- [ ] <verifiable item>
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
**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).
|
|
80
|
+
|
|
81
|
+
## Relations written on this type
|
|
82
|
+
|
|
83
|
+
| Relation | Written in | Targets | Qualifiers | Generated reverse |
|
|
84
|
+
|---|---|---|---|---|
|
|
85
|
+
| Step | ## Step list (no prefix); ## Step list › ### flow variant (no prefix) | flow-step | — | — |
|
|
86
|
+
| Branch | ### step (#FS) Fork | flow-step | primary · rule: … | — |
|
|
87
|
+
| Screen | ### step (#FS) Start/Action/Fork/Finish | screen | variant: … · opens-as: Opens-as · shell: … | ⚙ In user flows on screen |
|
|
88
|
+
| Component | ### step (#FS) Start/Action/Fork/Finish | component | variant: … | ⚙ In user flows on component |
|
|
89
|
+
| API | ### step (#FS) Fork/System action | api | — | ⚙ Called from on api |
|
|
90
|
+
| Backend | ### step (#FS) Fork/System action | backend | — | ⚙ In user flows on backend |
|
|
91
|
+
| Connected flow | ### step (#FS); ## Connected flows (no prefix) | userflow | variant: … | ⚙ Entered from on userflow |
|
|
92
|
+
| Hand-off | ### step (#FS) Finish | userflow | variant: … | ⚙ Entered from on userflow |
|
|
93
|
+
| Entry | ### step (#FS) Start | text | — | — |
|
|
94
|
+
| Outcome | ### step (#FS) Finish | text | — | — |
|
|
95
|
+
| Applies rule | ## Rules (no prefix); ### step (#FS) | rule | — | ⚙ Applied in on rule |
|
|
96
|
+
| Uses API | ### step (#FS) | api | — | ⚙ Called from on api |
|
|
97
|
+
| Comment | ## Comments (no prefix); ### step (#FS) | comment | — | ⚙ Attached to on comment |
|
|
98
|
+
| Link | ## Links (no prefix); ### step (#FS) | URL, or a path to a file in inputs/ | type: Design\|Code\|Doc\|Source\|Analytics\|Other | — |
|
|
99
|
+
| Home | front matter `feature:` | feature | — | ⚙ Screens, ⚙ User flows, ⚙ Components on feature |
|
|
100
|
+
| Shell | `· shell:` on Screen | shell | — | ⚙ Wraps on shell |
|
|
101
|
+
|
|
102
|
+
## Sub-document: flow-step
|
|
103
|
+
|
|
104
|
+
Heading `### <glyph> <Name> · #FS<6 digits>` in ## Steps; anchor `<a id="fs000001"></a>` on the next line.
|
|
105
|
+
|
|
106
|
+
| Glyph | Step | Lines | Rule |
|
|
107
|
+
|---|---|---|---|
|
|
108
|
+
| ○ | Start | Entry 1 · Screen 0..1 · Component 0.. | First line of every step list; exactly one per list. |
|
|
109
|
+
| □ | Action | Screen 1 · Component 0.. | The default user step; names exactly one screen (any reference strength). |
|
|
110
|
+
| ◇ | Fork | Branch 2.. · Screen 0..1 · API 0..1 · Backend 0..1 · Component 0.. | A decision: the step name is the question; one Branch line per outcome, exactly one · primary. |
|
|
111
|
+
| ◎ | Finish | Outcome 1 · Hand-off 0..1 · Screen 0..1 · Component 0.. | An ending, successful or not; a Hand-off continues the journey in another flow. |
|
|
112
|
+
| ⧉ | Connected flow | Connected flow 1 | Runs another flow in sequence (a subflow) and continues. |
|
|
113
|
+
| ⚡ | System action | API 0.. · Backend 0.. | A product-side step; names the API call or backend node that performs it, never a screen. |
|
|
114
|
+
Every step may also carry: Applies rule · Uses API · Connected flow · Comment · Link (except where the step's own line replaces it).
|
|
115
|
+
- Steps never store their position: order lives only in step lists, fork wiring only in Branch lines.
|
|
116
|
+
- A step may appear in several step lists; it is written once.
|
|
117
|
+
- Steps have no variants, state or status of their own.
|
|
118
|
+
|
|
119
|
+
## Sub-document: flow-variant
|
|
120
|
+
|
|
121
|
+
Heading `### <Name> (no glyph, no core)` in ## Step list.
|
|
122
|
+
Optional passport line: `platform:` · `flag:` (in this order).
|
|
123
|
+
Its own full ordered step list (Step lines), drawing on the flow's steps.
|
|
124
|
+
- The list under ## Step list itself is the default; variants are alternatives with unique names.
|
|
125
|
+
- Every step list (default and variants) starts with the one ○ Start step and SHOULD end on a ◎ Finish or ◇ Fork.
|
|
126
|
+
- A list longer than 15 steps SHOULD be split into subflows (⧉ step or attached Connected flow).
|
|
127
|
+
|
|
128
|
+
## Example
|
|
129
|
+
|
|
130
|
+
```markdown
|
|
131
|
+
---
|
|
132
|
+
standard: IntentFormat/1.2
|
|
133
|
+
type: userflow
|
|
134
|
+
id: UF000001
|
|
135
|
+
name: Create an item
|
|
136
|
+
status: In design
|
|
137
|
+
feature: FT000003
|
|
138
|
+
---
|
|
139
|
+
# Create an item · #UF000001
|
|
140
|
+
> ⚙ #UF000001V1.0 · V1.0 in-progress
|
|
141
|
+
|
|
142
|
+
## Description
|
|
143
|
+
A Member adds a new item from the Item list and returns to the list with the item saved.
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
## Why
|
|
147
|
+
The main use case of Items: without it nothing gets into the list.
|
|
148
|
+
## Step list
|
|
149
|
+
1. [#FS000001 Start from the list](#fs000001)
|
|
150
|
+
2. [#FS000002 Enter item details](#fs000002)
|
|
151
|
+
3. [#FS000003 Name valid?](#fs000003)
|
|
152
|
+
4. [#FS000004 Save the item](#fs000004)
|
|
153
|
+
5. [#FS000005 Item created](#fs000005)
|
|
154
|
+
|
|
155
|
+
### Quick add
|
|
156
|
+
platform: Mobile
|
|
157
|
+
|
|
158
|
+
1. [#FS000001 Start from the list](#fs000001)
|
|
159
|
+
2. [#FS000002 Enter item details](#fs000002)
|
|
160
|
+
3. [#FS000004 Save the item](#fs000004)
|
|
161
|
+
4. [#FS000005 Item created](#fs000005)
|
|
162
|
+
|
|
163
|
+
## Steps
|
|
164
|
+
### ○ Start from the list · #FS000001
|
|
165
|
+
<a id="fs000001"></a>
|
|
166
|
+
|
|
167
|
+
- Entry: the Member taps Create on the Item list.
|
|
168
|
+
- Screen: [#SC000002 Item list](../screens/sc000002-item-list.md)
|
|
169
|
+
|
|
170
|
+
### □ Enter item details · #FS000002
|
|
171
|
+
<a id="fs000002"></a>
|
|
172
|
+
|
|
173
|
+
- Screen: [#SC000004 Edit item](../screens/sc000004-edit-item.md)
|
|
174
|
+
- Component: [#CP000002 Text field](../components/cp000002-text-field.md)
|
|
175
|
+
|
|
176
|
+
The Member types a name and optional notes.
|
|
177
|
+
|
|
178
|
+
### ◇ Name valid? · #FS000003
|
|
179
|
+
<a id="fs000003"></a>
|
|
180
|
+
|
|
181
|
+
- Branch: Yes → [#FS000004 Save the item](#fs000004) · primary
|
|
182
|
+
- Branch: No → [#FS000002 Enter item details](#fs000002) · rule: #RL000001
|
|
183
|
+
|
|
184
|
+
### ⚡ Save the item · #FS000004
|
|
185
|
+
<a id="fs000004"></a>
|
|
186
|
+
|
|
187
|
+
- API: [#AP000002 Save item](../apis/ap000002-save-item.md)
|
|
188
|
+
|
|
189
|
+
### ◎ Item created · #FS000005
|
|
190
|
+
<a id="fs000005"></a>
|
|
191
|
+
|
|
192
|
+
- Outcome: the new item is saved and shown on the Item list.
|
|
193
|
+
- Screen: [#SC000002 Item list](../screens/sc000002-item-list.md)
|
|
194
|
+
|
|
195
|
+
## ⚙ Edge cases
|
|
196
|
+
- [#EC000001 Save fails](../edge-cases/ec000001-save-fails.md) · at: #FS000004 · severity: Medium
|
|
197
|
+
```
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: kb-cold-start
|
|
3
|
+
description: Bootstrap an Intent Format knowledge base for a software project from raw inputs (description, prototypes, docs, repo). Use when a project is added for the first time, or when a large batch of new material arrives (e.g. the next version's designs). Produces a reviewed proposal first, then the KB and a short report.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# KB cold start
|
|
7
|
+
|
|
8
|
+
Turn raw project material into a valid Intent Format KB with as few guesses as possible.
|
|
9
|
+
Load the router skill first (`../intent-format/SKILL.md`). Do **not** read the full spec.
|
|
10
|
+
|
|
11
|
+
**Steer with `intent-format next <root>`.** Run it first, and again after every step. It reads only the
|
|
12
|
+
project folder and prints where the cold start stands, the one thing to do, what to read for
|
|
13
|
+
it, and when it is done. You never need to remember the phase — so a folder handed over half
|
|
14
|
+
built, or a new chat, picks up exactly where the last one stopped. Read only what it names.
|
|
15
|
+
|
|
16
|
+
## The owner sees four steps
|
|
17
|
+
|
|
18
|
+
1. **Kickoff questions.** The owner answers `kickoff-questionnaire.md` → `inputs/kickoff-answers.md`.
|
|
19
|
+
2. **Drop inputs.** Files go into `<project-root>/inputs/`; URLs into `inputs/links.md`.
|
|
20
|
+
3. **Review the proposal.** You write `<project-root>/proposal/`; the owner answers in `proposal/review.md`.
|
|
21
|
+
4. **Get the KB + report.** You build the KB and write `<project-root>/report.md`.
|
|
22
|
+
|
|
23
|
+
Everything else (scaffold, fill, regenerate, check) is your job, not the owner's.
|
|
24
|
+
|
|
25
|
+
## Procedure
|
|
26
|
+
|
|
27
|
+
**Phase 0 — Set up.** `intent-format init <root> --name "<Product>"` — the root may already hold
|
|
28
|
+
`inputs/`; nothing there is overwritten. It also writes `AGENTS.md` and `CLAUDE.md`, so the
|
|
29
|
+
next agent opening the folder is told to run `intent-format next`. The lifecycle starts as
|
|
30
|
+
`in-progress`; once kickoff question 7 is answered, set it in `V1.0/intent-format.md` (`planned`,
|
|
31
|
+
`in-progress` or `released`) — a plain edit, no decision card needed.
|
|
32
|
+
|
|
33
|
+
**Phase 1 — Kickoff.** If `inputs/kickoff-answers.md` is missing, hand the owner
|
|
34
|
+
`kickoff-questionnaire.md` and stop — unless you run unattended.
|
|
35
|
+
|
|
36
|
+
> **Unattended mode** (no owner available) is written down, never assumed: the kickoff answers
|
|
37
|
+
> file starts with `Mode: unattended`, and in Phase 3 you write `proposal/review.md` with the
|
|
38
|
+
> line `Unattended — recommendations applied.` Every kickoff question counts as unanswered.
|
|
39
|
+
> Apply your own recommendations; each becomes a decision card with `status: Proposed` (the
|
|
40
|
+
> owner confirms it later). Unanswered questions that block cards become `Open` decision cards
|
|
41
|
+
> — one card per topic, not per question.
|
|
42
|
+
|
|
43
|
+
**Phase 2 — Scan inputs.** List `inputs/`. Read every file. Extract candidates with
|
|
44
|
+
evidence (file + quote or locator):
|
|
45
|
+
- prototypes / screenshots → screens (titles, headings), navigation, panels, modals, components (repeated UI parts), flows (click paths);
|
|
46
|
+
- code → routes (screens), component folders (components), API clients/endpoints (APIs), package manifests (tech);
|
|
47
|
+
- docs / description → product summary, roles, states, rules ("must / never / always"), constraints, tech, open questions.
|
|
48
|
+
|
|
49
|
+
Inputs may show **sample or demo content inside the product's own UI** (example data, a demo
|
|
50
|
+
project). Document the product, not its sample content.
|
|
51
|
+
|
|
52
|
+
**Phase 3 — Proposal (no cards yet).** Read `types/_overview.md`, then write, using `templates.md`:
|
|
53
|
+
- `proposal/inventory.md` — every card you intend to create: type · name · parent/home · evidence · confidence.
|
|
54
|
+
- `proposal/frames.md` — the shells and their navigation, in display order: what is always there, per platform and state, and where each entry sits. The owner reviews navigation here, before any card exists.
|
|
55
|
+
- `proposal/decisions.md` — every judgment call and every conflict between inputs, with options and your recommendation.
|
|
56
|
+
- `proposal/questions.md` — only questions the inputs and kickoff answers don't settle.
|
|
57
|
+
Stop for the owner's `proposal/review.md` (unattended: apply your recommendations and continue).
|
|
58
|
+
|
|
59
|
+
**Phase 4 — Scaffold with the tool.** `intent-format init` (if no KB exists), then
|
|
60
|
+
`intent-format scaffold <root> --inventory proposal/inventory.md`. It creates every approved card in the
|
|
61
|
+
right order (features first, so homes resolve), and writes each core back into the inventory.
|
|
62
|
+
Never mint an ID by hand; use `intent-format mint` for flow steps and variants.
|
|
63
|
+
|
|
64
|
+
**Phase 5 — Fill per type**, in the order `intent-format next` gives: project, roles, features, **shells
|
|
65
|
+
and maps before screens**, then components, flows and the rest. For each type, read only its type
|
|
66
|
+
sheet, then fill the cards. Before each screen, run `intent-format frame <root> <screen>`: write the
|
|
67
|
+
place's content, outcome and primary action by name — the frame it prints owns navigation,
|
|
68
|
+
back, close and Continue.
|
|
69
|
+
- facts come from evidence or owner answers — nothing else;
|
|
70
|
+
- every card gets its `## Why` (required on project, roles, features, rules, decisions, flows, shells, tech): the reason from the inputs or the owner; the type sheet says which question it answers (a feature: what problem; a screen: why a screen of its own; a rule: what goes wrong without it); `none — <note>` when there is nothing to add; `same as #<id>` when another card's why covers it; `—` only when nobody has asked yet. A question for the owner about one sentence goes into that sentence as `[ask: …]`. End a why you derived rather than read with `[likely]`, a guess with `[assumed]` — the inventory's Confidence column tells you which;
|
|
71
|
+
- unknown → `—`; known to be empty → `none`; a list you know is incomplete → end it with `—`; referenced but not (yet) a card → `[~ Name]`;
|
|
72
|
+
- every row of `decisions.md` becomes a decision card: `Decided` (with the owner's choice and why) when the review settled it, otherwise `Open` (unattended: `Proposed`). `## Affects` points at the cards concerned;
|
|
73
|
+
- cite evidence in `## Links` as `- [<file or page>](<path or URL>) · type: Source` — a file path must be inside `inputs/`; move the file there first if it is not.
|
|
74
|
+
|
|
75
|
+
**Phase 6 — Regenerate and check.** `intent-format regen <root>`, then `intent-format check <root>`. Fix every
|
|
76
|
+
error and warning. Info items are optional. `intent-format open <root>` then lists what is still unknown or
|
|
77
|
+
guessed — the questions for the report.
|
|
78
|
+
|
|
79
|
+
**Phase 7 — Report.** Write `<project-root>/report.md` (template in `templates.md`): what was
|
|
80
|
+
created, health numbers, open decisions, questions for the owner, assumptions made. If your
|
|
81
|
+
environment refuses to create the file, put the report in your final reply instead.
|
|
82
|
+
|
|
83
|
+
## Evidence rules
|
|
84
|
+
|
|
85
|
+
- Status only with evidence: a design or prototype exists → `In design`; code exists → `In build`; shipped → `Live`; otherwise `—`.
|
|
86
|
+
- Create what the inputs show or name, and the flows and features that follow from the stated use cases. Anything else you derive is `low` confidence and also goes into `decisions.md`.
|
|
87
|
+
- One input statement → one place in the KB. Don't restate it in several cards; link instead.
|
|
88
|
+
- If two inputs disagree, don't pick silently: it's a row in `decisions.md`.
|
|
89
|
+
|
|
90
|
+
## Modelling guide (the calls two agents most often make differently)
|
|
91
|
+
|
|
92
|
+
- **Screen vs component.** A place the user navigates to or opens (page, modal, panel with its own content) → screen, with `opens-as`. A part placed inside places → component.
|
|
93
|
+
- **Persistent UI and navigation** (top bar, tabs, footer, side panel, a modal's close, a checkout's progress) → **shells**, never screens and not parts of screens. Read **How to model** in `../intent-format/types/shell.md` — it is the one place this is explained. In short: screens are content, shells are context; a new shell for another job or another navigation model, a variant for a part or two (variants stack); one ordered navigation list per shell with `· in:` / `· state:` / `· platform:`. The root of a map is a real place (Home), never a shell.
|
|
94
|
+
- **App-wide mode** (read-only mode, presentation mode) → a State if it changes which screens exist; otherwise a screen.
|
|
95
|
+
- **User types are role cards** (`roles/`), one per kind of user (kickoff K2), with `state:` (the States they can be in) and `platform:` (what they use). Stories name them by exact card name ("As a Member, …"); never restate the stories on the role — `⚙ Stories` lists them. States only if the product shows different screens per mode (usually sign-in); a role whose screens differ gets its own State. A single-user tool without sign-in has one role and no states.
|
|
96
|
+
- **Features have two levels.** Top-level **Features** are product domains (from kickoff K6 or grouped from the use cases); **Sub-features** are capabilities named by outcome ("Rearrange the sitemap"), not by view ("IA view"), with `parent:` = their Feature. Don't invent more than the inputs support.
|
|
97
|
+
- **Home feature.** Give each screen, flow and (where obvious) component one home via `feature:` (the inventory's parent/home column). Cross-feature use is computed, never written twice.
|
|
98
|
+
- **Altitude.** Feature: why + scope · Sub-feature: what capability, for whom · flow: how the user moves · screen: what the place is for · rule: the exact policy. Numbers and limits belong in rules, not in feature descriptions.
|
|
99
|
+
- **Flows**: one per main use case that the inputs describe as a path. Keep ≤ 15 steps; reuse via subflows (⧉ Connected flow steps). A use case without a known path → a placeholder or an Open decision, not an invented flow.
|
|
100
|
+
- **Rules** = explicit policy statements ("must", "never", "always"). Keep in mind that apply to the whole product go to the project card's `## Keep in mind`.
|
|
101
|
+
- **Tech** from stack statements or manifests. Undecided → a placeholder in `## Built with` plus a decision card.
|
|
102
|
+
- **Version.** First KB = `V1.0` unless the owner says otherwise; lifecycle from kickoff question 7, edited in `V1.0/intent-format.md` once answered (init runs before the kickoff).
|
|
103
|
+
|
|
104
|
+
## Picking up, parallel work, later batches
|
|
105
|
+
|
|
106
|
+
- **Picking up a folder** (new chat, another agent, another person): run `intent-format next <root>`. It
|
|
107
|
+
needs nothing but the folder. Read `proposal/decisions.md` and `report.md` if they exist —
|
|
108
|
+
they hold the judgment calls made so far; don't re-decide them.
|
|
109
|
+
- **Several projects at once:** each project is its own root; the standard folder is shared
|
|
110
|
+
and read-only. Nothing about a project is stored outside its root.
|
|
111
|
+
- **Several agents on one project:** split by type or by feature, never by card halves.
|
|
112
|
+
Writing commands (`new`, `mint`, `scaffold`, `regen`) take a lock (`.intent-format.lock`) and wait for
|
|
113
|
+
each other, so cores never collide. Hand-edits to the same card still collide — give each
|
|
114
|
+
agent its own cards. Run `intent-format check` once at the end.
|
|
115
|
+
- **A later batch** (the next version's designs): `intent-format branch <root> V1.0 V1.1`, rename
|
|
116
|
+
`proposal/` to `proposal-V1.0/` and `report.md` to `report-V1.0.md`, then `intent-format next --ws V1.1`
|
|
117
|
+
starts again at the proposal.
|
|
118
|
+
|
|
119
|
+
## Done when
|
|
120
|
+
|
|
121
|
+
- `intent-format check` shows 0 errors and 0 warnings;
|
|
122
|
+
- every inventory row has a core or a recorded reason;
|
|
123
|
+
- every decision and open question is a decision card;
|
|
124
|
+
- the report exists (file or final reply).
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Kickoff questionnaire
|
|
2
|
+
|
|
3
|
+
> About 10 minutes. Answer in `inputs/kickoff-answers.md`, keeping the question numbers.
|
|
4
|
+
> "Unknown" is a fine answer — it becomes an open question in the KB instead of a guess.
|
|
5
|
+
|
|
6
|
+
## A. The product
|
|
7
|
+
|
|
8
|
+
1. **What is it, in two or three sentences?** Who is it for, and what problem does it solve?
|
|
9
|
+
2. **User types (roles).** Who uses it? One line per type of user — each becomes a role card. Include people of neighbouring systems the product must know about (back office), and say which platforms each uses if you know.
|
|
10
|
+
| Role | Description |
|
|
11
|
+
|---|---|
|
|
12
|
+
| e.g. Visitor | not signed in, browses |
|
|
13
|
+
| e.g. Member | signed in, creates items |
|
|
14
|
+
3. **States.** Does the product show a different set of screens depending on a mode — typically signed in vs not, or by plan? List the states and which roles see them, or write "no states".
|
|
15
|
+
4. **Platforms.** Desktop web, mobile web, native app, desktop app, CLI? Which of them get a different way of moving around (a top bar on desktop, a tab bar in the app)?
|
|
16
|
+
|
|
17
|
+
## B. User stories and features
|
|
18
|
+
|
|
19
|
+
5. **User stories (5–10)** as user stories, most important first:
|
|
20
|
+
`As a <role>, I want <goal> so that <benefit>.`
|
|
21
|
+
User stories only — not a backlog.
|
|
22
|
+
6. **Main features.** The top-level groups of the product (e.g. *Items*, *Account*, *Settings*), each with the capabilities it contains if you know them. Optional — the AI can propose them from the use cases.
|
|
23
|
+
|
|
24
|
+
## C. What exists
|
|
25
|
+
|
|
26
|
+
7. **Which version should the KB describe?** Is it released, being built, or planned?
|
|
27
|
+
8. **Sources.** What can you drop into `inputs/` (descriptions, designs, prototypes, screenshots, docs, API specs, exports)? Repo and design links go into `inputs/links.md`. If you know which design shows which screen, say so.
|
|
28
|
+
9. **Component list.** Is there a design system or component library? Where?
|
|
29
|
+
|
|
30
|
+
## D. Structure
|
|
31
|
+
|
|
32
|
+
10. **Navigation, per platform.** Where do users land first? What is always on screen to move around (top bar, tabs, sidebar, burger menu, footer), and which destinations does it list, in order? What changes once signed in (account menu, other tabs)?
|
|
33
|
+
11. **Frames.** Is anything visible on every screen besides navigation (consent banner, chat panel, toasts)? Which areas have their own back, breadcrumbs or section tabs (account, settings)? Which tasks hide the usual navigation (checkout, a wizard, an editor)? What opens over the page — modals, bottom sheets, side panels — and on which platform?
|
|
34
|
+
12. **External services and data.** Which outside services does it use? Who calls them (browser or server)? Where is data stored?
|
|
35
|
+
13. **Changes and history.** Can users undo changes? Is there versioning, history or snapshots?
|
|
36
|
+
|
|
37
|
+
## E. Direction
|
|
38
|
+
|
|
39
|
+
14. **Priorities.** What matters most in the next release? What is explicitly out of scope?
|
|
40
|
+
15. **Keep in mind.** Performance, offline use, privacy, security, accessibility, languages — anything that limits design or technology.
|
|
41
|
+
16. **Tech stack.** What is decided, and what is still open? Starter categories: Languages & runtimes · Frontend · Backend · Data & storage · Infrastructure & hosting · Integrations & third-party services · AI · Auth & security · Observability · Build, test & delivery · App wrappers (native, desktop).
|
|
42
|
+
17. **Open questions you already know about.**
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# Cold-start templates
|
|
2
|
+
|
|
3
|
+
Copy each block into its own file. Keep the column order.
|
|
4
|
+
|
|
5
|
+
## proposal/inventory.md
|
|
6
|
+
|
|
7
|
+
```markdown
|
|
8
|
+
# Inventory — <project name>
|
|
9
|
+
|
|
10
|
+
Every card the KB will get. Evidence = input file + quote or locator, or a kickoff answer number (K5).
|
|
11
|
+
|
|
12
|
+
| # | Type | Name | Parent / home | Evidence | Confidence | Notes | Core |
|
|
13
|
+
|---|---|---|---|---|---|---|---|
|
|
14
|
+
| 1 | role | Member | | K2 "Member — keeps a list" | high | Signed in · Web, Mobile | |
|
|
15
|
+
| 1 | feature | Items | | K6 "Items" | high | top-level Feature | |
|
|
16
|
+
| 2 | feature | Browse items | Items | K5 user story 1 | high | Sub-feature | |
|
|
17
|
+
| 3 | screen | Item list | Browse items | inputs/proto-02.html — `<h1>Items</h1>` | high | landing page after sign-in | |
|
|
18
|
+
| 4 | component | Item row | Browse items | inputs/proto-02.html — repeated `.row` | medium | | |
|
|
19
|
+
| 5 | tech | UI framework | | K16 "decided: <name>" | high | | |
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Parent / home: a Sub-feature's parent Feature, or the home feature of a screen, flow or component (names from this table). Leave Core empty — `intent-format scaffold` fills it. One table, or one per section (roles, features, rules …) with the same columns: `scaffold` reads every table that has Type, Name and Core.
|
|
23
|
+
|
|
24
|
+
Confidence: **high** = stated or shown directly · **medium** = strongly implied · **low** = inferred; must also appear in decisions.md.
|
|
25
|
+
|
|
26
|
+
Shells are inventory rows too (`shell`, home column empty). Their frame and navigation go in frames.md.
|
|
27
|
+
|
|
28
|
+
## proposal/frames.md
|
|
29
|
+
|
|
30
|
+
Navigation is the part owners care most about and agents guess most: write it down for review
|
|
31
|
+
before any card exists. One block per shell; the navigation list is in display order.
|
|
32
|
+
|
|
33
|
+
```markdown
|
|
34
|
+
# Frames and navigation — <project name>
|
|
35
|
+
|
|
36
|
+
| Shell | Kind | For (platform · state) | Parts (top to bottom) | Variants (what each adds) |
|
|
37
|
+
|---|---|---|---|---|
|
|
38
|
+
| Web shell | app | Desktop web, Mobile web | Consent banner · Header · Footer · Toast | Mobile web: Burger, Navigation drawer · Signed in: Account menu · Level 2+: Back |
|
|
39
|
+
| App shell | app | App | Tab bar · Toast | Signed in: — |
|
|
40
|
+
| Checkout | stepper | — (flow: Checkout) | Progress · Back · Exit | — |
|
|
41
|
+
| Modal | overlay | opens-as: Modal | Title · Close · Confirm/Cancel | — |
|
|
42
|
+
|
|
43
|
+
### Web shell — navigation
|
|
44
|
+
1. Home · tab · in Header
|
|
45
|
+
2. Shop · tab · in Header, Navigation drawer
|
|
46
|
+
3. Sign in · in Header · Guest only
|
|
47
|
+
4. My account · menu · in Account menu · Signed in only
|
|
48
|
+
5. Contact · in Footer
|
|
49
|
+
|
|
50
|
+
### Bound once
|
|
51
|
+
- My account area (map node) → Account section shell
|
|
52
|
+
- Checkout flow steps → Checkout
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
A new shell when the frame does another job or follows another navigation model (a desktop
|
|
56
|
+
header vs a native tab bar, or different rules for the places inside); a variant when the same
|
|
57
|
+
frame adds or swaps a part or two. Variants stack, so never list a combination.
|
|
58
|
+
|
|
59
|
+
## proposal/decisions.md
|
|
60
|
+
|
|
61
|
+
```markdown
|
|
62
|
+
# Decisions to confirm — <project name>
|
|
63
|
+
|
|
64
|
+
| # | Question | Options | Recommendation | Why |
|
|
65
|
+
|---|---|---|---|---|
|
|
66
|
+
| D1 | Is the side panel a screen or a part of the frame? | a) screen b) a part of the app shell | b | it appears on every view |
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## proposal/questions.md
|
|
70
|
+
|
|
71
|
+
```markdown
|
|
72
|
+
# Questions for the owner — <project name>
|
|
73
|
+
|
|
74
|
+
Only what inputs and kickoff answers don't settle. Most important first.
|
|
75
|
+
|
|
76
|
+
| # | Question | Why it matters | Affects |
|
|
77
|
+
|---|---|---|---|
|
|
78
|
+
| Q1 | Do snapshots use version control under the hood? | decides the history model | Snapshots feature, backend |
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## proposal/review.md (written by the owner)
|
|
82
|
+
|
|
83
|
+
```markdown
|
|
84
|
+
# Review
|
|
85
|
+
|
|
86
|
+
- Inventory: approved / approved with changes: <row #: change>
|
|
87
|
+
- Frames: approved / changes: <shell: change>
|
|
88
|
+
- Decisions: D1 = b · D2 = a · …
|
|
89
|
+
- Answers: Q1 = … · Q2 = unknown · …
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Unattended (no owner): the agent writes `Unattended — recommendations applied.` as the only
|
|
93
|
+
line, so the next agent knows the review was not skipped by accident.
|
|
94
|
+
|
|
95
|
+
## report.md
|
|
96
|
+
|
|
97
|
+
```markdown
|
|
98
|
+
# Cold-start report — <project name>
|
|
99
|
+
|
|
100
|
+
- **KB:** <path> · version V1.0 (<lifecycle>)
|
|
101
|
+
- **Created:** <n> cards — screens <n>, components <n>, flows <n>, … · sub-documents <n>
|
|
102
|
+
- **Check:** errors 0 · warnings 0 · info <n>
|
|
103
|
+
- **Health:** blind spots <n> · unresolved placeholders <n> · open decisions <n> · why debt <n> · assumed <n> · likely <n>
|
|
104
|
+
- **Assumptions made:** (each is an `[assumed]` mark or an Open decision card — `intent-format open` lists them)
|
|
105
|
+
- …
|
|
106
|
+
- **Questions for the owner:** top 5, with the decision card core for each
|
|
107
|
+
- **Next steps:** …
|
|
108
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "intent-format",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.2.0",
|
|
4
|
+
"description": "A Markdown format for a software product's knowledge base: spec, schema, the intent-format CLI and agent skills.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"intent-format": "kit/cli/intent-format.mjs"
|
|
8
|
+
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"test": "node kit/cli/test/smoke.mjs && node kit/cli/test/nav.mjs && node kit/cli/test/roles.mjs"
|
|
11
|
+
},
|
|
12
|
+
"engines": {
|
|
13
|
+
"node": ">=18"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"markdown",
|
|
17
|
+
"knowledge-base",
|
|
18
|
+
"specification",
|
|
19
|
+
"product-design",
|
|
20
|
+
"agents",
|
|
21
|
+
"cli"
|
|
22
|
+
],
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"homepage": "https://github.com/intentstudiodev/intent-format#readme",
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "git+https://github.com/intentstudiodev/intent-format.git"
|
|
28
|
+
},
|
|
29
|
+
"bugs": {
|
|
30
|
+
"url": "https://github.com/intentstudiodev/intent-format/issues"
|
|
31
|
+
}
|
|
32
|
+
}
|