@adia-ai/adia-ui-factory 0.2.3 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/.claude-plugin/plugin.json +5 -7
  2. package/.mcp.json +1 -1
  3. package/CHANGELOG.md +27 -63
  4. package/README.md +32 -53
  5. package/agents/app-architect.md +28 -0
  6. package/agents/routing-corpus.json +202 -0
  7. package/agents/screen-composer.md +27 -0
  8. package/bin/adia-lint +17 -2
  9. package/commands/adia-genui.md +5 -8
  10. package/commands/adia-migrate.md +5 -6
  11. package/commands/adia-orient.md +5 -10
  12. package/commands/adia-scaffold.md +7 -13
  13. package/commands/adia-verify.md +5 -6
  14. package/package.json +5 -6
  15. package/references/a2ui-mcp-tools.md +11 -8
  16. package/references/authoring-components.md +25 -1
  17. package/references/component-model.md +52 -4
  18. package/references/contracts/a2ui-mcp-surface.md +35 -0
  19. package/references/contracts/migration-guide-format.md +34 -0
  20. package/references/data-and-hydration.md +8 -5
  21. package/references/genui-a2ui.md +12 -6
  22. package/references/llm.md +22 -39
  23. package/references/migration.md +110 -36
  24. package/references/project-shapes.md +11 -13
  25. package/references/shell-admin.md +5 -2
  26. package/references/shell-chat.md +5 -3
  27. package/references/shell-editor.md +1 -1
  28. package/references/shell-embed.md +40 -26
  29. package/references/shell-simple.md +5 -2
  30. package/references/spa-architecture.md +28 -73
  31. package/references/ssr-integration.md +1 -1
  32. package/references/verification.md +8 -12
  33. package/skills/adia-compose/SKILL.md +52 -0
  34. package/skills/{adia-ui-kit → adia-compose}/assets/figma-make/guidelines/Guidelines.md +3 -3
  35. package/skills/{adia-ui-kit → adia-compose}/assets/figma-make/guidelines/components.md +3 -3
  36. package/skills/{adia-ui-kit → adia-compose}/assets/figma-make/guidelines/styles.md +1 -1
  37. package/skills/{adia-ui-kit → adia-compose}/assets/figma-make/guidelines/tokens.md +3 -3
  38. package/skills/{adia-ui-kit → adia-compose}/assets/templates/FEEDBACK.template.md +7 -7
  39. package/skills/{adia-ui-kit → adia-compose}/assets/templates/RESPONSE.template.md +6 -7
  40. package/skills/adia-compose/references/composition-traps.md +58 -0
  41. package/skills/adia-compose/references/feedback-discipline.md +20 -0
  42. package/skills/adia-compose/references/spec-to-ui-reasoning.md +158 -0
  43. package/skills/adia-data/SKILL.md +78 -0
  44. package/skills/adia-genui/SKILL.md +83 -0
  45. package/skills/adia-host/SKILL.md +119 -0
  46. package/skills/adia-llm/SKILL.md +36 -0
  47. package/skills/adia-migrate/SKILL.md +76 -0
  48. package/skills/adia-orient/SKILL.md +123 -0
  49. package/skills/adia-project/SKILL.md +83 -0
  50. package/skills/adia-shells/SKILL.md +74 -0
  51. package/skills/adia-verify/SKILL.md +43 -0
  52. package/skills/adia-verify/references/verification.md +42 -0
  53. package/commands/adia-compose.md +0 -10
  54. package/commands/adia-wire.md +0 -13
  55. package/skills/adia-ui-compose/SKILL.md +0 -57
  56. package/skills/adia-ui-data/SKILL.md +0 -62
  57. package/skills/adia-ui-factory/SKILL.md +0 -113
  58. package/skills/adia-ui-genui/SKILL.md +0 -74
  59. package/skills/adia-ui-kit/CHANGELOG.md +0 -41
  60. package/skills/adia-ui-kit/SKILL.md +0 -442
  61. package/skills/adia-ui-kit/assets/team-scaffold/archive-README.md +0 -30
  62. package/skills/adia-ui-kit/assets/team-scaffold/drafts-README.md +0 -57
  63. package/skills/adia-ui-kit/assets/team-scaffold/inbox-README.md +0 -76
  64. package/skills/adia-ui-kit/assets/team-scaffold/outbox-README.md +0 -46
  65. package/skills/adia-ui-kit/assets/team-scaffold/team-root.README.md +0 -51
  66. package/skills/adia-ui-kit/assets/team-scaffold/tickets-README.md +0 -208
  67. package/skills/adia-ui-kit/assets/team-scaffold/tickets-REGISTRY.md +0 -81
  68. package/skills/adia-ui-kit/assets/templates/AGENTS.template.md +0 -128
  69. package/skills/adia-ui-kit/assets/templates/CLAUDE.template.md +0 -1
  70. package/skills/adia-ui-kit/assets/templates/figma-make-guidelines.md +0 -90
  71. package/skills/adia-ui-kit/evals/adversarial-content-trust.json +0 -83
  72. package/skills/adia-ui-kit/evals/evals.json +0 -55
  73. package/skills/adia-ui-kit/evals/routing-corpus.json +0 -121
  74. package/skills/adia-ui-kit/evals/teach-routing-cases.json +0 -92
  75. package/skills/adia-ui-kit/references/capabilities.md +0 -245
  76. package/skills/adia-ui-kit/references/catalog-lookup.md +0 -186
  77. package/skills/adia-ui-kit/references/changelog-archive/CHANGELOG-v1.md +0 -8
  78. package/skills/adia-ui-kit/references/changelog-archive/CHANGELOG-v2.md +0 -3585
  79. package/skills/adia-ui-kit/references/changelog-archive/CHANGELOG-v3.md +0 -1899
  80. package/skills/adia-ui-kit/references/common-gotchas-consumer.md +0 -522
  81. package/skills/adia-ui-kit/references/component-literacy.md +0 -291
  82. package/skills/adia-ui-kit/references/composition.md +0 -245
  83. package/skills/adia-ui-kit/references/correction-loop.md +0 -462
  84. package/skills/adia-ui-kit/references/css-policy.md +0 -343
  85. package/skills/adia-ui-kit/references/decision-model.md +0 -158
  86. package/skills/adia-ui-kit/references/diagnostic-output.md +0 -57
  87. package/skills/adia-ui-kit/references/docs-catalog.md +0 -239
  88. package/skills/adia-ui-kit/references/exclusions.md +0 -225
  89. package/skills/adia-ui-kit/references/feedback-authoring.md +0 -466
  90. package/skills/adia-ui-kit/references/figma-make.md +0 -244
  91. package/skills/adia-ui-kit/references/flows-auth.md +0 -307
  92. package/skills/adia-ui-kit/references/flows-content.md +0 -206
  93. package/skills/adia-ui-kit/references/flows-data.md +0 -348
  94. package/skills/adia-ui-kit/references/flows-interaction.md +0 -181
  95. package/skills/adia-ui-kit/references/flows-shells.md +0 -336
  96. package/skills/adia-ui-kit/references/gap-detection.md +0 -266
  97. package/skills/adia-ui-kit/references/harness.md +0 -284
  98. package/skills/adia-ui-kit/references/loading-protocol.md +0 -406
  99. package/skills/adia-ui-kit/references/local-link.md +0 -198
  100. package/skills/adia-ui-kit/references/mcp.md +0 -401
  101. package/skills/adia-ui-kit/references/migration.md +0 -116
  102. package/skills/adia-ui-kit/references/mission.md +0 -194
  103. package/skills/adia-ui-kit/references/mode-routing.md +0 -298
  104. package/skills/adia-ui-kit/references/patterns-agent.md +0 -223
  105. package/skills/adia-ui-kit/references/patterns-data.md +0 -1066
  106. package/skills/adia-ui-kit/references/patterns-forms.md +0 -223
  107. package/skills/adia-ui-kit/references/patterns-layout.md +0 -326
  108. package/skills/adia-ui-kit/references/patterns-recipes.md +0 -1416
  109. package/skills/adia-ui-kit/references/patterns-shells.md +0 -1097
  110. package/skills/adia-ui-kit/references/patterns-traits.md +0 -259
  111. package/skills/adia-ui-kit/references/patterns-wiring.md +0 -339
  112. package/skills/adia-ui-kit/references/pev-rationale.md +0 -137
  113. package/skills/adia-ui-kit/references/reasoning-gate.md +0 -146
  114. package/skills/adia-ui-kit/references/reasoning-methodologies.md +0 -112
  115. package/skills/adia-ui-kit/references/recon.md +0 -192
  116. package/skills/adia-ui-kit/references/rendering-model.md +0 -431
  117. package/skills/adia-ui-kit/references/response-authoring.md +0 -398
  118. package/skills/adia-ui-kit/references/session-log-schema.md +0 -203
  119. package/skills/adia-ui-kit/references/session-log-template.md +0 -118
  120. package/skills/adia-ui-kit/references/setup.md +0 -652
  121. package/skills/adia-ui-kit/references/skill-hygiene.md +0 -135
  122. package/skills/adia-ui-kit/references/spec-to-ui-reasoning.md +0 -394
  123. package/skills/adia-ui-kit/references/state.md +0 -229
  124. package/skills/adia-ui-kit/references/teach-protocol.md +0 -421
  125. package/skills/adia-ui-kit/references/theme.md +0 -142
  126. package/skills/adia-ui-kit/references/version-check.md +0 -69
  127. package/skills/adia-ui-kit/scripts/audit-decision-trace.mjs +0 -198
  128. package/skills/adia-ui-kit/scripts/audit-kit-roster.mjs +0 -366
  129. package/skills/adia-ui-kit/scripts/changelog-archive.mjs +0 -126
  130. package/skills/adia-ui-kit/scripts/check-adia-versions.py +0 -404
  131. package/skills/adia-ui-kit/scripts/run-skill-evals.mjs +0 -358
  132. package/skills/adia-ui-kit/scripts/validate-session-log.mjs +0 -242
  133. package/skills/adia-ui-kit/skill.json +0 -102
  134. package/skills/adia-ui-llm/SKILL.md +0 -51
  135. package/skills/adia-ui-migrate/SKILL.md +0 -64
  136. package/skills/adia-ui-migration/CHANGELOG.md +0 -47
  137. package/skills/adia-ui-migration/SKILL.md +0 -381
  138. package/skills/adia-ui-migration/skill.json +0 -29
  139. package/skills/adia-ui-project/SKILL.md +0 -77
  140. package/skills/adia-ui-shells/SKILL.md +0 -62
  141. package/skills/adia-ui-spa/SKILL.md +0 -52
  142. package/skills/adia-ui-ssr/SKILL.md +0 -52
  143. package/skills/adia-ui-verify/SKILL.md +0 -44
  144. /package/skills/{adia-ui-kit → adia-compose}/assets/templates/FEEDBACK-OMISSIONS-DEFENSE.template.md +0 -0
