Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Assembles component outputs from AI Design Components skills into unified, production-ready component systems with validated token integration, proper import chains, and framework-specific scaffolding. Use as the capstone skill after running theming, layout, dashboard, data-viz, or feedback skills to wire components into working React/Next.js, Python, or Rust projects.
.claude/skills/ancoleman-assembling-components/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | 88% | 0% |
| case-01 | ✗→✓ | ▲ Improved | 154% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 166% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 104% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 153% | 0% |
This skill transforms the outputs of AI Design Components skills into production-ready applications. It provides library-specific context for our token system, component patterns, and skill chain workflow - knowledge that generic assembly patterns cannot provide. The skill validates token integration, generates proper scaffolding, and wires components together correctly.
Activate this skill when:
This skill understands the output of every AI Design Components skill:
┌──────────────────┐ ┌──────────────────┐ ┌──────────────────┐
│ theming- │────▶│ designing- │────▶│ creating- │
│ components │ │ layouts │ │ dashboards │
└──────────────────┘ └──────────────────┘ └──────────────────┘
│ │ │
▼ ▼ ▼
tokens.css Layout.tsx Dashboard.tsx
theme-provider.tsx Header.tsx KPICard.tsx
│ │ │
└────────────────────────┴────────────────────────┘
│
▼
┌──────────────────────┐
│ visualizing-data │
│ providing-feedback │
└──────────────────────┘
│
▼
DonutChart.tsx
Toast.tsx, Spinner.tsx
│
▼
┌──────────────────────┐
│ ASSEMBLING- │
│ COMPONENTS │
│ (THIS SKILL) │
└──────────────────────┘
│
▼
WORKING COMPONENT SYSTEM| Skill | Primary Outputs | Token Dependencies | |-------|-----------------|-------------------| | theming-components | tokens.css, theme-provider.tsx | Foundation | | designing-layouts | Layout.tsx, Header.tsx, Sidebar.tsx | --spacing-, --color-border- | | creating-dashboards | Dashboard.tsx, KPICard.tsx | All layout + chart tokens | | visualizing-data | Chart components, legends | --chart-color-, --font-size- | | building-forms | Form inputs, validation | --spacing-, --radius-, --color-error | | building-tables | Table, pagination | --color-, --spacing- | | providing-feedback | Toast, Spinner, EmptyState | --color-success/error/warning |
bash# Basic validation python scripts/validate_tokens.py src/styles # Strict mode with fix suggestions python scripts/validate_tokens.py src --strict --fix-suggestions # JSON output for CI/CD python scripts/validate_tokens.py src --json
css/* Colors - semantic naming */ --color-primary: #FA582D; /* Brand primary */ --color-success: #00CC66; /* Positive states */ --color-warning: #FFCB06; /* Caution states */ --color-error: #C84727; /* Error states */ --color-info: #00C0E8; /* Informational */ --color-bg-primary: #FFFFFF; /* Main background */ --color-bg-secondary: #F8FAFC; /* Elevated surfaces */ --color-text-primary: #1E293B; /* Body text */ --color-text-secondary: #64748B; /* Muted text */ /* Spacing - 4px base unit */ --spacing-xs: 0.25rem; /* 4px */ --spacing-sm: 0.5rem; /* 8px */ --spacing-md: 1rem; /* 16px */ --spacing-lg: 1.5rem; /* 24px */ --spacing-xl: 2rem; /* 32px */ /* Typography */ --font-size-xs: 0.75rem; /* 12px */ --font-size-sm: 0.875rem; /* 14px */ --font-size-base: 1rem; /* 16px */ --font-size-lg: 1.125rem; /* 18px */ /* Component sizes */ --icon-size-sm: 1rem; /* 16px */ --icon-size-md: 1.5rem; /* 24px */ --radius-sm: 4px; --radius-md: 8px; --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
| Must Use Tokens (Errors) | Example Fix | |--------------------------|-------------| | Colors | #FA582D → var(--color-primary) | | Spacing (≥4px) | 16px → var(--spacing-md) | | Font sizes | 14px → var(--font-size-sm) |
| Should Use Tokens (Warnings) | Example Fix | |------------------------------|-------------| | Border radius | 8px → var(--radius-md) | | Shadows | 0 4px... → var(--shadow-md) | | Z-index (≥100) | 1000 → var(--z-dropdown) |
Choose Vite + React when:
Choose Next.js 14/15 when:
Choose FastAPI when:
Choose Flask when:
Choose Axum when:
Choose Actix Web when:
Before assembly, check all CSS uses tokens:
bashpython scripts/validate_tokens.py <component-directory>
Fix any violations before proceeding.
React/Vite:
tsx// src/main.tsx - Entry point import { StrictMode } from 'react' import { createRoot } from 'react-dom/client' import { ThemeProvider } from '@/context/theme-provider' import App from './App' import './styles/tokens.css' // FIRST - token definitions import './styles/globals.css' // SECOND - global resets createRoot(document.getElementById('root')!).render( <StrictMode> <ThemeProvider> <App /> </ThemeProvider> </StrictMode>, )
index.html:
html<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>{{PROJECT_TITLE}}</title> </head> <body> <div id="root"></div> <script type="module" src="/src/main.tsx"></script> </body> </html>
Theme Provider:
tsx// src/context/theme-provider.tsx import { createContext, useContext, useEffect, useState } from 'react' type Theme = 'light' | 'dark' | 'system' const ThemeContext = createContext<{ theme: Theme setTheme: (theme: Theme) => void } | undefined>(undefined) export function ThemeProvider({ children }: { children: React.ReactNode }) { const [theme, setTheme] = useState<Theme>('system') useEffect(() => { const root = document.documentElement const systemTheme = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light' root.setAttribute('data-theme', theme === 'system' ? systemTheme : theme) localStorage.setItem('theme', theme) }, [theme]) return ( <ThemeContext.Provider value={{ theme, setTheme }}> {children} </ThemeContext.Provider> ) } export const useTheme = () => { const context = useContext(ThemeContext) if (!context) throw new Error('useTheme must be used within ThemeProvider') return context }
Barrel Exports:
tsx// src/components/ui/index.ts export { Button } from './button' export { Card } from './card' // src/components/features/dashboard/index.ts export { KPICard } from './kpi-card' export { DonutChart } from './donut-chart' export { Dashboard } from './dashboard'
vite.config.ts:
typescriptimport { defineConfig } from 'vite' import react from '@vitejs/plugin-react' import path from 'path' export default defineConfig({ plugins: [react()], resolve: { alias: { '@': path.resolve(__dirname, './src'), }, }, })
tsconfig.json:
json{ "compilerOptions": { "target": "ES2020", "lib": ["ES2020", "DOM", "DOM.Iterable"], "module": "ESNext", "moduleResolution": "bundler", "jsx": "react-jsx", "strict": true, "baseUrl": ".", "paths": { "@/*": ["./src/*"] } }, "include": ["src"] }
tsx// Import tokens first, components inherit token values import './styles/tokens.css' // Use ThemeProvider at root <ThemeProvider> <App /> </ThemeProvider>
tsx// Components from creating-dashboards skill import { Dashboard, KPICard } from '@/components/features/dashboard' // Wire with data <Dashboard> <KPICard label="Total Threats" value={1234} severity="critical" trend={{ value: 15.3, direction: 'up' }} /> </Dashboard>
tsx// Charts from visualizing-data skill import { DonutChart } from '@/components/charts' // Charts use --chart-color-* tokens automatically <DonutChart data={threatData} title="Threats by Severity" />
tsx// From providing-feedback skill import { Toast, Spinner, EmptyState } from '@/components/feedback' // Wire toast notifications <ToastProvider> <App /> </ToastProvider> // Use spinner for loading states {isLoading ? <Spinner /> : <Dashboard />}
Before delivery, verify:
tokens.css) with all 7 categoriesvalidate_tokens.py)data-theme attribute switches)@media (prefers-reduced-motion))scripts/validate_tokens.py - Validate CSS uses design tokensscripts/generate_scaffold.py - Generate project boilerplatescripts/check_imports.py - Validate import chainsscripts/generate_exports.py - Create barrel export filesRun scripts directly without loading into context:
bashpython scripts/validate_tokens.py demo/examples --fix-suggestions
references/library-context.md - AI Design Components library awarenessreferences/react-vite-template.md - Full Vite + React setupreferences/nextjs-template.md - Next.js 14/15 patternsreferences/python-fastapi-template.md - FastAPI project structurereferences/rust-axum-template.md - Rust/Axum project structurereferences/token-validation-rules.md - Complete validation rulesexamples/react-dashboard/ - Full Vite + React dashboardexamples/nextjs-dashboard/ - Next.js App Router dashboardexamples/fastapi-dashboard/ - Python FastAPI dashboardexamples/rust-axum-dashboard/ - Rust Axum dashboardassets/templates/react/ - React project templatesassets/templates/python/ - Python project templatesassets/templates/rust/ - Rust project templatesvalidate_tokens.py on all generated CSSFor library-specific patterns and complete context, see references/library-context.md.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-04 | fail→pass | 13,797 | 3,755 | -73% | 1 | 1 | 0% | 2,160 | 4,057 | +88% | 0 | 0 | — |
case-05 | pass→pass | 14,676 | 12,008 | -18% | 1 | 1 | 0% | 2,746 | 5,771 | +110% | 0 | 0 | — |
case-01 | fail→pass | 12,009 | 9,765 | -19% | 1 | 1 | 0% | 2,091 | 5,307 | +154% | 0 | 0 | — |
case-02 | fail→pass | 11,838 | 12,415 | +5% | 1 | 1 | 0% | 2,329 | 6,195 | +166% | 0 | 0 | — |
case-03 | fail→fail | 28,235 | 27,420 | -3% | 1 | 1 | 0% | 6,194 | 9,651 | +56% | 0 | 0 | — |
case-06 | fail→pass | 10,395 | 3,936 | -62% | 1 | 1 | 0% | 2,038 | 4,150 | +104% | 0 | 0 | — |
case-07 | pass→pass | 14,447 | 6,053 | -58% | 1 | 1 | 0% | 1,383 | 4,591 | +232% | 0 | 0 | — |
case-08 | pass→fail | 5,981 | 4,527 | -24% | 1 | 1 | 0% | 879 | 4,204 | +378% | 0 | 0 | — |
case-09 | pass→pass | 13,982 | 4,448 | -68% | 1 | 1 | 0% | 1,861 | 4,138 | +122% | 0 | 0 | — |
case-10 | pass→pass | 10,738 | 6,671 | -38% | 1 | 1 | 0% | 1,946 | 4,629 | +138% | 0 | 0 | — |
case-11 | fail→pass | 13,066 | 10,047 | -23% | 1 | 1 | 0% | 2,080 | 5,262 | +153% | 0 | 0 | — |
case-12 | pass→pass | 11,074 | 6,069 | -45% | 1 | 1 | 0% | 1,961 | 4,543 | +132% | 0 | 0 | — |
case-13 | pass→pass | 11,904 | 6,439 | -46% | 1 | 1 | 0% | 2,006 | 4,510 | +125% | 0 | 0 | — |
case-14 | pass→pass | 15,892 | 11,396 | -28% | 1 | 1 | 0% | 2,794 | 5,617 | +101% | 0 | 0 | — |
case-15 | fail→pass | 15,742 | 21,798 | +38% | 1 | 1 | 0% | 2,451 | 7,639 | +212% | 0 | 0 | — |
case-16 | fail→pass | 10,283 | 2,852 | -72% | 1 | 1 | 0% | 1,708 | 3,854 | +126% | 0 | 0 | — |
case-17 | fail→pass | 10,750 | 2,342 | -78% | 1 | 1 | 0% | 1,733 | 3,786 | +118% | 0 | 0 | — |
case-18 | fail→pass | 14,077 | 11,933 | -15% | 1 | 1 | 0% | 2,127 | 4,085 | +92% | 0 | 0 | — |
case-19 | fail→fail | 26,292 | 12,607 | -52% | 1 | 1 | 0% | 2,462 | 5,700 | +132% | 0 | 0 | — |
case-20 | pass→pass | 15,114 | 16,286 | +8% | 1 | 1 | 0% | 2,634 | 6,669 | +153% | 0 | 0 | — |
case-21 | pass→pass | 5,598 | 5,425 | -3% | 1 | 1 | 0% | 1,144 | 4,361 | +281% | 0 | 0 | — |
case-22 | pass→pass | 18,083 | 12,383 | -32% | 1 | 1 | 0% | 3,283 | 5,907 | +80% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +36 percentage points is the difference between those two pass rates over the 22 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.