Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

components-best-practices

Skill by coinbase

Sets development rules for Coinbase Design System (CDS) React components in any package. It covers the build workflow, file structure, component conventions, design tokens and prop patterns for developers and AI assistants.

  • Score 67
  • 514 stars
  • NOASSERTION
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install components-best-practices

Built from the published package, never by AI.

git clone --depth 1 https://github.com/coinbase/cds /tmp/cds && mkdir -p ~/.claude/skills && cp -r /tmp/cds/.claude/skills/components-best-practices ~/.claude/skills/components-best-practices

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install components-best-practices in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill sets rules for building React components in the Coinbase Design System (CDS). It applies whenever an assistant works on CDS React components in any package. It describes a workflow that starts with researching reference components and requirements, then implements the component with unit tests and stories on web before mobile. It also defines a folder structure with category folders for components.

The skill lists coding conventions such as memoizing components, forwarding refs, JSDoc with @default tags, paired BaseProps and Props types, testID on root elements, and padding over margin. It documents the design token system for colors, space, icon sizes and fonts, and patterns such as compound components, context with hooks, controlled and uncontrolled inputs, and generics. It is meant for developers and AI assistants working in the CDS codebase.

Written from the project's SKILL.md and checked against it.

What it can do

  • Component workflowGuides research, optional clarifying questions, then implementation with unit tests and stories on web first.
  • File structureDefines a folder layout per component with main file, stories, unit tests and index re-exports.
  • Component categoriesLists category folders such as buttons, controls, cards, overlays, layout and typography.
  • Component conventionsCovers memo, forwardRef, JSDoc @default tags, testID, style overrides and padding over margin.
  • Design tokensPoints to the token source file and describes color, space, icon size, font and shadow tokens.
  • Compound componentsDescribes slot-based subcomponents with default implementations and matching classNames and styles keys.
  • Controlled and uncontrolled inputsExplains supporting both patterns and throwing when a consumer mixes them.
  • Prop type compositionSets rules for BaseProps and Props types and for combining Pick, Omit and intersections.

Try asking

  • Build a new CDS React card component with unit tests and stories on web
  • Review my CDS controlled input component for the controlled/uncontrolled rules
  • Add testID and forwardRef support to this CDS overlay component

Good to know

  • Figma Code Connect files are only written when explicitly requested.
  • Mobile work is done after web when both platforms are requested.
  • The skill is marked as not user-invocable.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/components-best-practices/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to components-best-practices

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

components-best-practices: common questions

What does the components-best-practices skill cover?

It covers the workflow, file structure, component conventions, design token system and prop and component patterns for CDS React components.

Which components does it name as references?

It names Select, Stepper, Carousel, RollingNumber and SlideButton as high quality examples of patterns and conventions.

Where are the design tokens defined?

The skill says design tokens are defined in packages/common/src/core/theme.ts, which it names as the definitive source for token names.

How do I install components-best-practices?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is components-best-practices free?

The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.

Is components-best-practices safe to use?

It scores 67 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to components-best-practices?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

components-best-practices Install

Add to stack

Loading.