agentleFS
jgamaraalvjgamaraalv/delivery-loop/.claude/skills/building-components/SKILL.md

building-components

Skill0 starsChanged 4 months agoMITView on GitHub

Guide for building modern, accessible, and composable UI components. Use when building new components, implementing accessibility, creating composable APIs, setting up design tokens, publishing to npm/registry, or writing component documentation.

13 other projects use a version of this, 11 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use vercel-cli, vercel-composition-patterns and 8 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • DatabricksSkill

    vercel-cli

    Deploy, manage, and develop projects on Vercel from the command line

    Also in 3 projects that use this

  • SentrySkill

    vercel-composition-patterns

    Also in 7 projects that use this

  • VercelSkill

    ai-elements

    Build AI chat interfaces using ai-elements components — conversations, messages, tool displays, prompt inputs, and more. Use when the user wants to build a chatbot, AI assistant UI, or any AI-powered chat interface.

    Also in 3 projects that use this

  • VercelSkill

    ai-sdk

    Answer questions about the AI SDK and help build AI-powered features. Use when developers: (1) Ask about AI SDK functions like generateText, streamText, ToolLoopAgent, embed, or tools, (2) Want to build AI agents, chatbots, RAG systems, or text generation features, (3) Have questions about AI providers (OpenAI, Anthropic, Google, etc.), streaming, tool calling, structured output, or embeddings, (4) Use React hooks like useChat or useCompletion. Triggers on: "AI SDK", "Vercel AI SDK", "generateText", "streamText", "add AI to my app", "build an agent", "tool calling", "structured output", "useChat".

    Also in 3 projects that use this

  • VercelSkill

    vercel-react-best-practices

    React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

    Also in 7 projects that use this

  • VercelSkill

    web-design-guidelines

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

    Also in 5 projects that use this

  • +1 more from vercel-labs
  • +1 more from vercel

The file

Files
SKILL.md

Building Components

References

Each file is loaded on demand — read one only when the task needs that depth (progressive disclosure).

  • references/definitions.mdx — artifact taxonomy: primitives, components, blocks, templates and when to use each · read when choosing the right abstraction level for a new component.
  • references/principles.mdx — core component design principles: single responsibility, composition over configuration, minimal API surface · read when designing a new component's API.
  • references/accessibility.mdx — ARIA roles/attributes, keyboard navigation, focus management, WCAG compliance patterns · read when implementing interactive or custom-widget components.
  • references/composition.mdx — slot patterns, render props, controlled/uncontrolled state, compound components · read when designing composable component APIs.
  • references/as-child.mdx — the Radix-style asChild pattern for element polymorphism without wrapper divs · read when implementing asChild or polymorphic roots.
  • references/polymorphism.mdx — as prop, generic polymorphic components, TypeScript inference for polymorphic types · read when a component must render as different HTML elements.
  • references/types.mdx — TypeScript typing patterns: discriminated unions, generic props, ComponentPropsWithoutRef, forwardRef · read when typing component props or forwarding refs.
  • references/state.mdx — controlled vs uncontrolled state, useControllableState, default value patterns · read when deciding how a component should own or delegate its state.
  • references/data-attributes.mdx — using data-* attributes for CSS state, testing hooks, and styling variants · read when styling component states or wiring tests.
  • references/design-tokens.mdx — CSS custom property token systems, theming, dark mode, token naming conventions · read when setting up or extending a design token layer.
  • references/styling.mdx — CSS Modules, Tailwind, CSS-in-JS, class variance authority (CVA), style encapsulation · read when choosing or implementing a component styling approach.
  • references/registry.mdx — shadcn/ui-style registry distribution, components.json, CLI-installable components · read when publishing via a component registry.
  • references/npm.mdx — npm package publishing: entry points, bundling, peer deps, package.json fields · read when shipping a component library to npm.
  • references/marketplaces.mdx — component marketplace distribution (Shadcn registry, v0, etc.) · read when distributing components via a marketplace.
  • references/docs.mdx — writing component documentation: prop tables, usage examples, Storybook stories · read when documenting a component for end users.

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.