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