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/skills/{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-63description: "Creates design_guidelines.md with WCAG 2.1 compliance and design system docs. Use when project has a frontend."4license: MIT5metadata:6 source: https://skillmd.com/skills/majiayu000/ln-114-frontend-docs-creator-67---89> **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/skills/{path}`.1011# Frontend Documentation Creator1213L3 Worker that creates design_guidelines.md. CONDITIONAL - only invoked when project has frontend.1415## Purpose & Scope16- Creates design_guidelines.md (if hasFrontend)17- Receives Context Store from ln-110-project-docs-coordinator18- WCAG 2.1 Level AA accessibility compliance19- Design system documentation20- **Downstream consumers:** `design_guidelines.md` is loaded by ln-401 (Frontend Guard) and ln-402 (Frontend Review Checks) for runtime design validation against implementation21- Never gathers context itself; uses coordinator input2223## Invocation (who/when)24- **ln-110-project-docs-coordinator:** CONDITIONALLY invoked when:25 - `hasFrontend=true` (react, vue, angular, svelte detected)26- Never called directly by users2728## Inputs29From coordinator:30- `contextStore`: Context Store with frontend-specific data31 - DESIGN_SYSTEM (Material-UI, Ant Design, custom)32 - COLOR_PALETTE (primary, secondary, accent)33 - TYPOGRAPHY (font families, sizes, weights)34 - COMPONENT_LIBRARY (detected components)35- `targetDir`: Project root directory36- `flags`: { hasFrontend }3738## Documents Created (1, conditional)3940| File | Condition | Questions | Auto-Discovery |41|------|-----------|-----------|----------------|42| docs/project/design_guidelines.md | hasFrontend | Q43-Q45 | Low |4344## Workflow4546### Phase 1: Check Conditions471. Parse flags from coordinator482. If `!hasFrontend`: return early with empty result4950### Phase 2: Create Document511. Check if file exists (idempotent)522. If exists: skip with log533. If not exists:54 - Copy template55 - Replace placeholders with Context Store values56 - Populate design system section57 - Mark `[TBD: X]` for missing data5859### Phase 3: Self-Validate601. Check SCOPE tag612. Validate sections:62 - Design System (component library)63 - Typography (font families, sizes)64 - Colors (hex codes, semantic colors)653. Check WCAG 2.1 references664. Check Maintenance section6768### Phase 4: Return Status69```json70{71 "created": ["docs/project/design_guidelines.md"],72 "skipped": [],73 "tbd_count": 1,74 "validation": "OK"75}76```7778## Critical Notes7980### Core Rules81- **Conditional:** Skip entirely if no frontend detected82- **WCAG compliance:** Document must reference accessibility standards83- **Design tokens:** Extract from CSS variables, tailwind config, or theme files84- **Idempotent:** Never overwrite existing files8586### NO_CODE_EXAMPLES Rule (MANDATORY)87Design guidelines document **visual standards**, NOT code:88- **FORBIDDEN:** CSS code blocks, component implementations89- **ALLOWED:** Tables (colors, typography), design tokens, Figma links90- **INSTEAD OF CODE:** "See [Component Library](link)" or "See src/components/Button.tsx"9192### Stack Adaptation Rule (MANDATORY)93- Link to correct component library docs (MUI for React, Vuetify for Vue)94- Reference framework-specific patterns (React hooks, Vue composition API)95- Never mix stack references (no React examples in Vue project)9697### Format Priority (MANDATORY)98Tables (colors, typography, spacing) > Lists (component inventory) > Text99100## Definition of Done101- [ ] Condition checked (hasFrontend)102- [ ] Document created if applicable103- [ ] Design system, typography, colors documented104- [ ] WCAG references included105- [ ] **Actuality verified:** all document facts match current code (paths, functions, APIs, configs exist and are accurate)106- [ ] Status returned to coordinator107108## Reference Files109- Templates: `references/templates/design_guidelines_template.md`110- Questions: `references/questions_frontend.md` (Q43-Q45)111112---113**Version:** 1.1.0114**Last Updated:** 2025-01-12