Skip to content

Web Component Design

Guides the agent to build reusable React, Vue, and Svelte UI components with sound APIs and styling.

Repository
wshobson/agents
Stars
42,095
Licence
MIT
Files
4 files

What it does

When installed, the agent follows this guide when you ask it to build or refactor user interface components in React, Vue, or Svelte. It applies common patterns such as compound components, render props, and slots, suggests styling approaches like Tailwind, CSS Modules, or styled-components, and designs component props in a consistent way. The reference files add guidance on accessibility and CSS styling choices.

Great for

  • Front-end developers building a shared component library or design system
  • Teams standardizing component APIs across a React, Vue, or Svelte codebase
  • Developers refactoring older components into more modern patterns

Skip it if

  • Non-developers who only want a visual mockup, since this focuses on code structure and not visual design tools
  • Projects using a framework other than React, Vue, or Svelte, where the examples will not directly apply

Try asking

  • “Build a reusable Button component in React with variant and size props using Tailwind”
  • “Create a compound Select component in React with Trigger and Option subcomponents”
  • “Refactor this legacy Vue component into a composable with provide and inject”
  • “Help me choose between CSS Modules, Emotion, and Vanilla Extract for my design system”
Step-by-step guide: how to use Web Component DesignInstall, first run, examples, tips and FAQs

Install in 3 steps

  1. 1

    Download the skill

    The ZIP contains the 4 original files, the MIT licence and an attribution note.

    web-component-design.zip
  2. 2

    Add it to your agent

    Claude Code (all projects)

    mkdir -p ~/.claude/skills && unzip web-component-design.zip -d ~/.claude/skills/

    Claude Code / Agent SDK (this project only)

    mkdir -p .claude/skills && unzip web-component-design.zip -d .claude/skills/

    Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.

  3. 3

    Ask for the task

    No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.

Get better results

  • Name the framework and styling tool you use (for example React with Tailwind) so the agent picks matching examples.
  • Share your existing component or design tokens so the suggested API fits your codebase.
  • Review the accessibility reference when building interactive widgets like menus, dialogs, or tabs, and test keyboard behavior yourself.

What's inside

  • references/accessibility-patterns.md
  • references/component-patterns.md
  • references/css-styling-approaches.md
  • SKILL.md

Redistributed unmodified from wshobson/agents under the MIT licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.