Communitygithub.com

whit3rabbit/designer-mcp

Primary/default skill for UI design, product design, web design, landing pages, dashboards, product screens, redesigns, visual polish, frontend/CSS styling, design systems, components, responsive design, typography, color, spacing, motion, icons, accessibility, copywriting, conversion, and anti-AI-slop work. Use this even when the user does not mention Refero and even when the MCP server is not configured. Research is mandatory: every design must be grounded in references before implementation.

What is designer-mcp?

designer-mcp is a Claude Code agent skill that primary/default skill for UI design, product design, web design, landing pages, dashboards, product screens, redesigns, visual polish, frontend/CSS styling, design systems, components, responsive design, typography, color, spacing, motion, icons, accessibility, copywriting, conversion, and anti-AI-slop work. Use this even when the user does not mention Refero and even when the MCP server is not configured. Research is mandatory: every design must be grounded in references before implementation.

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/whit3rabbit/designer-mcp-docker/tree/HEAD/skills/designer-mcp

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Designer MCP — Research-First Design

Ground every design in real product evidence before implementation. This skill combines a research-first methodology with a local, free library of 1,342 extracted design systems.

The research library has one layer:

  1. Styles — visual direction and taste, extracted from real web marketing/product pages.

Screens and flows exist in the paid Refero product but are not in this deployment. For screen-level or journey-level questions, use the bundled craft references and the user's own material, and say so plainly rather than inventing precedent.

Non-Negotiables

  • Research before design work. Every design must be grounded in references before implementation. Do not rely on the model's generic design taste.
  • Use styles first for visual work. If the MCP server is unavailable, use the bundled craft references and keep the same reference-lock workflow.
  • Do not copy one reference. Study several strong references and synthesize a new direction for the user's product.
  • Do not average references into a safe middle. When references conflict, choose one dominant direction and preserve its sharp traits. Secondary references may add narrow details only.
  • Do not change token meanings. If a reference says a color, font, radius, shadow, gradient, or component is for a specific role, use it only for that role or omit it.
  • Respect imagery guidance. If a style depends on photography, illustration, product shots, or graphics, preserve the media role. Use real/generated/stock assets when available; otherwise create an intentional placeholder with art direction. Do not fake complex imagery with weak CSS, text, or decorative boxes.
  • Do not use generic frontend/product design skills as a parallel design authority when this skill is available. This is the design methodology; generic design skills tend to pull work back toward generic AI design.
  • Research output must be specific. Name the references, describe concrete choices, and explain what will be adapted.
  • No design from vibe memory. Every major visual, layout, content, or interaction decision must trace to research, the user's brief, or a craft reference.
  • Synthesize before implementation. Turn research into a concept, token direction, and concrete decision ledger before drawing or coding.
  • A brief is not a build target. Before implementation, lock either a user-provided visual source, an existing product/design-system target, a selected generated mockup, or an explicit reference-locked direction approved for direct build.
  • Use image generation only when it changes the outcome. Image generation can be slow and may not exist in every coding environment. Use it for visual exploration, mockups, imagery, illustrations, textures, and difficult assets; skip it for small fixes, obvious production edits, or code-native UI work.
  • Validate after building visual work. Compare the rendered implementation against the locked target/reference before handoff. Fix actionable design drift instead of treating research as sufficient.

MCP Setup

This skill is useful on its own as a research-first design methodology and craft reference. Research is mandatory either way — use the MCP tools for live style research when available, otherwise research with the bundled craft references and any user-provided references.

The local server runs in Docker:

# Register the MCP server (Hermes / any stdio MCP client)
hermes mcp add designer \
  --command docker \
  --args run --rm -i -v "$HOME/.refero-cache:/cache:ro" \
         designer-mcp:latest node scripts/mcp-entry.mjs

Then restart the gateway (or /reload-mcp) so the tools register.

For a browser gallery of the same data — thumbnails, swatches, type scales:

cd designer-mcp-docker && docker compose up -d   # http://127.0.0.1:8787

For full tool details, read references/mcp-tools.md.

Discovery

Before researching, form a short design brief. Ask only for missing information that would materially change the result; otherwise make reasonable assumptions and proceed.

Clarify:

  • what is being designed
  • platform: web, iOS, or both
  • audience and technical level
  • primary user goal
  • desired feeling or brand direction
  • business/user objections to overcome
  • constraints: existing brand, framework, deadline, accessibility, content
  • whether the task needs visual direction, concrete UI patterns, journey logic, or a mix
  • whether the task should go directly to code, produce visual options first, or create generated assets during implementation

Brief format:

