agentleFS
gufrancogufranco/claude-engineering-rules/skills/design/SKILL.md

design

Skill3 starsChanged 31 days agoMITView on GitHub

Design consultation, variant exploration, and design system scaffolding, with subcommands consult (default), variants, and system. Researches design patterns, proposes component hierarchies, generates design decisions document, and creates multiple visual approaches for comparison. Use when user says "design this", "design consultation", "design system", "component design", "design variants", "UI approach", "visual direction", or needs structured design thinking before implementation. For design review or audit of existing code, use /review design; for implementation planning, use /plan.

197 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use banner-design, ui-styling and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • seikaikyoSkill

    banner-design

    Design banners for social media, ads, website heroes, creative assets, and print. Multiple art direction options with optional generated or supplied visuals. Actions: design, create, generate banner. Platforms: Facebook, Twitter/X, LinkedIn, YouTube, Instagram, Google Display, website hero, print. Styles: minimalist, gradient, bold typography, photo-based, illustrated, geometric, retro, glassmorphism, 3D, neon, duotone, editorial, collage.

    Also in 38 projects that use this

  • MicrosoftSkill

    ui-styling

    Guide for the visual style, structure, and shared building blocks used by Semantic Link Labs interactive UI tools (HTML widgets and anywidget-based widgets). Use this when adding a new interactive UI, modifying an existing one, or adding shared visual components.

    Also in 39 projects that use this

  • seikaikyoSkill

    brand

    Brand voice, visual identity, messaging frameworks, asset management, brand consistency. Activate for branded content, tone of voice, marketing assets, brand compliance, style guides.

    Also in 43 projects that use this

  • mayankjain1815-commitsSkill

    infra-audit

    Reads docker-compose, env files, ORM configs, and connection strings to map current infrastructure. Flags missing layers (cache, queue, analytics) based on observed access patterns. Outputs a structured infrastructure manifest.

    Also in 3 projects that use this

  • JetBrainsSkill

    slides

    Create and edit presentation slide decks (`.pptx`) with PptxGenJS and render/validation utilities. Use when tasks involve building a new PowerPoint deck, recreating slides from screenshots/PDFs/reference decks, modifying slide content while preserving editable output, adding charts/diagrams/visuals, or diagnosing layout issues such as overflow, overlaps, and font substitution.

    Also in 42 projects that use this

  • AnthropicSkill

    design-system

    Audit, document, or extend your design system. Use when checking for naming inconsistencies or hardcoded values across components, writing documentation for a component's variants, states, and accessibility notes, or designing a new pattern that fits the existing system.

    Also in 49 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

