agent-design-skills 0.0.0-stage → 1.0.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 (34) hide show
  1. package/LICENSE +0 -0
  2. package/README.md +211 -2
  3. package/dist/index.js +475 -0
  4. package/package.json +65 -6
  5. package/registry/archetypes/bento-modular-system.md +102 -0
  6. package/registry/archetypes/civic-govtech-accessible.md +102 -0
  7. package/registry/archetypes/clinical-biotech-precision.md +102 -0
  8. package/registry/archetypes/dark-obsidian-technical.md +102 -0
  9. package/registry/archetypes/editorial-serif-paper.md +102 -0
  10. package/registry/archetypes/high-trust-fintech-clarity.md +102 -0
  11. package/registry/archetypes/japanese-minimal-zen.md +102 -0
  12. package/registry/archetypes/kinetic-industrial-mono.md +102 -0
  13. package/registry/archetypes/neo-brutalism.md +102 -0
  14. package/registry/archetypes/playful-clay-consumer.md +102 -0
  15. package/registry/archetypes/quiet-luxury-atelier.md +102 -0
  16. package/registry/archetypes/retro-tactile-analog.md +102 -0
  17. package/registry/archetypes/scandinavian-warm-minimal.md +102 -0
  18. package/registry/archetypes/spatial-glass-visionos.md +102 -0
  19. package/registry/archetypes/swiss-typographic-grid.md +102 -0
  20. package/registry/archetypes/vaporwave-crt-terminal.md +102 -0
  21. package/registry/archetypes/warm-artisan-craft.md +102 -0
  22. package/registry/archetypes/y2k-acid-cyber.md +102 -0
  23. package/registry/core/00-workflow-and-scope.md +55 -0
  24. package/registry/core/01-override-protocol.md +65 -0
  25. package/registry/core/02-anti-slop-firewall.md +46 -0
  26. package/registry/core/03-cross-page-unity.md +81 -0
  27. package/registry/core/04-ux-and-ergonomics.md +68 -0
  28. package/registry/core/05-voice-and-copy.md +61 -0
  29. package/registry/core/06-iteration-discipline.md +58 -0
  30. package/registry/registry.json +323 -0
  31. package/registry/starter-kits/dashboard/template.html +667 -0
  32. package/registry/starter-kits/data-tool/template.html +435 -0
  33. package/registry/starter-kits/landing-waitlist/template.html +425 -0
  34. package/registry/starter-kits/mobile-app/template.html +410 -0