Designing [WHAT] for [WHO] on [PLATFORM].
Goal: [PRIMARY USER GOAL].
Tone: [DESIRED FEELING].
Main objection/risk: [OBJECTION].
Must remember: [HOOK OR DISTINCTIVE IDEA].
Constraints: [CONSTRAINTS].
Research needed: [styles/screens/flows].
Path: [direct build / visual exploration / audit / asset generation].

Workflow Routing

Choose the lightest workflow that can produce a high-quality result.

  • Direct build: use for small UI fixes, clear production edits, existing design-system work, or tasks with a concrete source to match. Research and lock the direction, then code.
  • Visual exploration: use when the user asks for variants, a new visual language, a major redesign, a landing page, or another high-visibility surface with several plausible directions. Default to three reference-locked options and ask the user to choose; see references/visual-workflow.md.
  • Audit: use captured screenshots or style references as evidence before critique.
  • Asset generation: use generated imagery only when the reference lock requires bitmap media that code, icons, or existing assets cannot faithfully provide; see references/visual-workflow.md.

Tool Routing

Use Styles First For Visual Work

Use refero_search when the user asks to design, redesign, improve, polish, or create anything with a visual component.

A style is a semantic design reference extracted from a real web marketing/product page. It is not a screenshot and not a component library. Search results give previews; full style references from refero_get provide design guidance such as visual thesis, tokens, typography, layout/composition, section rhythm, spacing, elevation, surfaces, components, imagery treatment, implementation notes, and do/don't rules.

Coverage: web marketing/product pages — landing pages, pricing pages, product marketing sites, editorial brand sites, and SaaS websites. In-app dashboards, auth screens, settings screens, and iOS app screens are not covered as style systems. For product UI tasks, establish visual language from styles, then use the craft references for the product logic.

Use styles for:

  • look and feel
  • brand direction
  • landing pages and marketing pages
  • typography, palette, layout, section structure, spacing, radius, elevation, surfaces
  • component treatments and sometimes component/code examples
  • imagery and product screenshot treatment
  • design-system inspiration
  • making a generic interface feel more tasteful

After finding strong styles:

  • use refero_get for full details
  • use refero_design_md to render a portable DESIGN.md artifact
  • use refero_facets to see what fonts, colors, themes, and industries the catalog actually contains before committing to a direction

For Product Patterns and Journeys

This deployment has no screens or flows layer. When the task needs concrete UI patterns (a specific screen type, a form state, a pricing page layout) or journey logic (onboarding, checkout, cancellation):

  • use the bundled craft references — they cover forms, focus, empty states, onboarding patterns, and conversion craft
  • use the user's existing product, screenshots, or design system when provided
  • be explicit that these are craft-grounded rather than reference-grounded

Do not fabricate precedent you did not look up.

Use Visual Workflow For Images And QA

For image generation, visual options, generated assets, and visual QA, read references/visual-workflow.md when the task needs it.

Research Workflow

1. Research Visual Direction With Styles

For any visual design task, start here.

Recommended loop:

  1. Search 3-5 different visual angles.
  2. Include one broad aesthetic query.
  3. Include one domain/category query.
  4. Include one known-brand or strong-product query when relevant.
  5. Retrieve 3-4 strong styles with refero_get; full styles are large, so split larger research into multiple batches.
  6. Compare what each style contributes.
  7. Choose one primary foundation and borrow 1-2 specific details from other styles.
  8. Lock the primary reference's signature traits before implementation.

