Agent skill

Elegant Design

by rand in rand/cc-polymath

Create world-class, accessible, responsive interfaces with sophisticated interactive elements including chat, terminals, code display, and streaming content.

MITAuto-check passedFrontend & Design

Install Elegant Design

skills CLI
$ npx skills add rand/cc-polymath --skill elegant-design -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install rand/cc-polymath elegant-design --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/rand/cc-polymath.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/elegant-design .claude/skills/elegant-design && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
elegant-design
GitHub stars
181
Token cost
~2.7k tokens
SKILL.md length
1,070 words
Files
16
Skills in repo
26
Repo updated
First seen
Licence
MIT

At a glance

Create world-class, accessible, responsive interfaces with sophisticated interactive elements including chat, terminals, code display, and streaming content.

  • Works in 5 steps: Discovery & Planning (15-30 min) → Design Foundation (20-40 min) → Interactive Elements (30-60 min) → …
  • Building user interfaces that need professional polish and developer-focused features
  • SKILL.md covers Philosophy, When to Use This Skill, Design Process Workflow and Quick Decision Tree, plus 8 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Elegant Design is an agent skill from rand/cc-polymath. Create world-class, accessible, responsive interfaces with sophisticated interactive elements including chat, terminals, code display, and streaming content. Use when building user interfaces that need professional polish and developer-focused features.

Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 19 other files (for example `README.md`, `foundation/colors-and-spacing.md` and `foundation/layout-patterns.md`).

It sits in Frontend & Design. The repository describes itself as: Claude Code skills and workflows, optimized for context-efficiency and skill quality. Skills ranging from cloud infrastructure to design to advanced maths. The licence is MIT.

When your agent uses it

  • Building user interfaces that need professional polish and developer-focused features

Example prompts

  • “/elegant-design”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Discovery & Planning (15-30 min)
  2. Design Foundation (20-40 min)
  3. Interactive Elements (30-60 min)
  4. Implementation (1-3 hours)
  5. Validation & Refinement

What it can do on your machine

Read from SKILL.md and the folder at commit baa2df1. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • ui.shadcn.com
    • daisyui.com
    • heroui.com
    • vercel.com
    • jetbrains.com
    • hex.tech
    • docs.baseten.co
    • wunderground.com
    • ghostty.org

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Elegant Design loads about 2.7k tokens when it runs. Until then it costs about 67 tokens; SKILL.md has 1,070 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~67
When it runs · the whole SKILL.md, loaded when a task matches
~2.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from rand/cc-polymath at commit baa2df1, republished under its MIT licence (© rand). 1,070 words, ~2,694 tokens.

