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.
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
- 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
- Condition checked (hasFrontend)
- Document created if applicable
- Design system, typography, colors documented
- WCAG references included
- Actuality verified: all document facts match current code (paths, functions, APIs, configs exist and are accurate)
- Status returned to coordinator
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-creator3description: Creates design_guidelines.md for frontend projects. Invoked when hasFrontend detected.4license: MIT5---6
7> **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.
8
9# Frontend Documentation Creator
10
11L3 Worker that creates design_guidelines.md. CONDITIONAL - only invoked when project has frontend.
12
13## Purpose & Scope
14- Creates design_guidelines.md (if hasFrontend)
15- Receives Context Store from ln-110-project-docs-coordinator
16- WCAG 2.1 Level AA accessibility compliance
17- Design system documentation
18- Never gathers context itself; uses coordinator input
19
20## Invocation (who/when)
21- **ln-110-project-docs-coordinator:** CONDITIONALLY invoked when:
22 - `hasFrontend=true` (react, vue, angular, svelte detected)
23- Never called directly by users
24
25## Inputs
26From coordinator:
27- `contextStore`: Context Store with frontend-specific data
28 - DESIGN_SYSTEM (Material-UI, Ant Design, custom)
29 - COLOR_PALETTE (primary, secondary, accent)
30 - TYPOGRAPHY (font families, sizes, weights)
31 - COMPONENT_LIBRARY (detected components)
32- `targetDir`: Project root directory
33- `flags`: { hasFrontend }
34
35## Documents Created (1, conditional)
36
37| File | Condition | Questions | Auto-Discovery |
38|------|-----------|-----------|----------------|
39| docs/project/design_guidelines.md | hasFrontend | Q43-Q45 | Low |
40
41## Workflow
42
43### Phase 1: Check Conditions
441. Parse flags from coordinator
452. If `!hasFrontend`: return early with empty result
46
47### Phase 2: Create Document
481. Check if file exists (idempotent)
492. If exists: skip with log
503. If not exists:
51 - Copy template
52 - Replace placeholders with Context Store values
53 - Populate design system section
54 - Mark `[TBD: X]` for missing data
55
56### Phase 3: Self-Validate
571. Check SCOPE tag
582. Validate sections:
59 - Design System (component library)
60 - Typography (font families, sizes)
61 - Colors (hex codes, semantic colors)
623. Check WCAG 2.1 references
634. Check Maintenance section
64
65### Phase 4: Return Status
66```json
67{
68 "created": ["docs/project/design_guidelines.md"],
69 "skipped": [],
70 "tbd_count": 1,
71 "validation": "OK"
72}
73```
74
75## Critical Notes
76
77### Core Rules
78- **Conditional:** Skip entirely if no frontend detected
79- **WCAG compliance:** Document must reference accessibility standards
80- **Design tokens:** Extract from CSS variables, tailwind config, or theme files
81- **Idempotent:** Never overwrite existing files
82
83### NO_CODE_EXAMPLES Rule (MANDATORY)
84Design guidelines document **visual standards**, NOT code:
85- **FORBIDDEN:** CSS code blocks, component implementations
86- **ALLOWED:** Tables (colors, typography), design tokens, Figma links
87- **INSTEAD OF CODE:** "See [Component Library](link)" or "See src/components/Button.tsx"
88
89### Stack Adaptation Rule (MANDATORY)
90- Link to correct component library docs (MUI for React, Vuetify for Vue)
91- Reference framework-specific patterns (React hooks, Vue composition API)
92- Never mix stack references (no React examples in Vue project)
93
94### Format Priority (MANDATORY)
95Tables (colors, typography, spacing) > Lists (component inventory) > Text
96
97## Definition of Done
98- Condition checked (hasFrontend)
99- Document created if applicable
100- Design system, typography, colors documented
101- WCAG references included
102- **Actuality verified:** all document facts match current code (paths, functions, APIs, configs exist and are accurate)
103- Status returned to coordinator
104
105## Reference Files
106- Templates: `references/templates/design_guidelines_template.md`
107- Questions: `references/questions_frontend.md` (Q43-Q45)
108
109---
110**Version:** 1.1.0
111**Last Updated:** 2025-01-12