@equal-experts/kuat-react 0.13.0 → 0.13.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 (150) hide show
  1. package/agent-docs/AGENTS.md +10 -0
  2. package/agent-docs/README.md +17 -0
  3. package/agent-docs/bundle-manifest.json +63 -0
  4. package/agent-docs/components/_template.md +21 -0
  5. package/agent-docs/components/button-group.md +27 -0
  6. package/agent-docs/components/button.md +50 -0
  7. package/agent-docs/components/components.manifest.json +20 -0
  8. package/agent-docs/components/kuat-header.md +27 -0
  9. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/LOADING.md +166 -0
  10. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/foundations/accessibility.md +444 -0
  11. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/foundations/brand.md +99 -0
  12. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/foundations/content/README.md +28 -0
  13. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/foundations/content/formatting.md +93 -0
  14. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/foundations/content/numbers.md +69 -0
  15. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/foundations/content/punctuation.md +75 -0
  16. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/foundations/content/voice-and-tone.md +263 -0
  17. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/foundations/content/writing-style.md +91 -0
  18. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/foundations/design/README.md +28 -0
  19. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/foundations/design/borders.md +159 -0
  20. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/foundations/design/colours.md +173 -0
  21. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/foundations/design/design-language.md +116 -0
  22. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/foundations/design/spacing.md +130 -0
  23. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/foundations/design/typography.md +155 -0
  24. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/foundations/logo.md +151 -0
  25. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/marketing/content/README.md +26 -0
  26. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/marketing/content/blog-posts.md +33 -0
  27. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/marketing/content/marketing-content.md +65 -0
  28. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/marketing/content/seo.md +44 -0
  29. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/marketing/emails.md +74 -0
  30. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/marketing/scenarios/README.md +18 -0
  31. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/marketing/scenarios/marketing-pages.md +368 -0
  32. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/marketing/website.md +169 -0
  33. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/DEPRECATIONS.md +28 -0
  34. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/README.md +65 -0
  35. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/accessibility.md +402 -0
  36. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/component-decision-tree.md +263 -0
  37. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/component-registry.md +68 -0
  38. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/content/README.md +29 -0
  39. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/content/actions.md +51 -0
  40. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/content/confirmations.md +57 -0
  41. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/content/empty-states.md +43 -0
  42. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/content/errors.md +54 -0
  43. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/content/forms.md +74 -0
  44. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/content/product-content.md +138 -0
  45. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/design.md +207 -0
  46. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/emails.md +71 -0
  47. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/review-checklist.md +57 -0
  48. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/review-context.md +44 -0
  49. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/scenarios/README.md +82 -0
  50. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/scenarios/authentication.md +303 -0
  51. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/scenarios/dashboards.md +313 -0
  52. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/scenarios/documentation.md +333 -0
  53. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/scenarios/forms.md +361 -0
  54. package/agent-docs/external/kuat-agent-rules/kuat-docs/rules/types/web/product/technical.md +488 -0
  55. package/agent-docs/kuat-docs/rules/README.md +148 -0
  56. package/agent-docs/kuat-docs/rules/design/layouts.md +394 -0
  57. package/agent-docs/kuat-docs/rules/scenarios/README.md +83 -0
  58. package/agent-docs/kuat-docs/rules/scenarios/authentication.md +301 -0
  59. package/agent-docs/kuat-docs/rules/scenarios/dashboards.md +314 -0
  60. package/agent-docs/kuat-docs/rules/scenarios/documentation.md +333 -0
  61. package/agent-docs/kuat-docs/rules/scenarios/forms.md +359 -0
  62. package/agent-docs/kuat-docs/rules/scenarios/marketing-pages.md +367 -0
  63. package/agent-docs/manifest.json +9 -0
  64. package/agent-docs/rules/LOADING-consumer.md +27 -0
  65. package/dist/accordion.d.ts +2 -0
  66. package/dist/alert-dialog.d.ts +2 -0
  67. package/dist/badge.d.ts +3 -0
  68. package/dist/button-group.d.ts +2 -0
  69. package/dist/button.d.ts +3 -0
  70. package/dist/carousel.d.ts +2 -0
  71. package/dist/checkbox.d.ts +3 -0
  72. package/dist/components/ui/accordion/accordion.d.ts +7 -0
  73. package/dist/components/ui/accordion/index.d.ts +1 -0
  74. package/dist/components/ui/alert-dialog/alert-dialog.d.ts +20 -0
  75. package/dist/components/ui/alert-dialog/index.d.ts +1 -0
  76. package/dist/components/ui/badge/badge.d.ts +16 -0
  77. package/dist/components/ui/badge/index.d.ts +2 -0
  78. package/dist/components/ui/breadcrumb/Breadcrumb.d.ts +29 -0
  79. package/dist/components/ui/breadcrumb/breadcrumb-primitives.d.ts +19 -0
  80. package/dist/components/ui/breadcrumb/index.d.ts +4 -0
  81. package/dist/components/ui/button/button.d.ts +27 -0
  82. package/dist/components/ui/button/index.d.ts +2 -0
  83. package/dist/components/ui/button-group/button-group.d.ts +23 -0
  84. package/dist/components/ui/button-group/index.d.ts +2 -0
  85. package/dist/components/ui/carousel/carousel.d.ts +50 -0
  86. package/dist/components/ui/carousel/index.d.ts +2 -0
  87. package/dist/components/ui/checkbox/checkbox-field.d.ts +23 -0
  88. package/dist/components/ui/checkbox/checkbox.d.ts +5 -0
  89. package/dist/components/ui/checkbox/index.d.ts +4 -0
  90. package/dist/components/ui/content-card/content-card.d.ts +29 -0
  91. package/dist/components/ui/content-card/index.d.ts +2 -0
  92. package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +27 -0
  93. package/dist/components/ui/dropdown-menu/index.d.ts +1 -0
  94. package/dist/components/ui/ee-logo-icon/ee-logo-icon.d.ts +11 -0
  95. package/dist/components/ui/ee-logo-icon/index.d.ts +2 -0
  96. package/dist/components/ui/field/field.d.ts +28 -0
  97. package/dist/components/ui/field/index.d.ts +2 -0
  98. package/dist/components/ui/icon-button/icon-button.d.ts +27 -0
  99. package/dist/components/ui/icon-button/index.d.ts +2 -0
  100. package/dist/components/ui/input/index.d.ts +2 -0
  101. package/dist/components/ui/input/input.d.ts +20 -0
  102. package/dist/components/ui/kuat-carousel/index.d.ts +2 -0
  103. package/dist/components/ui/kuat-carousel/kuat-carousel.d.ts +16 -0
  104. package/dist/components/ui/kuat-header/index.d.ts +4 -0
  105. package/dist/components/ui/kuat-header/kuat-header.d.ts +16 -0
  106. package/dist/components/ui/kuat-header/kuat-header.logic.d.ts +32 -0
  107. package/dist/components/ui/kuat-header/kuat-header.types.d.ts +91 -0
  108. package/dist/components/ui/kuat-logo-lockup/index.d.ts +2 -0
  109. package/dist/components/ui/kuat-logo-lockup/kuat-logo-lockup.d.ts +17 -0
  110. package/dist/components/ui/kuat-radial-progress/index.d.ts +2 -0
  111. package/dist/components/ui/kuat-radial-progress/kuat-radial-progress.d.ts +16 -0
  112. package/dist/components/ui/radio/index.d.ts +4 -0
  113. package/dist/components/ui/radio/radio-field.d.ts +25 -0
  114. package/dist/components/ui/radio/radio.d.ts +7 -0
  115. package/dist/components/ui/select/constants.d.ts +19 -0
  116. package/dist/components/ui/select/index.d.ts +3 -0
  117. package/dist/components/ui/select/select.d.ts +53 -0
  118. package/dist/components/ui/separator/index.d.ts +2 -0
  119. package/dist/components/ui/separator/separator.d.ts +9 -0
  120. package/dist/components/ui/sonner/index.d.ts +4 -0
  121. package/dist/components/ui/sonner/sonner-content.d.ts +15 -0
  122. package/dist/components/ui/sonner/sonner.d.ts +21 -0
  123. package/dist/components/ui/switch/index.d.ts +4 -0
  124. package/dist/components/ui/switch/switch-field.d.ts +23 -0
  125. package/dist/components/ui/switch/switch.d.ts +5 -0
  126. package/dist/components/ui/textarea/index.d.ts +2 -0
  127. package/dist/components/ui/textarea/textarea.d.ts +9 -0
  128. package/dist/components/ui/toggle/constants.d.ts +4 -0
  129. package/dist/components/ui/toggle/index.d.ts +6 -0
  130. package/dist/components/ui/toggle/toggle-group.d.ts +11 -0
  131. package/dist/components/ui/toggle/toggle.d.ts +9 -0
  132. package/dist/field.d.ts +3 -0
  133. package/dist/icon-button.d.ts +3 -0
  134. package/dist/index.d.ts +47 -0
  135. package/dist/input.d.ts +3 -0
  136. package/dist/kuat-carousel.d.ts +2 -0
  137. package/dist/kuat-radial-progress.d.ts +7 -0
  138. package/dist/lib/react-node-compat.d.ts +7 -0
  139. package/dist/lib/utils.d.ts +3 -0
  140. package/dist/radio.d.ts +3 -0
  141. package/dist/select.d.ts +3 -0
  142. package/dist/sonner.d.ts +1 -0
  143. package/dist/style.css +1 -1
  144. package/dist/style.css.d.ts +2 -0
  145. package/dist/switch.d.ts +1 -0
  146. package/dist/test/setup.d.ts +1 -0
  147. package/dist/textarea.d.ts +3 -0
  148. package/dist/toggle-group.d.ts +3 -0
  149. package/dist/toggle.d.ts +3 -0
  150. package/package.json +4 -2
