/aid:atomic-designfrom AID
Builds an Atomic Design system from design spec style guides by extracting tokens and creating atoms, molecules, organisms, templates, and pages as reusable component libraries.
Ships in AID. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
| Trigger | Action |
|---|---|
| Create a component | Extract from design spec -> Build |
| Style element | Check design spec specs -> Apply |
| Extract tokens | Use this skill |
| Build page/form/layout | Switch to atomic-page-builder |
Extract and implement from design spec exactly. Never guess design values.
| Forbidden | Correct |
|---|---|
| Round 13px to 12px | Use exact 13px |
| Change #3B82F6 to #3F85F7 | Use exact #3B82F6 |
| Add shadow not in design spec | No shadow if not designed |
| Improve spacing | Exact spacing from design spec |
Read approved local specification files, token definitions and exported assets. Document their source paths and exact values. Ask for missing values before coding.
| Need | File | Key Values |
|---|---|---|
| Colors | tokens/colors.json | semantic.primary, semantic.error |
| Typography | tokens/typography.json | semantic.heading-1, semantic.body |
| Spacing | tokens/spacing.json | semantic.component-padding |
| Components | tokens/components.json | button.variants, input.states |
| Breakpoints | tokens/breakpoints.json | md: 768px, lg: 1024px |
Use semantic token names, never primitives:
color: var(--color-primary); /* DO */
padding: var(--spacing-component-padding);/* DO */
color: var(--blue-500); /* Wrong - primitive */
padding: 16px; /* Wrong - hardcoded */
PAGES -> Dashboard, Settings, UserProfile
TEMPLATES -> DashboardLayout, AuthLayout
ORGANISMS -> Header, Sidebar, Form, DataTable
MOLECULES -> FormField, SearchBar, Card, NavItem
ATOMS -> Button, Input, Typography, Icon
TOKENS -> colors, typography, spacing (FROM design spec)
| Level | Rule | Example |
|---|---|---|
| Atom | Uses ONLY tokens | Button uses color/spacing tokens |
| Molecule | Combines 2+ Atoms | FormField = Label + Input + ErrorText |
| Organism | Combines Molecules + Atoms | Header = Logo + NavItems + UserMenu |
| Template | Layout structure, no content | DashboardLayout |
| Page | Template + real content | Dashboard |
// Correct
interface ButtonProps {
children: ReactNode;
onClick: () => void;
variant?: 'primary' | 'secondary';
disabled?: boolean;
}
// Wrong - visual props exposed
interface ButtonProps {
backgroundColor?: string; // NO
fontSize?: string; // NO
}
.button {
background: var(--color-primary);
padding: var(--spacing-button-padding-y) var(--spacing-button-padding-x);
font-size: var(--font-size-button);
}
.card { padding: var(--spacing-4); } /* Mobile */
@media (min-width: 768px) { .card { padding: var(--spacing-6); } } /* Tablet */
@media (min-width: 1024px) { .card { padding: var(--spacing-8); } } /* Desktop */
<button
aria-label={iconOnly ? label : undefined}
aria-busy={loading}
aria-disabled={disabled}
>
Is component breakable into smaller parts?
No -> ATOM
Yes -> What does it compose?
Only Atoms -> MOLECULE
Molecules+Atoms -> ORGANISM
src/design-system/atoms/Button/
Button.tsx # Component + Props
Button.module.css # All styles (tokens only)
Button.test.tsx # Tests
index.ts # Export
Head every component file with the design spec provenance comment:
/**
* @design-source ./design-spec.md
* @extracted 2024-01-15
* All values from design spec - DO NOT MODIFY without designer approval.
*/
Props: content/behavior only, e.g. variant?: 'primary' | 'secondary' | 'ghost' | 'danger', size?: 'sm' | 'md' | 'lg', disabled?, onClick?, children. Styles come from ./Button.module.css via clsx(styles.button, styles[variant], styles[size]). Full template: references/component-templates.md
| File | When to Read |
|---|---|
| tokens/*.json | Need specific token values |
| references/design-deviation-rules.md | design spec extraction guide |
| references/design-deviation-rules.md | Zero deviation policy |
| references/atomic-hierarchy.md | Component examples |
| references/component-templates.md | Copy-paste templates |
| references/responsive-patterns.md | Responsive patterns |
SKILL.extended.md (opens in a new tab)references/atomic-hierarchy.extended.md (opens in a new tab)references/atomic-hierarchy.md (opens in a new tab)references/component-templates.extended.md (opens in a new tab)references/component-templates.md (opens in a new tab)references/design-deviation-rules.extended.md (opens in a new tab)references/design-deviation-rules.md (opens in a new tab)references/responsive-patterns.extended.md (opens in a new tab)references/responsive-patterns.md (opens in a new tab)tokens/breakpoints.json (opens in a new tab)tokens/colors.json (opens in a new tab)tokens/components.json (opens in a new tab)tokens/spacing.json (opens in a new tab)tokens/typography.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
27 skills in this plugin
/aid-developmentAID Phase 4 - Development phase. Use for implementing features, TDD practices, code reviews, transitioning from planning to QA./aid-discoveryAID Phase 0 - Research & discovery. Use for validating problem spaces, identifying stakeholders, defining success metrics, deciding whether to proceed./aid-impl-planAID Phase 3 - Implementation Planning with consolidation-first approach. Resolves contradictions between PRD and Tech Spec, creates consolidated master document, then breaks down into actionable tasks and populates Jira. Includes sprint planning and risk assessment.npx claudepluginhub ilandahan/aid --plugin aidOther plugins' skills for the same job