agentleFS
Dhruvch1244Dhruvch1244/design/skills/dsgn/SKILL.md

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.

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
  1. Very specific:

    Use it whenever the task is building or restyling UI — a page, a component library, a design system, a "make this look premium" request — …

    line 24
  2. Very specific:

    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.

    line 31
  3. Distinctive:

    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 …

    line 83
  4. Distinctive:

    Don't second-guess an explicit ask with a vibe inference.

    line 88
  5. Distinctive:

    Existing brand cues win next: If the target project already has a color palette, font choice, or component library that clearly leans one …

    line 89
  6. Distinctive:

    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 …

    line 94
  7. Very specific:

    If the host environment has a structured choice/question tool (e.g.

    line 105
  8. Distinctive:

    Do this every time this skill activates, not only when the request already sounds vague — a request that sounds clear can still be …

    line 111
  9. Very specific:

    Present it and stop: Don't fold this into the first message of a build already underway.

    line 135
  10. Very specific:

    Read reference/component-registry.md for the real component list, real variant names, and real dependencies — never invent a prop or …

    line 167
  11. Very specific:

    Read reference/tokens.md before writing any color, spacing, radius, motion-timing, or font value — typography is not an afterthought here.

    line 170
  12. Very specific:

    Run npx @dhruvchoudhary/dsgn doctor first, before reaching for a browser.

    line 200
  13. Distinctive:

    If the host environment can run the project and inspect the rendered result (a dev server plus browser automation, or equivalent), actually …

    line 207
  14. Distinctive:

    Check a narrow mobile width (~390px) alongside desktop — horizontal overflow and cramped layouts concentrate at mobile widths specifically …

    line 211
  15. Distinctive:

    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 …

    line 215
  16. Distinctive:

    When a way to actually check the build exists, use it before reporting done.

    line 218
  17. Distinctive:

    If the upstream repo changes, these reference docs can drift — treat them as a snapshot, and prefer the live repo when the two disagree.

    line 237

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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:

  1. A design philosophy (reference/philosophy-summary.md, sourced from philosophy/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.
  2. A real, installable component registry (reference/component-registry.md, sourced from packages/registry/registry.json) — 56 components + a utils module, installed with npx @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.

AgentVoicePick it when
agents/glass-dark-cyan.mdDark OLED, cyan accent, backdrop-blur glass panels, Bebas Neue display type — this repo's own real siteDefault choice for anything dev-tool/SaaS/technical, or when the user says "like the dsgn site"
agents/editorial-warm.mdWarm paper background, serif display type, muted sage/espresso, flat hairline-bordered cardsPortfolios, agencies, content-first sites, anything the user calls "warm," "editorial," or "less techy"
agents/brutalist-mono.mdPure black/white, thick borders, monospace-forward, hard offset shadows, near-zero radiusDeveloper tools, changelogs, anything the user calls "raw," "brutalist," or "no-nonsense"
agents/soft-minimal.mdSilver-grey/white, huge whitespace, ultra-diffused shadows, calm micro-motionConsumer/health/wellness products, anything the user calls "calm," "minimal," or "airy"
agents/neon-cyberpunk.mdNear-black with saturated multi-color neon glow, tight bold display type, high-intensity motionGaming, music, entertainment, anything the user explicitly asks for "cyberpunk," "neon," or "loud"
agents/corporate.mdNear-white/near-black neutral, one restrained desaturated accent, 1px borders over shadows, near-invisible motion, system-native sans typeEnterprise SaaS, developer platforms, anything the user calls "corporate," "enterprise," or references Apple/Google/Next.js
agents/startup.mdDark saturated background, two-hue gradient accent used boldly, oversized confident type, spring/overshoot motionProduct 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.

AgentWorldPick it when
agents/terminal-phosphor.mdGreen phosphor; the page is a shell session with a working promptDeveloper portfolios, CLIs, dev tools that want to feel like a terminal
agents/arcade-synth.mdSynthwave purple, pixel type; title screen, level select, hi-scoresGames, playful portfolios, hackathons and events
agents/iron-poster.mdWarm paper, heavy grotesk, gym orange; program sheet and session cardsFitness, coaching, "progressive overload" personal stories
agents/pit-lane.mdAsphalt, italic condensed type; timing tower, onboard camera, team radioProducts or portfolios that sell speed and performance
agents/night-shift.mdLavender night, rounded type; night journal and polaroid wallPersonal 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:

  1. 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.
  2. 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.
  3. 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).
  4. 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.

  1. 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.
  2. 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?").
  3. 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 chosen agents/*.md file's full content as that sub-agent's brief, along with the relevant reference/*.md files.
  • 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

  1. If a world was chosen, read reference/worlds.md first 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.
  2. Read reference/component-registry.md for the real component list, real variant names, and real dependencies — never invent a prop or variant that isn't listed there.
  3. Read reference/tokens.md before 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-mono roles 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.
  4. 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.
  5. Apply reference/workflow-checklist.md's five facets in the chosen agent's voice before considering the work done.
  6. 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 doctor first, 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 after add, and the same <img>-without-alt / unreachable-onClick heuristics 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.

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 siblings architecture.md, ui-interaction.md, code-style.md, anti-patterns.md, worlds.md)
  • packages/registry/registry.json and the component sources under packages/registry/src/components/
  • apps/site/app/globals.css (the token system)
  • apps/site/components/motion/reveal.tsx and cursor-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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.