From forge
Integrates DESIGN.md design specifications into Forge workflow, ensuring visual consistency across UI tasks. Detects existing DESIGN.md files and guides creation from brand references.
How this skill is triggered — by the user, by Claude, or both
Slash command
/forge:design-systemThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill integrates DESIGN.md-based design specifications into the Forge workflow. When a project has a DESIGN.md file, all UI-related tasks automatically inherit design constraints, ensuring brand consistency across parallel agent execution.
This skill integrates DESIGN.md-based design specifications into the Forge workflow. When a project has a DESIGN.md file, all UI-related tasks automatically inherit design constraints, ensuring brand consistency across parallel agent execution.
DESIGN.md is a standardized markdown format for design specifications that AI agents can read and follow. It contains:
At the start of brainstorming or planning, check for an existing DESIGN.md:
# Check common locations
ls DESIGN.md design.md docs/DESIGN.md 2>/dev/null
If found, load it and reference it throughout the workflow.
When /forge brainstorm runs for a project with UI components:
Check for DESIGN.md -- if it exists, reference it during spec generation
If no DESIGN.md exists, ask the user during the Q&A phase:
Does this project have a design system or brand guidelines? A) Yes, I have a DESIGN.md file (specify path) B) I want to base it on an existing brand (specify which -- e.g., Stripe, Linear, Claude) C) No specific design requirements -- use sensible defaults D) I'll provide design specs later
If option B, generate a DESIGN.md by referencing the awesome-design-md catalog:
DESIGN.md in the project rootInclude design context in specs: When writing spec files, add a design field in frontmatter:
---
domain: auth
status: approved
design: DESIGN.md
---
When /forge plan encounters specs with UI tasks:
- [T005] Login form component | est: ~6k tokens | design: DESIGN.md | depends: T003
- [T012] Design consistency verification | est: ~4k tokens | depends: T005, T007, T009
When forge-executor handles a task tagged with design::
{"design_tokens": "primary=#1A73E8, radius=8px, spacing=8px-base"}
When forge-reviewer reviews UI tasks with design context:
Load DESIGN.md alongside the spec
Add a Design Compliance pass after spec compliance:
Design Compliance Checks:
Flag design violations:
Output format:
DESIGN COMPLIANCE:
- [x] Colors: All colors from DESIGN.md palette
- [ ] Typography: H2 uses 28px, DESIGN.md specifies 24px
- [x] Spacing: All values multiples of 8px base
- [x] Components: Border radius matches spec (8px)
When generating a new DESIGN.md, use this structure:
# DESIGN.md
## Visual Theme and Atmosphere
{Brand philosophy, mood, design direction}
## Color Palette
| Token | Value | Usage |
|-------|-------|-------|
| Primary | #XXXXXX | Main interactive elements, CTAs |
| Primary Dark | #XXXXXX | Hover states, active elements |
| Secondary | #XXXXXX | Supporting UI, secondary actions |
| Accent | #XXXXXX | Highlights, badges, notifications |
| Background | #XXXXXX | Page background |
| Surface | #XXXXXX | Card/panel background |
| Error | #XXXXXX | Error states, destructive actions |
| Success | #XXXXXX | Success states, confirmations |
| Warning | #XXXXXX | Warning states |
| Text Primary | #XXXXXX | Main body text |
| Text Secondary | #XXXXXX | Supporting text, labels |
| Border | #XXXXXX | Dividers, input borders |
## Typography
| Level | Font | Size | Weight | Line Height |
|-------|------|------|--------|-------------|
| H1 | {font} | {size}px | 700 | {lh} |
| H2 | {font} | {size}px | 600 | {lh} |
| H3 | {font} | {size}px | 600 | {lh} |
| Body | {font} | {size}px | 400 | {lh} |
| Caption | {font} | {size}px | 400 | {lh} |
| Code | {mono font} | {size}px | 400 | {lh} |
## Component Styling
- **Button border-radius**: {N}px
- **Card border-radius**: {N}px
- **Input border-radius**: {N}px
- **Card shadow**: {shadow definition}
- **Elevated shadow**: {shadow definition}
## Spacing Scale
- **Base unit**: {N}px
- **Scale**: {N/2}, {N}, {N*1.5}, {N*2}, {N*3}, {N*4}, {N*6}, {N*8}
## Layout
- **Max content width**: {N}px
- **Grid columns**: {N}
- **Gutter**: {N}px
## Responsive Breakpoints
| Name | Min Width | Behavior |
|------|-----------|----------|
| Mobile | 0px | Single column, stacked layout |
| Tablet | {N}px | {behavior} |
| Desktop | {N}px | Full layout |
## Design Guardrails
- {Rule 1: what to avoid}
- {Rule 2: what to maintain}
- {Rule 3: brand boundaries}
## Agent Prompt Guide
When implementing UI for this project:
- Use only colors from the palette above
- Follow the typography hierarchy exactly
- Use spacing values from the scale (multiples of {base}px)
- Apply component styling specs for all interactive elements
When no DESIGN.md exists:
No Forge workflow should ever fail because DESIGN.md is absent.
npx claudepluginhub lucasduys/forge --plugin forgeReads a DESIGN.md file (open standard from Google Labs) and builds brand-consistent UI from its design tokens. Use when a DESIGN.md is present or user provides one.
Guides UI design to avoid AI-generic patterns using project design systems, exact tokens, and component-by-component approach. For prototypes, reviews, and design systems.
Designs UI/UX systems with style guides, color palettes, typography, and component specs for new interfaces. Asks about product type, tech stack, and deliverables before producing design tokens, layouts, or style guides.