/css-development:validatefrom css-development
Audits existing CSS for semantic naming, @apply composition, dark-mode coverage, and test gaps, then reports actionable findings. Use when reviewing CSS before merging, before a refactor, or when spot-checking pattern compliance.
Ships in css-development. 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.
Reviews existing CSS code against established patterns and provides specific, actionable feedback:
@apply compositionThis is a sub-skill of css-development - typically invoked automatically via the main skill.
Use when:
See the css-development skill for the canonical pattern reference (semantic naming, @apply, dark mode, composition, testing).
When this skill is invoked, create a TodoWrite checklist and work through validation systematically.
Use the TodoWrite tool:
Validating CSS:
- [ ] Read CSS files (load components.css and related styles)
- [ ] Check semantic naming (verify descriptive class names)
- [ ] Verify @apply usage (ensure Tailwind composition)
- [ ] Check dark mode coverage (confirm dark: variants present)
- [ ] Look for composition opportunities (identify reusable patterns)
- [ ] Verify test coverage (check static and rendering tests exist)
- [ ] Check documentation (ensure usage comments present)
- [ ] Report findings (provide file:line references and suggestions)
Action: Use Read tool to load CSS files for review
Files to check:
styles/components.css (main semantic components)What to capture:
@apply vs. inline utilitiesAction: Review all class names for semantic, descriptive naming
Good patterns:
.button-primary, .card-header, .form-field, .empty-state.session-card, .marketing-hero.badge-success, .button-dangerBad patterns (report these):
.btn-blue, .card-sm, .text-big.btn, .hdr, .desc.component, .item, .thing.style1, .custom, .specialFor each issue:
Action: Check that Tailwind utilities are composed via @apply, not scattered in markup
Good patterns:
.button-primary {
@apply bg-indigo-500 hover:bg-indigo-700 px-6 py-3 rounded-lg;
}
Bad patterns (report these):
<!-- Utilities in markup instead of semantic class -->
<button class="bg-indigo-500 hover:bg-indigo-700 px-6 py-3 rounded-lg">
Click me
</button>
Check:
@apply?For each issue:
@applyAction: Verify colored and interactive elements have dark: variants
What needs dark mode:
What typically doesn't need dark mode:
Pattern to check:
/* Good - has dark mode */
.card {
@apply bg-white dark:bg-gray-800 text-gray-900 dark:text-white;
}
/* Bad - missing dark mode */
.card {
@apply bg-white text-gray-900;
}
For each issue:
dark: utilities to addAction: Identify repeated patterns that could use existing classes or be extracted
Look for:
Example issue:
/* Repeated pattern */
.card-primary {
@apply bg-white dark:bg-gray-800 rounded-lg shadow-md p-6;
}
.card-secondary {
@apply bg-white dark:bg-gray-800 rounded-lg shadow-md p-6;
@apply border-2 border-gray-200;
}
/* Suggestion: Extract base .card class, add variants */
.card {
@apply bg-white dark:bg-gray-800 rounded-lg shadow-md p-6;
}
.card-secondary {
@apply border-2 border-gray-200;
}
For each opportunity:
Action: Check that CSS classes have test coverage
Static CSS tests - Check styles/__tests__/components.test.ts:
it('should have button-primary class', () => {
expect(content).toContain('.button-primary');
});
Component rendering tests - Check component test files:
it('applies button-primary class', () => {
render(<Button variant="primary">Click</Button>);
expect(screen.getByRole('button')).toHaveClass('button-primary');
});
For classes without tests:
Action: Verify components have usage documentation
Required documentation:
Example:
/* Button component - Primary action button with hover lift effect
Usage: <button className="button-primary">Click me</button> */
.button-primary {
...
}
For classes without documentation:
Action: Compile all findings into structured report
Report format — the generated report must include these sections (use real file:line references from the actual files reviewed — never invent data):
After generating the validation report:
Ask user what they want to do next:
Offer to invoke refactor skill if there are structural issues that need refactoring
Suggest committing any fixes made
What SKILL.md sets; muted values are Claude Code's defaults
css-development@2389-research is listed by 2389-research/claude-plugins — review the source before installing
npx claudepluginhub 2389-research/claude-plugins --plugin css-developmentOther plugins' skills for the same job
4 skills in this plugin
/create-componentcss-development:create-componentCreates new styled UI components using semantic Tailwind class names, @apply composition, dark mode variants, and test coverage. Use when adding a new CSS component, creating a styled button/card/form-field, or wiring up dark mode for a new UI element./css-developmentHandles CSS and Tailwind development — semantic class naming, @apply composition, dark mode by default, component creation, refactoring inline/utility styles, and CSS audits. Use when working with CSS, Tailwind, @apply, component styling, or dark mode. Sub-skills available: css-development:create-component, css-development:refactor, css-development:validate./