Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Precision CSS/styling modifications for pixel-perfect adjustments with Tailwind, CSS Modules, and plain CSS support
.claude/skills/a5c-ai-css-precision-editor/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 122% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 52% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 577% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 134% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 183% | 0% |
You are css-precision-editor - a specialized skill for making precision CSS and styling modifications to achieve pixel-perfect design fidelity.
This skill enables exact CSS property changes across different styling approaches (Tailwind, CSS Modules, Styled Components, plain CSS) while preventing regressions and maintaining code quality.
jsx// Use arbitrary values for exact measurements // Before: <div className="text-lg p-4 rounded-lg"> // After (pixel-perfect): <div className="text-[18px] p-[18px] rounded-[12px]"> // Color precision // Before: <div className="bg-blue-500 text-gray-700"> // After (exact hex): <div className="bg-[#2563EB] text-[#374151]">
css/* Before */ .header { font-size: large; padding: 1rem; } /* After (pixel-perfect) */ .header { font-size: 18px; padding: 16px; line-height: 1.5; letter-spacing: -0.02em; }
javascript// Before const Button = styled.button` padding: 1em; background: blue; `; // After (pixel-perfect) const Button = styled.button` padding: 12px 24px; background: #2563EB; border-radius: 8px; font-size: 14px; font-weight: 500; line-height: 20px; `;
css/* Define precise design tokens */ :root { /* Typography */ --font-size-base: 16px; --font-size-lg: 18px; --line-height-base: 1.5; --letter-spacing-tight: -0.02em; /* Spacing */ --spacing-xs: 4px; --spacing-sm: 8px; --spacing-md: 16px; --spacing-lg: 24px; /* Colors */ --color-primary: #2563EB; --color-secondary: #64748B; --color-background: #F8FAFC; /* Borders */ --border-radius-sm: 4px; --border-radius-md: 8px; --border-radius-lg: 12px; }
css/* Mobile-first precision */ .component { font-size: 14px; padding: 12px; } @media (min-width: 768px) { .component { font-size: 16px; padding: 16px; } } @media (min-width: 1024px) { .component { font-size: 18px; padding: 20px; } }
json{ "type": "object", "required": ["changes", "implementationContext"], "properties": { "changes": { "type": "array", "items": { "type": "object", "properties": { "file": { "type": "string" }, "selector": { "type": "string" }, "property": { "type": "string" }, "currentValue": { "type": "string" }, "targetValue": { "type": "string" } } } }, "implementationContext": { "type": "object", "properties": { "stylingApproach": { "type": "string", "enum": ["tailwind", "css-modules", "styled-components", "css", "scss"] }, "projectRoot": { "type": "string" } } } } }
json{ "type": "object", "properties": { "success": { "type": "boolean" }, "filesModified": { "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string" }, "changes": { "type": "array" } } } }, "changesApplied": { "type": "array" }, "changesSkipped": { "type": "array" }, "summary": { "type": "string" } } }
px for exact sizes#2563EB not blue)px for exact values, rem for scalablepx for consistent curves!important unless absolutely necessaryThis skill integrates with:
pixel-perfect-implementation.js - Executes refinement plansdesign-qa.js - Implements QA-identified fixesresponsive-design.js - Responsive adjustmentsbash/skill css-precision-editor \ --file src/components/Header.tsx \ --selector ".header-title" \ --property "font-size" \ --current "1.5rem" \ --target "24px"
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 10,403 | 10,696 | +3% | 1 | 1 | 0% | 1,276 | 2,834 | +122% | 0 | 0 | — |
case-02 | fail→pass | 21,789 | 10,713 | -51% | 1 | 1 | 0% | 1,890 | 2,866 | +52% | 0 | 0 | — |
case-03 | fail→pass | 15,679 | 8,770 | -44% | 1 | 1 | 0% | 367 | 2,485 | +577% | 0 | 0 | — |
case-04 | pass→pass | 16,221 | 16,624 | +2% | 1 | 1 | 0% | 2,293 | 3,830 | +67% | 0 | 0 | — |
case-05 | pass→pass | 27,742 | 21,864 | -21% | 1 | 1 | 0% | 5,152 | 5,246 | +2% | 0 | 0 | — |
case-06 | pass→pass | 15,408 | 16,721 | +9% | 1 | 1 | 0% | 1,969 | 3,729 | +89% | 0 | 0 | — |
case-07 | fail→pass | 10,239 | 11,070 | +8% | 1 | 1 | 0% | 1,187 | 2,777 | +134% | 0 | 0 | — |
case-08 | fail→pass | 9,530 | 9,303 | -2% | 1 | 1 | 0% | 840 | 2,373 | +183% | 0 | 0 | — |
case-09 | fail→pass | 7,491 | 10,713 | +43% | 1 | 1 | 0% | 490 | 2,703 | +452% | 0 | 0 | — |
case-10 | fail→pass | 10,372 | 12,386 | +19% | 1 | 1 | 0% | 1,096 | 2,807 | +156% | 0 | 0 | — |
case-11 | fail→pass | 22,211 | 9,320 | -58% | 1 | 1 | 0% | 1,002 | 2,519 | +151% | 0 | 0 | — |
case-12 | pass→pass | 17,148 | 10,631 | -38% | 1 | 1 | 0% | 2,809 | 2,955 | +5% | 0 | 0 | — |
case-13 | pass→pass | 21,412 | 10,257 | -52% | 1 | 1 | 0% | 3,848 | 2,641 | -31% | 0 | 0 | — |
case-14 | fail→pass | 11,866 | 9,318 | -21% | 1 | 1 | 0% | 1,512 | 2,439 | +61% | 0 | 0 | — |
case-15 | fail→pass | 14,615 | 8,484 | -42% | 1 | 1 | 0% | 1,902 | 2,337 | +23% | 0 | 0 | — |
case-16 | fail→pass | 13,151 | 10,696 | -19% | 1 | 1 | 0% | 1,591 | 2,847 | +79% | 0 | 0 | — |
case-17 | fail→pass | 28,988 | 10,556 | -64% | 1 | 1 | 0% | 5,115 | 2,286 | -55% | 0 | 0 | — |
case-18 | pass→pass | 14,642 | 10,273 | -30% | 1 | 1 | 0% | 1,712 | 2,676 | +56% | 0 | 0 | — |
case-19 | pass→pass | 18,332 | 11,605 | -37% | 1 | 1 | 0% | 2,549 | 2,671 | +5% | 0 | 0 | — |
case-20 | fail→pass | 15,941 | 10,313 | -35% | 1 | 1 | 0% | 255 | 2,605 | +922% | 0 | 0 | — |
case-21 | fail→pass | 19,017 | 6,464 | -66% | 1 | 1 | 0% | 2,756 | 2,697 | -2% | 0 | 0 | — |
case-22 | pass→pass | 9,163 | 12,378 | +35% | 1 | 1 | 0% | 898 | 2,757 | +207% | 0 | 0 | — |
case-23 | pass→pass | 6,230 | 9,311 | +49% | 1 | 1 | 0% | 1,131 | 2,445 | +116% | 0 | 0 | — |
case-24 | pass→pass | 12,521 | 6,284 | -50% | 1 | 1 | 0% | 998 | 2,818 | +182% | 0 | 0 | — |
case-25 | fail→pass | 11,337 | 5,477 | -52% | 1 | 1 | 0% | 1,223 | 2,669 | +118% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 25 cases were attempted, and 23 counted toward the lift figure. The other 2 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +60 percentage points is the difference between those two pass rates over the 23 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.