Download SKILL.mdSave it as .claude/skills/elegant-design/SKILL.md (or your agent's skills folder). This skill also uses 15 other files; get the full folder from GitHub.
name
elegant-design
description
Create world-class, accessible, responsive interfaces with sophisticated interactive elements including chat, terminals, code display, and streaming content. Use when building user interfaces that need professional polish and developer-focused features.

Designing Elegant Interfaces

Philosophy

World-class design is intentional, accessible, and delightful. Every element serves a purpose, every interaction feels natural, and the experience adapts gracefully across contexts.

Core Principles:

  • Clarity over cleverness - Users should never wonder what to do next
  • Consistency over novelty - Patterns should repeat predictably
  • Performance over features - Fast, smooth interactions trump visual complexity
  • Accessibility always - Design for all users from the start
  • Progressive disclosure - Reveal complexity only when needed
  • Intentional friction - Make destructive actions harder, constructive actions effortless

When to Use This Skill

Use this skill when:

  • Building web applications with React/Next.js/similar frameworks
  • Creating developer tools or technical interfaces
  • Designing interfaces with chat, terminals, or code display
  • Implementing real-time or streaming features
  • Ensuring accessibility and responsive design
  • Working with shadcn/ui, daisyUI, or HeroUI design systems

Design Process Workflow

Follow this workflow for optimal results:

1. Discovery & Planning (15-30 min)

Map User Experience:

bash
# Create flow diagrams with Graphviz
cat > user-flow.dot << 'EOF'
digraph UserFlow {
  Start -> "Observe State"
  "Observe State" -> "Orient Understanding"
  "Orient Understanding" -> "Decide Action"
  "Decide Action" -> "Act Execute"
  "Act Execute" -> "Observe State" [label="OODA loop"]
}
EOF

dot -Tpng user-flow.dot -o user-flow.png

OODA Loop Mapping: For each major user goal, optimize the cycle:

  1. Observe - What information does the user need?
  2. Orient - How do they make sense of it?
  3. Decide - What choices are available?
  4. Act - How do they execute?

Document States:

  • Entry points (how users arrive)
  • Core loops (repeated actions)
  • Success states (goals achieved)
  • Failure states (errors, recovery paths)
  • Edge cases (empty, loading, error, extreme data)

List Affordances: Identify every UI element needed:

  • Navigation (movement between sections)
  • Actions (buttons, links, controls)
  • Inputs (forms, editors, pickers)
  • Feedback (success, error, loading)
  • Content (text, images, data)
  • Wayfinding (breadcrumbs, progress)

Before Building Custom Components:

  1. Search shadcn/ui first (https://ui.shadcn.com)
  2. Check daisyUI (https://daisyui.com)
  3. Explore HeroUI (https://heroui.com)
  4. Build custom only when necessary
2. Design Foundation (20-40 min)

Establish Visual System:

Read the detailed foundation guides:

  • foundation/typography.md - Font selection (Geist, JetBrains Mono), scales, loading
  • foundation/colors-and-spacing.md - Color palettes, spacing systems, dark mode
  • foundation/layout-patterns.md - Grids, containers, white space, responsive breakpoints

Quick Reference:

  • Typography: Geist for UI, JetBrains Mono for code (14px minimum)
  • Spacing: 8px base system (0.5rem, 1rem, 1.5rem, 2rem, 3rem, 4rem, 6rem, 8rem)
  • Colors: Semantic tokens (--color-background, --color-primary, --color-error, etc.)
  • Layout: Mobile-first, 12-column grid, generous white space
3. Interactive Elements (30-60 min)

For sophisticated interactive features, reference the specialized guides:

Chat & Messaging:

  • Read interactive/chat-and-messaging.md when building conversational interfaces
  • Covers message states, streaming, auto-scrolling, markdown rendering

Terminals & Code Display:

  • Read interactive/terminals-and-code.md for terminal emulators, syntax highlighting, semantic highlighting
  • Covers ANSI colors, Shiki integration, copy buttons, line highlighting

Streaming & Loading:

  • Read interactive/streaming-and-loading.md for progressive loading, streaming text, optimistic updates
  • Covers skeleton screens, progress indicators, loading hierarchies

Diffs & Logs:

  • Read interactive/diffs-and-logs.md for version control UIs, log viewers
  • Covers split/unified diffs, character-level changes, virtual scrolling
4. Implementation (1-3 hours)

Build Components:

  • Read implementation/components-and-accessibility.md for component architecture and WCAG compliance
  • Use atomic design: atoms → molecules → organisms → templates → pages
  • Ensure keyboard navigation and screen reader support

Optimize Performance:

  • Read implementation/performance.md for Core Web Vitals optimization
  • Lazy load, code split, optimize images, measure with Lighthouse

Test & Refine:

  • Read implementation/testing-and-qa.md for comprehensive testing approach
  • Test on multiple devices, screen sizes, and with accessibility tools
5. Validation & Refinement

Pre-Launch Checklist:

  • User flows tested and OODA loops optimized
  • All states handled (empty, loading, error, success)
  • Mobile responsive (tested on real devices)
  • Accessibility compliant (WCAG AA)
  • Performance measured (Lighthouse score > 90)
  • Geist used for UI, JetBrains Mono for code
  • Design system components used where possible
  • Consistent spacing and typography
  • Both light and dark modes work
  • Keyboard navigation complete
  • Interactive elements polished (see interactive guides)

Quick Decision Tree

Need to understand the basics? → Read foundation/ files first

Building chat or messaging? → Read interactive/chat-and-messaging.md

Building terminal or code editor? → Read interactive/terminals-and-code.md

Need streaming or loading states? → Read interactive/streaming-and-loading.md

Building diffs or log viewers? → Read interactive/diffs-and-logs.md

Ready to implement? → Read implementation/ files

Need tools or want to avoid mistakes? → Read reference/ files

Design Systems Priority

  1. shadcn/ui (https://ui.shadcn.com) - PRIMARY CHOICE

    • Excellent accessibility defaults
    • Radix UI primitives
    • Tailwind-based, customizable
    • Copy-paste into project
  2. daisyUI (https://daisyui.com)

    • Semantic component names
    • Tailwind plugin
    • Rapid prototyping
  3. HeroUI (https://heroui.com)

    • Modern, polished
    • Strong design language
    • Product interfaces

See reference/design-systems.md for detailed comparison and usage patterns.

Show full SKILL.md (414 more words)Show less

Typography Standards

Use these fonts exclusively:

  • Geist (https://vercel.com/font) - For ALL interface text

    • UI labels, body text, headings
    • 95% of your typography
  • JetBrains Mono (https://jetbrains.com/mono) - For ALL code/technical content

    • Code blocks, terminals, logs, diffs
    • 14px minimum size
    • Enable ligatures

Never mix multiple sans-serif or multiple monospace fonts.

See foundation/typography.md for complete guidance.

Inspiration Sites

Study these for design patterns:

Common Anti-Patterns

Avoid these mistakes:

  • ❌ Building custom components when design system has them
  • ❌ Using absolute positioning for layout
  • ❌ Animating expensive properties (width, height)
  • ❌ Skipping mobile testing
  • ❌ Ignoring accessibility
  • ❌ Using <div> for everything
  • ❌ Mixing multiple monospace fonts
  • ❌ Auto-scrolling when user is reading
  • ❌ Showing raw ANSI codes in terminals
  • ❌ Forgetting empty/loading/error states

See reference/anti-patterns.md for complete list with explanations.

Iterative Development

For simple interfaces (single page, few components):

  1. Start with foundation (read foundation files)
  2. Use design system components
  3. Test and refine

For complex interfaces (multiple features, interactive elements):

  1. Map flows and create diagrams
  2. Establish foundation (read foundation files)
  3. Build one feature at a time (read relevant interactive files)
  4. Test each feature before moving to next
  5. Optimize and polish (read implementation files)

For developer tools or technical interfaces:

  1. Map OODA loops carefully
  2. Read ALL interactive files (chat, terminals, code, streaming, diffs, logs)
  3. Focus on keyboard navigation and performance
  4. Test with actual technical content

Getting Help

If unsure where to start:

  1. Read the philosophy section above
  2. Follow the Design Process Workflow
  3. Reference specific guides as needed

If design feels off:

  1. Check against principles (clarity, consistency, performance)
  2. Review anti-patterns list
  3. Study inspiration sites
  4. Test with real users

If implementation is slow:

  1. Use design system components first
  2. Don't build what exists
  3. Focus on one feature at a time
  4. Test early and often

File Organization

elegant-design/
├── SKILL.md (you are here)
├── foundation/
│   ├── typography.md (fonts, scales, loading)
│   ├── colors-and-spacing.md (palettes, spacing system, dark mode)
│   └── layout-patterns.md (grids, containers, responsive)
├── interactive/
│   ├── chat-and-messaging.md (chat UIs, streaming messages)
│   ├── terminals-and-code.md (terminals, syntax highlighting)
│   ├── streaming-and-loading.md (progressive loading, skeletons)
│   └── diffs-and-logs.md (version control UI, log viewers)
├── implementation/
│   ├── components-and-accessibility.md (architecture, WCAG)
│   ├── performance.md (Core Web Vitals, optimization)
│   └── testing-and-qa.md (testing checklist, tools)
└── reference/
    ├── design-systems.md (shadcn, daisyUI, HeroUI details)
    ├── tools-and-libraries.md (complete tool list)
    └── anti-patterns.md (what not to do, with explanations)

Remember

World-class design is invisible. Users shouldn't notice your clever solutions - they should simply accomplish their goals effortlessly and maybe smile along the way.

Start simple, iterate based on real use. Don't build everything at once. Build what's needed, test it, refine it, then move to the next feature.

Accessibility is not optional. Design for keyboard navigation, screen readers, and sufficient contrast from the start. Retrofitting is much harder.

Performance matters. A beautiful interface that's slow is a bad interface. Measure performance early and often.

© rand, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 15 other files in skills/elegant-design of rand/cc-polymath.

  • SKILL.md
  • README.md
  • SUMMARY.txt
  • foundation/colors-and-spacing.md
  • foundation/layout-patterns.md
  • foundation/typography.md
  • implementation/components-and-accessibility.md
  • implementation/performance.md
  • implementation/testing-and-qa.md
  • interactive/chat-and-messaging.md
  • interactive/diffs-and-logs.md
  • interactive/streaming-and-loading.md
  • interactive/terminals-and-code.md
  • reference/anti-patterns.md
  • reference/design-systems.md
  • reference/tools-and-libraries.md

Open the folder on GitHubat commit baa2df1

Compare with similar skills

Elegant Design next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Elegant Design compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Elegant Design this skillrand/cc-polymath181—~2.7kAutomated safety check: PassMIT
Web Artifacts Builderanthropics/skills180k41 repos~769Automated safety check: PassApache-2.0
React Doctormakeplane/plane61k12 repos~657Automated safety check: PassAGPL-3.0
Impeccablebestofjs/bestofjs3.1k27 repos~2.6kAutomated safety check: PassMIT
Figma Design System Builderwarpdotdev/warp65k2 repos~4.4kAutomated safety check: PassAGPL-3.0
Web Interface Guidelines Reviewervercel-labs/openreview1.7k97 repos~308Automated safety check: PassNone

Similar skills

  • Web Artifacts Builder

    anthropics/skills

    Official

    Builds multi-component claude.ai HTML artifacts as a small React, TypeScript and Tailwind project, then bundles it into one shareable HTML file.

    180k GitHub starsUsed in 41 repos~769 tokens
    Frontend & DesignAuto-check passed
  • React Doctor

    makeplane/plane

    Scans React code for lint, accessibility, bundle size and architecture issues, reports a health score and checks that changes do not lower it.

    61k GitHub starsUsed in 12 repos~657 tokens
    Frontend & DesignAuto-check passed
  • Impeccable

    bestofjs/bestofjs

    A skill your agent uses when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a…

    3.1k GitHub starsUsed in 27 repos~2.6k tokens
    Frontend & DesignAuto-check passed
  • Builds or updates a design system in Figma from a codebase in ordered phases: discovery, variables and tokens, components, theming and documentation, with checkpoints.

    65k GitHub starsUsed in 2 repos~4.4k tokens
    Frontend & DesignAuto-check passed
  • Web Interface Guidelines Reviewer

    vercel-labs/openreview

    Official

    Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my…

    1.7k GitHub starsUsed in 97 repos~308 tokens
    Frontend & DesignAuto-check passed
  • Tailwindcss Development

    anonaddy/anonaddy

    Always invoke when the user's message includes 'tailwind' in any form.

    4.9k GitHub starsUsed in 10 repos~865 tokens
    Frontend & DesignAuto-check passed

More from rand/cc-polymath

All 26 skills in this repo
  • Anti Slop

    rand/cc-polymath

    Comprehensive toolkit for detecting and eliminating "AI slop" - generic, low-quality AI-generated patterns in natural language, code, and design.

    181 GitHub stars~2.9k tokensUpdated 7 mo ago
    Auto-check passed
  • Typed Holes Refactor

    rand/cc-polymath

    Refactor codebases using Design by Typed Holes methodology - iterative, test-driven refactoring with formal hole resolution, constraint propagation, and continuous validation.

    181 GitHub stars~5.6k tokensUpdated 7 mo ago
    Auto-check passed
  • Discover Agentic

    rand/cc-polymath

    Automatically discover agentic workflow skills when building AI agents, implementing tool use patterns, managing context windows, decomposing complex tasks, or designing multi-step autonomous…

    181 GitHub stars~1.4k tokensUpdated 7 mo ago
    Auto-check passed
  • Discover API

    rand/cc-polymath

    Automatically discover API design skills when working with REST APIs, GraphQL schemas, API authentication, OAuth, JWT, rate limiting, API versioning, error handling, or endpoint design.

    181 GitHub stars~1.5k tokensUpdated 7 mo ago
    Auto-check passed
  • Discover Database

    rand/cc-polymath

    Automatically discover database skills when working with SQL, PostgreSQL, MongoDB, Redis, database schema design, query optimization, migrations, connection pooling, ORMs, or database selection.

    181 GitHub stars~2k tokensUpdated 7 mo ago
    Auto-check passed
  • Discover Frontend

    rand/cc-polymath

    Automatically discover frontend development skills when working with React, Next.js, UI components, state management, data fetching, forms, accessibility, performance optimization, or SEO.

    181 GitHub stars~2.4k tokensUpdated 7 mo ago
    Auto-check passed

Questions about Elegant Design

What does Elegant Design do?

Create world-class, accessible, responsive interfaces with sophisticated interactive elements including chat, terminals, code display, and streaming content. Elegant Design is an agent skill from rand/cc-polymath. Create world-class, accessible, responsive interfaces with sophisticated interactive elements including chat, terminals, code display, and streaming content.

When should I use Elegant Design?

Elegant Design fits situations like: building user interfaces that need professional polish and developer-focused features.

How do I install Elegant Design in Claude Code?

Run `npx skills add rand/cc-polymath --skill elegant-design -a claude-code`. Or copy the skill folder (skills/elegant-design in rand/cc-polymath) into .claude/skills/elegant-design in your project. Claude Code loads it when a task matches its description.

How do I install Elegant Design in Codex?

Run `npx skills add rand/cc-polymath --skill elegant-design -a codex`. Or copy the skill folder (skills/elegant-design in rand/cc-polymath) into .agents/skills/elegant-design in your project. Codex loads it when a task matches its description.

Can I use Elegant Design in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add rand/cc-polymath --skill elegant-design -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/elegant-design, .gemini/skills/elegant-design, .github/skills/elegant-design and .opencode/skills/elegant-design in your project.

What does Elegant Design need to run?

SKILL.md names no scripts, command-line tools or credentials: Elegant Design is instructions for the agent only.

Does Elegant Design access the network?

SKILL.md names 9 domains. As links in the text: ui.shadcn.com, daisyui.com, heroui.com, vercel.com, jetbrains.com, hex.tech, docs.baseten.co, wunderground.com and ghostty.org. This is read from the text; nothing was executed.

Is Elegant Design safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Elegant Design use?

Elegant Design is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Elegant Design use?

About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Elegant Design?

Skills that share tags, products or a category with Elegant Design: Web Artifacts Builder (anthropics/skills, 180k stars), React Doctor (makeplane/plane, 61k stars), Impeccable (bestofjs/bestofjs, 3.1k stars) and Figma Design System Builder (warpdotdev/warp, 65k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Elegant Design?

rand (a GitHub user) maintains it in rand/cc-polymath, which has 181 GitHub stars. The repository holds 26 skills in this directory. The repository was last updated on February 28, 2026.

Source: rand/cc-polymath on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.