Kilo's canonical design source for product UI and agent guidance.
This repo keeps Kilo's UI decisions in one place so Cloud, Landing, Console, VS Code, JetBrains, CLI, and Mobile do not each invent their own design system.
It is intentionally small: token source, generated artifacts, a local playground, ADRs, and draft product skills.
🚧 This project is still in progress. The ADRs and
CONTEXT.mdare intentionally visible because the system is still being shaped; they explain current decisions, terminology, and rollout boundaries while the Cloud pilot proves the approach.
| Area | Status | Notes |
|---|---|---|
| Tokens | Done | tokens.json is the source of truth. |
| Generated artifacts | Done | node build writes product-targeted files under src/. |
| Playground | Done | Local tool for editing tokens and previewing token behavior. |
| Cloud skill | In progress | First agent-facing product skill lives in skills/kilo-design-cloud/. |
| Cloud proof | Next | Validate the skill against real Cloud UI work before wider rollout. |
| Other products | Later | Landing, Editor, Console, Mobile wait until Cloud proves the shape. |
| Surface | What it is | Authority |
|---|---|---|
tokens.json |
Hand-authored design token source | Canonical values |
src/ |
Generated token artifacts | Committed output from node build |
playground/ |
Local token editor and specimen viewer | Human review tool only |
skills/ |
Draft product skill sources | Agent guidance under development |
docs/adr/ |
Decision records | Why decisions exist |
skill-comparison/ |
Static skill behavior comparison | First-pass specimens |
skill-arena/ |
Repeatable prompt-pass workflow | Skill evaluation harness |
Product code does not live here. Product repos consume this repo's artifacts and skills from their own codebases.
tokens.json
-> node build
-> src/tokens.landing.css
-> src/tokens.cloud.ts
-> src/tokens.extension-host-map.md
skills/kilo-design-cloud
-> tells agents how Cloud should use Kilo values, semantic roles, and shipped Cloud examples
playground/
-> edits and previews tokens locally
-> is not a component library or canonical product UI
The important boundary: tokens define values; product skills explain how agents should use those values inside one product surface.
Run from the repo root:
node buildThis regenerates:
| Artifact | Consumer | Format |
|---|---|---|
src/tokens.landing.css |
Landing browser surfaces | OKLCH CSS variables |
src/tokens.cloud.ts |
Cloud TypeScript consumers | Hex values and flattened CSS variable names |
src/tokens.extension-host-map.md |
VS Code, JetBrains, CLI/ANSI | Host mapping notes |
Generated files are committed, but never edited by hand. CI should fail if they drift from tokens.json.
The playground is the local authoring surface for tokens.
pnpm install
pnpm run playgroundThen open:
http://localhost:8731
Use it to:
- edit
tokens.json; - preview color, type, spacing, and radius changes;
- save token changes with recovery via
Undo last save; - regenerate committed artifacts from the saved source.
Do not use playground specimens as product components, pattern recipes, or canonical examples.
The skill arena is a local mini app for regenerating one prompt across the three skill conditions.
node skill-arena/server.mjsThen open:
http://127.0.0.1:8791
It shows stacked rounds of no-skill, frontend-design, and Kilo Cloud outputs, with a fixed prompt composer at the bottom. Each round writes HTML outputs and logs under skill-arena/runs/. There is also a pnpm run skill-arena script, but this machine currently needs pnpm approve-builds before pnpm will run workspace scripts because of the existing sharp approval guard.
The first product skill source is:
skills/kilo-design-cloud/
It contains:
SKILL.md: router, run order, token contract;overlay.md: Cloud-specific product guidance;reference/: token architecture, product judgment, voice, brand, and interaction quality;patterns/cloud-web/: first Cloud recipes for primary actions and tabs.
The Cloud skill is the pilot. There is no standalone kilo-design-core runtime skill yet. Extract shared guidance only after a second product skill proves real reuse.
Use this order when sources disagree:
tokens.json- generated artifacts in
src/ - product skill sources, starting with
skills/kilo-design-cloud/ - pattern recipes with shipped product Canonical Examples
- nearby shipped product UI
When editing this repo:
- If token values change, edit
tokens.json, then runnode build. - If artifact names or destinations change, update
build/, CI, README, CONTEXT, ADRs, playground write-back, and product-skill references. - If agent guidance changes, update the relevant product skill and keep recipes tied to shipped product code.
- Do not add publication or discovery instructions until the skill is ready to ship.
- If the change is planning/status only, update Linear instead of adding another repo plan.