package/LICENSE ADDED
File without changes
package/README.md CHANGED
@@ -1,3 +1,212 @@
1
- # Temporary Holding Version
1
+ # agent-design-skills (v4.2)
2
+
3
+ > **Eliminate AI UI Slop.** Enforce cross-page geometric unity, copy honesty, and iteration discipline across AI coding agents.
4
+
5
+ [![Version](https://img.shields.io/badge/version-4.2.0-blue.svg)](https://github.com/agent-design-skills)
6
+ [![License: MIT](https://img.shields.io/badge/License-MIT-emerald.svg)](LICENSE)
7
+ [![Zero-Slop Certified](https://img.shields.io/badge/Anti--Slop-Enforced-indigo.svg)](evals/rubric.md)
8
+
9
+ ---
10
+
11
+ ## The AI UI Convergence Crisis
12
+
13
+ Left to their own devices, LLMs generate virtually indistinguishable user interfaces:
14
+ - **The Same Purple-to-Blue Gradients:** `linear-gradient(135deg, #6366f1, #a855f7)` plastered onto every call-to-action.
15
+ - **The Same 3 Equal-Width KPI Cards:** Three identical boxes across the top (`250K / sec`, `< 48 ms`, `SOC2 Compliant`), confusing landing-page marketing claims with functional workspace consoles.
16
+ - **The Same Font Monoculture:** Every AI defaults to `Inter`, `Roboto`, or `Plus Jakarta Sans`, erasing brand personality.
17
+ - **Low-Contrast Grey Text:** `oklch(0.5 0 0)` or `#6b7280` that fails WCAG accessibility on dark canvas backgrounds.
18
+ - **Cross-Page Styling Drift:** Generating Page 2 after Page 1 causes the agent to hallucinate new corner radiuses, new button paddings, and new colors, destroying UI coherence.
19
+ - **Speculative Feature Creep:** Agents routinely inject unprompted dark mode toggles, notification bells with fake unread badges, and search bars when not requested.
20
+
21
+ `agent-design-skills` solves this by injecting an **enforceable design governance layer** directly into your AI agent's prompt pipeline, pairing a **compressed (<1,500 token) Always-On Core Rule** with **deep on-demand architectural references**, token-wired starter kits, and a static analysis linter.
22
+
23
+ ---
24
+
25
+ ## Architectural Highlights (v4.2)
26
+
27
+ ### 1. Two-Tier Context Routing
28
+ - **Tier 1 (Always-On Core Rule):** Under 1,500 tokens. Loaded on every single inference pass. Enforces the Anti-Slop Firewall, 5 mandatory UI states, sentence case casing, concentric corner math, and the active design token contract.
29
+ - **Tier 2 (On-Demand Deep Skills):** In modular mode, deep architectural modules (`00-contract-governance.md` through `06-component-recipes.md`) and the selected archetype specification are placed in `.agent/skills/design-system/references/` (or Cursor `.mdc` topic rules) and dynamically invoked only when needed.
30
+
31
+ ### 2. Smart Non-Destructive `DESIGN.md` Merge
32
+ Re-running the CLI compiler never wipes out your ongoing work:
33
+ - **Sections 0–4** (Creative Direction, Token Manifest, Archetype DNA, Voice, State Budgets) are refreshed to reflect newly compiled configurations.
34
+ - **Sections 5–8** (`Component Inventory`, `Active Revision Passes`, `Intentional Local Exceptions`, and `Polish Backlog`) are **cleanly preserved** from your existing `DESIGN.md`.
35
+
36
+ ### 3. Strict Scope Lock
37
+ The Always-On Core Rule forbids agents from adding unrequested UI clutter. No speculative notification bells, no decorative status dots, no fake compliance claims, and no unprompted dark mode toggles.
38
+
39
+ ### 4. Mathematical Geometric Unity
40
+ - **Concentric Corner Math:** Outer and inner borders strictly observe:
41
+ $$\text{Radius}_{\text{inner}} = \max(0\text{px}, \text{Radius}_{\text{outer}} - \text{Padding})$$
42
+ - **3-Step Vertical Section Rhythm:** Standardized clamp values (`--section-py-tight`, `--section-py-normal`, `--section-py-breathing`) eliminate arbitrary margin guessing.
43
+ - **True OKLCH Color Space:** Fully accessible surfaces with verified contrast ($\ge 7:1$ AAA for primary text, $\ge 4.5:1$ AA for muted text).
44
+
45
+ ---
46
+
47
+ ## Quickstart
48
+
49
+ ### Interactive Setup Wizard
50
+ Run in any project root:
51
+ ```bash
52
+ npx agent-design-skills
53
+ ```
54
+ The interactive wizard guides you through selecting:
55
+ 1. Target AI Agent platform (Antigravity, Cursor, Claude Code, Windsurf, Generic Web)
56
+ 2. Frontend Framework (Tailwind CSS v4, Plain CSS / HTML, CSS Modules)
57
+ 3. Archetype feeling or family (18 canonical archetypes)
58
+ 4. Primary font pairing (curated with zero `Inter`/`Roboto` defaults)
59
+ 5. Context mode (`modular` multi-file skill or `single` compiled rule)
60
+
61
+ ### Express `--fast` Mode
62
+ Scaffold a complete, production-ready workspace in seconds with pre-baked starter kits:
63
+ ```bash
64
+ # Dashboard / Data Console
65
+ npx agent-design-skills --fast --starter dashboard
66
+
67
+ # High-Conversion Landing Page
68
+ npx agent-design-skills --fast --starter landing-waitlist
69
+
70
+ # Mobile App Interface
71
+ npx agent-design-skills --fast --starter mobile-app
72
+
73
+ # Complex Data & Analytics Tool
74
+ npx agent-design-skills --fast --starter data-tool
75
+ ```
76
+
77
+ ---
78
+
79
+ ## CLI Command Reference
80
+
81
+ ### `init`
82
+ Compile and scaffold the design governance layer.
83
+ ```bash
84
+ npx agent-design-skills init [options]
85
+ ```
86
+ | Flag | Description | Options |
87
+ | :--- | :--- | :--- |
88
+ | `-a, --agent <type>` | Target AI agent platform | `antigravity`, `cursor`, `claude`, `windsurf`, `generic` |
89
+ | `-f, --framework <type>` | CSS/styling framework | `tailwind-v4`, `plain-css`, `raw-html` |
90
+ | `-t, --archetype <id>` | Canonical archetype ID | Any of the 18 archetype IDs |
91
+ | `-s, --starter <id>` | Pre-baked starter kit | `dashboard`, `landing-waitlist`, `mobile-app`, `data-tool` |
92
+ | `--fast` | Express mode using starter defaults | — |
93
+ | `--mode <type>` | Architecture context mode | `modular` (Tier 1 + Tier 2), `single` (combined) |
94
+ | `-y, --yes` | Skip prompts and accept defaults | — |
95
+
96
+ ### `lint`
97
+ Run static analysis on your project templates and HTML/CSS to catch AI slop and token violations before committing or merging.
98
+ ```bash
99
+ npx agent-design-skills lint [path]
100
+ ```
101
+ Checks performed:
102
+ - [x] Zero raw hex codes (`#111827`, `#6366f1`) or inline `oklch(...)` literals in templates
103
+ - [x] Zero prohibited purple-to-blue linear gradients
104
+ - [x] Zero 3-equal-card KPI rows in workspace views
105
+ - [x] Zero static marketing/compliance claims in application consoles
106
+ - [x] Zero decorative pill chips on section headers
107
+ - [x] Zero fake colored status dots in footers
108
+ - [x] Enforcement of sentence case casing on buttons and headings
109
+ - [x] Concentric corner radius mathematical alignment
110
+
111
+ ### `freeze` & `unfreeze`
112
+ Lock your design contract to protect against model hallucinations during long coding sessions:
113
+ ```bash
114
+ # Lock the brief against unsolicited modifications
115
+ npx agent-design-skills freeze
116
+
117
+ # Unlock the brief for active redesign passes
118
+ npx agent-design-skills unfreeze
119
+ ```
120
+
121
+ ---
122
+
123
+ ## The 18 Canonical Archetypes
124
+
125
+ All archetypes feature de-converged font pairings (zero `Inter`, `Roboto`, or `Plus Jakarta Sans`) and hand-tuned OKLCH palettes:
126
+
127
+ ### Family A: Technical & Precision
128
+ | Archetype ID | Theme | Key Fonts | Aesthetic Profile |
129
+ | :--- | :--- | :--- | :--- |
130
+ | `dark-obsidian-technical` | Dark | Geist / Geist Mono | Sub-hairline borders, specular highlights, dense data tables |
131
+ | `swiss-typographic-grid` | Light | Cabinet Grotesk / Space Grotesk | Pure 12-col mathematical grid, exposed 1px borders, zero radius |
132
+ | `kinetic-industrial-mono` | Dark | JetBrains Mono / IBM Plex Sans | High-density telemetry, amber accents, tabular data readouts |
133
+ | `bento-modular-system` | Adaptive | Satoshi / General Sans | Asymmetric 12-col bento cells, subtle inner borders, clean cards |
134
+ | `spatial-glass-visionos` | Dark | Outfit / DM Sans | Translucent optical blur, specular rim lighting, floating layers |
135
+
136
+ ### Family B: Editorial, Luxury & Organic
137
+ | Archetype ID | Theme | Key Fonts | Aesthetic Profile |
138
+ | :--- | :--- | :--- | :--- |
139
+ | `editorial-warm-serif` | Light/Warm | Fraunces / Newsreader / Plus Sans | Rich literary rhythm, warm alabaster canvas, refined serif titles |
140
+ | `quiet-luxury-atelier` | Light/Warm | Cormorant Garamond / Instrument Serif | Extreme whitespace, champagne neutral surfaces, ultra-minimal |
141
+ | `warm-artisan-craft` | Light/Earthy | Fraunces / Cabinet Grotesk | Terracotta & sage accents, linen texture, warm organic clay tones |
142
+ | `japanese-minimal-zen` | Light/Mist | Noto Serif / Work Sans | Ma negative space, quiet asymmetric balance, washi mist surfaces |
143
+ | `scandinavian-warm-minimal`| Light | Familjen Grotesk / Source Serif 4 | Oat/birch canvas, soft rounded edges, understated spruce accents |
144
+
145
+ ### Family C: Expressive, Tactile & Neo-Retro
146
+ | Archetype ID | Theme | Key Fonts | Aesthetic Profile |
147
+ | :--- | :--- | :--- | :--- |
148
+ | `neo-brutalist-clean` | Light/Punchy | Syne / Space Grotesk | High-contrast 2px ink borders, unblurred offset drop shadows |
149
+ | `retro-tactile-analog` | Adaptive | Space Mono / DM Sans | Physical bevels, recessed display slots, Teenage Engineering vibe |
150
+ | `y2k-acid-cyber` | Dark | VT323 / Syne Mono | Pitch black canvas, electric chartreuse accents, raw 1px neon borders |
151
+ | `playful-clay-consumer` | Light | Bricolage Grotesque / Plus Sans | Tactile dual-layer shadows, friendly rounded pills, warm microcopy |
152
+ | `vaporwave-crt-terminal` | Dark | VT323 / Fira Code | Deep indigo void, phosphorescent cyan & magenta, scanline overlay |
153
+
154
+ ### Family D: Domain-Specialized
155
+ | Archetype ID | Theme | Key Fonts | Aesthetic Profile |
156
+ | :--- | :--- | :--- | :--- |
157
+ | `high-trust-fintech-clarity`| Light | Sora / Public Sans | High-contrast enterprise navy canvas, tabular numbers, clear variance |
158
+ | `clinical-biotech-precision`| Light | Geist / Space Mono | Sterile lab white, cold cyan indicators, dense multi-well telemetry |
159
+ | `civic-govtech-accessible` | Light | Atkinson Hyperlegible / DM Sans | Ultra-accessible AAA contrast, 3px visible focus rings, clear forms |
160
+
161
+ ---
162
+
163
+ ## The 4 Pre-Baked Starter Kits
164
+
165
+ Each starter kit provides a self-contained, token-wired HTML/CSS template implementing all 5 mandatory UI states, realistic edge case data, and 100% linter compliance:
166
+
167
+ 1. **Dashboard (`registry/starter-kits/dashboard/`):** High-density workspace shell with asymmetric summary strip, real batch variance calculations, and edge-case table data.
168
+ 2. **Landing Waitlist (`registry/starter-kits/landing-waitlist/`):** Conversion-focused page with hero value proposition, honest copy, and social validation with zero marketing slop.
169
+ 3. **Mobile App (`registry/starter-kits/mobile-app/`):** Mobile-first responsive container, bottom navigation bar, tactile card interactions, and instant empty/skeleton states.
170
+ 4. **Data Tool (`registry/starter-kits/data-tool/`):** Analytical workbench featuring multi-facet filter bars, dense telemetry readouts, inspect drawers, and inline error banners.
171
+
172
+ ---
173
+
174
+ ## Anti-Slop Firewall: Core Rules Summary
175
+
176
+ | Banned AI Pattern | Permitted Solution |
177
+ | :--- | :--- |
178
+ | **3 Equal-Width KPI Cards** | Inline horizontal summary strip with `1px` vertical dividers or asymmetric 2-pane split. |
179
+ | **Static Marketing Badges in Apps** | Move compliance claims (`SOC2`, `ISO 27001`) to landing pages. Only show real live operational status. |
180
+ | **Decorative Header Pill Tags** | Tag badges are reserved for record states in data tables (`Settled`, `Pending`), never header flair. |
181
+ | **Decorative Status Dots** | Green/amber dots are banned in footers unless wired to a real, user-toggleable connection state. |
182
+ | **Purple/Blue Linear Gradients** | Solid semantic accent tokens (`var(--accent-primary)`) with specular hairline borders. |
183
+ | **Arbitrary Nested Radiuses** | Strict concentric radius formula: `inner = max(0px, outer - padding)`. |
184
+ | **Capitalized Title Case UI** | Strict sentence case on all headings, buttons, and badges (`Create new invoice`, not `Create New Invoice`). |
185
+ | **Low-Contrast Grey Text** | `--text-primary` must exceed $\ge 7:1$ (AAA); `--text-muted` must exceed $\ge 4.5:1$ (AA). |
186
+
187
+ ---
188
+
189
+ ## Cross-Agent Compatibility
190
+
191
+ `agent-design-skills` generates native configuration structures for all leading AI development tools:
192
+
193
+ - **Google Antigravity:** `.agent/rules/design-core.md` + `.agent/skills/design-system/SKILL.md` (and references).
194
+ - **Cursor:** `.cursor/rules/00-design-core.mdc` (`alwaysApply: true`) + task-scoped `.mdc` topic rules.
195
+ - **Claude Code:** Project-level instructions generated into `CLAUDE.md`.
196
+ - **Windsurf:** Rules emitted directly into `.windsurfrules`.
197
+ - **Web Builders (Bolt, v0, Lovable):** Unified `DESIGN-PROMPT.md` for copy-paste injection.
198
+
199
+ ---
200
+
201
+ ## Empirical Benchmark Evaluation (`evals/`)
202
+
203
+ The repository includes a rigorous 11-prompt evaluation suite and automated grading rubric:
204
+ - **`evals/prompts.json`:** 11 empirical benchmark prompts covering complex multi-currency ledgers, genomic PCR assays, Swiss architectural studio monographs, XR spatial viewers, and a dedicated **"Page 2 after Page 1"** cross-page continuity test.
205
+ - **`evals/rubric.md`:** 4 automated pass/fail gates and 40-point qualitative scoring matrix for Anti-Slop, Cross-Page Unity, Copy Honesty, and State Completeness.
206
+
207
+ ---
208
+
209
+ ## License
210
+
211
+ MIT © Google Antigravity & the `agent-design-skills` contributors.
2
212
 
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.