@@ -0,0 +1,10 @@
1
+ # Kuat — consumer agent entry
2
+
3
+ Rules for this install live under `agent-docs/` in `@equal-experts/kuat-core`, `@equal-experts/kuat-react`, and `@equal-experts/kuat-vue`.
4
+
5
+ 1. Run `ensure-rules.sh` from kuat-agent-docs skills (symlinked) — expect `RULES_SOURCE=package` when cwd has node_modules.
6
+ 2. Load `agent-docs/rules/LOADING-consumer.md`.
7
+ 3. Load component guides via `agent-docs/components.manifest.json`.
8
+ 4. Skills: `kuat-review`, `kuat-create` from [kuat-agent-docs](https://github.com/equalexperts/kuat-agent-docs).
9
+
10
+ **Version:** 0.13.1 · **Rules snapshot:** 67fc215fe87c
@@ -0,0 +1,17 @@
1
+ # Kuat Consumer Agent Docs
2
+
3
+ Curated agent docs bundled with `@equal-experts/kuat-core`, `@equal-experts/kuat-react`, and `@equal-experts/kuat-vue`.
4
+
5
+ ## Start here
6
+
7
+ - [AGENTS.md](./AGENTS.md)
8
+ - [rules/LOADING-consumer.md](./rules/LOADING-consumer.md)
9
+ - [components/components.manifest.json](./components/components.manifest.json)
10
+
11
+ ## Regenerate
12
+
13
+ ```bash
14
+ node scripts/agent-docs/bundle-for-core.mjs
15
+ ```
16
+
17
+ Built against upstream ref: `67fc215fe87c`
@@ -0,0 +1,63 @@
1
+ {
2
+ "outputDir": "packages/kuat-core/agent-docs",
3
+ "include": [
4
+ {
5
+ "source": "kuat-docs/rules/README.md",
6
+ "target": "kuat-docs/rules/README.md"
7
+ },
8
+ {
9
+ "source": "kuat-docs/rules/design/layouts.md",
10
+ "target": "kuat-docs/rules/design/layouts.md"
11
+ },
12
+ {
13
+ "source": "kuat-docs/rules/scenarios",
14
+ "target": "kuat-docs/rules/scenarios"
15
+ },
16
+ {
17
+ "source": "kuat-docs/components",
18
+ "target": "components"
19
+ },
20
+ {
21
+ "source": "external/kuat-agent-rules/kuat-docs/rules/foundations/brand.md",
22
+ "target": "external/kuat-agent-rules/kuat-docs/rules/foundations/brand.md"
23
+ },
24
+ {
25
+ "source": "external/kuat-agent-rules/kuat-docs/rules/foundations/accessibility.md",
26
+ "target": "external/kuat-agent-rules/kuat-docs/rules/foundations/accessibility.md"
27
+ },
28
+ {
29
+ "source": "external/kuat-agent-rules/kuat-docs/rules/LOADING.md",
30
+ "target": "external/kuat-agent-rules/kuat-docs/rules/LOADING.md"
31
+ },
32
+ {
33
+ "source": "external/kuat-agent-rules/kuat-docs/rules/foundations/design",
34
+ "target": "external/kuat-agent-rules/kuat-docs/rules/foundations/design"
35
+ },
36
+ {
37
+ "source": "external/kuat-agent-rules/kuat-docs/rules/foundations/content",
38
+ "target": "external/kuat-agent-rules/kuat-docs/rules/foundations/content"
39
+ },
40
+ {
41
+ "source": "external/kuat-agent-rules/kuat-docs/rules/foundations/logo.md",
42
+ "target": "external/kuat-agent-rules/kuat-docs/rules/foundations/logo.md"
43
+ },
44
+ {
45
+ "source": "external/kuat-agent-rules/kuat-docs/rules/types/web/product",
46
+ "target": "external/kuat-agent-rules/kuat-docs/rules/types/web/product"
47
+ },
48
+ {
49
+ "source": "external/kuat-agent-rules/kuat-docs/rules/types/web/marketing",
50
+ "target": "external/kuat-agent-rules/kuat-docs/rules/types/web/marketing"
51
+ }
52
+ ],
53
+ "denyPathSegments": [
54
+ ".cursor",
55
+ "contribution-docs"
56
+ ],
57
+ "denyFilenames": [
58
+ "CONTRIBUTING.md",
59
+ "AGENTS.md",
60
+ ".cursorrules",
61
+ "PUBLISHING.md"
62
+ ]
63
+ }
@@ -0,0 +1,21 @@
1
+ # Component name (`kuat:or-shadcn:id`)
2
+
3
+ ## Overview
4
+
5
+ ## When to use
6
+
7
+ ## When not to use
8
+
9
+ ## Variants
10
+
11
+ ## States
12
+
13
+ ## Content guidance
14
+
15
+ ## Behaviour
16
+
17
+ ## Accessibility
18
+
19
+ ## API
20
+
21
+ ## Related components
@@ -0,0 +1,27 @@
1
+ # ButtonGroup (`kuat:button-group`)
2
+
3
+ ## Overview
4
+
5
+ Groups related buttons with consistent spacing and optional text labels. Exported from `@equal-experts/kuat-react` / `@equal-experts/kuat-vue`.
6
+
7
+ ## When to use
8
+
9
+ - Segmented controls, toolbar groups, related actions shown together
10
+
11
+ ## When not to use
12
+
13
+ - Single primary action → `shadcn:button` alone
14
+ - Exclusive selection across many options → `RadioGroup` or tabs
15
+
16
+ ## Accessibility
17
+
18
+ - Ensure each child button remains focusable
19
+ - Provide a group label when the set has a shared purpose (`aria-label` on group or visible legend)
20
+
21
+ ## API
22
+
23
+ Import from `@equal-experts/kuat-react` (or vue). Compose with shadcn `Button` children. See Storybook for current props.
24
+
25
+ ## Related components
26
+
27
+ - `shadcn:button`
@@ -0,0 +1,50 @@
1
+ # Button (`shadcn:button`)
2
+
3
+ ## Overview
4
+
5
+ Primary action control for forms, dialogs, and toolbars. In Kuat apps, use the **shadcn Button** installed in your app (`@/components/ui/button`), themed by `@equal-experts/kuat-core` CSS variables.
6
+
7
+ ## When to use
8
+
9
+ - Submitting forms, confirming dialogs, navigation CTAs
10
+ - One clear primary action per section (see upstream form scenarios)
11
+
12
+ ## When not to use
13
+
14
+ - Navigation to another route → prefer `<Link>` styled as needed
15
+ - Toggle on/off state → `Switch` or `Toggle`
16
+ - Group of related exclusive options → `ButtonGroup` (`kuat:button-group`)
17
+
18
+ ## Variants
19
+
20
+ | Variant | Use |
21
+ |---------|-----|
22
+ | `default` | Primary action |
23
+ | `destructive` | Irreversible or dangerous actions |
24
+ | `outline` / `ghost` | Secondary or cancel |
25
+ | `secondary` | Alternative emphasis |
26
+ | `link` | Inline text actions |
27
+
28
+ ## States
29
+
30
+ - **Disabled:** use `disabled` or `aria-disabled` with visible reason; do not disable submit on forms (validate on submit per form scenario rules)
31
+ - **Loading:** show busy state; keep label or `aria-busy`
32
+
33
+ ## Content guidance
34
+
35
+ See upstream `actions.md` for label copy. Verb-driven, 1–3 words, sentence case.
36
+
37
+ ## Accessibility
38
+
39
+ - Native `<button>` or `asChild` with appropriate role
40
+ - Visible focus ring (`ring` tokens)
41
+ - Icon-only buttons require `aria-label`
42
+
43
+ ## API
44
+
45
+ Install via `npx shadcn@latest add button`. Props follow shadcn/Radix: `variant`, `size`, `className`, `asChild`.
46
+
47
+ ## Related components
48
+
49
+ - `kuat:button-group` — grouped actions
50
+ - Form scenarios — placement and validation timing
@@ -0,0 +1,20 @@
1
+ {
2
+ "version": 1,
3
+ "components": {
4
+ "shadcn:button": {
5
+ "slug": "button",
6
+ "path": "components/button.md",
7
+ "sources": ["shadcn:button", "@equal-experts/kuat-core"]
8
+ },
9
+ "kuat:button-group": {
10
+ "slug": "button-group",
11
+ "path": "components/button-group.md",
12
+ "sources": ["@equal-experts/kuat-react", "@equal-experts/kuat-vue"]
13
+ },
14
+ "kuat:kuat-header": {
15
+ "slug": "kuat-header",
16
+ "path": "components/kuat-header.md",
17
+ "sources": ["@equal-experts/kuat-react", "@equal-experts/kuat-vue"]
18
+ }
19
+ }
20
+ }
@@ -0,0 +1,27 @@
1
+ # KuatHeader (`kuat:kuat-header`)
2
+
3
+ ## Overview
4
+
5
+ Application header block with logo and navigation slots. Kuat block — use when you need the standard EE product chrome.
6
+
7
+ ## When to use
8
+
9
+ - Product apps using dark horizontal navigation per product design rules
10
+
11
+ ## When not to use
12
+
13
+ - Marketing pages → marketing layout rules
14
+ - Fully custom chrome → compose lower-level primitives
15
+
16
+ ## Accessibility
17
+
18
+ - Landmark `header` with clear structure
19
+ - Logo has appropriate alt text; nav uses list semantics
20
+
21
+ ## API
22
+
23
+ Import from `@equal-experts/kuat-react` / `kuat-vue`. See Storybook and package exports for slots and props.
24
+
25
+ ## Related components
26
+
27
+ - Product [design.md](../rules/design.md) — navigation patterns
@@ -0,0 +1,166 @@
1
+ # Agent Rules Loading Index
2
+
3
+ **Canonical reference** for which rule files to load for each task type. Use this index to resolve "task X" → exact list of files. All paths are relative to `kuat-docs/rules/`.
4
+
5
+ ---
6
+
7
+ ## Intent (review | create)
8
+
9
+ Determine intent before loading type rules. If unclear, ask: *Are you reviewing existing work or creating something new?*
10
+
11
+ | Intent | Load first | Then |
12
+ |--------|------------|------|
13
+ | **review** | Skill [kuat-review](../../skills/kuat-review/SKILL.md) — run [ensure-rules](../../skills/scripts/ensure-rules.sh) | foundations → [roles/brand-reviewer.md](./roles/brand-reviewer.md) → type rules (see [Review load notes](#review-load-notes)) |
14
+ | **create** | Skill [kuat-create](../../skills/kuat-create/SKILL.md) — run [ensure-rules](../../skills/scripts/ensure-rules.sh) | foundations → create role card if any → type rules → scenarios/examples as needed |
15
+
16
+ ---
17
+
18
+ ## Load order
19
+
20
+ 1. **Determine intent** (review | create) and load the matching [skill](../../skills/) (`kuat-review` or `kuat-create`); resolve rules via [skills/shared/resolve-rules.md](../../skills/shared/resolve-rules.md).
21
+ 2. **Always load foundations** (see [Foundations](#foundations) below).
22
+ 3. **Load the role card** for the intent: [brand-reviewer](./roles/brand-reviewer.md) for review; task-specific role for create when listed in [Role cards](#role-cards).
23
+ 4. **Then load type-specific rules** for the task (see [Task → rules](#task--rules)).
24
+ 5. **Optionally** add scenarios or examples when relevant (see [Optional paths](#optional-paths)).
25
+
26
+ **Platform isolation:** Type-specific rules must not reference other types. Foundations are shared; types only reference foundations.
27
+
28
+ ## Entry points
29
+
30
+ | Entry | Audience | Start | Index file |
31
+ |-------|----------|-------|------------|
32
+ | **Org** | Brand, slides, all platforms | [AGENTS.md](../../AGENTS.md) | This file (`LOADING.md`) |
33
+ | **Library** | `kuat-mono` contributors | Mono `AGENTS.md` | This file + mono `kuat-docs/LOADING.md` overlay |
34
+ | **App** | npm consumers | `node_modules/@equal-experts/kuat-react/agent-docs/AGENTS.md` | `agent-docs/rules/LOADING-consumer.md` (generated on publish) |
35
+
36
+ Full architecture: [setup/consumption-architecture.md](../setup/consumption-architecture.md).
37
+
38
+ Run [ensure-rules.sh](../../skills/scripts/ensure-rules.sh) — emits `RULES_SOURCE=git|package` and optional `OVERLAY_DIR`.
39
+
40
+ ## Cross-repo consumption contract
41
+
42
+ When these rules are used from a consumer implementation repo (for example `kuat-mono`) or via npm packages:
43
+
44
+ 1. Resolve rules: git `kuat-agent-docs` or bundled `agent-docs` in `@equal-experts/kuat-react` / `kuat-vue`.
45
+ 2. Load local implementation overlay second when `KUAT_RULES_OVERLAY_PATH` is set.
46
+
47
+ Conflict policy:
48
+ - Design/structure/content guidance -> upstream rules or bundled snapshot at package version.
49
+ - Implementation/API/testing/build -> local implementation repo or package component docs.
50
+ - If implementation behavior remains ambiguous, trust runtime evidence in this order: tests, Storybook, package exports, source code.
51
+
52
+ Ownership: [setup/ownership-matrix.md](../setup/ownership-matrix.md).
53
+
54
+ ---
55
+
56
+ ## Foundations
57
+
58
+ **Path:** `foundations/`
59
+
60
+ **Shared (top level):**
61
+ | File | Description |
62
+ |------|-------------|
63
+ | `foundations/brand.md` | Brand principles and identity |
64
+ | `foundations/logo.md` | Logo variants, sizing, placement |
65
+ | `foundations/accessibility.md` | Accessibility principles and guidelines |
66
+
67
+ **Design** (`foundations/design/`):
68
+ | File | Description |
69
+ |------|-------------|
70
+ | `foundations/design/design-language.md` | Design principles |
71
+ | `foundations/design/colours.md` | Brand color palette |
72
+ | `foundations/design/typography.md` | Fonts and type scale |
73
+ | `foundations/design/spacing.md` | Spacing system |
74
+ | `foundations/design/borders.md` | Border philosophy |
75
+
76
+ **Content** (`foundations/content/`):
77
+ | File | Description |
78
+ |------|-------------|
79
+ | `foundations/content/voice-and-tone.md` | Voice, tone, audience, quality checklist |
80
+ | `foundations/content/writing-style.md` | Active voice, plain language, conciseness |
81
+ | `foundations/content/formatting.md` | Capitalisation, headings, links, lists |
82
+ | `foundations/content/numbers.md` | Dates, times, currency, units |
83
+ | `foundations/content/punctuation.md` | Punctuation conventions |
84
+
85
+ **When to load:** For minimal context, load only the foundation file(s) relevant to the task. For standard or full context, load all of `foundations/` (shared + design + content as needed, ~800+ lines).
86
+
87
+ ---
88
+
89
+ ## Role cards
90
+
91
+ **Path:** `roles/`
92
+
93
+ Load after foundations (or inject as the first instruction block). Task → role mapping: [roles/README.md](./roles/README.md).
94
+
95
+ | Intent | Role card |
96
+ |--------|-----------|
97
+ | **review** (all task types) | [roles/brand-reviewer.md](./roles/brand-reviewer.md) |
98
+
99
+ | Task type (create) | Role card |
100
+ |--------------------|-----------|
101
+ | infographics | [roles/technical-illustrator.md](./roles/technical-illustrator.md) |
102
+ | icons | [roles/icon-designer.md](./roles/icon-designer.md) |
103
+
104
+ ---
105
+
106
+ ## Task → rules
107
+
108
+ | Task type | Required foundations | Required type-specific | Notes |
109
+ |-----------|----------------------|------------------------|--------|
110
+ | **slides** | All foundations (or: brand, logo, design, content) | `types/slides/` | Full rule set: brand-compliance, styling, layouts, content, imagery-and-diagrams, data, checklist; scenarios when deck type is known. |
111
+ | **photography** | brand (or all foundations) | `types/photography/` | Full rule set: principles, diversity-inclusion, style-and-sources, quality-validation. |
112
+ | **icons** | brand, design/colours (or all foundations) | `types/graphics/icons.md` | Single file. |
113
+ | **illustrations** | brand, design/colours, design/typography (or all foundations) | `types/graphics/illustrations.md` | Single file. |
114
+ | **infographics** | brand, design/colours, design/typography, design/spacing (or all foundations) | `types/graphics/infographics.md` | Single file. |
115
+ | **charts_data** | design/colours, design/typography (or all foundations) | `types/charts-data/` | Placeholder/skeleton; has minimal chart-type guidance. |
116
+ | **web_marketing** | All foundations | `types/web/marketing/` | Include scenarios when designing specific marketing page types; content in `types/web/marketing/content/`. |
117
+ | **web_product** | All foundations | `types/web/product/` | Include scenarios for docs, forms, dashboards, auth; content in `types/web/product/content/`; include examples when implementing in React/Vue/CSS. |
118
+
119
+ ---
120
+
121
+ ## Review load notes
122
+
123
+ When intent is **review**, use these load deltas (in addition to skill [kuat-review](../../skills/kuat-review/SKILL.md)):
124
+
125
+ | Task type | Load | Skip |
126
+ |-----------|------|------|
127
+ | **slides** | All `types/slides/` core files + [checklist.md](./types/slides/checklist.md); scenario if deck type known | — |
128
+ | **web_product** | [design.md](./types/web/product/design.md), [accessibility.md](./types/web/product/accessibility.md), [component-decision-tree.md](./types/web/product/component-decision-tree.md), [review-context.md](./types/web/product/review-context.md), [review-checklist.md](./types/web/product/review-checklist.md); relevant scenario if flow type known | `types/web/product/examples/` |
129
+ | **Others** | Foundations + type README + any validation checklist (e.g. photography `quality-validation.md`) | Implementation examples unless reviewing code |
130
+
131
+ ---
132
+
133
+ ## Optional paths
134
+
135
+ | Path | When to include |
136
+ |------|------------------|
137
+ | `types/slides/scenarios/` | Deck type known (sales, knowledge sharing, case study, reporting). |
138
+ | `types/photography/` | Selecting or reviewing slide photography beyond placement rules. |
139
+ | `types/charts-data/` | Building or restyling complex charts for slides. |
140
+ | `types/web/marketing/scenarios/` | Task involves specific marketing page types (see scenarios README). |
141
+ | `types/web/marketing/content/` | Task involves marketing copy, blog, or SEO. |
142
+ | `types/web/product/scenarios/` | Task involves documentation pages, forms, dashboards, or authentication flows. |
143
+ | `types/web/product/content/` | Task involves product UX writing (actions, errors, forms, etc.). |
144
+ | `types/web/product/examples/` | **Create only:** implementing web product UI in React, Vue, or vanilla CSS. **Do not load for review.** Prefer component IDs + package/overlay docs (see [DEPRECATIONS.md](./types/web/product/DEPRECATIONS.md)). |
145
+ | Component guides (`components/{slug}.md`) | Artifact or scenario cites a component ID ([component-registry.md](./types/web/product/component-registry.md)). Resolve via `COMPONENT_MANIFEST` from package `agent-docs/` or `KUAT_RULES_OVERLAY_PATH`. Load on demand, not the full catalog. |
146
+
147
+ ---
148
+
149
+ ## Context size reference
150
+
151
+ | Level | What to load | Approx. size |
152
+ |-------|----------------|--------------|
153
+ | Minimal | Single foundation file (e.g. `foundations/design/colours.md`) | ~100 lines |
154
+ | Standard | All `foundations/` | ~800 lines |
155
+ | Full (web product) | `foundations/` + `types/web/product/` | ~2000 lines |
156
+ | Full (web product + examples) | Above + `types/web/product/examples/` | ~3500 lines |
157
+
158
+ ---
159
+
160
+ ## Related
161
+
162
+ - [skills/](../../skills/) – Review and create skills (orchestration)
163
+ - [workflows/](./workflows/) – Pointer to skills (legacy path)
164
+ - [rules/README.md](./README.md) – Structure and overview
165
+ - [AGENTS.md](../../AGENTS.md) – Agent entry point and behaviour guidelines
166
+ - [setup/integration.md](../../setup/integration.md) – IDE integration