lucasduys/forge/design-system
Claude Code and agent skill by lucasduys/forge
- community
Checking that the SKILL.md file is still in the repository.
DESIGN.md integration for Forge — ensures visual consistency across all UI tasks through standardized design specifications
Install
npx vskill@latest install lucasduys/forge/design-systemSKILL.md
Design System 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.
What is DESIGN.md?
DESIGN.md is a standardized markdown format for design specifications that AI agents can read and follow. It contains:
- Visual Theme and Atmosphere -- brand philosophy and design mood
- Color Palette -- semantic color definitions (Primary, Error, Surface, etc.) with hex values
- Typography Hierarchy -- font families, weights, sizes for H1-H6, body, caption
- Component Styling -- button specs, card styling, input borders, border radius, shadows
- Layout Principles and Spacing -- spacing scale (base unit), margin/padding rules, grid conventions
- Depth and Elevation Systems -- shadow definitions, z-index hierarchies
- Design Guardrails and Anti-Patterns -- what NOT to do, brand identity boundaries
- Responsive Behavior Parameters -- mobile/tablet/desktop breakpoints, scaling rules
- Agent Prompt Guide -- quick reference for AI agents to maintain consistency
Detection
At the start of brainstorming or planning, check for an existing DESIGN.md:
If found, load it and reference it throughout the workflow.
Integration with Forge Phases
Brainstorming Phase
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:
- Extract the relevant design system's color palette, typography, and component specs
- Adapt it for the user's project
- Write to
DESIGN.mdin the project root - Include it in the spec's context
- Include design context in specs: When writing spec files, add a
designfield in frontmatter:
```yaml
domain: auth status: approved design: DESIGN.md
```
Planning Phase
When /forge plan encounters specs with UI tasks:
- Load DESIGN.md and extract key constraints (color palette, typography, spacing scale)
- Tag UI tasks with design context in the frontier:
```
- [T005] Login form component | est: ~6k tokens | design: DESIGN.md | depends: T003
```
- Group UI tasks by design community: Components sharing design patterns (forms, cards, navigation) should be in the same tier when possible to ensure visual consistency
- Add design verification task at the end of UI-heavy specs (depth >= standard):
```
- [T012] Design consistency verification | est: ~4k tokens | depends: T005, T007, T009
```
Execution Phase
When forge-executor handles a task tagged with design::
- Load DESIGN.md at task start, alongside the spec and frontier
- Extract relevant design tokens for the task:
- Color values for the component being built
- Typography specs for text elements
- Spacing values for layout
- Component styling (border-radius, shadows, etc.)
- Apply design constraints during implementation:
- Use only colors defined in the palette (no ad-hoc hex values)
- Follow the typography hierarchy (no custom font sizes)
- Apply the spacing scale (no magic pixel values)
- Match component styling specs (border-radius, shadows)
- Document design decisions in the checkpoint context_bundle:
``json {"design_tokens": "primary=#1A73E8, radius=8px, spacing=8px-base"} ``
Review Phase
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:
- Colors used in the implementation exist in the DESIGN.md palette
- Font families and sizes match the typography hierarchy
- Spacing values follow the defined scale (or multiples of the base unit)
- Component styling matches specs (border-radius, shadows, elevation)
- No ad-hoc design values that contradict the design system
- Responsive breakpoints match DESIGN.md if specified
- Flag design violations:
- IMPORTANT: Color not in palette (e.g., used #FF0000 instead of defined Error color)
- IMPORTANT: Font size not in typography scale
- MINOR: Spacing value not a multiple of base unit
- MINOR: Missing responsive behavior for a defined breakpoint
- 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)
```
DESIGN.md Template
When generating a new DESIGN.md, use this structure:
Graceful Degradation
When no DESIGN.md exists:
- Brainstorming proceeds normally, optionally asking about design requirements
- Planning proceeds without design tags on tasks
- Execution proceeds without design constraints
- Review skips the design compliance pass
No Forge workflow should ever fail because DESIGN.md is absent.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/design-system/SKILL.md
Popularity
- Repository stars
- 56
- Repository forks
- 6
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/lucasduys/forge/design-system)