Use when asked to create or edit style guides, design systems, component libraries, or update existing frontend components for web projects
View on GitHubwzkariampuzha/claude-skills
wzkariampuzha-claude-skills
skills/frontend-styleguide/SKILL.md
February 1, 2026
Select agents to install to:
npx add-skill https://github.com/wzkariampuzha/claude-skills/blob/main/skills/frontend-styleguide/SKILL.md -a claude-code --skill frontend-styleguideInstallation paths:
.claude/skills/frontend-styleguide/# Generating Frontend Styleguides
## Overview
A frontend styleguide is a living document that defines visual patterns, component APIs, and reusable code for a web project. This skill ensures you create comprehensive, efficient styleguides without wasting context on repeated exploration.
**Core principle:** Explore once with subagent, document findings permanently to CLAUDE.md, never explore again.
## When to Use
Use this skill when the user asks to:
- "Create a style guide"
- "Document our component library"
- "Build a design system"
- "Make reusable components"
- "Standardize our frontend patterns"
- "Update the style guide"
- "Add a component to the style guide"
- "Edit existing components"
## First: Creating vs Editing Decision
```dot
digraph create_vs_edit {
"User requests styleguide work" [shape=doublecircle];
"CLAUDE.md has Frontend Style Guide section?" [shape=diamond];
"Creating NEW style guide" [shape=box];
"Editing EXISTING style guide" [shape=box];
"Follow creation workflow" [shape=box];
"Use CLAUDE.md context ONLY" [shape=box];
"User requests styleguide work" -> "CLAUDE.md has Frontend Style Guide section?";
"CLAUDE.md has Frontend Style Guide section?" -> "Creating NEW style guide" [label="no"];
"CLAUDE.md has Frontend Style Guide section?" -> "Editing EXISTING style guide" [label="yes"];
"Creating NEW style guide" -> "Follow creation workflow";
"Editing EXISTING style guide" -> "Use CLAUDE.md context ONLY";
}
```
**CRITICAL RULE:** If CLAUDE.md already has a "Frontend Style Guide" section, you are EDITING. Do NOT re-explore. Use only the documented context in CLAUDE.md.
## Creation Workflow (New Style Guides Only)
```dot
digraph styleguide_creation {
"Creating new style guide" [shape=doublecircle];
"Ask design preferences" [shape=box];
"Launch Explore subagent" [shape=box];
"Document findings to CLAUDE.md" [shape=box];
"Use frontend-design skill" [shape=box];
"Create reusable component