/wzkariampuzha-claude-skills:frontend-styleguidefrom wzkariampuzha-claude-skills
Use when asked to create or edit style guides, design systems, component libraries, or update existing frontend components for web projects
Ships in wzkariampuzha-claude-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
Use this skill when the user asks to:
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.
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 components" [shape=box];
"Done" [shape=doublecircle];
"Creating new style guide" -> "Ask design preferences";
"Ask design preferences" -> "Launch Explore subagent";
"Launch Explore subagent" -> "Document findings to CLAUDE.md";
"Document findings to CLAUDE.md" -> "Use frontend-design skill";
"Use frontend-design skill" -> "Create reusable components";
"Create reusable components" -> "Done";
}
When CLAUDE.md already has a "Frontend Style Guide" section:
Before any exploration, ask the user these questions using AskUserQuestion:
REQUIRED: Use Task tool with subagent_type: "Explore" and only in the frontend/ . Do NOT explore or access any NextJS code or other executable code directories e.g. node_modules/ or .next/
Never use direct Glob/Grep for codebase exploration. The Explore agent is 50-100x more context-efficient.
Exploration parameters:
Task tool with:
- subagent_type: "Explore"
- thoroughness: "medium"
- prompt: "Explore the frontend codebase structure. Find:
1. Component directory structure
2. Styling methodology (CSS modules, Tailwind, styled-components, etc.)
3. Existing component patterns and naming conventions
4. Any existing design tokens or theme configuration
5. Build tooling and framework (React, Vue, etc.)
EXCLUDE: node_modules, dist, build, .next, out, coverage, any installation/executable directories
Summarize findings in a structured format."
Why Explore subagent: Saves 50-100x context vs running multiple Glob/Grep commands yourself.
IMMEDIATELY after Explore completes, write findings to .claude/CLAUDE.md in a dedicated section:
## Frontend Style Guide
### Project Structure
[Component directories, file organization]
### Styling Approach
[CSS methodology, design tokens, theme system]
### Existing Patterns
[Component patterns, naming conventions]
### Design System
[Framework: shadcn/ui / Material UI / etc.]
[Fonts: Google Fonts - Roboto, Open Sans / System fonts]
### Component Inventory
#### Standard Components
- Button (variants: primary, secondary, outline)
- Input (text, email, password, textarea)
- Card (basic, with header, with actions)
- Modal (dialog, drawer, alert)
- Navigation (navbar, sidebar, tabs)
[etc.]
#### Custom Components
[Any domain-specific components]
Why document to CLAUDE.md: This becomes permanent project context. You'll never need to re-explore. Future sessions load this instantly.
REQUIRED: Before creating any components, invoke the frontend-design skill:
Skill tool with:
- skill: "frontend-design:frontend-design"
The frontend-design skill ensures:
Components must be functions that can be reused, not just documentation. Structure per component:
/**
* Button Component
*
* @param {Object} props
* @param {'primary'|'secondary'|'outline'} props.variant - Button style variant
* @param {'sm'|'md'|'lg'} props.size - Button size
* @param {boolean} props.disabled - Disabled state
* @param {React.ReactNode} props.children - Button content
* @param {Function} props.onClick - Click handler
* @returns {React.ReactElement}
*/
export function Button({
variant = 'primary',
size = 'md',
disabled = false,
children,
onClick
}) {
// Implementation using design system specified
}
Save to: src/components/ or existing component directory (match project structure).
Update CLAUDE.md with component location and usage after creation.
Unless user specifies otherwise, include these common UI components: Titles, Headers, Text, Headers, Footers Form Elements:
Component files: src/components/[ComponentName]/ or project's existing structure
Style guide documentation: .claude/CLAUDE.md (section: "Frontend Style Guide")
Component demos (if requested): Create separate demo file or Storybook stories
Never create in root directory. Match existing project structure.
| Mistake | Reality |
|---|---|
| "I'll just grep for components quickly" | Explore subagent is faster and uses 50-100x less context |
| "I'll document later" | Document to CLAUDE.md immediately or you'll waste context re-exploring |
| "User knows what design system they want" | Always ask explicitly. Assumptions lead to rework |
| "Standard components are obvious" | Your standard ≠ their standard. Check existing codebase |
| "I'll create generic components first" | Use frontend-design skill for professional quality |
| "I can skip fonts question" | Font choice affects entire design. Always ask |
| "I should re-explore to verify changes" | CLAUDE.md is the source of truth. Never re-explore when editing |
| "Let me check the codebase for updates" | If editing, use only CLAUDE.md context. No file reads needed |
These thoughts mean you're cutting corners: When Creating:
ALWAYS exclude these from exploration:
node_modules/dist/, build/, out/, .next/coverage/, .coverage/__pycache__/, .pytest_cache/.git/.trunk/
Why: Wastes context, no useful information for style guides.For Creating New Style Guide:
.claude/CLAUDE.md immediatelyExplore once. Document permanently. Create professionally. Style guides fail when you:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub wzkariampuzha/claude-skills --plugin wzkariampuzha-claude-skills2 skills in this plugin
Other plugins' skills for the same job