34 rules. 0 are common, 26 are distinctive, and 8 are very specific to this project.

  • 0

    Common

    Most of the 174 edited versions we read keep these.

  • 26

    Distinctive

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run before implementation, while the direction is still open.

    line 14
  2. Very specific:

    If no subcommand is given, default to consult.

    line 24
  3. Distinctive:

    Run that subcommand's Steps in order.

    line 29
  4. Very specific:

    Write or update DESIGN.md, the per-feature file for consult and variants, the project file for system.

    line 30
  5. Distinctive:

    Before building a new UI feature or component.

    line 41
  6. Distinctive:

    When evaluating multiple visual or UX approaches.

    line 42
  7. Distinctive:

    When establishing a design direction for a new project.

    line 43
  8. Distinctive:

    No arguments: interactive mode.

    line 47
  9. Distinctive:

    Clarify requirements: Ask one question at a time:

    line 53
  10. Very specific:

    Research, if --research or the problem is non-trivial: Run in parallel:

    line 60
  11. Distinctive:

    Search for similar UI patterns in the project's existing components.

    line 61
  12. Distinctive:

    Search for established patterns in the component library, such as shadcn/ui, MUI, or Ant Design, if one is in use.

    line 62
  13. Very specific:

    If --research: search the web for how other products handle this pattern.

    line 63
  14. Distinctive:

    Detect the project's design foundation: Read in parallel:

    line 65
  15. Distinctive:

    Run the 5-dimension self-critique: Before presenting, score the draft on each lens.

    line 133
  16. Distinctive:

    If any lens scores below 7 of 10, fix the gap before presenting.

    line 143
  17. Distinctive:

    Present for approval: Wait for user feedback before implementation begins.

    line 145
  18. Distinctive:

    When the design direction is unclear.

    line 155
  19. Distinctive:

    When stakeholders need to choose between approaches.

    line 156
  20. Very specific:

    After /design consult when the user wants to see options.

    line 157
  21. Very specific:

    No arguments: use the most recent per-feature DESIGN.md from step 5 of consult for context.

    line 161
  22. Distinctive:

    User picks: Update the per-feature DESIGN.md with the chosen direction and rationale for the choice.

    line 186
  23. Distinctive:

    When starting a new project that needs a design foundation.

    line 196
  24. Distinctive:

    When adding a new category of components to an existing system.

    line 197
  25. Distinctive:

    When standardizing ad-hoc styles into a system.

    line 198
  26. Distinctive:

    No arguments: audit existing design tokens and suggest improvements.

    line 202
  27. Distinctive:

    Audit existing system: Read in parallel:

    line 207
  28. Distinctive:

    Every design must address all states: empty, loading, error, success.

    line 231
  29. Distinctive:

    Never generate production code during design consultation.

    line 235
  30. Distinctive:

    When the project uses a specific component library like shadcn/ui or MUI, use its component vocabulary and patterns.

    line 236
  31. Distinctive:

    Stop and ask one question when the user's goal, inputs, or states are unknown after reading the code.

    line 248
  32. Distinctive:

    Stop and fix the draft when any self-critique lens scores below 7 of 10.

    line 249
  33. Distinctive:

    Stop and swap to a token when the draft names a color, spacing, or font size absent from the project's tokens.

    line 250
  34. Very specific:

    Stop and regenerate when two variants differ in no major dimension from step 2 of variants.

    line 251

“Common” is measured: kept by at least 6 in 10 of the 174 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Overview

Structured design skill that front-loads design decisions before implementation. Produces a DESIGN.md document and, optionally, multiple visual approaches for comparison.

When to Use

Run before implementation, while the direction is still open. consult settles one feature, variants compares directions side by side, and system sets the tokens and components the other two draw from.

Subcommand Routing

InvocationAction
/design or /design consult <description>Design consultation (default)
/design variantsGenerate multiple visual approaches
/design systemScaffold a design system or component library

If no subcommand is given, default to consult.

Process

  1. Route the invocation per Subcommand Routing.
  2. Run that subcommand's Steps in order.
  3. Write or update DESIGN.md, the per-feature file for consult and variants, the project file for system.
  4. Present for approval and wait for the user before any implementation.

consult

Research design patterns in the ecosystem, propose a component hierarchy, and produce a DESIGN.md with decisions and rationale.

When to use

  • Before building a new UI feature or component.
  • When evaluating multiple visual or UX approaches.
  • When establishing a design direction for a new project.

Arguments

  • No arguments: interactive mode. Ask what needs to be designed.
  • <description>: start consultation with the given feature or component.
  • --research: include competitive research, search for how other products solve the same problem.

Steps

  1. Clarify requirements. Ask one question at a time:
    • What is the user trying to accomplish?
    • What are the inputs and outputs?
    • What states exist such as empty, loading, error, success, or partial?
    • What are the accessibility requirements?
    • Is there an existing design system or component library to follow?
  2. Research, if --research or the problem is non-trivial. Run in parallel:
    • Search for similar UI patterns in the project's existing components.
    • Search for established patterns in the component library, such as shadcn/ui, MUI, or Ant Design, if one is in use.
    • If --research: search the web for how other products handle this pattern.
  3. Detect the project's design foundation. Read in parallel:
    • tailwind.config.* or CSS custom properties for design tokens.
    • package.json for UI library dependencies.
    • Existing components for naming and structure patterns.
  4. Propose the design. Cover each dimension:

    DimensionWhat to specify
    Component hierarchyParent, children, composition points
    LayoutGrid/flex strategy, responsive breakpoints
    TypographyFont sizes, weights, line heights for each element
    ColorSemantic colors from the existing palette, not hardcoded values
    SpacingMargin/padding following the project's scale (4px/8px grid)
    StatesEmpty, loading, error, success, disabled, hover, focus, active
    AccessibilityARIA roles, keyboard navigation, screen reader announcements
    AnimationTransitions, duration, easing. Respect prefers-reduced-motion
    ResponsivenessMobile-first breakpoints and layout changes
  5. Write the per-feature DESIGN.md using the canonical 8-section schema. Save it in the active plan folder, <root>/plans/<YYYY-MM-DD>-<slug>/DESIGN.md per rules/project-workspace.md, or at docs/design/<feature-slug>.md when the project already tracks design docs there. Never write it to the project root: the root DESIGN.md is the project-level document system owns, and a feature file written there overwrites it. Sections must appear in this order. Missing a section is a defect.

    # Design: <feature name>
    
    ## 1. Context
    <What is the surrounding situation? What triggered this design? What does the reader need to know to understand the rest?>
    
    ## 2. Goals
    <What this design must achieve. Measurable when possible.>
    
    ## 3. Non-Goals
    <What this design explicitly does not address. Bounds the scope.>
    
    ## 4. Constraints
    <Technical, product, regulatory, time, or resource limits that shaped the design.>
    
    ## 5. Options Considered
    <At least two alternatives, each with trade-offs. Includes the option that was rejected.>
    
    | Option | Pros | Cons | Rejected because |
    |--------|------|------|-----------------|
    | A | ... | ... | (chosen) |
    | B | ... | ... | ... |
    
    ## 6. Decision
    <The chosen approach. Component hierarchy, layout, tokens, states, accessibility, animation, responsiveness.>
    
    ### Component Hierarchy
    ### Layout
    ### Design Tokens Used
    ### States
    | State | Visual treatment | Content |
    |-------|-----------------|---------|
    | Empty | ... | ... |
    | Loading | ... | ... |
    | Error | ... | ... |
    | Success | ... | ... |
    
    ### Accessibility
    <ARIA, keyboard, screen reader behavior>
    
    ## 7. Consequences
    <What follows from the decision. Both positive outcomes and downsides accepted.>
    
    ## 8. Open Questions
    <Anything unresolved that needs validation, user input, or follow-up. Empty if none.>
  6. Run the 5-dimension self-critique. Before presenting, score the draft on each lens. State the score, the reasoning, and any fix made.

    LensQuestion
    ClarityCould a reader unfamiliar with the project follow this without asking?
    CompletenessAre all 8 sections present? Every state covered? Every option weighed?
    FeasibilityCan this be built with the project's current stack and team?
    ReversibilityIf this design proves wrong, how hard is it to undo? Flag one-way doors.
    Blast radiusWhat breaks if this design is wrong? Who is affected, and how widely?

    If any lens scores below 7 of 10, fix the gap before presenting. Document the score line in DESIGN.md under "Open Questions" only when the gap is acknowledged but deferred.

  7. Present for approval. Wait for user feedback before implementation begins.

variants

Generate multiple design approaches for the same requirement and present them for comparison.

When to use

  • When the design direction is unclear.
  • When stakeholders need to choose between approaches.
  • After /design consult when the user wants to see options.

Arguments

  • No arguments: use the most recent per-feature DESIGN.md from step 5 of consult for context.
  • <description>: generate variants for the described feature.
  • --count <N>: number of variants (default: 3, max: 5).

Steps

  1. Read context. Load the per-feature DESIGN.md if it exists, plus the project root DESIGN.md for tokens and rules, or ask for the requirement.
  2. Generate N distinct approaches. Each variant must differ meaningfully in at least one major dimension:
    • Layout strategy. Cards vs list vs table vs timeline
    • Information density. Minimal vs detailed
    • Interaction model. Inline editing vs modal vs page navigation
    • Visual style such as compact vs spacious, or flat vs layered
  3. Present comparison:

    DimensionVariant AVariant BVariant C
    Layout.........
    Interaction.........
    Complexity.........
    Accessibility.........
    Performance.........
    Mobile behavior.........
  4. User picks. Update the per-feature DESIGN.md with the chosen direction and rationale for the choice.

