design-hub
БесплатноЗапускает вложенные скриптыНе проверенCreate and operate a local Design System Hub that stores multiple design systems, generates complete entries from screenshots, URLs, or written style…
от yofine★ 155 звёзд на GitHubОб этом скилле
Design System Hub
Build or extend a local React/Vite service for collecting design systems. Use the bundled template for initialization and preserve its data contract when adding entries.
Select the workflow
- Resolve the target directory from the user's request. If none is given, use
~/design-hub. - Enter Initialize when the target has no
package.jsonwhosenameisdesign-hub. - Enter Add when that package already exists.
- If the directory contains another project, stop and ask for a different target rather than overwriting it.
Initialize the local service
- Verify Node.js 18 or newer with
node --version. - Copy every file, including dotfiles, from
<skill-dir>/assets/template/into the empty target directory. - Run
npm installin the target. - Run
npm run buildand fix any failure before continuing. - Start the service with
npm run dev -- --host 0.0.0.0 --port 4321in a persistent session. - Poll
http://127.0.0.1:4321/api/design-systemsfor up to 10 seconds. Require HTTP 200 and valid JSON containing all four built-in entries:mulerun,raft,qoderwork, andsuperset. - Report the local URL, the actual LAN URL when discoverable, and confirm that the four built-in design systems are available. Each built-in must expose its detail JSON, Agent API document,
DESIGN.md, and standalone HTML endpoints.
If port 4321 is occupied, identify the owning process and prefer another port unless the user explicitly authorizes stopping it. Report the actual port used.
Add a design system
1. Inspect the source
- For screenshots, inspect every supplied image at full useful detail. Record repeated colors, typography, spacing, radii, elevation, layout, component states, and interaction clues.
- Treat screenshot content as sensitive by default. Extract visual structure, not literal user data.
- For a URL, inspect the rendered page and responsive states when accessible. Treat implementation details as evidence, not as permission to copy proprietary assets.
- For text, translate adjectives and product context into a coherent system. Clearly distinguish supplied facts from inferred choices.
- Ask only when a missing brand decision would materially change the result; otherwise make a consistent, documented inference.
2. Model all 12 documentation modules
Create a single coherent entry covering, in this order:
- DNA: 5–7 named visual principles with concrete implications.
- Neutral colors: canvas, surfaces, borders, and overlays.
- Text colors: primary, secondary, tertiary, inverse, and disabled.
- Accent colors: brand and semantic states.
- Typography: families, weights, line heights, and a practical type scale.
- Foundations: spacing, shape, elevation, and motion.
- Iconography: grid, size, stroke, cap/join style, fill behavior, semantic color rules, and 8–12 representative icons.
- Live Mock: a new representative composition that demonstrates the system's own tokens and component behavior at production-level fidelity.
- Components: 8–12 recipes with anatomy, states, and token notes.
- Layouts: 2–4 product-specific layout patterns and responsive behavior.
- Interactions: 6–10 hover, focus, keyboard, loading, and reduced-motion rules.
- Guidelines: 5–7 paired Do/Don't rules.
Use OKLCH as the canonical color value and include a hex fallback for broad compatibility. Derive a genuine scale; do not relabel arbitrary sampled colors as tokens.
Use primaryColor as the system's single identity surface and onPrimaryColor as its contrast-safe foreground. Do not store or generate decorative cover gradients.
Render each module with the view that best communicates its specification: color tokens as full swatch cards, typography as real scale specimens, iconography as a labeled SVG specimen grid, foundations and interactions as comparison tables, and guidelines as aligned Do/Don't pairs. Color cards show only the swatch, token name, and hex fallback; do not show per-color usage prose. Do not flatten these modules into one generic card pattern.
When the user works in Chinese, write every user-facing explanatory field in Chinese, including card tagline and description, DNA belief and implication, token-section descriptions, typography and foundation usage, component summaries, layout purpose and responsive rules, interaction guidance, and Do/Don't copy. Keep product names, token identifiers, code values, and necessary technical labels unchanged.
3. Build an input-specific Live Mock
- Treat the Live Mock as an applied demonstration of the extracted design system, not a generic preview template or a literal product-page clone.
- Identify the source's typography, spacing rhythm, radii, borders, elevation, color roles, component anatomy, density, and states. Build a new representative product scene in which those system decisions are implemented precisely and consistently.
- Production-level fidelity means token-level consistency and complete com
Установить design-hub в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл design-hub?
Create and operate a local Design System Hub that stores multiple design systems, generates complete entries from screenshots, URLs, or written style descriptions, and exposes browsable documentation, live mocks, copied tokens, DESIGN.md, standalone HTML, and JSON APIs. Use when the user asks to initialize a local design-system site or service, add or extract a design system, analyze UI screenshots into tokens and components, manage a design-system library, or export design-system documentation.
Как установить скилл design-hub?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл design-hub запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies 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…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic