agentleFS
AILiteracyLabAILiteracyLab/Claude-Style-Audit/skill/SKILL.md

style-audit

Skill2 starsChanged 9 months agoMITView on GitHub

CSS style audit against the project's design system. Spawns 5 agents — two auditors scan in parallel (buttons/interactive states + CSS patterns), findings presented by severity for approval, fixes applied one-at-a-time with checkpoints, and independently verified.

  • Deletes or force-pushes

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. liustack/vibemaster★ 11same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

Show its rules and text

We split this skill into the rules it gives an agent

35 rules. About 0 are common, 19 are distinctive, and 16 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈19

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 16

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    If the user provides no arguments, audit the entire frontend source directory for all categories with full fix mode and low threshold.

    line 75
  2. Distinctive:

    Before auditing, the team lead must locate (or create) the project's source of truth.

    line 81
  3. Very specific:

    Read the global CSS file(s) thoroughly — all :root variables, utility classes, base element styles, and resets

    line 91
  4. Distinctive:

    Color tokens: All CSS custom properties for colors, backgrounds, borders, text

    line 93
  5. Very specific:

    Write the generated style guide to docs/STYLE_GUIDE.md (or the project's docs directory)

    line 101
  6. Very specific:

    Commit the generated style guide: git add docs/STYLE_GUIDE.md && git commit -m "docs: generate CSS style guide from design tokens"

    line 102
  7. Distinctive:

    Before anything else, secure a rollback point:

    line 109
  8. Distinctive:

    Run git status to check for uncommitted changes

    line 111
  9. Very specific:

    If there are uncommitted changes, stash them: git stash push -m "style-audit: pre-audit stash"

    line 112
  10. Very specific:

    Create a checkpoint tag: git tag style-audit/checkpoint-YYYYMMDD-HHMMSS

    line 113
  11. Very specific:

    Create the evidence directory: mkdir -p style-audit-evidence

    line 114
  12. Very specific:

    Create a team named style-audit with yourself as team lead (style-lead).

    line 128
  13. Very specific:

    If focus is buttons, only spawn hover-sentinel.

    line 166
  14. Distinctive:

    Wait for both auditors to complete and report back.

    line 168
  15. Very specific:

    Read style-audit-evidence/button-findings.json and style-audit-evidence/pattern-findings.json

    line 174
  16. Distinctive:

    Ask the user what to fix using AskUserQuestion:

    line 204
  17. Distinctive:

    If the user selects "None", skip to Phase 6 (Final Report) with no fixes applied.

    line 210
  18. Distinctive:

    Ask the user to approve, modify, or reject the plan.

    line 232
  19. Very specific:

    VERIFIED: Commit the fix: git add -A && git commit -m "fix(style-audit): [FIX-ID] — [short description]" → proceed to next fix

    line 275
  20. Distinctive:

    After all fixes are processed, shut down stylist and inspector.

    line 278
  21. Distinctive:

    Delete the team with TeamDelete

    line 320
  22. Very specific:

    Check: All component *.css files for button-related selectors with color properties

    line 332
  23. Very specific:

    Check: All :hover pseudo-selectors in component *.css files

    line 340
  24. Very specific:

    Check: All interactive element selectors for :focus, :focus-visible, :active

    line 347
  25. Very specific:

    Check: All interactive elements for transition property

    line 353
  26. Very specific:

    Check: All component *.css files for color values not wrapped in var()

    line 362
  27. Very specific:

    CSS-only changes: Never modify .tsx, .ts, .js, .jsx, .py, .html, or other non-CSS files during fixes.

    line 420
  28. Distinctive:

    No drive-by improvements: Only fix what's in the finding.

    line 423
  29. Distinctive:

    Never push to remote: All changes stay local. The user decides when to push.

    line 425
  30. Distinctive:

    Stop after 2 failed attempts per fix: If a fix fails verification twice (initial + one retry), skip it and add to the deferred list.

    line 426
  31. Distinctive:

    Agents stay in their lanes: Only stylist writes CSS. hover-sentinel and pattern-scout only read and report.

    line 427
  32. Distinctive:

    Respect .gitignore: Never commit files that should be ignored.

    line 429
  33. Distinctive:

    Git safety: Never force-push, never amend published commits, never rebase without user permission.

    line 430
  34. Distinctive:

    After a major feature addition with new CSS files

    line 474
  35. Distinctive:

    Do NOT use when:

    line 479

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

CSS Style Audit Skill

A 6-phase audit-and-fix workflow that scans a codebase's CSS files for design system violations, presents findings by severity, and optionally auto-fixes them with full checkpoint discipline. Two auditors scan in parallel (button/interactive state specialist + CSS pattern specialist), findings are grouped and presented for user approval, fixes are applied one-at-a-time with git checkpoints, and independently verified before proceeding.

Roles

Role@nameResponsibility
Team Leadstyle-leadOrchestrates the 6-phase workflow, presents findings, handles user approvals, plans fixes
Button & Interactive Auditorhover-sentinelScans all CSS for button color violations, hover/focus/active inconsistencies, transition issues
CSS Pattern Auditorpattern-scoutScans for hardcoded colors, spacing violations, typography drift, wrong border-radius, missing CSS variables
Fix ImplementerstylistApplies one CSS fix at a time with precision
VerifierinspectorReads the CSS to verify the fix is correct, checks for regressions in surrounding rules

Workflow

Phase 0: Discover the Design System
  Locate style guide, global CSS, design tokens
  If no style guide exists → generate one from the CSS variables/utilities
        |
        v
Phase 1: Checkpoint
  git tag + stash uncommitted work + create evidence dir
        |
        v
Phase 2: Audit (parallel)
  hover-sentinel scans buttons/interactive ──┐
                                              ├──> findings collected
  pattern-scout scans CSS patterns ───────────┘
        |
        v
Phase 3: Report
  Compile findings by severity (Critical > Info)
  Present to user with IDs (BTN-001, CSS-001)
        |
        v
  ═══ USER APPROVAL GATE ═══
  User selects: all | high+ | specific IDs | none (audit-only)
        |
        v
Phase 4: Plan Fixes
  style-lead groups related fixes by file and type
        |
        v
  ═══ USER APPROVAL GATE ═══
  User approves fix plan
        |
        v
Phase 5: Apply Fixes (sequential loop)
  For each fix:
    checkpoint commit → stylist implements → inspector verifies CSS
    VERIFIED → next fix | FAILED → rollback, retry once, skip
        |
        v
Phase 6: Final Report
  Summary with fixed/deferred/skipped tables
  Shutdown team

How to Invoke

The user invokes /style-audit and optionally provides:

  1. Scope — which CSS files/directories to audit (default: auto-detect frontend src/ directory)
  2. Focus — buttons (categories 1-4 only), colors (category 5 only), spacing (category 7 only), or all (default: all)
  3. Fix mode — audit-only (report only) or full (report + plan + fix) (default: full)
  4. Severity threshold — minimum severity to include: critical, high, medium, low, info (default: low)

If the user provides no arguments, audit the entire frontend source directory for all categories with full fix mode and low threshold.

Step-by-Step Execution

Phase 0: Discover the Design System

Before auditing, the team lead must locate (or create) the project's source of truth. Search for these in the project:

  1. CSS Style Guide — look for files like docs/CSS_STYLE_GUIDE.md, docs/STYLE_GUIDE.md, STYLE_GUIDE.md, docs/design-system.md, or similar markdown documentation describing the CSS rules.
  2. Global CSS with design tokens — look for the main CSS file containing :root variables (typically src/index.css, src/styles/global.css, src/App.css, or styles/variables.css). Identify the CSS variable definitions (colors, spacing, typography, border-radius) and any global button/card/form utility classes.
  3. Component CSS files — identify the CSS files to audit (typically src/**/*.css, src/**/*.scss, src/**/*.module.css).

If a style guide document already exists, the team lead reads it and uses it as the source of truth.

If no style guide document exists, the team lead must generate one:

  1. Read the global CSS file(s) thoroughly — all :root variables, utility classes, base element styles, and resets
  2. Extract and document the implicit design system:
    • Color tokens: All CSS custom properties for colors, backgrounds, borders, text
    • Button system: Any global button utility classes (.btn-primary, .btn-danger, etc.) and their hover/focus/active states
    • Typography scale: Font families, sizes, weights, line heights, text color hierarchy
    • Spacing scale: Spacing variables or the base unit used
    • Border radius tokens: Standard radius values
    • Surface/card patterns: Standard background, border, and hover patterns for card-like elements
    • Form input patterns: Standard input backgrounds, borders, focus states
    • Transition standards: Standard transition values and timing functions
  3. Write the generated style guide to docs/STYLE_GUIDE.md (or the project's docs directory)
  4. Commit the generated style guide: git add docs/STYLE_GUIDE.md && git commit -m "docs: generate CSS style guide from design tokens"
  5. Inform the user: "No CSS style guide was found. I generated one at docs/STYLE_GUIDE.md from your existing CSS variables and utility classes. Please review it after the audit — it documents your design system as-is and can be refined over time."

The team lead reads the source-of-truth files and includes their contents in each auditor's prompt.

Phase 1: Checkpoint

Before anything else, secure a rollback point:

  1. Run git status to check for uncommitted changes
  2. If there are uncommitted changes, stash them: git stash push -m "style-audit: pre-audit stash"
  3. Create a checkpoint tag: git tag style-audit/checkpoint-YYYYMMDD-HHMMSS
  4. Create the evidence directory: mkdir -p style-audit-evidence
  5. Record the starting state in style-audit-evidence/checkpoint.json:
    {
      "timestamp": "ISO-8601",
      "tag": "style-audit/checkpoint-...",
      "stashed": true/false,
      "branch": "current-branch-name",
      "head_commit": "sha"
    }

Phase 2: Audit

Create a team named style-audit with yourself as team lead (style-lead).

Spawn two agents in parallel based on the user's focus setting:

hover-sentinel (subagent_type: general-purpose) — Button & Interactive Auditor

Prompt must include:

  • The full Button & Interactive Audit Categories section (all 4 categories below: 1-4)
  • The complete contents of the project's style guide document (from Phase 0 — either found or generated)
  • The global button utility class definitions (from Phase 0)
  • The CSS variable definitions (from Phase 0)
  • The scope (directories/files to scan)
  • The severity threshold
  • The Finding Format specification
  • Instruction: "You are hover-sentinel, the Button & Interactive Auditor. Systematically scan all CSS files in the scope for button color violations, hover/focus/active state inconsistencies, and transition issues. For each finding, use the structured finding format with IDs starting at BTN-001. Be thorough but precise — only report real issues where component CSS defines button colors or interactive state effects that should use global utilities."
  • Instruction: "Save your findings to style-audit-evidence/button-findings.json as a JSON array of finding objects."
  • Instruction: "When done, send a message to the team lead (style-lead) with a summary: total findings count by severity."
  • Instruction: "Read files before reporting issues. Do not guess based on file names alone."
  • Instruction: "EXCLUDE the global CSS file (the source of truth) from findings — it defines the standards, it is not a violation."
  • Instruction: "For each finding, include the actual CSS rule as evidence and what the CSS should look like per the style guide as expected."

pattern-scout (subagent_type: general-purpose) — CSS Pattern Auditor

Prompt must include:

  • The full CSS Pattern Audit Categories section (all 6 categories below: 5-10)
  • The complete contents of the project's style guide document (from Phase 0 — either found or generated)
  • The CSS variable definitions (from Phase 0)
  • The scope (directories/files to scan)
  • The severity threshold
  • The Finding Format specification
  • Instruction: "You are pattern-scout, the CSS Pattern Auditor. Scan all CSS files in the scope for hardcoded colors, typography violations, spacing inconsistencies, border radius misuse, surface/card pattern violations, and form input inconsistencies. For each finding, use the structured finding format with IDs starting at CSS-001."
  • Instruction: "Save your findings to style-audit-evidence/pattern-findings.json as a JSON array of finding objects."
  • Instruction: "When done, send a message to the team lead (style-lead) with a summary: total findings count by severity."
  • Instruction: "Read files before reporting issues. Do not guess based on file names alone."
  • Instruction: "EXCLUDE the global CSS file (the source of truth) from findings — it defines the standards, it is not a violation."
  • Instruction: "Be aware that some hardcoded rgba() values may be intentional patterns in the project's design system (e.g., surface transparency values). Cross-reference with the style guide before flagging these."
  • Instruction: "For each finding, include the actual CSS rule as evidence and what the CSS should look like per the style guide as expected."

If focus is buttons, only spawn hover-sentinel. If focus is colors or spacing, only spawn pattern-scout. If focus is all, spawn both in parallel.

Wait for both auditors to complete and report back. Then shut down hover-sentinel and pattern-scout — their work is done.

Phase 3: Report

Compile all findings from both auditors into a single report:

  1. Read style-audit-evidence/button-findings.json and style-audit-evidence/pattern-findings.json
  2. Merge and sort by severity: Critical > High > Medium > Low > Info
  3. Save the compiled report to style-audit-evidence/audit-report.json
  4. Present to the user in a readable format:
## CSS Style Audit Report

### Critical (X findings)
- **BTN-003**: Interactive element missing hover/focus state — src/components/Widget.css:142
- ...

### High (X findings)
- **BTN-001**: Component defines custom button colors bypassing global utilities — src/components/Form.css:89
- **CSS-004**: Hardcoded hex color instead of CSS variable — src/components/Card.css:55
- ...

### Medium (X findings)
...

### Low (X findings)
...

### Info (X findings)
...

---
Total: X findings (X button/interactive, X CSS pattern)
  1. Ask the user what to fix using AskUserQuestion:
    • "Fix all" — fix every finding
    • "Fix critical + high" — fix only critical and high severity
    • "Select specific" — user provides comma-separated IDs (e.g., BTN-001, CSS-003)
    • "None (audit-only)" — stop here, report is the deliverable

If the user selects "None", skip to Phase 6 (Final Report) with no fixes applied.

Phase 4: Plan Fixes

The style-lead plans fixes directly (no separate architect agent needed — CSS fixes are mechanical and low-risk).

For each approved finding, create a fix plan entry:

  • Fix ID: Matches the finding ID (e.g., BTN-001-FIX)
  • Description: What the fix does
  • File affected: Exact file path and line range
  • What changes: The specific CSS property changes
  • Complexity: Low / Medium / High

Group related fixes by file (all fixes in the same CSS file together) but apply them one component CSS file at a time.

Save the fix plan to style-audit-evidence/fix-plan.json.

Present the fix plan to the user for approval. Show:

  • Each fix grouped by file
  • The CSS changes in a before/after format
  • The execution order

Ask the user to approve, modify, or reject the plan. If rejected, ask what to change and re-plan.

Phase 5: Apply Fixes (Sequential Loop)

Spawn two agents that will be kept alive through the entire fix loop:

stylist (subagent_type: general-purpose) — Fix Implementer

Prompt must include:

  • The approved fix plan
  • The project's CSS variable definitions and utility classes (so it knows the correct values)
  • Instruction: "You are stylist, the Fix Implementer. You apply CSS fixes one at a time with precision. For each fix you receive from the team lead:"
    • "1. Wait for the team lead to assign you a specific fix by ID"
    • "2. Implement ONLY that fix — do not touch unrelated CSS rules"
    • "3. CSS-only changes. NEVER modify .tsx, .ts, .js, .jsx, .py, .html, or other non-CSS files."
    • "4. Never delete CSS rules. Replace wrong values with correct ones. If a component has custom button styles, replace them with references to the global utility variables — don't just delete the rule."
    • "5. When done, message the team lead that the fix is ready for verification"
    • "6. Wait for the team lead's next assignment"
  • Instruction: "Never commit — the team lead handles checkpoint commits."

inspector (subagent_type: general-purpose) — Verifier

Prompt must include:

  • The approved fix plan and original findings
  • The project's CSS variable definitions and utility classes (so it knows what correct CSS looks like)
  • Instruction: "You are inspector, the Verifier. After the stylist applies each fix, you independently verify by reading the modified CSS file:"
    • "1. The fix actually resolves the original finding (the wrong CSS value is replaced with the correct one)"
    • "2. The fix doesn't break surrounding CSS rules in the same file"
    • "3. No CSS syntax errors were introduced (unclosed brackets, missing semicolons)"
    • "4. The fix matches what the plan described"
    • "5. The fix uses the correct CSS variables from the design system"
  • Instruction: "Send your verdict to the team lead: VERIFIED (fix correct, no regressions) or FAILED (with specific details of what's wrong)."
  • Instruction: "Be thorough but practical. Read the modified CSS file and check the fix and its immediate context."

The fix loop (team lead orchestrates):

For each fix in the approved plan, in order:

  1. Checkpoint: git add -A && git commit -m "checkpoint: before fix [FIX-ID]"
  2. Assign: Send the fix details to stylist — "Apply fix [FIX-ID]: [description]"
  3. Wait: stylist implements and reports ready
  4. Verify: Send the fix to inspector — "Verify fix [FIX-ID] against finding [FINDING-ID]"
  5. Evaluate verdict:
    • VERIFIED: Commit the fix: git add -A && git commit -m "fix(style-audit): [FIX-ID] — [short description]" → proceed to next fix
    • FAILED: Roll back: git checkout -- . (unstage changes, revert to checkpoint). Send inspector's feedback to stylist. Stylist retries once. If the retry also fails, skip this fix — add it to the deferred list with the failure reason. Move to the next fix.

After all fixes are processed, shut down stylist and inspector.

Phase 6: Final Report

Generate and present the final report:

## CSS Style Audit — Final Report

### Executive Summary
- **Scanned**: X CSS files across Y directories
- **Total findings**: X (X button/interactive, X CSS pattern)
- **Fixed**: X
- **Deferred**: X (failed verification)
- **Skipped**: X (user chose not to fix)

### Fixed
| ID | Severity | Category | Description | File | Commit |
|----|----------|----------|-------------|------|--------|
| BTN-001 | High | Button Color Violations | Replaced custom colors with global utility vars | Components.css | abc1234 |
| ... | ... | ... | ... | ... | ... |

### Deferred (Failed Verification)
| ID | Severity | Description | Failure Reason |
|----|----------|-------------|----------------|
| CSS-005 | Medium | Hardcoded border radius | Fix broke adjacent border-radius shorthand |
| ... | ... | ... | ... |

### Skipped (User Decision)
| ID | Severity | Description |
|----|----------|-------------|
| ... | ... | ... |

### Remaining Work
- Items that need JSX/HTML changes (e.g., adding utility classNames) — CSS-only audit cannot fix these
- Components that need visual testing after CSS changes

Save the final report to style-audit-evidence/final-report.md.

Clean up:

  • Shut down all remaining teammates
  • Delete the team with TeamDelete
  • Remind the user if changes were stashed in Phase 1: "Your uncommitted changes were stashed before the audit. Run git stash pop to restore them."
  • Remind the user: "A checkpoint tag was created at style-audit/checkpoint-.... To fully roll back all fixes: git reset --hard style-audit/checkpoint-..."

Button & Interactive Audit Categories (hover-sentinel)

hover-sentinel checks categories 1-4:

1. Button Color Violations

  • Components defining their own button background, border-color, or color in component CSS instead of using global utility classes
  • Custom button classes with inline color definitions (e.g., .my-component-btn-primary with hardcoded colors)
  • Buttons missing a global utility class entirely
  • Check: All component *.css files for button-related selectors with color properties

2. Hover State Inconsistencies

  • Custom :hover rules on buttons that don't match the global system
  • Hover colors that differ from the defined CSS variables
  • Missing hover states on interactive elements
  • Hover effects using transform, scale, or box-shadow on buttons (if the style guide specifies flat transitions only)
  • Interactive elements with hover on background but not on border-color (incomplete hover)
  • Check: All :hover pseudo-selectors in component *.css files

3. Focus & Active State Gaps

  • Missing :focus-visible styles on interactive elements
  • outline: none without a replacement focus indicator
  • Missing :active states on buttons
  • Focus styles that don't match the standard pattern from the style guide
  • Check: All interactive element selectors for :focus, :focus-visible, :active

4. Interactive Element Transitions

  • Missing transition on elements with hover/focus state changes (causes jarring visual snaps)
  • Non-standard transition values (should use the project's transition variables)
  • transition: all (too broad — should target specific properties)
  • Check: All interactive elements for transition property

CSS Pattern Audit Categories (pattern-scout)

pattern-scout checks categories 5-10:

5. Hardcoded Colors

  • Hex codes, rgb(), rgba(), or hsl() used directly instead of CSS variables
  • Exception: Some hardcoded rgba() values may be intentional patterns in the project's design system (e.g., surface transparency). Cross-reference the style guide before flagging.
  • Check: All component *.css files for color values not wrapped in var()

6. Typography Violations

  • Text colors that don't follow the project's color hierarchy
  • Font sizes outside the standard scale defined in the design tokens
  • Font weights that don't match the system
  • font-family overrides (should inherit from body)

7. Spacing Violations

  • Padding/margin/gap using arbitrary pixel values instead of spacing variables or the spacing scale
  • Inconsistent padding within similar components (e.g., all cards should use the same padding)

8. Border Radius Inconsistencies

  • Custom border-radius values instead of the design token radius variables
  • Mixed radius values within the same component

9. Surface & Card Patterns

  • Card backgrounds that don't match the standard pattern defined in the style guide
  • Card borders that don't use the standard values
  • Card hover effects that don't follow the documented pattern
  • Missing border on card-like surfaces

10. Form Input Consistency

  • Input backgrounds, borders, or focus states that differ from the standard form input pattern
  • Focus border-color not using the designated accent color
  • Missing focus state entirely on form elements

Severity Definitions

  • Critical: A button or interactive element has NO hover/focus state, or has colors that clash across states (wrong color family entirely — e.g., a success-colored hover on a danger button)
  • High: Component defines its own button colors bypassing global utilities. Or interactive state uses wrong colors from the documented values.
  • Medium: Hardcoded color that should be a variable. Typography off-hierarchy. Non-standard spacing.
  • Low: Minor inconsistency — border-radius off by a few pixels, transition value slightly different, etc.
  • Info: Style guide best practice not followed, but visually acceptable.

Finding Format

Each finding must follow this structure:

{
  "id": "BTN-001",
  "severity": "critical|high|medium|low|info",
  "category": "Category name from the audit categories",
  "file": "src/components/Example.css",
  "line": 42,
  "rule": "Style guide rule reference (e.g., 'Button System > Use Global Utilities Only')",
  "title": "Short title",
  "description": "Detailed description of the issue",
  "evidence": "The actual CSS rule as written",
  "expected": "What the CSS should look like per the style guide",
  "recommendation": "How to fix it",
  "complexity": "low|medium|high"
}

Guardrails

  • CSS-only changes. Never modify .tsx, .ts, .js, .jsx, .py, .html, or other non-CSS files during fixes.
  • Never delete CSS rules. Replace wrong values with correct ones. If a component has custom button styles, replace them with the global utility variable references — don't just delete the rule.
  • Checkpoint before every fix. A checkpoint: commit must exist before each fix is applied.
  • No drive-by improvements. Only fix what's in the finding. Don't reorganize CSS files, add comments, or "clean up" surrounding rules.
  • Respect component boundaries. One component's CSS per fix — don't batch changes across multiple component CSS files.
  • Never push to remote. All changes stay local. The user decides when to push.
  • Stop after 2 failed attempts per fix. If a fix fails verification twice (initial + one retry), skip it and add to the deferred list. Do not keep trying.
  • Agents stay in their lanes. Only stylist writes CSS. hover-sentinel and pattern-scout only read and report. inspector only verifies. style-lead only orchestrates.
  • No unrelated changes. Fixes must address only the specific finding. No drive-by refactoring.
  • Respect .gitignore. Never commit files that should be ignored.
  • Git safety. Never force-push, never amend published commits, never rebase without user permission.

Example Invocations

Full audit of all CSS

/style-audit
Run a full CSS style audit of this project

Button/interactive audit only

/style-audit
Audit only button and interactive state styles
Focus: buttons

Audit-only (no fixes)

/style-audit
Audit all CSS but don't fix anything — just give me the report
Fix mode: audit-only

Critical and high only

/style-audit
Full audit but only show critical and high severity findings
Severity threshold: high

Specific directory

/style-audit
Audit only the components directory
Scope: src/components/

When to Use This Skill

Use /style-audit when:

  • CSS styles look inconsistent across the app
  • New components have been added and might not follow the design system
  • Periodic CSS hygiene check
  • After a major feature addition with new CSS files
  • User asks for "style check", "CSS audit", "design system check", "fix CSS inconsistencies"
  • Preparing for a UI polish pass
  • Starting on a project that has CSS variables but no documented style guide

Do NOT use when:

  • The user wants a single, specific CSS fix they already know about (just fix it directly)
  • The user wants a security or accessibility audit (use /security-audit)
  • The user wants to change the design system itself (modify the global CSS directly)
  • The project has no CSS files to scan

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.