intent-format 0.0.0-stage → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. package/.github/ISSUE_TEMPLATE/1-something-wrong.yml +18 -0
  2. package/.github/ISSUE_TEMPLATE/2-idea.yml +11 -0
  3. package/.github/ISSUE_TEMPLATE/config.yml +5 -0
  4. package/AGENTS.md +11 -0
  5. package/CHANGELOG.md +288 -0
  6. package/CLAUDE.md +1 -0
  7. package/CODE_OF_CONDUCT.md +128 -0
  8. package/CONTRIBUTING.md +19 -0
  9. package/LICENSE +21 -0
  10. package/README.md +72 -2
  11. package/SECURITY.md +10 -0
  12. package/VERSION +1 -0
  13. package/examples/example-app/AGENTS.md +19 -0
  14. package/examples/example-app/CLAUDE.md +1 -0
  15. package/examples/example-app/V1.0/apis/_index.md +14 -0
  16. package/examples/example-app/V1.0/apis/ap000001-list-items.md +20 -0
  17. package/examples/example-app/V1.0/apis/ap000002-save-item.md +28 -0
  18. package/examples/example-app/V1.0/backend/_index.md +15 -0
  19. package/examples/example-app/V1.0/backend/bn000001-app-server.md +24 -0
  20. package/examples/example-app/V1.0/backend/bn000002-main-database.md +22 -0
  21. package/examples/example-app/V1.0/backend/bn000003-file-storage.md +22 -0
  22. package/examples/example-app/V1.0/comments/_index.md +13 -0
  23. package/examples/example-app/V1.0/comments/cm000001-empty-list-message.md +15 -0
  24. package/examples/example-app/V1.0/components/_index.md +16 -0
  25. package/examples/example-app/V1.0/components/cp000001-button.md +32 -0
  26. package/examples/example-app/V1.0/components/cp000002-text-field.md +31 -0
  27. package/examples/example-app/V1.0/components/cp000003-item-row.md +34 -0
  28. package/examples/example-app/V1.0/components/cp000004-top-bar.md +26 -0
  29. package/examples/example-app/V1.0/decisions/_index.md +13 -0
  30. package/examples/example-app/V1.0/decisions/dc000001-where-do-item-images-live.md +26 -0
  31. package/examples/example-app/V1.0/edge-cases/_index.md +13 -0
  32. package/examples/example-app/V1.0/edge-cases/ec000001-save-fails.md +24 -0
  33. package/examples/example-app/V1.0/features/_index.md +17 -0
  34. package/examples/example-app/V1.0/features/ft000001-items.md +22 -0
  35. package/examples/example-app/V1.0/features/ft000002-account.md +21 -0
  36. package/examples/example-app/V1.0/features/ft000003-browse-items.md +26 -0
  37. package/examples/example-app/V1.0/features/ft000004-edit-an-item.md +33 -0
  38. package/examples/example-app/V1.0/features/ft000005-change-settings.md +21 -0
  39. package/examples/example-app/V1.0/ia/_index.md +13 -0
  40. package/examples/example-app/V1.0/ia/ia000001-main-map.md +23 -0
  41. package/examples/example-app/V1.0/intent-format.md +12 -0
  42. package/examples/example-app/V1.0/project.md +51 -0
  43. package/examples/example-app/V1.0/roles/_index.md +14 -0
  44. package/examples/example-app/V1.0/roles/ro000001-member.md +22 -0
  45. package/examples/example-app/V1.0/roles/ro000002-admin.md +19 -0
  46. package/examples/example-app/V1.0/rules/_index.md +13 -0
  47. package/examples/example-app/V1.0/rules/rl000001-item-name-is-required.md +20 -0
  48. package/examples/example-app/V1.0/screens/_index.md +17 -0
  49. package/examples/example-app/V1.0/screens/sc000001-home.md +18 -0
  50. package/examples/example-app/V1.0/screens/sc000002-item-list.md +43 -0
  51. package/examples/example-app/V1.0/screens/sc000003-item-detail.md +24 -0
  52. package/examples/example-app/V1.0/screens/sc000004-edit-item.md +35 -0
  53. package/examples/example-app/V1.0/screens/sc000005-settings.md +19 -0
  54. package/examples/example-app/V1.0/shells/_index.md +8 -0
  55. package/examples/example-app/V1.0/tech/_index.md +14 -0
  56. package/examples/example-app/V1.0/tech/tc000001-ui-framework.md +23 -0
  57. package/examples/example-app/V1.0/tech/tc000002-relational-database.md +25 -0
  58. package/examples/example-app/V1.0/userflows/_index.md +14 -0
  59. package/examples/example-app/V1.0/userflows/uf000001-create-an-item.md +66 -0
  60. package/examples/example-app/V1.0/userflows/uf000002-edit-an-item.md +47 -0
  61. package/examples/example-app/V1.1/CHANGES.md +12 -0
  62. package/examples/example-app/V1.1/apis/_index.md +14 -0
  63. package/examples/example-app/V1.1/apis/ap000001-list-items.md +20 -0
  64. package/examples/example-app/V1.1/apis/ap000002-save-item.md +28 -0
  65. package/examples/example-app/V1.1/backend/_index.md +15 -0
  66. package/examples/example-app/V1.1/backend/bn000001-app-server.md +24 -0
  67. package/examples/example-app/V1.1/backend/bn000002-main-database.md +22 -0
  68. package/examples/example-app/V1.1/backend/bn000003-file-storage.md +22 -0
  69. package/examples/example-app/V1.1/comments/_index.md +14 -0
  70. package/examples/example-app/V1.1/comments/cm000001-empty-list-message.md +15 -0
  71. package/examples/example-app/V1.1/comments/cm000002-filter-placement.md +12 -0
  72. package/examples/example-app/V1.1/components/_index.md +16 -0
  73. package/examples/example-app/V1.1/components/cp000001-button.md +32 -0
  74. package/examples/example-app/V1.1/components/cp000002-text-field.md +32 -0
  75. package/examples/example-app/V1.1/components/cp000003-item-row.md +34 -0
  76. package/examples/example-app/V1.1/components/cp000004-top-bar.md +26 -0
  77. package/examples/example-app/V1.1/decisions/_index.md +13 -0
  78. package/examples/example-app/V1.1/decisions/dc000001-where-do-item-images-live.md +26 -0
  79. package/examples/example-app/V1.1/edge-cases/_index.md +13 -0
  80. package/examples/example-app/V1.1/edge-cases/ec000001-save-fails.md +24 -0
  81. package/examples/example-app/V1.1/features/_index.md +17 -0
  82. package/examples/example-app/V1.1/features/ft000001-items.md +22 -0
  83. package/examples/example-app/V1.1/features/ft000002-account.md +21 -0
  84. package/examples/example-app/V1.1/features/ft000003-browse-items.md +26 -0
  85. package/examples/example-app/V1.1/features/ft000004-edit-an-item.md +33 -0
  86. package/examples/example-app/V1.1/features/ft000005-change-settings.md +21 -0
  87. package/examples/example-app/V1.1/ia/_index.md +13 -0
  88. package/examples/example-app/V1.1/ia/ia000001-main-map.md +23 -0
  89. package/examples/example-app/V1.1/intent-format.md +13 -0
  90. package/examples/example-app/V1.1/project.md +51 -0
  91. package/examples/example-app/V1.1/roles/_index.md +14 -0
  92. package/examples/example-app/V1.1/roles/ro000001-member.md +22 -0
  93. package/examples/example-app/V1.1/roles/ro000002-admin.md +19 -0
  94. package/examples/example-app/V1.1/rules/_index.md +13 -0
  95. package/examples/example-app/V1.1/rules/rl000001-item-name-is-required.md +20 -0
  96. package/examples/example-app/V1.1/screens/_index.md +17 -0
  97. package/examples/example-app/V1.1/screens/sc000001-home.md +18 -0
  98. package/examples/example-app/V1.1/screens/sc000002-item-list.md +44 -0
  99. package/examples/example-app/V1.1/screens/sc000003-item-detail.md +24 -0
  100. package/examples/example-app/V1.1/screens/sc000004-edit-item.md +35 -0
  101. package/examples/example-app/V1.1/screens/sc000005-settings.md +19 -0
  102. package/examples/example-app/V1.1/shells/_index.md +8 -0
  103. package/examples/example-app/V1.1/tech/_index.md +14 -0
  104. package/examples/example-app/V1.1/tech/tc000001-ui-framework.md +23 -0
  105. package/examples/example-app/V1.1/tech/tc000002-relational-database.md +25 -0
  106. package/examples/example-app/V1.1/userflows/_index.md +14 -0
  107. package/examples/example-app/V1.1/userflows/uf000001-create-an-item.md +66 -0
  108. package/examples/example-app/V1.1/userflows/uf000002-edit-an-item.md +47 -0
  109. package/examples/example-app/_ids.md +78 -0
  110. package/examples/example-app/_index.md +14 -0
  111. package/examples/example-app/inputs/brief.md +3 -0
  112. package/examples/example-app/inputs/links.md +3 -0
  113. package/kit/cli/README.md +128 -0
  114. package/kit/cli/intent-format.mjs +342 -0
  115. package/kit/cli/lib/agents.mjs +39 -0
  116. package/kit/cli/lib/check.mjs +412 -0
  117. package/kit/cli/lib/create.mjs +190 -0
  118. package/kit/cli/lib/frame.mjs +182 -0
  119. package/kit/cli/lib/generate.mjs +418 -0
  120. package/kit/cli/lib/kit.mjs +203 -0
  121. package/kit/cli/lib/migrate.mjs +97 -0
  122. package/kit/cli/lib/model.mjs +409 -0
  123. package/kit/cli/lib/next.mjs +134 -0
  124. package/kit/cli/lib/open.mjs +34 -0
  125. package/kit/cli/lib/parse.mjs +260 -0
  126. package/kit/cli/lib/project.mjs +120 -0
  127. package/kit/cli/lib/regen.mjs +112 -0
  128. package/kit/cli/lib/relations.mjs +380 -0
  129. package/kit/cli/lib/rename.mjs +23 -0
  130. package/kit/cli/lib/schema.mjs +185 -0
  131. package/kit/cli/lib/templates.mjs +41 -0
  132. package/kit/cli/lib/util.mjs +165 -0
  133. package/kit/cli/test/nav.mjs +145 -0
  134. package/kit/cli/test/roles.mjs +85 -0
  135. package/kit/cli/test/smoke.mjs +716 -0
  136. package/kit/skills/intent-format/SKILL.md +91 -0
  137. package/kit/skills/intent-format/links.md +142 -0
  138. package/kit/skills/intent-format/types/_overview.md +73 -0
  139. package/kit/skills/intent-format/types/api.md +111 -0
  140. package/kit/skills/intent-format/types/backend.md +110 -0
  141. package/kit/skills/intent-format/types/comment.md +66 -0
  142. package/kit/skills/intent-format/types/component.md +139 -0
  143. package/kit/skills/intent-format/types/decision.md +91 -0
  144. package/kit/skills/intent-format/types/edge-case.md +107 -0
  145. package/kit/skills/intent-format/types/feature.md +154 -0
  146. package/kit/skills/intent-format/types/ia.md +106 -0
  147. package/kit/skills/intent-format/types/project.md +131 -0
  148. package/kit/skills/intent-format/types/role.md +98 -0
  149. package/kit/skills/intent-format/types/rule.md +100 -0
  150. package/kit/skills/intent-format/types/screen.md +153 -0
  151. package/kit/skills/intent-format/types/shell.md +156 -0
  152. package/kit/skills/intent-format/types/tech.md +109 -0
  153. package/kit/skills/intent-format/types/userflow.md +197 -0
  154. package/kit/skills/kb-cold-start/SKILL.md +124 -0
  155. package/kit/skills/kb-cold-start/kickoff-questionnaire.md +42 -0
  156. package/kit/skills/kb-cold-start/templates.md +108 -0
  157. package/package.json +30 -4
  158. package/rationale.md +180 -0
  159. package/schema.json +5895 -0
  160. package/spec.md +1173 -0
  161. package/templates/api.md +16 -0
  162. package/templates/backend.md +15 -0
  163. package/templates/comment.md +11 -0
  164. package/templates/component.md +15 -0
  165. package/templates/decision.md +23 -0
  166. package/templates/edge-case.md +14 -0
  167. package/templates/feature.md +14 -0
  168. package/templates/ia.md +14 -0
  169. package/templates/project.md +34 -0
  170. package/templates/role.md +14 -0
  171. package/templates/rule.md +14 -0
  172. package/templates/screen.md +14 -0
  173. package/templates/shell.md +24 -0
  174. package/templates/tech.md +18 -0
  175. package/templates/userflow.md +20 -0
