Interface Design

repository·main·Indexed 26 days ago

https://github.com/dammyjay93/interface-design

A skill for coding agents such as Claude Code and Codex designed to maintain visual consistency and design intent across UI development sessions. It utilizes a local system file (.interface-design/system.md) to track design decisions, including spacing, color tokens, and component patterns. The skill provides slash commands and natural language prompts for design reviews and cleaning up 'visual slop' to ensure UI components adhere to professional design standards.

Tokens
2.4K
Snippets
9
Records
11
Agent score
40%

What's inside interface-design

  1. Configure Design System Direction

    main

    Define the high-level visual identity of the interface by selecting values for Personality, Foundation, and Depth. These settings guide the overall aesthetic and structural approach of the design system.

    ### Direction
    
    **Personality:** [Precision & Density | Warmth & Approachability | Sophistication & Trust | Boldness & Clarity | Utility & Function | Data & Analysis]
    
    **Foundation:** [warm | cool | neutral | tinted]
    
    **Depth:** [borders-only | subtle-shadows | layered-shadows]
  2. Install Interface Design via skills.sh

    main

    The recommended way to install the interface-design skill is using the skills.sh installer. This CLI tool detects your supported coding agents and installs the skill in the appropriate directory.

    Standard Installation

    Install for the current detected agent:

    npx skills add https://github.com/dammyjay93/interface-design --skill interface-design

    Installation Variants

    • Global install for current agent:
      npx skills add https://github.com/dammyjay93/interface-design --skill interface-design -g
    - **Specific agent (e.g., Claude Code or Codex):**
      ```bash
    npx skills add https://github.com/dammyjay93/interface-design --skill interface-design --agent claude-code -g
    # or
    npx skills add https://github.com/dammyjay93/interface-design --skill interface-design --agent codex -g
    • All supported agents:
      npx skills add https://github.com/dammyjay93/interface-design --skill interface-design --agent '*' -g -y
    - **Preview available skills without installing:**
      ```bash
    npx skills add https://github.com/dammyjay93/interface-design --skill interface-design --list
  3. Use Interface Design in Claude Code and Codex

    main

    You can invoke the interface-design skill using slash commands or natural language prompts.

    Slash Commands

    • /interface-design

    Natural Language Prompts

    • use interface-design to build this dashboard
    • use interface-design design-review on the settings page
    • use interface-design design-deslop on this branch

    Claude Code Specific Review Commands

    If installed via the plugin flow, you can use these focused review passes:

    • /interface-design:design-review: A strict review of craft and hierarchy against professional design standards.
    • /interface-design:design-deslop: A fast pass that identifies and cleans up 'visual slop' (generic tokens, defaulted fonts, etc.) in a branch.
  4. Manual Installation Fallback

    main

    If npx is unavailable, you can manually clone the repository and copy the skill folders to your agent's directory.

    1. Clone the repo:
      git clone https://github.com/Dammyjay93/interface-design.git
      cd interface-design
    2. Copy to Claude Code directory:
      mkdir -p ~/.claude/skills
      cp -R .claude/skills/interface-design ~/.claude/skills/
    3. Copy to Codex/Shared directory:
      mkdir -p ~/.agents/skills
      cp -R .claude/skills/interface-design ~/.agents/skills/

    Restart your agent after manual installation.

    git clone https://github.com/Dammyjay93/interface-design.git
    cd interface-design
    
    # Claude Code
    mkdir -p ~/.claude/skills
    cp -R .claude/skills/interface-design ~/.claude/skills/
    
    # Codex / shared agent-skills location
    mkdir -p ~/.agents/skills
    cp -R .claude/skills/interface-design ~/.agents/skills/
  5. Install Interface Design for Codex

    main

    To install the skill for Codex, use the following command. The skills CLI installs Codex skills to ~/.agents/skills/interface-design.

    npx skills add https://github.com/dammyjay93/interface-design --skill interface-design --agent codex -g

    Restart Codex or start a fresh thread if the skill does not appear immediately.

  6. Install Interface Design for Claude Code

    main

    To install the core skill for Claude Code, use the following command. This places the skill in ~/.claude/skills/interface-design.

    npx skills add https://github.com/dammyjay93/interface-design --skill interface-design --agent claude-code -g

    Alternatively, you can use the Claude Code plugin marketplace flow:

    /plugin marketplace add Dammyjay93/interface-design
    /plugin menu

    After selecting interface-design from the menu, restart Claude Code.

  7. Define Design System Tokens

    main

    Establish the foundational design tokens for Spacing, Colors, Radius, and Typography. These tokens ensure consistency across the interface components.

    ### Tokens
    
    ### Spacing
    Base: [4px | 8px]
    Scale: [4, 8, 12, 16, 24, 32, 64]
    
    ### Colors
    ```css
    --foreground: [slate-900]
    --secondary: [slate-600]
    --muted: [slate-400]
    --faint: [slate-200]
    --accent: [blue-600]

    Radius

    Scale: [4px, 6px, 8px] (sharp) | [8px, 12px, 16px] (soft)

    Typography

    Font: [system | Inter | Geist] Scale: 12, 13, 14 (base), 16, 18, 24, 32 Weights: 400, 500, 600

  8. Migrate from claude-design-skill

    main

    If you are using the older claude-design-skill (now renamed to interface-design), follow these steps to migrate:

    1. Uninstall the old skill:
      rm -rf ~/.claude/skills/design-principles
    2. Install the current skill:
      npx skills add https://github.com/dammyjay93/interface-design --skill interface-design --agent claude-code -g
    3. Update directory names: If you have an existing .ds-engineer/ directory, rename it to .interface-design/ to ensure your system.md files continue to work.
    # Uninstall old
    rm -rf ~/.claude/skills/design-principles
    
    # Install the current skill
    npx skills add https://github.com/dammyjay93/interface-design --skill interface-design --agent claude-code -g
  9. Manage Design System via .interface-design/system.md

    main

    The interface-design skill uses a file located at .interface-design/system.md to maintain design memory across sessions. This file stores your established direction, tokens, and patterns.

    File Structure Example

    # Design System
    
    ## Direction
    Personality: Precision & Density
    Foundation: Cool (slate)
    Depth: Borders-only
    
    ## Tokens
    ### Spacing
    Base: 4px
    Scale: 4, 8, 12, 16, 24, 32
    
    ### Colors
    --foreground: slate-900
    --secondary: slate-600
    --accent: blue-600
    
    ## Patterns
    ### Button Primary
    - Height: 36px
    - Padding: 12px 16px
    - Radius: 6px
    - Usage: Primary actions
    
    ### Card Default
    - Border: 0.5px solid
    - Padding: 16px
    - Radius: 8px

    When the skill runs, it automatically reads this file to ensure all new UI components follow the saved patterns.

  10. Implement Design Patterns

    main

    Use the following specifications to build standard UI components like Primary Buttons and Default Cards.

    ### Patterns
    
    ### Button Primary
    - Height: 36px
    - Padding: 12px 16px
    - Radius: 6px
    - Font: 14px, 500 weight
    - Background: accent color
    - Usage: Primary actions
    
    ### Card Default
    - Border: 0.5px solid (faint)
    - Padding: 16px
    - Radius: 8px
    - Background: white
    - Usage: Content containers
  11. Configure Design Directions

    main

    While the skill infers direction from project context, you can explicitly request or guide the agent toward specific design feels:

    DirectionFeelBest For
    Precision & DensityTight, technical, monochromeDeveloper tools, admin dashboards
    Warmth & ApproachabilityGenerous spacing, soft shadowsCollaborative tools, consumer apps
    Sophistication & TrustCool tones, layered depthFinance, enterprise B2B
    Boldness & ClarityHigh contrast, dramatic spaceModern dashboards, data-heavy apps
    Utility & FunctionMuted, functional densityGitHub-style tools
    Data & AnalysisChart-optimized, numbers-firstAnalytics, BI tools