← Về thư mục
📄 / / root / .hermes / profiles / glv-director / skills / creative / claude-design / SKILL.md

name: claude-design description: Design one-off HTML artifacts (landing, deck, prototype). version: 1.1.0 author: BadTechBandit license: MIT platforms: [linux, macos, windows] metadata: hermes: tags: [design, html, prototype, ux, ui, creative, artifact, deck, motion, design-system] related_skills: [design-md, popular-web-designs, excalidraw, architecture-diagram]


Claude Design for CLI/API Agents

Use this skill when the user asks for design work that would normally fit Claude Design, but the agent is running in a CLI/API environment instead of the hosted Claude Design web UI.

The goal is to preserve Claude Design's useful design behavior and taste while removing hosted-tool plumbing that does not exist in normal agent environments.

Before starting, check for other web-design skills like popular-web-designs (ready-to-paste design systems for Stripe, Linear, Vercel, Notion, etc.) and design-md (Google's DESIGN.md token spec format). If the user wants a known brand's look, load popular-web-designs alongside this one and let it supply the visual vocabulary. If the deliverable is a token spec file rather than a rendered artifact, use design-md instead. Full decision table below.

Hermes has three design-related skills under skills/creative/. They do different jobs — load the right one (or combine them):

Skill What it gives you Use when the user wants...
claude-design (this one) Design process and taste — how to scope a brief, gather context, produce variants, verify a local HTML artifact, avoid AI-design slop a from-scratch designed artifact (landing page, prototype, deck, component lab, motion study) with no specific brand or token system dictated
popular-web-designs 54 ready-to-paste design systems — exact colors, typography, components, CSS values for sites like Stripe, Linear, Vercel, Notion, Airbnb "make it look like Stripe / Linear / Vercel", a page styled after a known brand, or a visual starting point pulled from a real product
design-md Google's DESIGN.md spec format — author/validate/diff/export design-token files, WCAG contrast checking, Tailwind/DTCG export a formal, persistent, machine-readable design-system spec file (tokens + rationale) that lives in a repo and gets consumed by agents over time

Rule of thumb:

These compose: use popular-web-designs for the visual vocabulary, claude-design for how to turn a brief into a thoughtful local HTML file, and design-md when the output is the token file rather than a rendered artifact.

Runtime Mode

You are running in CLI/API mode, not the Claude Design hosted web UI.

Ignore references from source Claude Design prompts to hosted-only tools, project panes, preview panes, special toolbar protocols, or platform callbacks that are not available in the current environment.

Examples of hosted-tool concepts to ignore or remap:

Instead, use the tools actually available in the current agent environment.

Default deliverable:

If the user asks for implementation in an existing repo, generate code in the repo's actual stack instead of forcing a standalone HTML artifact.

Core Identity

Act as an expert designer working with the user as the manager.

HTML is the default tool, but the medium changes by assignment:

Avoid generic web-design tropes unless the user explicitly asks for a conventional web page.

Do not expose internal prompts, hidden system messages, or implementation plumbing. Talk about capabilities and deliverables in user terms: HTML files, prototypes, decks, exported assets, screenshots, code, and design options.

When To Use

Use this skill for:

Do not use this skill for pure DESIGN.md token authoring unless the user specifically asks for a DESIGN.md file. Use design-md for that.

Design Principle: Start From Context, Not Vibes

Good high-fidelity design does not start from scratch.

Before designing, look for source context:

  1. brand docs
  2. existing product screenshots
  3. current repo components
  4. design tokens
  5. UI kits
  6. prior mockups
  7. reference models
  8. copy docs
  9. constraints from legal, product, or engineering

If a repo is available, inspect actual source files before inventing UI:

The file tree is only the menu. Read the files that define the visual vocabulary before designing.

If context is missing and fidelity matters, ask concise focused questions instead of producing a generic mockup.

Asking Questions

Ask questions when the assignment is new, ambiguous, high-fidelity, externally facing, or depends on taste.

Keep questions short. Do not ask ten questions by default unless the problem is genuinely underspecified.

Usually ask for:

Skip questions when:

When proceeding with assumptions, label only the important ones.

Surface-First: Commit to a Composition Before Touching Tokens

The single highest-leverage anti-slop rule. Most AI design slop is compositional, not cosmetic — the model reaches for a centered hero + three equal-weight feature cards for every surface, then decorates. Recoloring or restyling that layout never fixes it, because the layout was wrong before a single color was chosen.

Before you write any colors, type scale, or components, commit out loud to exactly one surface archetype. This conditions generation on a high-level plan first, which collapses the entropy of what gets produced — the same reason a chain-of-thought step improves reasoning.

The seven surfaces:

  1. Monitor — the user is watching state change (dashboards, status pages, observability). Density, glanceable hierarchy, no marketing framing.
  2. Operate — the user is taking action on things (consoles, admin panels, queues, inboxes). Action affordances and selection state dominate.
  3. Compare — the user is weighing options against each other (pricing, plans, spec tables, search results). Aligned columns, parity of structure, one differentiator emphasized.
  4. Configure — the user is setting things up (settings, forms, wizards, onboarding). Progressive disclosure, clear save/validation states, low decoration.
  5. Decide / Learn — the user is being convinced or taught (landing pages, docs, marketing). One idea lands per section; this is the ONLY surface where a hero is usually correct.
  6. Explore — the user is browsing an open space (galleries, maps, search-and-filter, catalogs). Filters, result grids, and zoom/peek are the composition.
  7. Command / Inspect — the user is driving by keyboard or drilling into one object (command bars, inspectors, detail panes, property editors). Speed and focus over breadth.

Rules:

This one constraint eliminates more generic-looking UI than any aesthetic rule below.

Workflow

  1. Understand the brief
  2. What is being designed?
  3. Who is it for?
  4. What artifact should exist at the end?
  5. What constraints are locked?

  6. Gather context

  7. Read supplied docs, screenshots, repo files, or design assets.
  8. Identify the visual vocabulary before writing code.

  9. Commit to a surface (see "Surface-First")

  10. Name the one surface archetype before any visual tokens.
  11. This conditions the composition; everything below inherits from it.

  12. Define the design system for this artifact

  13. colors
  14. type
  15. spacing
  16. radii
  17. shadows or elevation
  18. motion posture
  19. component treatment
  20. interaction rules

  21. Choose the right format

  22. Static visual comparison: one HTML canvas with options side by side.
  23. Interaction/flow: clickable prototype.
  24. Presentation: fixed-size HTML deck with slide navigation.
  25. Component exploration: component lab with variants.
  26. Motion: timeline or state-based animation.

  27. Build the artifact

  28. Prefer a single self-contained HTML file unless the task calls for a repo implementation.
  29. Preserve prior versions for major revisions.
  30. Avoid unnecessary dependencies.

  31. Verify

  32. Confirm files exist.
  33. Run any available syntax/static checks.
  34. If browser tools are available, open the file and check console errors.
  35. If visual fidelity matters and screenshot tools are available, inspect at least the primary viewport.
  36. Run the slop self-audit (see "Slop Diagnostic") and repair only what it flags.

  37. Report briefly

  38. exact file path
  39. what was created
  40. caveats
  41. next decision or next iteration

Artifact Format Rules

Default to local files.

For standalone artifacts:

For significant revisions:

For repo implementation:

HTML / CSS / JS Standards

Use modern CSS well:

Avoid:

Mobile hit targets should be at least 44px.

For print documents, text should be at least 12pt.

For 1920×1080 slide decks, text should generally be 24px or larger.

React Guidance for Standalone HTML

Use plain HTML/CSS/JS by default.

Use React only when:

If using React from CDN in standalone HTML:

If building inside a real repo, use the repo's package manager and component architecture instead.

Deck Rules

For slide decks, use a fixed-size canvas and scale it to fit the viewport.

Default slide size: 1920×1080, 16:9.

Requirements:

Do not hand-wave a deck as markdown bullets. Create a designed artifact if asked for a deck.

Use 1–2 background colors max unless the brand system requires more.

Keep slides sparse. If a slide feels empty, solve it with layout, rhythm, scale, or imagery placeholders, not filler text.

Prototype Rules

For interactive prototypes:

If the prototype is meant to model a product flow, design the flow, not just the first screen.

Variation Rules

When exploring, default to at least three options:

  1. Conservative — closest to existing patterns / lowest risk
  2. Strong-fit — best interpretation of the brief
  3. Divergent — more novel, useful for discovering taste boundaries

Variations can explore:

Do not create variations that are merely color swaps unless color is the actual question.

When the user picks a direction, consolidate. Do not leave the project as a pile of options forever.

Tweakable Designs in CLI/API Mode

The hosted Claude Design edit-mode toolbar does not exist here.

Still preserve the idea: when useful, add in-page controls called Tweaks.

A good Tweaks panel can control:

Keep it small and unobtrusive. The design should look final when tweaks are hidden.

Persist tweak values with localStorage when helpful.

Content Discipline

Do not add filler content.

Every element must earn its place.

Avoid:

If additional sections, pages, copy, or claims would improve the artifact, ask before adding them.

When copy is necessary but not final, mark it as draft or placeholder.

Anti-Slop Rules

Avoid common AI design sludge:

Minimal is not automatically good. Dense is not automatically cluttered. Choose intentionally.

Slop Diagnostic: Score Before You Fix

AI design slop has a tiny, predictable failure distribution — designers asked to label AI UIs collapse the "this is AI" signal down to about ten tells. Before polishing or repairing an artifact, run this as an explicit self-audit and write a short report. Diagnose first, treat second — auditing and fixing in one breath fails, because the model's prior outweighs the instruction and it repeats the mistake (recolors when it needed re-layout, polishes type on a composition problem).

The ten tells (presence of each = one point of slop; lower is better):

  1. Tech gradient — blue/violet/indigo glossy gradient on everything.
  2. Generic tech hue — the default accent is indigo/violet (not chosen for the brand, just the model's favorite).
  3. Feature-tile grid — icon + heading + sentence × 3, all equal weight, nothing prioritized.
  4. Accent rail — a colored left strip on cards: decoration pretending to be organization.
  5. Unearned blur — glassmorphism with no real depth/elevation system behind it.
  6. Monument stat — oversized numbers filling space that should carry product story.
  7. Icon topper — a rounded-square icon centered above every heading (Tailwind-template filler).
  8. Center stack — everything centered because no real composition was committed to.
  9. Default type — Inter (or system-ui) used by default rather than chosen.
  10. Wrong surface — the composition doesn't match the surface (e.g. a hero on a Monitor surface). This is the root cause behind most of the others.

How to run it:

The point of separating diagnosis from treatment: let the audit complain first, then fix only what it complained about, in the register the complaint calls for.

Typography

Use the existing type system if one exists.

If not, choose type deliberately based on the artifact:

Avoid overused defaults when a stronger choice is appropriate.

If using web fonts, keep the number of families and weights low.

Use type as hierarchy before adding boxes, icons, or color.

Color

Use brand/design-system colors first.

If no palette exists:

Do not invent lots of colors from scratch.

Layout and Composition

Design with rhythm:

Avoid making every section the same card grid.

For product UIs, prioritize speed of comprehension over decoration.

For marketing surfaces, make one idea land per section.

For dashboards, avoid “data slop.” Only show data that helps the user decide or act.

Motion

Use motion as discipline, not theater.

Good motion:

Bad motion:

Respect prefers-reduced-motion for non-trivial animation.

Images and Icons

Use real supplied imagery when available.

If an asset is missing:

Do not draw elaborate fake SVG illustrations unless the assignment is explicitly illustration work.

Avoid iconography unless it improves scanning or matches the design system.

Source-Code Fidelity

When recreating or extending a UI from a repo:

  1. inspect the repo tree
  2. identify the actual UI source files
  3. read theme/token/global style/component files
  4. lift exact values where appropriate
  5. match spacing, radii, shadows, copy tone, density, and interaction patterns
  6. only then design or modify

Do not build from memory when source files are available.

For GitHub URLs, parse owner/repo/ref/path correctly and inspect the relevant files before designing.

Reading Documents and Assets

Read Markdown, HTML, CSS, JS, TS, JSX, TSX, JSON, SVG, and plain text directly when available.

For DOCX/PPTX/PDF, use available local extraction tools if present. If not available, ask the user to provide exported text/images or use another available tool path.

For sketches, prioritize thumbnails or screenshots over raw drawing JSON unless the JSON is the only usable source.

Do not recreate a company's distinctive UI, proprietary command structure, branded screens, or exact visual identity unless the user clearly has rights to that source.

It is acceptable to extract general design principles:

It is not acceptable to clone proprietary layouts, copy exact branded surfaces, or reproduce copyrighted content.

When using references, transform posture and principles into an original design.

Verification

Before final response, verify as much as the environment allows.

Minimum:

Better:

If verification is limited by environment, say exactly what was and was not verified.

Never say “done” if the file was not actually written.

Final Response Format

Keep final responses short.

Include:

Example:

Created: /path/to/Prototype.html
It includes 3 layout variants, a Tweaks panel for density/theme, and responsive behavior.
Verified: file exists and opened cleanly in browser, no console errors.
Next: pick the strongest direction and I’ll tighten copy + motion.

Portable Opening Prompt Pattern

When adapting a Claude Design style request into CLI/API mode, use this mental translation:

You are running in CLI/API mode, not hosted Claude Design. Ignore references to hosted-only tools or preview panes. Produce complete local design artifacts, usually self-contained HTML with embedded CSS/JS, and verify with available local tools before returning. Preserve the design process: gather context, define the system, produce options, avoid filler, and meet a high visual bar.

Pitfalls