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
Type: L3 Worker
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 }
MANDATORY READ: Load shared/references/docs_quality_contract.md, shared/references/docs_quality_rules.json, and shared/references/markdown_read_protocol.md.
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
- Preserve the shared opening contract and standard top sections from the template
- Populate design system section
- Never leave template markers in published frontend docs
- If data is missing: omit the claim or use a concise neutral fallback, but do NOT emit
[TBD: ...]
Phase 3: Self-Validate
- Check SCOPE tag and metadata markers
- Check required top sections (
Quick Navigation, Agent Entry, Maintenance)
- Validate sections:
- Design System (component library)
- Typography (font families, sizes)
- Colors (hex codes, semantic colors)
- Check WCAG 2.1 references
- Check docs-quality contract compliance (no forbidden placeholders, no leaked template metadata, valid doc kind/role)
Phase 4: Return Status
{
"created_files": ["docs/project/design_guidelines.md"],
"skipped_files": [],
"quality_inputs": {
"doc_paths": ["docs/project/design_guidelines.md"],
"owners": {
"docs/project/design_guidelines.md": "ln-114-frontend-docs-creator"
}
},
"validation_status": "passed"
}
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
- Publishable output: No
[TBD: ...], TODO, or leaked template metadata in frontend docs
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
Runtime Summary Artifact
MANDATORY READ: Load shared/references/docs_generation_summary_contract.md
Accept optional summaryArtifactPath.
Summary kind:
Required payload semantics:
worker = "ln-114"
status
created_files
skipped_files
quality_inputs
validation_status
warnings
Write the summary to the provided artifact path or return the same envelope in structured output.
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-23description: Creates design_guidelines.md with WCAG 2.1 compliance and design system docs. Use when project has a frontend.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. If `shared/` is missing, fetch files via WebFetch from `https://raw.githubusercontent.com/levnikolaevich/claude-code-skills/master/skills/{path}`.
8
9# Frontend Documentation Creator
10
11**Type:** L3 Worker
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- **Downstream consumers:** `design_guidelines.md` is loaded by ln-401 (Frontend Guard) and ln-402 (Frontend Review Checks) for runtime design validation against implementation
21- Never gathers context itself; uses coordinator input
22
23## 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 users
27
28## Inputs
29From coordinator:
30- `contextStore`: Context Store with frontend-specific data
31 - 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 directory
36- `flags`: { hasFrontend }
37
38**MANDATORY READ:** Load `shared/references/docs_quality_contract.md`, `shared/references/docs_quality_rules.json`, and `shared/references/markdown_read_protocol.md`.
39
40## Documents Created (1, conditional)
41
42| File | Condition | Questions | Auto-Discovery |
43|------|-----------|-----------|----------------|
44| docs/project/design_guidelines.md | hasFrontend | Q43-Q45 | Low |
45
46## Workflow
47
48### Phase 1: Check Conditions
491. Parse flags from coordinator
502. If `!hasFrontend`: return early with empty result
51
52### Phase 2: Create Document
531. Check if file exists (idempotent)
542. If exists: skip with log
553. If not exists:
56 - Copy template
57 - Replace placeholders with Context Store values
58 - Preserve the shared opening contract and standard top sections from the template
59 - Populate design system section
60 - Never leave template markers in published frontend docs
61 - If data is missing: omit the claim or use a concise neutral fallback, but do NOT emit `[TBD: ...]`
62
63### Phase 3: Self-Validate
641. Check SCOPE tag and metadata markers
652. Check required top sections (`Quick Navigation`, `Agent Entry`, `Maintenance`)
663. Validate sections:
67 - Design System (component library)
68 - Typography (font families, sizes)
69 - Colors (hex codes, semantic colors)
704. Check WCAG 2.1 references
715. Check docs-quality contract compliance (no forbidden placeholders, no leaked template metadata, valid doc kind/role)
72
73### Phase 4: Return Status
74```json
75{
76 "created_files": ["docs/project/design_guidelines.md"],
77 "skipped_files": [],
78 "quality_inputs": {
79 "doc_paths": ["docs/project/design_guidelines.md"],
80 "owners": {
81 "docs/project/design_guidelines.md": "ln-114-frontend-docs-creator"
82 }
83 },
84 "validation_status": "passed"
85}
86```
87
88## Critical Notes
89
90### Core Rules
91- **Conditional:** Skip entirely if no frontend detected
92- **WCAG compliance:** Document must reference accessibility standards
93- **Design tokens:** Extract from CSS variables, tailwind config, or theme files
94- **Idempotent:** Never overwrite existing files
95- **Publishable output:** No `[TBD: ...]`, `TODO`, or leaked template metadata in frontend docs
96
97### NO_CODE_EXAMPLES Rule (MANDATORY)
98Design guidelines document **visual standards**, NOT code:
99- **FORBIDDEN:** CSS code blocks, component implementations
100- **ALLOWED:** Tables (colors, typography), design tokens, Figma links
101- **INSTEAD OF CODE:** "See [Component Library](link)" or "See src/components/Button.tsx"
102
103### Stack Adaptation Rule (MANDATORY)
104- Link to correct component library docs (MUI for React, Vuetify for Vue)
105- Reference framework-specific patterns (React hooks, Vue composition API)
106- Never mix stack references (no React examples in Vue project)
107
108### Format Priority (MANDATORY)
109Tables (colors, typography, spacing) > Lists (component inventory) > Text
110
111## Runtime Summary Artifact
112
113**MANDATORY READ:** Load `shared/references/docs_generation_summary_contract.md`
114
115Accept optional `summaryArtifactPath`.
116
117Summary kind:
118- `docs-generation`
119
120Required payload semantics:
121- `worker = "ln-114"`
122- `status`
123- `created_files`
124- `skipped_files`
125- `quality_inputs`
126- `validation_status`
127- `warnings`
128
129Write the summary to the provided artifact path or return the same envelope in structured output.
130
131## Definition of Done
132- [ ] Condition checked (hasFrontend)
133- [ ] Document created if applicable
134- [ ] Design system, typography, colors documented
135- [ ] WCAG references included
136- [ ] **Actuality verified:** all document facts match current code (paths, functions, APIs, configs exist and are accurate)
137- [ ] Status returned
138
139## Reference Files
140- Templates: `references/templates/design_guidelines_template.md`
141- Questions: `references/questions_frontend.md` (Q43-Q45)
142
143---
144**Version:** 1.1.0
145**Last Updated:** 2025-01-12