backpropagation
Trace runtime bugs back to spec gaps — identify missing acceptance criteria, update specs, generate regression tests, and detect patterns
DESIGN.md integration for Forge — ensures visual consistency across all UI tasks through standardized design specifications
$ npx -y skills add LucasDuys/forge --skill design-system --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/design-systemContext preview
The summary Claude sees to decide when to auto-load this skill.
DESIGN.md integration for Forge — ensures visual consistency across all UI tasks through standardized design specifications
name: design-system description: DESIGN.md integration for Forge — ensures visual consistency across all UI tasks through standardized design specifications
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:
1. **Visual Theme and Atmosphere** -- brand philosophy and design mood 2. **Color Palette** -- semantic color definitions (Primary, Error, Surface, etc.) with hex values 3. **Typography Hierarchy** -- font families, weights, sizes for H1-H6, body, caption 4. **Component Styling** -- button specs, card styling, input borders, border radius, shadows 5. **Layout Principles and Spacing** -- spacing scale (base unit), margin/padding rules, grid conventions 6. **Depth and Elevation Systems** -- shadow definitions, z-index hierarchies 7. **Design Guardrails and Anti-Patterns** -- what NOT to do, brand identity boundaries 8. **Responsive Behavior Parameters** -- mobile/tablet/desktop breakpoints, scaling rules 9. **Agent Prompt Guide** -- quick reference for AI agents to maintain consistency
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:
1. **Check for DESIGN.md** -- if it exists, reference it during spec generation 2. **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
3. **If option B**, generate a DESIGN.md by referencing the awesome-design-md catalog:
4. **Include 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:
1. **Load DESIGN.md** and extract key constraints (color palette, typography, spacing scale) 2. **Tag UI tasks** with design context in the frontier:
- [T005] Login form component | est: ~6k tokens | design: DESIGN.md | depends: T003
3. **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 4. **Add design verification task** at the end of UI-heavy specs (depth >= standard):
- [T012] Design consistency verification | est: ~4k tokens | depends: T005, T007, T009
When forge-executor handles a task tagged with `design:`:
1. **Load DESIGN.md** at task start, alongside the spec and frontier 2. **Extract relevant design tokens** for the task:
3. **Apply design constraints** during implementation:
4. **Document design decisions** in the checkpoint context_bundle:
{"design_tokens": "primary=#1A73E8, radius=8px, spacing=8px-base"}When forge-reviewer reviews UI tasks with design context:
1. **Load DESIGN.md** alongside the spec 2. **Add a Design Compliance pass** after spec compliance:
**Design Compliance Checks:**
3. **Flag design violations:**
4. **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, dTurn a one-line idea into a branch with tested, reviewed, committed code. The brainstorm-to-commit pipeline for Claude Code.
Repo: LucasDuys/forge
Trace runtime bugs back to spec gaps — identify missing acceptance criteria, update specs, generate regression tests, and detect patterns
Interactive spec generation — turn ideas into concrete specs with R-numbered requirements and testable acceptance criteria
Internal token optimization for Forge agent artifacts (handoff notes, artifact summaries, review notes). NOT exposed as a user-facing /caveman command.
Hackathon-native multiplayer collaboration mode -- brain-dump together, claim tasks across machines, flag decisions async. Drives the subcommands of…
Autonomous task implementation workflow — implement, test, review, commit for each task in the frontier
Graph-aware planning and research using codebase knowledge graphs — enables architecture-aware task decomposition, dependency discovery, and context reduction