dsgn
Skill1 starsChanged 3 months agoMITView on GitHub
Build UI with the real @dhruvchoudhary/dsgn component registry and the dhruvch1244/design philosophy, in one of seven distinct visual voices or five worlds (voice + presentation metaphor + copy over one content model), routed automatically by project context or explicit request.
In this repository3 other files it gives its agents.
- philosophy/AGENTS.mdAGENTS.md
- design-engineerSkill
- dsgn-adoptSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. About 0 are common, 10 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 24
Use it whenever the task is building or restyling UI — a page, a component library, a design system, a "make this look premium" request — …
- Very specific: line 31
Don't use it to override an established, working design system already in place in the target project unless the user asks for a restyle.
- Distinctive: line 83
Explicit request wins: If the user names a style directly ("make it brutalist," "give me the neon one," "like your own site," "make it a …
- Distinctive: line 88
Don't second-guess an explicit ask with a vibe inference.
- Distinctive: line 89
Existing brand cues win next: If the target project already has a color palette, font choice, or component library that clearly leans one …
- Distinctive: line 94
Project type is the fallback default: Use the table above's "Pick it when" column against what the project actually is (a SaaS dashboard, a …
- Very specific: line 105
If the host environment has a structured choice/question tool (e.g.
- Distinctive: line 111
Do this every time this skill activates, not only when the request already sounds vague — a request that sounds clear can still be …
- Very specific: line 135
Present it and stop: Don't fold this into the first message of a build already underway.
- Very specific: line 167
Read reference/component-registry.md for the real component list, real variant names, and real dependencies — never invent a prop or …
- Very specific: line 170
Read reference/tokens.md before writing any color, spacing, radius, motion-timing, or font value — typography is not an afterthought here.
- Very specific: line 200
Run npx @dhruvchoudhary/dsgn doctor first, before reaching for a browser.
- Distinctive: line 207
If the host environment can run the project and inspect the rendered result (a dev server plus browser automation, or equivalent), actually …
- Distinctive: line 211
Check a narrow mobile width (~390px) alongside desktop — horizontal overflow and cramped layouts concentrate at mobile widths specifically …
- Distinctive: line 215
If the target supports both themes, check both — a token that reads fine in one can fail contrast or just look wrong in the other, and …
- Distinctive: line 218
When a way to actually check the build exists, use it before reporting done.
- Distinctive: line 237
If the upstream repo changes, these reference docs can drift — treat them as a snapshot, and prefer the live repo when the two disagree.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
dsgn — design-philosophy-driven UI builder
This skill teaches Claude to build interfaces using two real, checkable things
from the dhruvch1244/design repo, not invented conventions:
- A design philosophy (
reference/philosophy-summary.md, sourced fromphilosophy/AGENTS.md) — ten rules extracted from decisions that actually shipped in four real apps, not aspirational values. Applies to any code you write while this skill is active, not just UI code. - A real, installable component registry (
reference/component-registry.md, sourced frompackages/registry/registry.json) — 56 components + a utils module, installed withnpx @dhruvchoudhary/dsgn add <component>. Files are copied into the consumer's own source tree, not imported from a package at runtime — the consumer owns and can edit them the moment they land. There is nothing to eject later.
When to use this skill
Use it whenever the task is building or restyling UI — a page, a component library, a design system, a "make this look premium" request — especially when the project is a fresh scaffold with no established visual language yet, or when the user explicitly asks for one of the seven voices or five worlds below by name — or asks for "themes," "modes" or "skins" that should feel genuinely different rather than recolored (that's a world; see below).
Don't use it to override an established, working design system already in
place in the target project unless the user asks for a restyle. This skill
is additive, not a replacement for a project's existing conventions. If the
target project already has real, shipped UI but no documented conventions
of its own, use the sibling dsgn-adopt skill first — it extracts what's
actually there into a portable skill file, rather than this skill's voices
silently competing with a style the project already committed to.
The seven style agents
Each file in agents/ is a complete, self-contained persona: a visual style
plus that style's take on all five workflow facets (component building, page
composition, theming, accessibility review, motion). None of them contradict
reference/philosophy-summary.md — the philosophy governs code structure and
correctness regardless of which visual voice is chosen; the agents only
differ in what the UI looks and moves like.
| Agent | Voice | Pick it when |
agents/glass-dark-cyan.md | Dark OLED, cyan accent, backdrop-blur glass panels, Bebas Neue display type — this repo's own real site | Default choice for anything dev-tool/SaaS/technical, or when the user says "like the dsgn site" |
agents/editorial-warm.md | Warm paper background, serif display type, muted sage/espresso, flat hairline-bordered cards | Portfolios, agencies, content-first sites, anything the user calls "warm," "editorial," or "less techy" |
agents/brutalist-mono.md | Pure black/white, thick borders, monospace-forward, hard offset shadows, near-zero radius | Developer tools, changelogs, anything the user calls "raw," "brutalist," or "no-nonsense" |
agents/soft-minimal.md | Silver-grey/white, huge whitespace, ultra-diffused shadows, calm micro-motion | Consumer/health/wellness products, anything the user calls "calm," "minimal," or "airy" |
agents/neon-cyberpunk.md | Near-black with saturated multi-color neon glow, tight bold display type, high-intensity motion | Gaming, music, entertainment, anything the user explicitly asks for "cyberpunk," "neon," or "loud" |
agents/corporate.md | Near-white/near-black neutral, one restrained desaturated accent, 1px borders over shadows, near-invisible motion, system-native sans type | Enterprise SaaS, developer platforms, anything the user calls "corporate," "enterprise," or references Apple/Google/Next.js |
agents/startup.md | Dark saturated background, two-hue gradient accent used boldly, oversized confident type, spring/overshoot motion | Product launches, marketing sites, anything the user calls "startup," "bold," or wants to feel fast-moving |
The five worlds
A world goes one level deeper than a voice: it is a voice plus a
presentation metaphor (how lists, profiles, timelines, metrics and calls to
action are shaped) plus a copy dictionary — all over one content
model that no world is allowed to fork or invent facts in. Read
reference/worlds.md before building any of them; each agent file has a
filled-in metaphor map.
| Agent | World | Pick it when |
agents/terminal-phosphor.md | Green phosphor; the page is a shell session with a working prompt | Developer portfolios, CLIs, dev tools that want to feel like a terminal |
agents/arcade-synth.md | Synthwave purple, pixel type; title screen, level select, hi-scores | Games, playful portfolios, hackathons and events |
agents/iron-poster.md | Warm paper, heavy grotesk, gym orange; program sheet and session cards | Fitness, coaching, "progressive overload" personal stories |
agents/pit-lane.md | Asphalt, italic condensed type; timing tower, onboard camera, team radio | Products or portfolios that sell speed and performance |
agents/night-shift.md | Lavender night, rounded type; night journal and polaroid wall | Personal sites, indie products, warm creative portfolios |
A product can offer several worlds side by side (the reference site, dhruvchoudhary.com, ships six including a conventional default). Build the content model once, then one presenter per world.
Router logic
Apply these signals in order — the first one that matches decides:
- Explicit request wins. If the user names a style directly ("make it
brutalist," "give me the neon one," "like your own site," "make it a
terminal"), use that agent. A request for multiple themes that should
feel different — not just recolored — routes to worlds and
reference/worlds.md. Don't second-guess an explicit ask with a vibe inference. - Existing brand cues win next. If the target project already has a color palette, font choice, or component library that clearly leans one direction (e.g. an existing warm cream palette with serif headings), match that agent rather than introducing a new voice on top of an established one.
- Project type is the fallback default. Use the table above's "Pick it when" column against what the project actually is (a SaaS dashboard, a portfolio, a dev tool, a wellness app, a game).
- When genuinely unsure — between two candidates, or with no strong
signal at all (a blank scaffold, no explicit ask) — stop and ask, don't
silently pick. A wrong visual direction is expensive to unwind after a
dozen components are built in it; one clarifying question up front is
cheap. Ask as a structured choice, not an open-ended question:
- Lead with your actual recommendation, named and justified in one line (which signal from above pointed at it, even a weak one).
- Offer 1–2 sensible alternatives, each with an equally short reason.
- If the host environment has a structured choice/question tool (e.g.
Claude Code's
AskUserQuestion), use it so the user picks from concrete options instead of writing free text back.
Before building: confirm the brief
Do this every time this skill activates, not only when the request already sounds vague — a request that sounds clear can still be underspecified in ways that are cheap to catch now and expensive to unwind after components are already installed. Skip this step only when the user's own message already reads like a spec (names the surface, the scope, and either a voice or an unambiguous signal for one) — restating a brief that's already fully specified is friction with no benefit, not rigor.
- Restate the request as a structured brief, not a running summary of
the conversation so far:
- What — the concrete surface being built (a specific page, component, or flow), named, not "some UI."
- Scope — what's explicitly in and out (e.g. "the settings page, not the whole account flow").
- Voice — which of the seven style agents or five worlds per Router logic above (for a world, also its metaphor map), and the one-line reason (the actual signal that pointed at it — explicit request, existing brand cue, or project-type default). This is the recommendation, not a placeholder to fill in later.
- Constraints — anything the user already stated that limits the solution space (an existing framework/palette, "no new dependencies," a scope cut for time).
- Unknowns — anything genuinely unclear. Name these explicitly rather than silently picking an answer.
- Present it and stop. Don't fold this into the first message of a
build already underway. Use a structured choice tool (e.g. Claude Code's
AskUserQuestion) for any Unknowns if the host supports one; state the rest as a short, confirmable summary ("Building: X. Voice: Y, because Z. Out of scope: W. Confirm?"). - Proceed only once the user confirms or corrects it. A correction here is the step working as intended, not friction to route around — it's a wrong assumption caught before it's expensive, not after.
How the handoff actually works
This skill degrades gracefully depending on what the host environment supports:
- If sub-agent dispatch is available (a
Task/Agent-style tool that can launch a fresh agent with its own instructions), the router should dispatch the chosenagents/*.mdfile's full content as that sub-agent's brief, along with the relevantreference/*.mdfiles. - If it isn't — a single Claude session reading this skill directly with no sub-agent capability — apply the chosen agent's guidance inline: read the agent file, adopt its rules for the rest of the session (or until the user asks for a different voice), and proceed normally.
Either way, the content of the decision is the same; only the mechanism differs.
Building, once a style is chosen
- If a world was chosen, read
reference/worlds.mdfirst and fill the metaphor map for every content type the product has before writing CSS; put every fact in the content model and every line of voice in a copy dictionary keyed by the same ids. - Read
reference/component-registry.mdfor the real component list, real variant names, and real dependencies — never invent a prop or variant that isn't listed there. - Read
reference/tokens.mdbefore writing any color, spacing, radius, motion-timing, or font value — typography is not an afterthought here. A visitor registers a site's typeface before they register almost anything else about it; picking the wrong one (or the right one used wrong — body copy in the display face, or vice versa) undercuts every other correct decision in the build. The chosen style agent's own "Typography" section names the exact--font-display/--font-sans/--font-monoroles for that voice — apply them exactly as specified, never substitute a system font or introduce a new one. It should never introduce new CSS variable names that don't exist in the token system either, for fonts or anything else, since that breaks the "reskin without touching component source" promise the whole registry is built around. - Install real components with
npx @dhruvchoudhary/dsgn add <name>(or<name1> <name2> ...for several at once) rather than hand-writing a component that already exists in the registry. - Apply
reference/workflow-checklist.md's five facets in the chosen agent's voice before considering the work done. - Verify before calling it done. A build that reads correctly in your
own source review can still be broken in ways only rendering it catches
— this is the single biggest gap between a skill-produced build and one
that actually holds up, confirmed repeatedly by dogfooding this exact
skill against real external projects: every real bug caught this way
(a dark-mode-only focus-ring contrast failure, a token a component
silently depends on that installation doesn't inject, a horizontal
mobile-overflow layout break) was invisible in a source read-through
and obvious the moment the build actually ran.
- Typecheck and lint clean (
tsc --noEmit, the project's own lint script) if the project has them configured — don't skip a check that's already wired up and free to run. - Run
npx @dhruvchoudhary/dsgn doctorfirst, before reaching for a browser. It's free, has no dependencies beyond the CLI itself, and catches exactly two of the mistakes above mechanically — a component file missing on disk afteradd, and the same<img>-without-alt/ unreachable-onClickheuristics doctor already runs. It won't catch a missing token or a mobile overflow, so it's a first pass, not a replacement for actually rendering the build. - If the host environment can run the project and inspect the rendered result (a dev server plus browser automation, or equivalent), actually load it. Console errors and visually-wrong-but-plausible-looking compositions surface here, not in a source read-through.
- Check a narrow mobile width (~390px) alongside desktop — horizontal overflow and cramped layouts concentrate at mobile widths specifically and are easy to miss when you're only picturing the desktop layout while writing the code.
- If the target supports both themes, check both — a token that reads fine in one can fail contrast or just look wrong in the other, and "looks fine in light mode" says nothing about dark mode's own values.
- When a way to actually check the build exists, use it before reporting done. A code read-through is not a substitute for looking at the result, and most of the friction real projects hit using this skill traces back to skipping this step, not to a wrong style or component choice.
- Typecheck and lint clean (
Source of truth
Everything in reference/ is derived from real files in this repo at the
time this skill was written:
philosophy/AGENTS.md(and its siblingsarchitecture.md,ui-interaction.md,code-style.md,anti-patterns.md,worlds.md)packages/registry/registry.jsonand the component sources underpackages/registry/src/components/apps/site/app/globals.css(the token system)apps/site/components/motion/reveal.tsxandcursor-glow.tsx(the real motion primitives)
If the upstream repo changes, these reference docs can drift — treat them as a snapshot, and prefer the live repo when the two disagree.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