system

Scaffold a design system or extend an existing component library with new tokens, components, or patterns.

When to use

  • When starting a new project that needs a design foundation.
  • When adding a new category of components to an existing system.
  • When standardizing ad-hoc styles into a system.

Arguments

  • No arguments: audit existing design tokens and suggest improvements.
  • <component-type>: scaffold a new component type, such as button, card, dialog, table, or form.

Steps

  1. Audit existing system. Read in parallel:
    • tailwind.config.* for existing tokens.
    • CSS/SCSS files for custom properties.
    • Existing components for patterns.
    • Project root DESIGN.md if one exists.
  2. Identify gaps. Compare against the project's needs:
    • Missing semantic color tokens.
    • Inconsistent spacing usage.
    • Components using hardcoded values instead of tokens.
    • Missing dark mode support.
  3. Propose additions. For each gap:
    • Token name and value.
    • Where it applies.
    • Migration path for existing hardcoded values.
  4. Scaffold project DESIGN.md when missing. Apply the canonical schema from standards/design-md-template.md: mission, brand, style foundations, accessibility, writing tone, do/don't rules, component expectations, quality gates. The per-feature design docs from the consult subcommand are separate from this project-level document.
  5. Present for approval. Propose changes to config files and suggest /plan scaffold component <name> for new components.

Rules

  • Design decisions must reference the project's existing design tokens and component library. Never propose arbitrary values.
  • Every design must address all states: empty, loading, error, success. Forgetting states is the most common design gap.
  • Accessibility is not optional. Every design must specify keyboard navigation, ARIA roles, and screen reader behavior.
  • Color choices must pass WCAG AA contrast ratios. Use the project's semantic color tokens, not raw hex values.
  • DESIGN.md is permanent. It records WHY decisions were made, not just WHAT was decided.
  • Never generate production code during design consultation. This skill produces decisions and specifications, not implementation.
  • When the project uses a specific component library like shadcn/ui or MUI, use its component vocabulary and patterns. Do not invent parallel abstractions.

Common Rationalizations

  • "The happy path is the design, the other states are details": a design without empty, loading, and error states ships a broken screen. Fill the States table for every state.
  • "#3b82f6 is close to the brand blue": a raw hex bypasses the token scale and dark mode. Name the semantic token.
  • "Option B was obviously wrong, so listing it is padding": the Options Considered table needs at least two rows with the reason the loser lost.
  • "A quick component sketch will help": consultation produces decisions, and code waits for approval. Hand off to /plan scaffold component <name>.
  • "The library lacks this exact component, so add a custom one": use the library's vocabulary and compose from its primitives first.

Red Flags

  • Stop and ask one question when the user's goal, inputs, or states are unknown after reading the code.
  • Stop and fix the draft when any self-critique lens scores below 7 of 10.
  • Stop and swap to a token when the draft names a color, spacing, or font size absent from the project's tokens.
  • Stop and regenerate when two variants differ in no major dimension from step 2 of variants.

Verification

  • The per-feature DESIGN.md exists outside the project root with all 8 sections in schema order, Options Considered has at least two rows, and the project root DESIGN.md, when present, is unchanged by consult and variants.
  • The States table covers empty, loading, error, and success, and Accessibility names ARIA roles, keyboard behavior, and screen reader announcements.
  • The self-critique scores for all five lenses appear in the presented output.
  • git status lists no new source files besides DESIGN.md and, for system, proposed config changes.
  • The user approved the design, or chose a variant, before the run ended.

Related skills

  • /review design -- Audit an existing implementation against design quality standards.
  • /plan scaffold component -- Generate component boilerplate from project patterns.
  • /plan -- Plan the implementation after design decisions are made.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.