agentsclimarketplace

Atomic design

Skill sarveshsea/design-skills/skills/atomic-design

Practical design judgment for AI coding agents: 78 installable skills for craft, research, generation, Figma, and Memoire.

Install
npx -y skills add sarveshsea/design-skills --skill atomic-design

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 6 stars6 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Atomic Design quick reference — levels, composition rules, tokens, naming

SKILL.md

2.8 KB, as published. Nobody here has run it

Atomic Design — Quick Reference

Level Decision Table

LevelFolderComposesHas StateFetches DataReal Content
Atomcomponents/ui/NothingNoNoNo
Moleculecomponents/molecules/2–5 atomsMaybeNoNo
Organismcomponents/organisms/Molecules + atomsYesYesNo
Templatecomponents/templates/OrganismsNoNoPlaceholder
Page(route file)TemplatesNoYesReal

If you can't decide: IF it composes nothing → atom. IF it composes ≤5 atoms → molecule. IF it manages state or fetches data → organism. IF it's a full layout skeleton → template.

Composition Rules

  • Atoms: no composesSpecs, no imports of other atoms
  • Molecules: 2–5 atom imports, no data fetching, may have internal open/closed state
  • Organisms: own breakpoints, document composition in spec
  • Templates: CSS Grid or Flexbox only, must match Figma page spec
  • Pages: handle all data states — loading, empty, error, populated

File Structure

components/
  ui/            # atoms (shadcn primitives)
  molecules/
  organisms/
  templates/

Design Tokens

Global tokens  (--blue-500, --space-4)
  → Alias tokens  (--color-primary, --spacing-component)
    → Component tokens  (--button-bg, --card-radius)

Override alias tokens per theme: :root, .dark, .brand-b.

Accessibility by Level

LevelRequired
AtomARIA role, keyboard focus, contrast, label
MoleculeFocus management, error announcements
OrganismLandmark roles, skip links, focus trapping
TemplatePage title, heading hierarchy, main landmark
PageFull WCAG 2.1 AA

Naming

ElementConventionExample
ComponentsPascalCaseMetricCard
PropscamelCaseisLoading
CSS classeskebab-casetext-muted-foreground
ConstantsUPPER_SNAKEMAX_RETRY_COUNT
Tokenspath/stylecolor/primary/500

Figma ↔ Code

FigmaCode
ComponentReact component
Component SetVariant type union
Component PropertyReact prop
Auto LayoutFlexbox / Grid
Design TokenCSS Variable → Tailwind class
SectionOrganism

Anti-Patterns

  1. Premature abstraction — wait for 3+ use cases before extracting
  2. Prop explosion — 15+ props → decompose into smaller pieces
  3. CSS override chains — 5+ overrides → create a variant
  4. Token drift — hardcoded values that should be tokens
  5. Missing states — every interactive component needs: default, hover, focus, active, disabled, loading, error

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.