A Claude Code plugin that catches AI-generated design defaults before they ship. Kern routes every design through a persona system, picks a varied subset of anti-patterns per run (so two runs never produce the same critique), scores output on a 0-100 sameness scale, and fixes copy, color, layout, and interaction before the code lands. Built for Shadcn/Radix/Next.js stacks. Runs a team of specialis
npx mdskills install raymondware/kernSophisticated design quality system with persona-driven generation and anti-pattern detection
1# Kern23A Claude Code plugin that catches AI-generated design defaults before they ship.45Kern routes every design through a persona system, picks a varied subset of anti-patterns per run (so two runs never produce the same critique), scores output on a 0-100 sameness scale, and fixes copy, color, layout, and interaction before the code lands.67Built for Shadcn/Radix/Next.js stacks. Runs a team of specialist agents that plan, design, implement, and review collaboratively.89## The Problem1011AI design tools (v0, Lovable, Bolt.new, Cursor Composer) converge on the same visual vocabulary. Purple/blue gradient, centered hero, Inter font, three identical feature cards, "Get Started" CTA. A developer tool and a consumer app look like the same product built on the same template.1213Kern fixes this with persona-first generation and a sameness score that quantifies how close a design is to the AI default.1415## Installation1617Add the raymondware marketplace, then install Kern:1819```20/plugin marketplace add raymondware/kern21/plugin install kern@raymondware22```2324That's it. Restart Claude Code and the `/kern:*` commands are available.2526## Quick Start2728```bash29# Generate a component from scratch30/kern:design hero section for a CI/CD observability platform3132# Audit existing code for AI-default patterns33/kern:audit34# (paste TSX when prompted)3536# Make an existing design less AI-looking37/kern:differentiate3839# Generate design specs without code40/kern:plan pricing page for a developer API product41```4243## Commands4445| Command | Does |46|---|---|47| `/kern:design <desc>` | Full pipeline: persona detection, specialists, implementation, review |48| `/kern:audit` | Anti-pattern scan with sameness score against existing code |49| `/kern:differentiate` | Identify which AI tool fingerprints are present and apply targeted fixes |50| `/kern:plan <desc>` | Design specs only (typography, color, layout, motion) -- no code |51| `/kern:review` | Full review pass: critic ensemble, copy editor, accessibility audit |52| `/kern:compare <a> <b>` | Side-by-side comparison with similarity score |53| `/kern:polish` | Rewrite a component against Kern's standards, show diff |54| `/kern:copy` | Microcopy audit: button labels, errors, empty states, CTAs |55| `/kern:research` | Scan design communities for new anti-patterns |56| `/kern:draw <desc>` | Run the anti-pattern selector standalone (rotation verification) |5758## How It Works5960### 1. Persona Detection6162Kern picks a persona from your description, then loads that persona's rules for font, color, layout, and copy. Five personas:6364| Persona | Register |65|---|---|66| `developer-tool` | Restrained, dense, function-first. Linear/Vercel register. |67| `consumer-saas` | Warm, spacious, approachable. Things 3 / Cron register. |68| `creative-tool` | Bold, editorial, personality-forward. Figma / iA Writer register. |69| `b2b-enterprise` | Conservative, trust-building, data-forward. Stripe / Ramp register. |70| `e-commerce` | Product-first, conversion-focused. Allbirds / Ridge register. |7172### 2. Variation Rule7374Every run picks a different subset of anti-patterns. Kern reads the audit log (`state/draws.jsonl`) and excludes the previous run's subset. Two runs on the same prompt produce different critiques. No template drift.7576### 3. Anti-Pattern Selection7778Each run draws 12-18 patterns from a pool of 69, weighted by surface (landing page, dashboard, pricing), persona, industry, and audience. The selection is logged to `state/draws.jsonl` before any agent runs.7980### 4. Parallel Critics + Synthesizer8182Four critics run in parallel (design, hierarchy, interaction, microcopy), plus a copy editor and accessibility auditor. The synthesizer merges their output, removes duplicates, and computes a consensus sameness score.8384### 5. The Sameness Score8586Every design gets a 0-100 score on AI-default similarity:8788| Score | Meaning |89|---|---|90| 0-20 | Distinctive. Clear decisions made. Ship. |91| 21-40 | Has character. Some defaults showing. |92| 41-60 | Generic. Could be any AI-generated SaaS site. |93| 61-80 | Default AI aesthetic. Multiple tool fingerprints present. |94| 81-100 | Template unmodified. Do not ship. |9596Gate threshold: **40** for Kern-produced output, **60** for external audits.9798## Anti-Pattern Library99100Kern ships with 69 anti-patterns across three base files and a research-sourced directory:101102| File | Patterns |103|---|---|104| `anti-patterns/visual.md` | Gradient slop, nested card soup, Inter default, centered glowing hero, AI palettes, drop shadows, inverted dark mode, neon without context |105| `anti-patterns/copy.md` | Marketing verbs, hedging, filler openers, self-descriptors, em-dashes, passive voice, vague headlines, broken microcopy |106| `anti-patterns/interaction.md` | Dishonest CTAs, loading as marketing, motivational empty states, bouncy interactions, modal fatigue, toast spam, dark patterns |107| `anti-patterns/sourced-from-research/` | Community-sourced patterns with citations |108109## Reference Files110111| File | Purpose |112|---|---|113| `skills/kern/references/fonts.md` | Font stacks by context: display, body, mono, serif |114| `skills/kern/references/tokens.md` | Spacing, radius, type scale, color philosophy |115| `skills/kern/references/exemplars.md` | Sites that get it right and why |116| `skills/kern/references/dribbble-refs.md` | Reference shots by category |117| `skills/kern/references/ai-fingerprints.md` | Tool-specific fingerprints for `/kern:differentiate` |118| `skills/kern/references/personas/` | Five persona files with font, color, layout, copy rules |119120## Agent Team121122Kern runs a team of specialized agents:123124### Design Specialists (Haiku)125`typography-specialist` `color-specialist` `layout-specialist` `motion-specialist`126127### Development (Sonnet)128`component-architect` `component-implementer` `style-implementer` `accessibility-implementer`129130### Critics (parallel ensemble)131`design-critic` `hierarchy-critic` `interaction-critic` `microcopy-critic` `copy-editor` `accessibility-auditor` `responsive-validator`132133### Orchestration (Opus 4.8)134`conductor` `anti-pattern-selector` `critique-synthesizer`135136## Contributing137138See `CLAUDE.md` for the contributor guide. Agents live flat in `agents/`. Anti-patterns in `anti-patterns/`. Commands in `commands/`.139140## License141142MIT. See `LICENSE`.
Full transparency — inspect the skill content before installing.