@@ -0,0 +1,18 @@
1
+ name: Something is wrong or unclear
2
+ description: The CLI fails, a check is wrong, or a rule in the spec is unclear.
3
+ labels: [bug]
4
+ body:
5
+ - type: textarea
6
+ id: did
7
+ attributes: { label: "What did you do?", description: "The command you ran, or the rule you read (S-<TOPIC>-<n> if you know it)." }
8
+ validations: { required: true }
9
+ - type: textarea
10
+ id: happened
11
+ attributes: { label: "What happened, or what is unclear?", description: "Paste the output. A small made-up example card helps a lot." }
12
+ validations: { required: true }
13
+ - type: textarea
14
+ id: expected
15
+ attributes: { label: "What did you expect instead?" }
16
+ - type: input
17
+ id: version
18
+ attributes: { label: "Format version", description: "The `standard:` line of your project, or the version you downloaded." }
@@ -0,0 +1,11 @@
1
+ name: Idea or change to the format
2
+ description: A card type, section or rule you need. Real examples move the format; the format changes only when real use proves a need.
3
+ labels: [enhancement]
4
+ body:
5
+ - type: textarea
6
+ id: problem
7
+ attributes: { label: "What problem does it solve?", description: "Describe a real situation where the format got in your way." }
8
+ validations: { required: true }
9
+ - type: textarea
10
+ id: example
11
+ attributes: { label: "An example", description: "A card as it is today, and as you'd like it. Made-up content is fine." }
@@ -0,0 +1,5 @@
1
+ blank_issues_enabled: false
2
+ contact_links:
3
+ - name: Read the guide first
4
+ url: https://github.com/intentstudiodev/intent-format#readme
5
+ about: What the format is, the CLI, and where the rules are.
package/AGENTS.md ADDED
@@ -0,0 +1,11 @@
1
+ # Intent Format 1.2 — for agents
2
+
3
+ This folder is the standard, not a knowledge base. Never write project files here.
4
+
5
+ - **Build a KB for a project:** read `kit/skills/kb-cold-start/SKILL.md`, then run
6
+ `node kit/cli/intent-format.mjs next <project-root>` and do the step it prints. Repeat.
7
+ - **Continue a KB someone else started:** `node kit/cli/intent-format.mjs next <project-root>` — it
8
+ works from the project folder alone.
9
+ - **Write or change cards:** `kit/skills/intent-format/SKILL.md`, then only the sheet for the type.
10
+ - Each project is its own folder; this one is shared and read-only. `spec.md` only settles edge
11
+ cases; `schema.json` is for tools.
package/CHANGELOG.md ADDED
@@ -0,0 +1,288 @@
1
+ # Changelog — Intent Format
2
+
3
+ Newest first. Every published version has a `## <version> (<date>)` heading (two numbers: 1.0, 1.1; the GitHub tag is `v<version>`, the first release was tagged `v1.0.0`); changes waiting for
4
+ the next version collect under `## Unreleased`. Decision numbers (`D25`), `_work/` files and
5
+ inventory rows (`00-03 #n`, `04-07 #n`) refer to the maintainers' working notes, which are not
6
+ published.
7
+
8
+ ## 1.2 (2026-11-12) — files read as plain language; why and confidence
9
+
10
+ - **Renamed.** The format is Intent Format (identifier `IntentFormat/1.2`; the old `MDStandard/…` spellings are read and migrated). The CLI is `intent-format` (was `mds`): `kit/cli/intent-format.mjs`, package bin `intent-format`. The repository is `intentstudiodev/intent-format` (was `mdstandard`; old links redirect).
11
+ - **Features group by purpose, never by screen.** A capability with a why, rules or decisions of its own is
12
+ a Feature wherever the user reaches it from; a Sub-feature's `## Why` is normally `same as` its Feature's;
13
+ one level deep; a grown Sub-feature drops `parent:`, keeps its id and records a decision. Type sheet
14
+ (`whenToUse`, `levels`, not-to-confuse-with `ia`) and spec S-FEAT-1; guidance, no new check. D29.
15
+ - **Decided, not built yet** (D30): `_summary.md`, a generated one-page overview written by `intent-format regen`
16
+ beside `_index.md` and clearly marked as not the source of truth; `intent-format export <id> [--for speckit|kiro|bmad]`,
17
+ a feature pack for outside pipelines.
18
+
19
+ - **`## Why` on every card type** except `comment`, right after `## Description` (after `## Question`
20
+ on decisions). Required on project, feature, rule, decision, userflow, shell, role and tech (which
21
+ had it since 1.0); optional elsewhere — absent means nothing to say. Values: text, `none` or
22
+ `none — <note>` (not counted), `same as #<id>` (another card's why covers it — any card by id; `check`
23
+ follows it [I030], an id that names no card [W051]) and `—` (counted: blind-spot kind
24
+ `why`, printed as **why debt**). Each type has a **why question** in one of three flavours —
25
+ purpose (project, feature, userflow, role), choice (screen, component, shell, ia, api, backend,
26
+ tech, decision), constraint (rule, edge-case) — printed on the type sheet. Spec S-BODY-7; schema `why`.
27
+ - **`[ask: <question>]`** inside any authored sentence: a question for the owner that no value can
28
+ hold. Counted as **asks** (open · later: `[ask: … · later <date>]` · due: later than `ask.again` = 2 days), listed by `intent-format open` with
29
+ card and line, never dropped by a tool. Spec S-BODY-8; schema `ask`.
30
+ - **Confidence marks** at the end of a Why text or a decision Outcome: `[likely]` (follows from
31
+ inputs, not stated) and `[assumed]` (a guess). Unmarked = confirmed; `[confirmed]` is accepted and
32
+ `regen` removes it [I031]. Health counts both; a mark elsewhere is [W051].
33
+ - **Decision record**: optional keys `decided: <YYYY-MM-DD>`, `by: owner|agent|<role>`,
34
+ `superseded-by: <DC core>`. A Decided decision without `decided`, a Superseded one without
35
+ `superseded-by`, or either key on another status → [W052]; `superseded-by` must name a decision.
36
+ - **Evidence lives in `inputs/`**: a `Source` link whose path is not a URL must point inside the
37
+ project root's `inputs/` [W053].
38
+ - **`intent-format open <root>`**: the one list of what is open — `[ask: …]` questions, open decisions, `[assumed]`
39
+ and `[likely]` marks, whys missing, other blind spots per card. `intent-format check` and `intent-format next` print why and confidence numbers.
40
+ - Renamed to **Intent Format** (1.0.1): `standard: IntentFormat/1.2`; the old `MDStandard/…` values
41
+ are still read and `intent-format migrate` renames them. The CLI command stays `intent-format`.
42
+
43
+ - **Renamed, so a card reads without a glossary** (schema.json → `renames`; old spellings are still
44
+ read, `intent-format migrate` and `regen` write the new ones): `## Description & Requirements` → `## Description`,
45
+ `## Rules applied` → `## Rules`, `## Uses API` → `## APIs` (the relation `Uses API` keeps its name),
46
+ `## Constraints` → `## Keep in mind`, `## Main use cases` → `## User stories`; generated:
47
+ `⚙ Placed on` → `⚙ On maps`, `⚙ Flows` → `⚙ In user flows`, `⚙ Used on` → `⚙ Used in`,
48
+ `⚙ Frames` → `⚙ Wraps`, `⚙ Shown as` → `⚙ Shown in`; the key and vocabulary `appears-as` /
49
+ `### Appears-as` → `opens-as` / `### Opens-as`; the qualifier `· parent:` on map lines → `· under:`.
50
+ - **`users:`** on screens and user flows: the user types the card is for — one role card name or a
51
+ list; omitted = every user type whose states include the card's state.
52
+ - KBs say `standard: IntentFormat/1.2`; `IntentFormat/1.0` gets the W001 hint and `intent-format migrate` renames it.
53
+ - hotfix 2026-11-12: LICENSE names the maintainer as the Intent Harness does.
54
+ - hotfix 2026-11-12: public repository: issue forms for visitors (something wrong or unclear, idea), a Code of Conduct, CONTRIBUTING and README point visitors to them.
55
+ - hotfix 2026-11-12: reply times said honestly; SECURITY.md (report privately).
56
+ - hotfix 2026-11-14: decisions take an optional `## History` section after `Affects`: dated lines added after the decision (`- <date> · <what happened> · <source>`), so a decided Outcome is never edited (spec S-TYPE-12).
57
+ - hotfix 2026-11-14: `scaffold` reads every inventory table with Type, Name and Core columns; an inventory split into sections is no longer scaffolded only in part. `next` and the template say so.
58
+ - hotfix 2026-11-15: CONTRIBUTING says what a release that changes the shape of files owes: its step in `intent-format migrate` and a small project of the previous version as a test. A .gitignore for local files.
59
+ - hotfix 2026-11-17: on npm. `npx intent-format@1.2 check ./my-kb` runs the CLI from the package `intent-format` (npm version 1.2.1); `npx github:intentstudiodev/intent-format#v1.2` keeps working.
60
+
61
+ ## 1.0 (2026-10-20) — first public release
62
+
63
+ Intent Format 1.0 is a rewrite of an unpublished prototype: the same core ideas, one source of truth
64
+ per concept, machine-checkable, domain-neutral. This release contains the spec, the schema, the
65
+ `intent-format` CLI, the agent skills, templates and an example KB.
66
+
67
+ - **Name:** KBs say `standard: IntentFormat/1.0`. KBs made with the pre-release name
68
+ `IntentFormat/1.0-draft.2` get a W001 hint; `intent-format migrate <root>` renames them (all workspaces).
69
+ - **CLI:** runs through npm's `intent-format` link, so `npx github:intentstudiodev/intent-format#v1.0.0` works.
70
+
71
+ The dated entries below describe how 1.0 took shape before publication; "draft 1" there means the
72
+ prototype, "draft 2" the work that became 1.0.
73
+
74
+ ## Domain on the project card (2026-10-19)
75
+
76
+ Decisions D25. Two optional passport keys on the project card: **`industry:`** (free text) and
77
+ **`audience:`** (B2C, B2B, B2B2C, Internal system, Marketplace; a list). They say which domain
78
+ the product lives in and who it is for, so an agent frames every suggestion — user types,
79
+ states, journeys, rules — in that domain before reading anything else. No new check: unknown
80
+ values are free text by design. Sniff key unchanged.
81
+
82
+ ## User types are cards (2026-10-18)
83
+
84
+ Decisions D24. **`type: role`** (RO, `roles/`) replaces the `### Roles` table: one card per
85
+ user type with `state:` (the States it can be in), `platform:` (what it uses) and a description
86
+ of who they are and why they come. Stories keep plain text and resolve by exact role-card
87
+ name; the role lists them in generated `⚙ Stories` (`· story: R<n>` / `· story: Main use
88
+ cases`). New checks W049 (duplicate role name), W050 (the deprecated table; silent in
89
+ read-only versions), I029 (a role no story names). `intent-format migrate <root>` converts the table —
90
+ one core per role across versions, idempotent. Scaffold and `intent-format next` put roles right after
91
+ the project card; `next` sends an old KB to `migrate` first. The manifest `modules` values now
92
+ list `shells` and `roles`.
93
+ Also (D24.9): a stepper frames its own flow's steps by default; a shell whose `platform:` does
94
+ not fit is skipped on every resolution rung; flows take `platform:`; W045 covers two steppers
95
+ for one flow; roles take Links, Comments and decisions.
96
+
97
+ ## Fix pass 3 — navigation and a self-steering cold start (2026-10-18)
98
+
99
+ Decisions D23 in `_work/decisions.md`. Additive except one rule: a shell variant no longer
100
+ carries navigation lines (W017 tells where to move them).
101
+
102
+ - **Variants stack.** Every matching shell variant applies; `Signed in`, `Mobile` and
103
+ `Level 2+` are written once each, never as combinations (S-SHELL-5).
104
+ - **One navigation list per shell**, in display order. `Leads to` lines take `· in: <parts>`
105
+ (the part holding the entry: Header, Footer, Tab bar, Account menu — W048), `· platform:`
106
+ and `· state:` (S-SHELL-6). I028 flags a line shown where its screen does not exist.
107
+ - **New shell or variant** test and the usual set of shells (S-SHELL-8, How to model in the
108
+ shell sheet). Typically three to eight shells.
109
+ - **Chrome on a screen** is allowed but discouraged: I027.
110
+ - Templates carry recommended optional sections (`inTemplate`): shell Navigation, Places inside.
111
+ - CLI: `intent-format frame <root> <screen>` (what surrounds a screen per placement), `intent-format next <root>`
112
+ (the one next step, from the project's files alone), a project lock for writing commands,
113
+ `AGENTS.md` + `CLAUDE.md` at the project root (S-PKG-8).
114
+ - Kit: the cold-start skill steers by `intent-format next`; `proposal/frames.md` puts navigation in front
115
+ of the owner before any card exists; fill order puts shells and maps before screens;
116
+ unattended mode is written down; picking up, parallel work and later batches are covered.
117
+ Kickoff questions 4, 10, 11 ask for navigation per platform and frames; "shell" no longer
118
+ means a native wrapper there.
119
+
120
+ ## Fix pass 2 — shells (2026-10-16 → 2026-10-18)
121
+
122
+ **Persistent UI is a shell, not a screen.** The draft 2 advice "model the app shell as a screen
123
+ at the IA root whose children are the views" made the shell the root of every map and left
124
+ navigation with no home. Replaced by a new card type, **shell** (spec section 6.4,
125
+ `schema.json shells`, type sheet `kit/skills/intent-format/types/shell.md`):
126
+
127
+ - `type: shell`, prefix SH, folder `shells/`; `shell-type` is `app`, `section`, `stepper`,
128
+ `overlay`, `focus`, `split` or `embedded`; `platform`, `state`; `appears-as` on overlays
129
+ (the presentation they frame); `flow` on steppers (the flow they show).
130
+ - Sections: `## Components` (the frame's parts; a part that unfolds over the page carries
131
+ `· appears-as:`), `## Navigation` (ordered `Leads to` lines, `· kind: tab|menu|link`,
132
+ `· label:`), `## Places inside` (the contract for whatever the shell frames), `## Variants`
133
+ (`### <Name> · #HV…`, passport `platform` · `state` · `level`; a variant *adds* parts and
134
+ `Leads to` lines to the host).
135
+ - Binding: `shell:` on screens and in screen-variant passports, `· shell:` on IA nodes
136
+ (covers the subtree) and on a step's `Screen` line; otherwise the default: the app shell of
137
+ the map's platform and state for pages, the overlay shell whose `appears-as` matches for
138
+ everything else. Then the variant by platform, state and level. Reverses `⚙ Frames` on the
139
+ shell, `⚙ Reached from` on screens, `⚙ Shown as` on a stepper's flow.
140
+ - Three things, each written once: `appears-as` on a placement says *how* content is shown;
141
+ the overlay shell says *what* frames everything shown that way; the content is the screen
142
+ card or the shell part. A screen card never holds a frame's control (Continue, Close, Back).
143
+ - Diagnostics W044 (not a shell), W045 (default-shell clash), W046 (a shell as a part), W047
144
+ (shell keys and kind).
145
+ - The root of a map is a real place (Home). Existing KBs: turn the App shell screen (or the
146
+ fix-pass-2 `component-type: shell` components of 2026-10-16) into shell cards, enable the
147
+ `shells` module, re-root the maps.
148
+
149
+ ## Draft 2 vs draft 1
150
+
151
+ **Package**
152
+ - Nine documents with restated rules → one `spec.md` (rules stated once) plus `schema.json` as
153
+ the single machine-readable source; templates and type sheets are generated from it.
154
+ - The tool-conformance document → the reference CLI `intent-format` and fixtures, which make tool
155
+ behaviour testable.
156
+ - Domain-specific examples and real product names → the abstract `example-app`.
157
+
158
+ **Cards**
159
+ - Workspace owns the version; cards no longer carry `version:`, so a new version rewrites
160
+ nothing.
161
+ - Title holds the core only; rendered ID, lifecycle and change status move to a generated
162
+ status line.
163
+ - `state:` is optional and exists only when the project declares States.
164
+ - Status vocabularies are per type (tech, decision, comment); status only with evidence.
165
+ - Front matter holds no edges except the membership keys `feature:` and `parent:`.
166
+ - Required sections are set per type in the schema; `Links`, `Tags`, `Comments` are never
167
+ required, so they no longer inflate blind spots.
168
+ - `none` (verified none) joins `—` (blind spot); generated sections exist only with content.
169
+ - Generated sections move to the end of the card; their registry is closed.
170
+
171
+ **Types**
172
+ - New types `tech` (TC) and `decision` (DC), with `Built with` ⇄ `⚙ Used by` and
173
+ `Affects` ⇄ `⚙ Decisions`.
174
+ - Features get two levels (Feature, Sub-feature) and replace Areas; members name their home.
175
+ - Screens and components: `## Components` is the default composition; `## Variants` is optional.
176
+ - The project card gains Main use cases, Constraints, Roles and Tech categories, Built with.
177
+ - APIs name their node in `## Served by`; backend types gain `storage` and lose `api`.
178
+ - Comments get a `name` and a single status representation.
179
+
180
+ **Flows and maps**
181
+ - A flow is always one file; large journeys become subflows (info above 15 steps).
182
+ - A step's type is its heading glyph only; System action uses ⚡.
183
+ - Step lists live in `## Step list` (relation `Step`); `⚙ Prev`/`⚙ Next` are optional.
184
+
185
+ **Links**
186
+ - A redundant default-relation prefix is tolerated (info), not a finding of its own.
187
+ - Link types are Design, Code, Doc, Source, Analytics, Other; `Source` marks evidence.
188
+ - Placeholder promotion is an explicit edit; `check` reports exact matches.
189
+
190
+ **IDs and versions**
191
+ - Cores are unique across the project; `_ids.md` moves to the project root with Retired and
192
+ High-water marks; only `intent-format new`/`intent-format mint` mint.
193
+ - Lifecycle `planned · in-progress · released · archived · exploration`; versions form a tree
194
+ through `based-on`; per-card change status and `CHANGES.md` replace stamps and logs.
195
+ - Moving a card between versions means copying it with its core; re-minting is for import.
196
+
197
+ **Conformance and exchange**
198
+ - Severities error / warning / info with codes; MUST → warning, SHOULD → info; more errors,
199
+ all about broken identity or parsing.
200
+ - Health is blind spots, unresolved placeholders, open decisions.
201
+ - Idempotency replaces byte-identical output across tools.
202
+ - Judgment lints become review checks for a QA reviewer.
203
+ - Folders are flat; grouping is a computed perspective.
204
+ - Import is compact (re-mint, rewrite, placeholders, `origin`); merge and duplicate are
205
+ manual procedures; extensions need no registration.
206
+
207
+ ## Cut list
208
+
209
+ Cut rows of the inventories:
210
+
211
+ - Exploded flows — folder form, `_flow.md`, step files, fold/explode, thresholds, `step` type
212
+ (00-03 #75; 04-07 #42, #76).
213
+ - Step-list echo cache — screen, wiring and one-liner tails on list lines (00-03 #61;
214
+ 04-07 #23).
215
+ - Per-card `version:` stamps, restamping on new versions and imports, the integer build clock
216
+ (00-03 #42; 04-07 #62, #116, #123).
217
+ - Manifest `uuid` (00-03 #22).
218
+ - Import logs — manifest `## ⚙ Import log` and change-log lines (00-03 #20; 04-07 #117).
219
+ - Content hashes (`hash:`, `unverified`) and "changed upstream" detection on re-import
220
+ (00-03 #49; 04-07 #119) — future work.
221
+ - Per-workspace KB `CHANGELOG.md` (04-07 #95); freshness footer (00-03 #51); dates in any
222
+ generated content (04-07 #50).
223
+ - `_ids.md` Unresolved table (04-07 #78) — `intent-format check` and the health count instead.
224
+ - Component-type shelves `atoms/` … `integrations/` (00-03 #30).
225
+ - Drafting history in normative text — decision-ledger wording, re-lock clause, dated
226
+ examples (00-03 #3; 04-07 #49) — moved to `rationale.md` and this file.
227
+
228
+ Also cut when open points were resolved:
229
+
230
+ - Requirement-block anchors `#r<n>` and links to single blocks (00-03 #102; 04-07 #60).
231
+ - Extension registry in the manifest (00-03 #26; 04-07 #36).
232
+ - Automatic, group-wide or logged placeholder promotion; fuzzy name grouping (00-03 #111;
233
+ 04-07 #9).
234
+ - Merge and duplicate as tool-mandatory operations; `merged-from` / `duplicated-from` maps
235
+ (00-03 #112; 04-07 #71).
236
+ - Authored purpose paragraph and `version` key in `_index.md` (00-03 #96; 04-07 #92).
237
+ - The step `type:` passport word (00-03 #80); minting by `regen` (00-03 #46).
238
+ - Re-minting through import when moving work between versions (00-03 #18; 04-07 #73).
239
+ - Generated facts outside the closed registry — API and rule roll-ups, screens involved, flows
240
+ here, reached-from / leads-to lines, feature status roll-up, project roll-up (00-03 #69,
241
+ #88; 04-07 #32).
242
+ - Nameless comments and nameless references (00-03 #93; 04-07 #3).
243
+
244
+ Not carried from other rows:
245
+
246
+ - A mandatory Default variant and state-name matching of unpinned references (00-03 #71,
247
+ #83; 04-07 #40).
248
+ - `⚙` sections holding `—` as "verified empty" (00-03 #57; 04-07 #125).
249
+ - Platform lints: two variants with one state and platform; no reachable variant (00-03 #67).
250
+ - IA map `variant:` key and `Explores:` line (00-03 #82).
251
+ - Origin matching before demoting a reference on import (04-07 #111).
252
+
253
+ ## Renamed
254
+
255
+ - `IntentFormat/1.0-draft` → `IntentFormat/1.0`.
256
+ - Draft 1's button-style name for regenerating → **regenerate** (`intent-format regen`).
257
+ - Rule codes (CAT-n, S, M, O, F, T, E, Z, GC, B, P, G, V) → `S-<TOPIC>-<n>`.
258
+ - Areas (vocabulary, `area:`, shelves) → top-level **Feature**; draft 1's feature →
259
+ **Sub-feature** (`parent:`).
260
+ - API `## Where` / `Where` → `## Served by` / `Served by`; backend `⚙ APIs` → `⚙ Serves`.
261
+ - Userflow `## Parts` / `Part` → `## Step list` / `Step`.
262
+ - Userflow `⚙ Connected flows` (with `Connected from:` lines) → `⚙ Entered from`.
263
+ - Screen `⚙ Part of` → `⚙ Placed on` (IA maps) and `⚙ Flows` (steps).
264
+ - `Delivers feature` → `⚙ Features`; `Edge cases (N)` → `⚙ Edge cases`.
265
+ - System-action glyph `⚙` → `⚡`.
266
+ - Lifecycle `draft · active · maintained · frozen` → `planned · in-progress · released ·
267
+ archived` (+ `exploration`).
268
+ - Manifest record of the source version → `based-on`.
269
+ - Backend type `db` → `database`; IA key `platforms:` → `platform:`.
270
+ - Link type issue tracker → `Doc`; `other` → `Other`; `Source` added.
271
+ - Placeholder qualifier `· was: <core>@<kb>` → note `— was #<core> in <kb>`.
272
+ - `origin` block → `origin: <kb>/<core>`.
273
+ - Comment `resolved:` and "— resolved" suffix → `status: Open | Resolved`.
274
+ - Conformance tiers (Well-formed, Connected, Complete) → severities and health.
275
+ - Health "unresolved references", "uncomputed" → "unresolved placeholders", "open decisions".
276
+ - Byte-identical determinism → idempotency.
277
+ - KB `CHANGELOG.md` → `CHANGES.md`; freshness footer → status line.
278
+ - Roster column `Gaps` → `Blind spots`.
279
+ - Screen `## Variants` with a `Default` variant → `## Components` plus optional `## Variants`.
280
+ - Workspace `_ids.md` → project-root `_ids.md`.
281
+
282
+ ## Fix pass after the cold-start tests
283
+
284
+ - `## Stack` renamed to `## Components` ("stack" collided with the tech stack).
285
+ - A final `—` in a list section marks the list as incomplete (one blind spot).
286
+ - Health: blind spots broken down by kind.
287
+ - CLI: `intent-format scaffold` (create all cards from an inventory), `init --lifecycle`; type sheets show the requirement formats; `types/_overview.md` added.
288
+ - Cold-start kit: unattended mode defined; derivation rule clarified; every judgment call becomes a decision card; persistent panels vs screens; sample content inside a product's UI is not documented.
package/CLAUDE.md ADDED
@@ -0,0 +1 @@
1
+ @AGENTS.md
@@ -0,0 +1,128 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, religion, or sexual identity
10
+ and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the
26
+ overall community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or
31
+ advances of any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email
35
+ address, without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official e-mail address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ dev@intentstudio.dev.
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series
86
+ of actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or
93
+ permanent ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within
113
+ the community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.0, available at
119
+ https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120
+
121
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct
122
+ enforcement ladder](https://github.com/mozilla/diversity).
123
+
124
+ [homepage]: https://www.contributor-covenant.org
125
+
126
+ For answers to common questions about this code of conduct, see the FAQ at
127
+ https://www.contributor-covenant.org/faq. Translations are available at
128
+ https://www.contributor-covenant.org/translations.
@@ -0,0 +1,19 @@
1
+ # Contributing to Intent Format
2
+
3
+ Thanks for helping. Intent Format is made by one person, in the open. This repository holds the
4
+ **released versions**; each version is prepared in a working copy and published here as a tagged release.
5
+
6
+ - **Questions, bugs, unclear rules:** [open an issue](https://github.com/intentstudiodev/intent-format/issues/new/choose)
7
+ and pick **Something is wrong or unclear**. Name the rule (`S-<TOPIC>-<n>`) or the CLI command, and
8
+ paste a small example card if you can. Made-up content is fine; don't paste anything private.
9
+ As it's one person, replies can take a while: we'll do our best to get back to you soon, but can't promise when.
10
+ - **Proposing a change to the spec or schema:** open an issue (**Idea or change to the format**) first and describe the problem it
11
+ solves, with a real example. The standard changes only when real use proves a need.
12
+ - **Pull requests** are welcome. They are carried into the working copy by hand and shipped in the
13
+ next version; you are credited in `CHANGELOG.md`.
14
+ - **A release that changes the shape of files** (a key, a section, a folder, a name) adds its step to
15
+ `intent-format migrate` and keeps a small project of the previous version as a test that it migrates
16
+ cleanly. A release that changes nothing on disk only adds the old name to `legacyStandards`.
17
+ - **Tests:** `npm test` (Node 18 or later, no dependencies).
18
+
19
+ Everyone here follows the [Code of Conduct](CODE_OF_CONDUCT.md). By contributing you agree that your contribution is licensed under the MIT licence in `LICENSE`.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 the Intent Format maintainer
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,73 @@
1
- # Temporary Holding Version
1
+ # Intent Format 1.2
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ [![npm](https://img.shields.io/npm/v/intent-format)](https://www.npmjs.com/package/intent-format) [![downloads](https://img.shields.io/npm/dw/intent-format)](https://www.npmjs.com/package/intent-format)
4
+
5
+ Intent Format is a format for the knowledge base (KB) of a software product, written as plain
6
+ Markdown. Every user type, screen, shell, component, user flow, IA map, rule, API, feature, edge case, backend
7
+ node, technology, decision and comment is one **card** — one file — and cards link to each
8
+ other by permanent IDs. People read and edit the files in any editor; agents and tools parse
9
+ the same files. A small CLI mints IDs, computes the reverse links (`⚙` sections), checks the KB
10
+ and reports its health: blind spots, unresolved placeholders, open decisions.
11
+
12
+ **Status:** version 1.2. 1.0 was a rewrite of an unpublished prototype: the same core
13
+ ideas, a fraction of the size, one source of truth per concept. 1.2 renames sections so a card
14
+ reads as plain language, adds **`## Why`** to every card type — each type has its why question (purpose · choice ·
15
+ constraint) — with the values `none`, `same as #<id>` and `—` (why debt), **`[ask: …]`** markers
16
+ for questions to the owner, **confidence marks** `[likely]` / `[assumed]`, `decided:` / `by:` /
17
+ `superseded-by:` on decisions, `Source` links only into `inputs/`, and `intent-format open`. What changed:
18
+ `CHANGELOG.md`. **Shells** — persistent UI is a card of type `shell`, bound per placement,
19
+ never a screen at the root; spec 6.4. **Navigation** — variants stack, one navigation list per
20
+ shell, `intent-format frame` and `intent-format next`; spec 6.4, S-PKG-8. **User types** — `role` cards replace the
21
+ Roles table (S-TYPE-15, `intent-format migrate`). Schema and spec change only when real use proves a need;
22
+ every change is listed in `CHANGELOG.md`.
23
+
24
+ ## Get it
25
+
26
+ - **Download:** every version is on the [Releases](https://github.com/intentstudiodev/intent-format/releases)
27
+ page; the newest is marked *Latest*. Older versions stay available.
28
+ - **Run the CLI without installing** (Node 18 or later), from npm:
29
+ `npx intent-format@1.2 check ./my-kb` — leave out `@…` for the latest version.
30
+ - **Versions:** two numbers. `1.x` for fixes and additions that keep existing KBs valid, `2.0` for
31
+ changes that need `intent-format migrate`. A KB names the version it follows in its
32
+ `intent-format.md`: `standard: IntentFormat/1.2`; any later `1.x` reads it. (`package.json` carries a third
33
+ `0` because npm wants three numbers.)
34
+
35
+ ## Who reads what
36
+
37
+ - **People** (designers, product owners, developers): this README, then `spec.md` — the
38
+ normative text, rules numbered `S-<TOPIC>-<n>`. `rationale.md` explains the choices.
39
+ - **Agents**: `kit/skills/intent-format/` — a one-page router plus one sheet per card type — and
40
+ `kit/skills/kb-cold-start/` for building a KB from raw inputs. They open `spec.md` only to
41
+ settle an edge case.
42
+ - **Tools**: `schema.json` — the machine-readable source of types, keys, sections, relations,
43
+ generated sections, diagnostics and grammar — and the reference CLI `kit/cli/intent-format.mjs`.
44
+
45
+ Also here: `templates/` (blank cards generated from the schema), `examples/example-app/` (an
46
+ abstract KB with zero errors and warnings).
47
+
48
+ ## Quick start
49
+
50
+ The CLI needs Node 18 or later and nothing else. From this folder:
51
+
52
+ ```sh
53
+ node kit/cli/intent-format.mjs init ../my-kb --name "Example app" # project root, V1.0, manifest, project card
54
+ node kit/cli/intent-format.mjs next ../my-kb # where it stands and the one next step
55
+ node kit/cli/intent-format.mjs new screen "Item list" --root ../my-kb # mints a core, writes the card
56
+ node kit/cli/intent-format.mjs mint FS --count 5 --root ../my-kb # cores for flow steps (FS) or variants (SV, CV, HV)
57
+ node kit/cli/intent-format.mjs scaffold ../my-kb --inventory inv.md # create every card listed in an inventory
58
+ node kit/cli/intent-format.mjs regen ../my-kb # register, rosters, ⚙ sections, status lines
59
+ node kit/cli/intent-format.mjs check ../my-kb # diagnostics and health
60
+ node kit/cli/intent-format.mjs frame ../my-kb "Item list" # the shell, parts and navigation around a screen
61
+ node kit/cli/intent-format.mjs open ../my-kb # what is still unknown, guessed or undecided
62
+ node kit/cli/intent-format.mjs branch ../my-kb V1.0 V1.1 # next version, based on V1.0
63
+ ```
64
+
65
+ Write facts only where you have them: unknown → `—`, known to be empty → `none`, not yet a
66
+ card → `[~ Name]`. Say why in `## Why`; mark a guess `[assumed]`; put a question for the owner in its sentence as `[ask: …]`; `intent-format open` lists what is left. Run `regen`, then `check`, after every batch of edits. Warnings never block;
67
+ only errors — files whose identity or format cannot be trusted — stop `regen`.
68
+
69
+ ## Help
70
+
71
+ Something wrong or unclear? [Open an issue](https://github.com/intentstudiodev/intent-format/issues/new/choose).
72
+ How to help: [`CONTRIBUTING.md`](CONTRIBUTING.md). Everyone here follows the [Code of Conduct](CODE_OF_CONDUCT.md).
73
+ MIT licence.
package/SECURITY.md ADDED
@@ -0,0 +1,10 @@
1
+ # Security
2
+
3
+ Found a security problem, for example in the intent-format CLI? Please don't open a public issue.
4
+
5
+ Report it privately instead:
6
+
7
+ - on GitHub: the **Security** tab → **Report a vulnerability**, or
8
+ - by email: dev@intentstudio.dev
9
+
10
+ It's made by one person, so a reply can take a while, but security reports come first. Only the latest version gets fixes.
package/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.2
@@ -0,0 +1,19 @@
1
+ # Example app — knowledge base
2
+
3
+ This folder is a knowledge base in **Intent Format 1.0**: one markdown card per screen,
4
+ shell, flow, map, rule, API, feature and decision. The standard lives at `../..` (relative to
5
+ this folder).
6
+
7
+ **Start every session here:**
8
+
9
+ node "../../kit/cli/intent-format.mjs" next .
10
+
11
+ It reads this folder and prints the one next step — during the cold start and after it.
12
+
13
+ Always:
14
+ - read `../../kit/skills/intent-format/SKILL.md` before you write cards; then only the sheet for the type you write;
15
+ - before writing or changing a screen: `intent-format frame . <screen>` — the shell owns navigation and controls;
16
+ - never mint IDs by hand, never edit `⚙` sections; after every batch: `intent-format regen .`, then `intent-format check .`.
17
+
18
+ If `../..` does not exist on this machine, find the Intent Format folder (it holds `schema.json`
19
+ and `kit/cli/intent-format.mjs`) and correct the path in this file.
@@ -0,0 +1 @@
1
+ @AGENTS.md
@@ -0,0 +1,14 @@
1
+ ---
2
+ standard: IntentFormat/1.2
3
+ type: index
4
+ name: APIs
5
+ ---
6
+ # APIs
7
+
8
+ One API call: method, endpoint, what it does and the backend node that serves it.
9
+
10
+ ## ⚙ Contents
11
+ | ID | Name | Status | One-liner | Blind spots |
12
+ |---|---|---|---|---|
13
+ | [#AP000001](ap000001-list-items.md) | List items | In build | Returns the items of the signed-in Member, newest first. | 0 |
14
+ | [#AP000002](ap000002-save-item.md) | Save item | In build | Creates or updates one item and returns the stored version. | 0 |