@@ -1,186 +0,0 @@
1
- ---
2
- name: catalog-lookup
3
- load-when: Before composing — when matching user intent to specific AdiaUI primitives. Covers the ladder (intent to component category to specific tag), llms.txt usage, examples.html lookup, and the canonical-tag search procedure
4
- load-size-tokens: ~2,500
5
- required-for:
6
- - composition modes 1-4
7
- - pre-author bundle gate
8
- ---
9
-
10
- # §1 — Catalog Lookup (before composing)
11
-
12
- Before writing any markup, look up what exists. Using attributes that
13
- don't exist or invoking unregistered tags is the second most common
14
- failure after premature rendering.
15
-
16
- > ⚠️ **Prior-art-first rule (NON-NEGOTIABLE).** Before authoring a
17
- > novel solution for ANY UI problem, you must FIRST exhaust the
18
- > existing catalog. Concretely:
19
- >
20
- > 1. **`packages/web-components/components/`** (122 primitives). Scan
21
- > by category and by keyword. Every primitive ships a `<name>.yaml`
22
- > with `description`, `props`, `slots`, `events`, `composes`,
23
- > `keywords`, `synonyms`, and `anti_patterns` fields specifically so
24
- > you can find it by intent, not just by tag name. If your problem
25
- > is "show a loading state for a KPI card", `stat-ui[loading]` +
26
- > `skeleton-ui` already solve it (v0.6.18). If your problem is
27
- > "imperative toast", `feed-ui` + the `CustomEvent('feed')` bus
28
- > already solve it. Do not invent `<my-loading-card>` or a
29
- > re-implementation of a toast queue.
30
- > 2. **`packages/web-modules/`** (composite shells + canvas + a2ui-runtime).
31
- > Scan the four shell clusters (`shell/`, `chat/`, `editor/`,
32
- > `simple/`) and the `generative/` cluster. If your problem is
33
- > "split-pane sidebar + topbar + content scroll region", `admin-shell`
34
- > has already solved it; do not hand-roll a flex layout. If your
35
- > problem is "compose web-components from JSON", `a2ui-root` /
36
- > `registerResolver` already solve it.
37
- > 3. **Token system** (`packages/web-components/styles/tokens.css` +
38
- > `typography.css` + `prose.css`). Before introducing a new CSS
39
- > variable, check the existing ladder. `--a-canvas-{0..4}`,
40
- > `--a-body-{sm,md,lg}`, `--a-weight-{regular,medium,semibold,bold}`,
41
- > `--a-fg{,-muted,-strong}` etc. cover almost every typography +
42
- > surface need.
43
- > 4. **Traits** (`packages/web-components/traits/`, 56 traits in 9
44
- > categories). Cross-cutting behaviors (`dismissible`, `selectable`,
45
- > `resizable`, `keyboard-nav`, etc.) are encoded as traits with their
46
- > own examples + tests. If your problem maps to a trait, USE the
47
- > trait — don't re-implement the behavior inline.
48
- >
49
- > **Searching is mandatory; not finding is rare.** When the v0.6.18 cut
50
- > shipped `text-ui` size/color/weight/text-align overlays (FB-10), the
51
- > skill had been documenting those props as if they existed for two
52
- > previous versions — because consumers naturally reached for them and
53
- > the existing variant-only API was missing the obvious overlay layer.
54
- > The substrate caught up to the doc, not the other way around. That
55
- > only works if you check the doc + the substrate side-by-side. If
56
- > what you need ISN'T in the catalog, the right move is **file a
57
- > FEEDBACK ticket** (see §Team Tickets) — not invent a one-off.
58
- >
59
- > **How to search efficiently:**
60
- > - `npx adia-ui-doc <name>` — fast yaml summary for a tag you suspect exists
61
- > - `npx adia-ui-doc` (no arg) — list all 96 components
62
- > - `grep -rE "keywords:|synonyms:|description:" packages/web-components/components/*/­*.yaml | grep -i "<your intent>"`
63
- > — semantic search across the catalog
64
- > - Live site: `https://ui-kit.exe.xyz/site/components/` (browse) or
65
- > `/site/components/<name>` (deep dive)
66
- > - For modules: `ls packages/web-modules/*/`
67
-
68
- > **Where:** authoritative API in `<name>.yaml` (ships in npm). Visual
69
- > reference at `https://ui-kit.exe.xyz/site/components/<name>`. Full
70
- > URL manifest in §Docs below. If you're unsure what tools you have to
71
- > fetch a URL, prefer the local `.yaml` — it's always available.
72
-
73
- ### Where to look
74
-
75
- **External consumer (installed via npm):**
76
-
77
- ```
78
- node_modules/@adia-ai/web-components/components/<name>/
79
- <name>.yaml ← canonical API spec (props, slots, events, anti-patterns) ✓ ships
80
- <name>.a2ui.json ← A2UI JSON spec (generated) ✓ ships
81
- <name>.d.ts ← TypeScript declarations ✓ ships
82
- <name>.examples.md ← canonical usage fragments (1-3 per component) ✓ ships (v0.6.7+)
83
- <name>.test.js ← behavioral contract (read for "why does X work this way") ✓ ships
84
- <name>.examples.html ← authoring demo with full page chrome — NOT in npm
85
- → in-repo only; external consumers use .examples.md
86
-
87
- node_modules/@adia-ai/web-components/
88
- custom-elements.json ← W3C Custom Elements Manifest v2.1.0 (110 modules) ✓ ships (v0.6.7+)
89
- bin/doc.mjs ← CLI: npx adia-ai-doc <name> ✓ ships (v0.6.7+)
90
- USAGE.md ← deep usage patterns (incl. data-stream-* §6) ✓ ships
91
-
92
- node_modules/@adia-ai/web-modules/<cluster>/<name>/
93
- Clusters: shell | chat | editor | simple | runtime | theme | generative
94
- ↑ NEW v0.6.7: `generative` subpath bundles canvas-ui + a2ui-root + registerResolver
95
- ```
96
-
97
- > **Examples ship as Markdown** (v0.6.7+). Each component has a `.examples.md`
98
- > with 1-3 canonical fragments — the authoring `.examples.html` files are
99
- > still in-repo only (they have full demo-page chrome too heavy to ship).
100
- > For richer visual reference, browse `https://ui-kit.exe.xyz/site/components/<name>`.
101
-
102
- Live component docs: `https://ui-kit.exe.xyz/site/components/<name>`
103
- (e.g. `https://ui-kit.exe.xyz/site/components/button`)
104
-
105
- **Component stability — `status` badge** (since v0.6.32+):
106
-
107
- When browsing `/site/components/<name>`, a colored `<tag-ui>` badge
108
- next to the component name indicates its stability:
109
-
110
- | Badge | Variant | Meaning |
111
- |-------|---------|---------|
112
- | (no badge) | — | `status: stable` — public API; safe to use |
113
- | `beta` | `warning` | Functional, but API may still change in MINOR releases |
114
- | `experimental` | `ghost` | Early prototype; expect breaking changes |
115
- | `deprecated` | `danger` | Replacement exists — check the page's `Related` section |
116
- | `early-access` | `info` | Customer-preview tier; consult release notes before relying on it |
117
-
118
- The status is set in `<name>.yaml` (`status: <value>`) and propagated
119
- automatically through the sidecar to the docs site. All current
120
- components ship `status: stable` (the vast majority show no badge).
121
- Authoring guidance for new components: see `adia-ui-authoring` skill
122
- yaml contract.
123
-
124
- **In the AdiaUI monorepo** (`/Users/kimba/Projects/adia/gen-ui-kit`):
125
-
126
- ```
127
- packages/web-components/components/<name>/
128
- packages/web-modules/<cluster>/<name>/
129
- docs/specs/component-token-contract.md
130
- docs/specs/component-implementation-patterns.md
131
- ```
132
-
133
- ### Lookup procedure
134
-
135
- **Fastest path (v0.6.7+): use the bundled CLI.**
136
-
137
- ```bash
138
- npx adia-ui-doc <name> # yaml summary + live URL + first example
139
- npx adia-ui-doc # list all 96 components
140
- ```
141
-
142
- The CLI reads from the installed package, so it always reflects the
143
- version you're actually running.
144
-
145
- **For full detail, read the artifacts directly:**
146
-
147
- 1. **List the catalog** (external): `ls node_modules/@adia-ai/web-components/components/ | sort`
148
- Or in-repo: `ls packages/web-components/components/ | sort`
149
- 2. **Read the yaml** for any component you plan to use:
150
- ```
151
- cat node_modules/@adia-ai/web-components/components/<name>/<name>.yaml
152
- ```
153
- Key sections: `props:`, `slots:`, `events:`, `tokens:`, `anti_patterns:`
154
- 3. **Check a2ui.json** for enum values and prop types:
155
- ```
156
- cat node_modules/@adia-ai/web-components/components/<name>/<name>.a2ui.json
157
- ```
158
- 4. **For TypeScript users:** `<name>.d.ts` has the typed prop surface:
159
- ```
160
- cat node_modules/@adia-ai/web-components/components/<name>/<name>.d.ts
161
- ```
162
- 5. **For canonical markup examples** (v0.6.7+, ships in npm):
163
- ```
164
- cat node_modules/@adia-ai/web-components/components/<name>/<name>.examples.md
165
- ```
166
- 1-3 fragments per component. For richer visual reference, browse
167
- `https://ui-kit.exe.xyz/site/components/<name>`.
168
- 6. **For behavioral edge cases:** `<name>.test.js` is the authoritative
169
- spec — vitest tests document expected behavior including focus management,
170
- keyboard nav, ARIA assertions.
171
- 7. **For IDE / tool integration** (v0.6.7+): the package ships
172
- `custom-elements.json` (W3C manifest v2.1.0). VS Code LSP extensions
173
- pick this up automatically for autocomplete and type-safety.
174
-
175
- ### Co-located registrations
176
-
177
- Some elements register inside their parent `.js` (not a separate
178
- directory): `list-item-ui`, `stepper-item-ui`, `avatar-group-ui`.
179
- If a directory doesn't exist, grep `customElements.define` in the
180
- parent before assuming the element is missing.
181
-
182
- ### CSS-only components
183
-
184
- `header/`, `footer/`, `section/` ship yaml + a2ui.json only — no `.js`.
185
- They are styled by parent slot rules. Do not try to register them.
186
- ---
@@ -1,8 +0,0 @@
1
- # adia-ui-kit Changelog — v1.x archive
2
-
3
- > Historical entries rolled out of the live [`CHANGELOG.md`](../../CHANGELOG.md), which keeps only the most recent 3. Newest-first.
4
-
5
- ## 1.0.0 (2026-04-16)
6
-
7
- - Initial version
8
- - Migrated from skills/ to .claude/skills/ format