Repository navigation
v3 The Brain
ux-skill v3.0 is a major architectural release. Brand specs went from templates the recommender picks from to training data the engine learns from. The output is novel every call. The system has eyes on its own history. Self-learning. Fully offline. No LLM ever called.
We call this The Brain because that's what got built: a constrained generative design compiler with a closed feedback loop.
Briefs map deterministically to 7 continuous axis values (0.0–1.0):
| Axis | 0.0 end | 1.0 end |
|---|---|---|
warmth |
cold / clinical | warm / inviting |
contrast |
flat / muted | dramatic / loud |
density |
airy / sparse | dense / packed |
geometry |
sharp / angular | soft / rounded |
formality |
playful | corporate |
motion |
still | kinetic |
type_personality |
geometric | humanist |
Axis values then compile to fresh palette + type pair + spacing scale + radius scale + motion timing. Same brief → same output, every time.
| Mode | Trigger | Behavior |
|---|---|---|
strict_brand |
reference_brands=[stripe] strict=True |
100% Stripe tokens, fastest path |
brand_anchor |
reference_brands=[stripe] |
70% Stripe + 30% axis-adapted from 4 sibling brands |
pure_synthesis |
no brand named | infinity space — 8 axis-matching exemplars distilled into a novel design language |
Explicit conflict resolution when axes disagree:
-
density + formalityfor spacing — dense+formal → 4px (Bloomberg); airy+formal → 12px (luxury) -
geometry + formalityfor radius — sharp+corporate → 2px (NYT); soft+playful → 18px (Glossier) -
motion + formalityfor timing — kinetic+corporate dampens to slower base -
warmth × contrastfor accent register — saturation + lightness target
Documented in engine/synthesizer/interactions.py. No more hidden ad-hoc rules.
.ux/decisions.jsonl (schema _v: 1 locked) is no longer just a log. The recommender now bumps candidates that previously shipped clean:
- Cold-start safe: skips below 3 priors per bucket
- Only counts decisions with
lint_score >= 80ANDuser_accepted = true - Bump = +5 per matching prior
The intelligence loop is now actually closed. Before v3.0, decisions were logged but never consumed. Now they bias future ranking.
score_tone_match was grading the synthesizer's own homework — comparing synth_axes against derived brief_axes (both came from the same compute_axes() function). v3.0 adds brief_tags parameter that checks synth output against the brief's raw tone keywords (warm / bold / minimal / etc.). Independent ground truth.
Lint → polish → re-lint until score ≥ 90 or plateau or 5 rounds. 6 idempotent polish passes (strip inline styles, normalize spacing, replace generic CTAs, swap placeholder URLs, strip Lorem ipsum, font-weight numeric). Quality gate at 65 — below that, refuses to ship unless --force.
7 primitives (stack / cluster / grid / sidebar / cover / frame / split) all use auto-fit minmax(min(N, 100%), 1fr) + container queries. Zero size-based @media queries. Broken layouts cannot be emitted.
Modular ratio picked from contrast (1.200 / 1.250 / 1.333). 9-step size ladder caption → hero. Weight curves from type_personality + contrast. Tracking + line-heights from formality + density.
uxskill stats --html writes .ux/stats.html — a local single-file dashboard showing what your install has learned. No telemetry. No global aggregate. Visible proof of self-learning in your own repo.
-
ux_synthesize— emit a synthesized design language over stdio -
ux_decisions_query— filter the local decisions ledger -
ux_decisions_stats— aggregate stats over the local ledger
We cut nothing.
- All 22 slash commands preserved + 1 new (
/ux-evolve) - All 11 data manifests + 1,182 entries kept
- All 160 brand specs kept — role changed, count didn't
- All 145 anti-pattern rules kept
- 17-IDE installer untouched
- 17-locale homepage + README set untouched
| Maximalist v2.1 spec idea | Why we said no |
|---|---|
| "Infinite design space, no static styles" | Would burn the 1,182 entries — our moat. Achieved infinity by KEEPING the catalogue as vocabulary the synthesizer mixes from. |
| "LLM-judged subjective aesthetic axes" | Laith said no LLM. Replaced with deterministic heuristics (cosine distance, hash-distance novelty, severity-weighted lint score). |
| "Multi-candidate generation + genetic mutation" | Pure research project. Replaced with single-candidate generation + /ux-evolve polish loop. |
| "Rename our 22 commands to generate:ui / mutate:ui" | Destroys SEO + adoption. Kept all names. Added 1. |
-
23 slash commands (22 +
/ux-evolve) - 18 MCP tools
- 1,182 structured entries across 11 manifests
- 145 deterministic anti-pattern rules
- 160 brand DESIGN specs
- 17 IDEs supported (Claude Code, Cursor, Windsurf, GitHub Copilot, Gemini CLI, Codex, Kiro, Cline, Continue, Aider, Zed, JetBrains AI, Pieces, Tabby, Tabnine, CodeWhisperer, Roo Cline)
- 17 localized homepages + READMEs
- 223 tests pass
- MIT licensed
- 0 telemetry
- 0 LLM calls in the engine
pip install uxskill
uxskill init # auto-detects your IDE
uxskill synthesize --industry fintech-payments --tone bold
uxskill evolve <html_path> # auto-iterate to 90+
uxskill stats --html # see what your install learned- Architecture — module layout
- All-22-Commands — full command reference
- Anti-Pattern-Catalog-100 — the 145 linter rules
- Brand-Library-110 — the 160 brand specs
- Cross-IDE-Distribution — install paths