Paths: File paths (shared/, references/, ../ln-*) are relative to skills repo root. If not found at CWD, locate this SKILL.md directory and go up one level for repo root. If shared/ is missing, fetch files via WebFetch from https://raw.githubusercontent.com/levnikolaevich/claude-code-skills/master/{path}.
Frontend Documentation Creator
L3 Worker that creates design_guidelines.md. CONDITIONAL - only invoked when project has frontend.
Purpose & Scope
- Creates design_guidelines.md (if hasFrontend)
- Receives Context Store from ln-110-project-docs-coordinator
- WCAG 2.1 Level AA accessibility compliance
- Design system documentation
- Downstream consumers:
design_guidelines.md is loaded by ln-401 (Frontend Guard) and ln-402 (Frontend Review Checks) for runtime design validation against implementation
- Never gathers context itself; uses coordinator input
Invocation (who/when)
- ln-110-project-docs-coordinator: CONDITIONALLY invoked when:
hasFrontend=true (react, vue, angular, svelte detected)
- Never called directly by users
Inputs
From coordinator:
contextStore: Context Store with frontend-specific data
- DESIGN_SYSTEM (Material-UI, Ant Design, custom)
- COLOR_PALETTE (primary, secondary, accent)
- TYPOGRAPHY (font families, sizes, weights)
- COMPONENT_LIBRARY (detected components)
targetDir: Project root directory
flags: { hasFrontend }
Documents Created (1, conditional)
| File |
Condition |
Questions |
Auto-Discovery |
| docs/project/design_guidelines.md |
hasFrontend |
Q43-Q45 |
Low |
Workflow
Phase 1: Check Conditions
- Parse flags from coordinator
- If
!hasFrontend: return early with empty result
Phase 2: Create Document
- Check if file exists (idempotent)
- If exists: skip with log
- If not exists:
- Copy template
- Replace placeholders with Context Store values
- Populate design system section
- Mark
[TBD: X] for missing data
Phase 3: Self-Validate
- Check SCOPE tag
- Validate sections:
- Design System (component library)
- Typography (font families, sizes)
- Colors (hex codes, semantic colors)
- Check WCAG 2.1 references
- Check Maintenance section
Phase 4: Return Status
{
"created": ["docs/project/design_guidelines.md"],
"skipped": [],
"tbd_count": 1,
"validation": "OK"
}
Critical Notes
Core Rules
- Conditional: Skip entirely if no frontend detected
- WCAG compliance: Document must reference accessibility standards
- Design tokens: Extract from CSS variables, tailwind config, or theme files
- Idempotent: Never overwrite existing files
NO_CODE_EXAMPLES Rule (MANDATORY)
Design guidelines document visual standards, NOT code:
- FORBIDDEN: CSS code blocks, component implementations
- ALLOWED: Tables (colors, typography), design tokens, Figma links
- INSTEAD OF CODE: "See Component Library" or "See src/components/Button.tsx"
Stack Adaptation Rule (MANDATORY)
- Link to correct component library docs (MUI for React, Vuetify for Vue)
- Reference framework-specific patterns (React hooks, Vue composition API)
- Never mix stack references (no React examples in Vue project)
Format Priority (MANDATORY)
Tables (colors, typography, spacing) > Lists (component inventory) > Text
Definition of Done
Reference Files
- Templates:
references/templates/design_guidelines_template.md
- Questions:
references/questions_frontend.md (Q43-Q45)
Version: 1.1.0
Last Updated: 2025-01-12
1---2name: ln-114-frontend-docs-creator-53description: Creates design_guidelines.md with WCAG 2.1 compliance and design system docs. Use when project has a frontend.4license: MIT5---67> **Paths:** File paths (`shared/`, `references/`, `../ln-*`) are relative to skills repo root. If not found at CWD, locate this SKILL.md directory and go up one level for repo root. If `shared/` is missing, fetch files via WebFetch from `https://raw.githubusercontent.com/levnikolaevich/claude-code-skills/master/{path}`.89# Frontend Documentation Creator1011L3 Worker that creates design_guidelines.md. CONDITIONAL - only invoked when project has frontend.1213## Purpose & Scope14- Creates design_guidelines.md (if hasFrontend)15- Receives Context Store from ln-110-project-docs-coordinator16- WCAG 2.1 Level AA accessibility compliance17- Design system documentation18- **Downstream consumers:** `design_guidelines.md` is loaded by ln-401 (Frontend Guard) and ln-402 (Frontend Review Checks) for runtime design validation against implementation19- Never gathers context itself; uses coordinator input2021## Invocation (who/when)22- **ln-110-project-docs-coordinator:** CONDITIONALLY invoked when:23 - `hasFrontend=true` (react, vue, angular, svelte detected)24- Never called directly by users2526## Inputs27From coordinator:28- `contextStore`: Context Store with frontend-specific data29 - DESIGN_SYSTEM (Material-UI, Ant Design, custom)30 - COLOR_PALETTE (primary, secondary, accent)31 - TYPOGRAPHY (font families, sizes, weights)32 - COMPONENT_LIBRARY (detected components)33- `targetDir`: Project root directory34- `flags`: { hasFrontend }3536## Documents Created (1, conditional)3738| File | Condition | Questions | Auto-Discovery |39|------|-----------|-----------|----------------|40| docs/project/design_guidelines.md | hasFrontend | Q43-Q45 | Low |4142## Workflow4344### Phase 1: Check Conditions451. Parse flags from coordinator462. If `!hasFrontend`: return early with empty result4748### Phase 2: Create Document491. Check if file exists (idempotent)502. If exists: skip with log513. If not exists:52 - Copy template53 - Replace placeholders with Context Store values54 - Populate design system section55 - Mark `[TBD: X]` for missing data5657### Phase 3: Self-Validate581. Check SCOPE tag592. Validate sections:60 - Design System (component library)61 - Typography (font families, sizes)62 - Colors (hex codes, semantic colors)633. Check WCAG 2.1 references644. Check Maintenance section6566### Phase 4: Return Status67```json68{69 "created": ["docs/project/design_guidelines.md"],70 "skipped": [],71 "tbd_count": 1,72 "validation": "OK"73}74```7576## Critical Notes7778### Core Rules79- **Conditional:** Skip entirely if no frontend detected80- **WCAG compliance:** Document must reference accessibility standards81- **Design tokens:** Extract from CSS variables, tailwind config, or theme files82- **Idempotent:** Never overwrite existing files8384### NO_CODE_EXAMPLES Rule (MANDATORY)85Design guidelines document **visual standards**, NOT code:86- **FORBIDDEN:** CSS code blocks, component implementations87- **ALLOWED:** Tables (colors, typography), design tokens, Figma links88- **INSTEAD OF CODE:** "See [Component Library](link)" or "See src/components/Button.tsx"8990### Stack Adaptation Rule (MANDATORY)91- Link to correct component library docs (MUI for React, Vuetify for Vue)92- Reference framework-specific patterns (React hooks, Vue composition API)93- Never mix stack references (no React examples in Vue project)9495### Format Priority (MANDATORY)96Tables (colors, typography, spacing) > Lists (component inventory) > Text9798## Definition of Done99- [ ] Condition checked (hasFrontend)100- [ ] Document created if applicable101- [ ] Design system, typography, colors documented102- [ ] WCAG references included103- [ ] **Actuality verified:** all document facts match current code (paths, functions, APIs, configs exist and are accurate)104- [ ] Status returned to coordinator105106## Reference Files107- Templates: `references/templates/design_guidelines_template.md`108- Questions: `references/questions_frontend.md` (Q43-Q45)109110---111**Version:** 1.1.0112**Last Updated:** 2025-01-12