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. L3 Worker invoked CONDITIONALLY when hasFrontend detected.4---56> **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.78# Frontend Documentation Creator910L3 Worker that creates design_guidelines.md. CONDITIONAL - only invoked when project has frontend.1112## Purpose & Scope13- Creates design_guidelines.md (if hasFrontend)14- Receives Context Store from ln-110-project-docs-coordinator15- WCAG 2.1 Level AA accessibility compliance16- Design system documentation17- Never gathers context itself; uses coordinator input1819## Invocation (who/when)20- **ln-110-project-docs-coordinator:** CONDITIONALLY invoked when:21 - `hasFrontend=true` (react, vue, angular, svelte detected)22- Never called directly by users2324## Inputs25From coordinator:26- `contextStore`: Context Store with frontend-specific data27 - DESIGN_SYSTEM (Material-UI, Ant Design, custom)28 - COLOR_PALETTE (primary, secondary, accent)29 - TYPOGRAPHY (font families, sizes, weights)30 - COMPONENT_LIBRARY (detected components)31- `targetDir`: Project root directory32- `flags`: { hasFrontend }3334## Documents Created (1, conditional)3536| File | Condition | Questions | Auto-Discovery |37|------|-----------|-----------|----------------|38| docs/project/design_guidelines.md | hasFrontend | Q43-Q45 | Low |3940## Workflow4142### Phase 1: Check Conditions431. Parse flags from coordinator442. If `!hasFrontend`: return early with empty result4546### Phase 2: Create Document471. Check if file exists (idempotent)482. If exists: skip with log493. If not exists:50 - Copy template51 - Replace placeholders with Context Store values52 - Populate design system section53 - Mark `[TBD: X]` for missing data5455### Phase 3: Self-Validate561. Check SCOPE tag572. Validate sections:58 - Design System (component library)59 - Typography (font families, sizes)60 - Colors (hex codes, semantic colors)613. Check WCAG 2.1 references624. Check Maintenance section6364### Phase 4: Return Status65```json66{67 "created": ["docs/project/design_guidelines.md"],68 "skipped": [],69 "tbd_count": 1,70 "validation": "OK"71}72```7374## Critical Notes7576### Core Rules77- **Conditional:** Skip entirely if no frontend detected78- **WCAG compliance:** Document must reference accessibility standards79- **Design tokens:** Extract from CSS variables, tailwind config, or theme files80- **Idempotent:** Never overwrite existing files8182### NO_CODE_EXAMPLES Rule (MANDATORY)83Design guidelines document **visual standards**, NOT code:84- **FORBIDDEN:** CSS code blocks, component implementations85- **ALLOWED:** Tables (colors, typography), design tokens, Figma links86- **INSTEAD OF CODE:** "See [Component Library](link)" or "See src/components/Button.tsx"8788### Stack Adaptation Rule (MANDATORY)89- Link to correct component library docs (MUI for React, Vuetify for Vue)90- Reference framework-specific patterns (React hooks, Vue composition API)91- Never mix stack references (no React examples in Vue project)9293### Format Priority (MANDATORY)94Tables (colors, typography, spacing) > Lists (component inventory) > Text9596## Definition of Done97- Condition checked (hasFrontend)98- Document created if applicable99- Design system, typography, colors documented100- WCAG references included101- **Actuality verified:** all document facts match current code (paths, functions, APIs, configs exist and are accurate)102- Status returned to coordinator103104## Reference Files105- Templates: `references/templates/design_guidelines_template.md`106- Questions: `references/questions_frontend.md` (Q43-Q45)107108---109**Version:** 1.1.0110**Last Updated:** 2025-01-12