agentleFS
juandelossantosjuandelossantos/another-agent-skills/skills/polish-skill/SKILL.md

polish-skill

Skill1 starsChanged 11 days agoMITView on GitHub

Fix design detail issues: spacing, alignment, consistency, token compliance. Use after audit or when visual inconsistencies are spotted. Do NOT use for structural redesign.

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    After audit finds P1-P2 theming/consistency issues

    line 23
  2. Distinctive:

    When components look "off" but structurally work

    line 24
  3. Distinctive:

    When design tokens exist but aren't applied consistently

    line 27

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 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

Polish Skill

Fix design detail issues — spacing, alignment, consistency, token drift.

Where harden fixes technical issues, polish fixes visual ones. Works within the existing design system; does not redesign.

When to Use

  • After audit finds P1-P2 theming/consistency issues
  • When components look "off" but structurally work
  • User says "make this look more polished"
  • During design QA before shipping
  • When design tokens exist but aren't applied consistently

When NOT to Use

  • Technical issues (use harden)
  • UX flow issues (use redesign, distill)
  • Structural redesign (use redesign)
  • Copy rewriting (use clarify)

Output Contract

ArtifactFormatLocationQuality Criteria
Visual consistency fixesCSS/token valuesSource filesToken-compliant spacing, radius, shadows; no hardcoded values

Process

1. Scan for Drift

Compare components against the design system tokens:

WhatCheck
SpacingIndents match the scale (4, 8, 12, 16, 24, 32, 48, 64)
Border radiusConsistent per component type (button: x, card: y)
ShadowsElevation layers match token values
ColorsNo hardcoded hexes outside token system
Type scaleHeadings/body sizes match the type ramp
AlignmentText, icons, and containers share baselines
DensityPadding/margin is consistent across similar components
Focus statesAll interactive elements have the same focus style

2. Fix by Category

Spacing

IssueFix
Inconsistent padding between cardsNormalize to token spacing scale
Orphaned marginsRemove half-spacing gaps (use token multiples only)
Missing breathing roomAdd gap between grouped elements
Crowded iconsAdd horizontal gap between icon + text

Alignment

IssueFix
Misaligned form labelsSet consistent label width or grid
Icon-text baseline driftVertically align icon with text center
Button text not centeredCheck flexbox / text-align on button
Input text paddingNormalize input left padding across form

Consistency

IssueFix
Mixed radius on same element typeUnify per component type
Mixed shadow depthsOne elevation per layer (card, modal, toast)
Different hover effectsSame effect pattern across similar components
Mixed border weightsNormalize to token weights (0, 1, 2)

Token Compliance

IssueFix
Hardcoded valueReplace with design token
Wrong token usageReplace with correct semantic token
Missing dark mode tokenAdd dark: variant

3. Output Format

/polish the profile card

Fix 1: Spacing
  - Before: padding 15px (not on scale)
  - After: padding 16px (token --spacing-4)

Fix 2: Border radius
  - Before: 12px
  - After: 8px (token --radius-card)

Fix 3: Shadow
  - Before: 0 4px 6px (custom)
  - After: token --shadow-card (0 2px 8px)

Fix 4: Alignment
  - Before: icon 2px above text baseline
  - After: flex align-items: center

4. Escalation Rules

FindingEscalate to
Wrong typeface, weight, or sizetypeset
Missing tokens (need new ones)Design system review
Layout breaks at breakpointadapt
Performance issue in animationoptimize
Confusing visual hierarchyredesign, distill

Pitfalls

  • Over-polishing — Not every component needs to be perfect. Polish the ones users see.
  • Changing design decisions — If the design intent is unclear, ask. Don't guess the designer's intent.
  • Token zealotry — A one-off custom value with a clear reason is fine. Systematic drift is not.

QA Gates

  • All spacing values on the token scale
  • Consistent border radius per component type
  • Shadow depth is consistent per elevation layer
  • No hardcoded colors (confirmed token-only)
  • Icons aligned with text baselines
  • Hover/focus states consistent across similar components
  • Dark mode tokens applied where missing
  • No design decisions silently overridden

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.

Reviews can't be read right now.

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.