design-direction
БесплатноЗапускает вложенные скриптыНе проверенTurns a product brief into a design-system spec: style direction, contrast-checked palette, type pairing, tokens, UX rules and chart choices. Use when…
от borghei★ 1 250 звёзд на GitHubОб этом скилле
Design Direction
Most interface problems are decided before anyone draws a screen: the wrong style for the audience, a brand colour that fails contrast on every button, three webfonts, a spacing scale nobody chose. This skill makes those decisions from a written brief, in order, and shows its working. A recommender maps the product to one of 50 product types, adjusts for cues in the brief (pre-launch, enterprise buyer, outdoor use, beginners), and from there picks a style direction, a palette whose contrast is computed in both modes, a type pairing with roles, spacing/radius/icon/motion tokens, a landing pattern and the core screens with their section order, a duration per interaction, the UX rules to review first, and the right chart for each data question. A checker then audits any token file or CSS theme against the same rules, and a pre-delivery checklist covers what tokens cannot prove.
The agent never states a contrast ratio it has not computed and never calls a spec consistent by hand: the tool's verdict and findings go into the deliverable as printed.
When to use this skill
- Starting a new product or redesign and the team needs one agreed direction before building screens
- Choosing a palette or typefaces for a product type, with the reasoning written down
- Fitting a brand colour into UI without it failing contrast on buttons and links
- Auditing an inherited theme (CSS custom properties or tokens JSON) before a release
- Picking a chart for a dashboard from the question it must answer
- Structuring a landing page or core screen: section order, where the primary action sits, what evidence the page must carry
- Setting motion per interaction (dialogs, toasts, lists, page changes) with the reduced-motion replacement for each
- Final check before handing back built UI against the pre-delivery checklist
- Setting the review order for a design critique: which rules matter most for this product
This skill decides what system to use. For building a finished marketing site from the spec, or for refining an existing interface screen by screen, use a frontend build or interface-refinement skill; for component APIs and governance, use a design-system programme skill.
Inputs the skill expects
- A brief: one sentence on the product and who it is for (required); platform, mode,
contrast target, brand colour, stack, mood words, a forced direction or type pairing, data questions,
and directions to avoid (optional). Field list in
references/design-decision-guide.md. - For an audit: a tokens JSON file, the recommender's JSON output, or the
.cssfiles that define the theme's custom properties.
Clarify First
The product type and the audience shape every downstream choice. Settle the inputs below before producing a spec. When one is missing and would change the result, ask; when it would not, use the default and say so at the top of the spec.
- Who uses it, where, and on what device: decides platform, touch target, density and whether low-vision or motion-sensitive defaults apply.
- Light, dark or both:
bothdoubles the palette work and the contrast checks; agree it now, not after the build. - Fixed brand inputs: a brand colour or typeface that cannot change. The tool adjusts colours for contrast and reports the shade it used.
- AA or AAA: AAA narrows the palette set sharply (5 of 22 bundled palettes pass in both modes).
- What the public page must do: sell now, collect a waitlist, book a demo, or get an app installed. Say it in the brief ("pre-launch", "enterprise", "mobile app"); it changes the landing pattern.
- What the data must answer: dashboards need questions in plain words ("revenue trend over 12 months"), not chart names.
Ask about the two or three that matter most for this request. If the user wants a result
straight away, run quick mode (--product "...") and list the assumed defaults.
Quick Start
# 1. Brief -> spec (exit 1 if the brief contradicts itself)
python3 product-team/design-direction/scripts/design_recommender.py \
--brief product-team/design-direction/assets/sample_brief.json
# 2. Save the spec, then render it as a design-system document and a CSS theme
python3 product-team/design-direction/scripts/design_recommender.py \
--brief product-team/design-direction/assets/sample_brief.json --format json > spec.json
python3 product-team/design-direction/scripts/spec_renderer.py --spec spec.json --format markdown > DESIGN-SPEC.md
python3 product-team/design-direction/scripts/spec_renderer.py --spec spec.json --format css > theme.css
# 3. Audit a CSS theme: extract its tokens, then check them (exit 1 on critical/high)
python3 product-team/design-direction/scripts/css_token_extractor.py \
--css product-team/design-direction/assets/sample_theme_flawed.css --format json > tokens.json
python3 product-team/design-direction/scripts/design_spec_checker.py --tokens tokens.json
Установить design-direction в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл design-direction?
Turns a product brief into a design-system spec: style direction, contrast-checked palette, type pairing, tokens, UX rules and chart choices. Use when starting a new product's UI, picking a palette or fonts, or auditing a token file.
Как установить скилл design-direction?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл design-direction запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic