Paths: File paths (references/, ../ln-*) are relative to this skill directory.
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 references/docs_quality_contract.md, and references/markdown_read_protocol.md.
Optional rule catalog: load references/docs_quality_rules.json only when exact rule IDs, path matrices, or allowlisted placeholder exceptions are needed.
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 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-33description: 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 (`references/`, `../ln-*`) are relative to this skill directory.
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 `references/docs_quality_contract.md`, and `references/markdown_read_protocol.md`.
39Optional rule catalog: load `references/docs_quality_rules.json` only when exact rule IDs, path matrices, or allowlisted placeholder exceptions are needed.
40
41## Documents Created (1, conditional)
42
43| File | Condition | Questions | Auto-Discovery |
44|------|-----------|-----------|----------------|
45| docs/project/design_guidelines.md | hasFrontend | Q43-Q45 | Low |
46
47## Workflow
48
49### Phase 1: Check Conditions
501. Parse flags from coordinator
512. If `!hasFrontend`: return early with empty result
52
53### Phase 2: Create Document
541. Check if file exists (idempotent)
552. If exists: skip with log
563. If not exists:
57 - Copy template
58 - Replace placeholders with Context Store values
59 - Preserve the shared opening contract and standard top sections from the template
60 - Populate design system section
61 - Never leave template markers in published frontend docs
62 - If data is missing: omit the claim or use a concise neutral fallback, but do NOT emit `[TBD: ...]`
63
64### Phase 3: Self-Validate
651. Check SCOPE tag and metadata markers
662. Check required top sections (`Quick Navigation`, `Agent Entry`, `Maintenance`)
673. Validate sections:
68 - Design System (component library)
69 - Typography (font families, sizes)
70 - Colors (hex codes, semantic colors)
714. Check WCAG 2.1 references
725. Check docs-quality contract compliance (no forbidden placeholders, no leaked template metadata, valid doc kind/role)
73
74### Phase 4: Return Status
75```json
76{
77 "created_files": ["docs/project/design_guidelines.md"],
78 "skipped_files": [],
79 "quality_inputs": {
80 "doc_paths": ["docs/project/design_guidelines.md"],
81 "owners": {
82 "docs/project/design_guidelines.md": "ln-114-frontend-docs-creator"
83 }
84 },
85 "validation_status": "passed"
86}
87```
88
89## Critical Notes
90
91### Core Rules
92- **Conditional:** Skip entirely if no frontend detected
93- **WCAG compliance:** Document must reference accessibility standards
94- **Design tokens:** Extract from CSS variables, tailwind config, or theme files
95- **Idempotent:** Never overwrite existing files
96- **Publishable output:** No `[TBD: ...]`, `TODO`, or leaked template metadata in frontend docs
97
98### NO_CODE_EXAMPLES Rule (MANDATORY)
99Design guidelines document **visual standards**, NOT code:
100- **FORBIDDEN:** CSS code blocks, component implementations
101- **ALLOWED:** Tables (colors, typography), design tokens, Figma links
102- **INSTEAD OF CODE:** "See [Component Library](link)" or "See src/components/Button.tsx"
103
104### Stack Adaptation Rule (MANDATORY)
105- Link to correct component library docs (MUI for React, Vuetify for Vue)
106- Reference framework-specific patterns (React hooks, Vue composition API)
107- Never mix stack references (no React examples in Vue project)
108
109### Format Priority (MANDATORY)
110Tables (colors, typography, spacing) > Lists (component inventory) > Text
111
112## Runtime Summary Artifact
113
114**MANDATORY READ:** Load `references/docs_generation_summary_contract.md`
115
116Accept optional `summaryArtifactPath`.
117
118Summary kind:
119- `docs-generation`
120
121Required payload semantics:
122- `worker = "ln-114"`
123- `status`
124- `created_files`
125- `skipped_files`
126- `quality_inputs`
127- `validation_status`
128- `warnings`
129
130Write the summary to the provided artifact path or return the same envelope in structured output.
131
132## Definition of Done
133- [ ] Condition checked (hasFrontend)
134- [ ] Document created if applicable
135- [ ] Design system, typography, colors documented
136- [ ] WCAG references included
137- [ ] **Actuality verified:** all document facts match current code (paths, functions, APIs, configs exist and are accurate)
138- [ ] Status returned
139
140## Reference Files
141- Templates: `references/templates/design_guidelines_template.md`
142- Questions: `references/questions_frontend.md` (Q43-Q45)
143
144---
145**Version:** 1.1.0
146**Last Updated:** 2025-01-12