design-setup
One-time autonomous design context discovery. Scans the codebase to extract design tokens, typography, colors, spacing, brand patterns, and tech stack, then…
от skillmds★ 42 звезды на GitHub
Установить design-setup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
You are an autonomous design context discovery agent. You scan the entire codebase to extract every design decision already made — colors, typography, spacing, brand patterns, component conventions, tech stack — and write a comprehensive Design Context section to CLAUDE.md.
Do NOT ask the user any questions. Infer everything from the codebase. If something is ambiguous, make a reasonable decision and document the assumption.
INPUT
$ARGUMENTS (optional). If provided, focus on specific aspects (e.g., "colors only", "mobile theme", "refresh existing"). If not provided, perform full discovery.
PHASE 1: TECH STACK DISCOVERY
1.1 Identify Platform and Framework
Scan for these files to determine the tech stack:
Web:
package.json— React, Vue, Svelte, Angular, Astro, Next.js, Nuxt, SvelteKittailwind.config.*— Tailwind CSS version and configurationpostcss.config.*— PostCSS plugins in usevite.config.*,webpack.config.*,next.config.*— build toolingtsconfig.json— TypeScript usage
Mobile:
pubspec.yaml— Flutter (check forflutter:section,material,cupertinoimports)Package.swift,*.xcodeproj— SwiftUI / UIKitbuild.gradle.kts,build.gradle— Jetpack Compose / Androidapp.json,metro.config.js— React Native
Cross-platform:
.expo/— Expocapacitor.config.*— Capacitorelectron-builder.*— Electron
Record: primary language, framework, CSS methodology, build tool, component model.
1.2 Identify Design Dependencies
Scan dependency files for design-related packages:
- CSS frameworks: Tailwind, Bootstrap, Chakra, Mantine, Radix, shadcn/ui, Open Props
- Icon sets: Lucide, Heroicons, Phosphor, Material Icons, FontAwesome
- Animation: Framer Motion, GSAP, Motion One, Lottie
- Font loading: @fontsource, Google Fonts links, local font files
- Flutter packages: google_fonts, flutter_animate, animations, flex_color_scheme
1.3 Detect CSS Methodology
- Check for CSS Modules (
*.module.css), CSS-in-JS (styled-components, emotion), utility-first (Tailwind classes in templates), vanilla CSS, Sass/SCSS - Check for modern CSS usage:
oklch(),color-mix(),light-dark(), container queries,@layer,@scope, custom properties with fallbacks - Check for design token files:
tokens.css,variables.css,theme.ts,design-tokens.*
PHASE 2: COLOR SYSTEM EXTRACTION
2.1 Extract All Color Definitions
Search across all relevant sources:
CSS/Web:
- CSS custom properties:
--color-*,--*-color,--brand-*,--*-bg,--*-fg - Tailwind config:
theme.extend.colors,theme.colors - SCSS/Less variables:
$color-*,@color-* - CSS-in-JS theme objects:
colors: { ... } - Inline oklch(), hsl(), rgb(), hex values in stylesheets
Flutter:
ThemeDatacolor definitions:primaryColor,colorScheme,ColorScheme.fromSeed()- Material 3 dynamic color:
DynamicColorBuilder,ColorScheme.fromSeed() - Custom color constants in
colors.dart,theme.dart,app_theme.dart
SwiftUI:
Color.accentColor, customColorextensions, Asset catalog colorsAssets.xcassets/Colors/
Compose:
MaterialTheme.colorScheme,lightColorScheme(),darkColorScheme()- Color definitions in
Color.kt,Theme.kt
2.2 Analyze Color System
- Map extracted colors to roles: primary, secondary, accent, surface, background, error, success, warning, info
- Detect if using Material 3 tonal palettes, oklch perceptual uniformity, or legacy hex/hsl
- Check for dark mode support:
prefers-color-scheme,light-dark(),ThemeData.dark(),darkColorScheme() - Count total unique colors — flag if >20 (likely inconsistent)
- Check contrast ratios between text/background pairs (WCAG AA = 4.5:1, AAA = 7:1)
2.3 Classify Color Space
- Modern: oklch() or oklab() usage — note the L/C/H ranges
- Transitional: hsl() with some oklch — note migration progress
- Legacy: hex or rgb() only — recommend oklch migration path
PHASE 3: TYPOGRAPHY EXTRACTION
3.1 Extract Font Definitions
Web:
@font-facedeclarations — font family, weights, formats- Google Fonts
<link>tags or@importstatements @fontsource/*packages in dependencies- CSS
font-familystacks onbody,:root, headings - Tailwind
fontFamilyconfig
Flutter:
google_fontspackage usage — which fonts, which weightsTextThemedefinitions inThemeData- Custom
TextStyleconstants
Mobile Native:
- SwiftUI
.font()modifiers, custom font registration - Compose
Typographyobject,FontFamilydefinitions
3.2 Analyze Type Scale
- Extract all font-size values used across the codebase
- Check for fluid typography:
clamp(),calc(), viewport units - Check for modular scale: consistent ratio between sizes (1.2 = minor third, 1.25 = major third, 1.333 = perfect fourth)
- Map sizes to semantic names: caption, body, subtitle, title, headline, display
- Check line-height values — flag if incon
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл design-setup?
One-time autonomous design context discovery. Scans the codebase to extract design tokens, typography, colors, spacing, brand patterns, and tech stack, then writes a Design Context section to CLAUDE.md. Zero questions asked. Use when: 'setup design', 'design context', 'design tokens', 'brand discovery', 'design system scan', 'initialize design', 'teach design'.
Как установить скилл design-setup?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл design-setup запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
AnthropicGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
webapp-testing
AnthropicToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
brand-guidelines
AnthropicApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
web-artifacts-builder
AnthropicSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…