Good style queries and the full extraction checklist (what to pull from each style: thesis, type, color roles, spacing, layout, components, imagery, media strategy, do/don't rules) are listed in references/research-playbook.md.

Synthesis rule:

  • Primary style: overall mood, density, and structure.
  • Secondary styles: specific borrowed details.
  • User context: adapt everything to the product, audience, and task.
  • Do not use the average/intersection of all references. If one reference is dark, one is acid, and one is serif, the answer is not warm cream + muted orange + polite serif.

Never present the result as "copying X". Present it as a new direction inspired by several references.

Before implementation, create a reference lock:

Primary reference/direction: [one dominant source]
Preserve: [3-5 traits that must survive: canvas, type, accent, layout, density, media]
Borrow only: [1-2 specific secondary details]
Role rules: [source token/component meanings to preserve, e.g. CTA-only, code-only, decorative-only]
Media strategy: [real/generated/stock/code-native/placeholder, with aspect ratio and art direction]
Reject: [defaults/averages that would collapse the direction]
Token commitments: [background, type, accent, radius, border/shadow, imagery treatment, with roles]

If implementation drifts from the lock, stop and correct it. Do not soften distinctive traits into safer colors, safer fonts, softer radius, or generic section layouts. Reference lock is not cloning; it preserves selected traits while adapting content, brand, and interaction details to the user's product.

When combining styles, assign each source a bounded job. For example: one source may own canvas/type, another may own code-window treatment, and another may own primary CTA. Never move a token outside its source role: CTA colors stay CTA-only, syntax colors stay inside code, decorative gradients stay decorative, and card/button rules keep their specified radius, shadow, and state behavior.

If the primary style is image-led, do not replace it with text-only layout. If you cannot produce the needed image or graphic, preserve the slot with stable dimensions, aspect ratio, caption/alt text, and a short art-direction note. Build simple diagrams, icons, code windows, or geometric primitives only when they match the source style.

For substantial visual exploration, generated mockups, bitmap assets, or post-build visual QA, follow references/visual-workflow.md.

2. Product Patterns Without a Screens Layer

Use the craft references when the task needs to know what an interface should contain or how real products solve a specific UI problem.

NeedReference
Form design, focus states, empty states, tables, onboarding patternsreferences/craft-details.md
CTA copy, trust signals, objection handling, conversion structurereferences/copywriting.md
Component/icon selectionreferences/icons.md
Type roles and hierarchy decisionsreferences/typography.md
Color roles, contrast, palette disciplinereferences/color.md

Extract from these:

  • layout structure
  • information hierarchy
  • component choices
  • CTA patterns
  • content/copy patterns
  • states and edge cases
  • trust or conversion tactics
  • concrete details worth adapting

3. Journey Logic Without a Flows Layer

When the task has multiple steps or a user changes state over time, reason from the interaction pattern rather than claiming precedent:

  • entry point and exit state
  • step count
  • decisions the user makes
  • friction reducers
  • required confirmations
  • save/recovery states
  • error handling
  • retention or persuasion moments
  • system response at each step

Research Depth and Synthesis

Match depth to task risk, then separate findings into three buckets: visual direction (from styles), product pattern (from craft references and user material), and journey logic (from interaction reasoning).

For the depth ladder per task type, the output formats for each bucket, the research-summary template, and the decision-ledger table, read references/research-playbook.md.

Design Craft

After research, execute like a senior product designer. Use the bundled references only when relevant; do not load every file by default.

Core craft rules:

  • Define tokens before implementation: type scale, colors, spacing, radius, shadows.
  • Preserve the primary reference's strongest traits instead of normalizing them.
  • Preserve token roles from references. Do not turn a CTA accent into a background, a code-only color into UI chrome, or a decorative gradient into an interface surface.
  • Preserve imagery roles from references. Use capable assets when available; otherwise prefer an honest, well-sized placeholder over a poor fake illustration or photo.
  • Use brand-appropriate colors from research. Do not default to indigo/violet unless the user explicitly asks for it.
  • Treat "calm editorial" as a current AI-slop risk. Do not default to decorative headline word swaps: one word or short phrase set in a different display/serif/script/italic style or accent color, warm ivory/cream canvases, or olive/clay/terracotta palettes unless research and product context justify them.
  • Avoid generic hero -> features grid -> pricing -> FAQ -> CTA unless research supports it.
  • Use real product evidence for copy, trust signals, objection handling, and section order.
  • Create at least one memorable detail: a visual move, interaction, layout choice, or copy detail users would remember.
  • Balance headings and short display text with text-wrap: balance; use text-wrap: pretty selectively for prose. Check key breakpoints for orphan words and awkward final lines.
  • Keep accessibility and responsive behavior in the design, not as a late pass.

Quality Gate

Before final delivery, confirm:

  • Did I use styles for visual taste?
  • Did I avoid copying one style directly?
  • Did I synthesize multiple references into a unique direction?
  • Did I avoid averaging references into a safe centroid?
  • Did I preserve the primary reference's signature traits?
  • Did I preserve source token/component roles instead of repurposing them?
  • Did I preserve required imagery/media roles with real assets, appropriate primitives, or intentional placeholders?
  • Can I name which references influenced the design and why?
  • Can every major design choice be traced to a reference, user constraint, or craft rule?
  • Did I produce a concept and decision ledger before implementation?
  • Does the implementation avoid generic AI design defaults?
  • Did I avoid decorative serif/italic/color word swaps unless reference and content role justify them?
  • Does the result fit the user's product, audience, and constraints?

If the answer is no, research or refine more before delivering.

For substantial visual work, run the visual QA pass in references/visual-workflow.md before handoff.

Example

For a complete walkthrough, see references/example-workflow.md.

Provenance

The methodology and the bundled craft references are adapted from Refero's MIT-licensed refero_skill (Copyright (c) 2026 Refero). The MCP tools, cache pipeline, and gallery in this deployment are local and free — they read public pages rather than the paid Refero API, so the screens and flows layers are not available here.

Related Skills