polish

polish is a command for coding agents from koolamusic/claudefiles. It costs 32 tokens per session (956 once invoked), scanned A, original, MIT.

A final quality-review command for a completed interface or feature. It checks layout, spacing, typography, interaction states, visual consistency, and code cleanup.

In plain words
What is it for?
Use it as the last pass to align the work with an existing design system, simplify the interface, and correct visual or interaction details.
Why use it?
It catches small inconsistencies and unnecessary complexity that remain after the main functionality is finished.

Command

Part of the ux plugin — 1 skill, 6 commands shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/koolamusic/claudefiles/polish
Clone the repo
git clone --depth 1 https://github.com/koolamusic/claudefiles

Or install ux, the plugin that ships this one along with the rest of its 1 skill, 6 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for polish

README.md
[![agentmods](https://agentmods.dev/badge/commands/koolamusic/claudefiles/polish.svg)](https://agentmods.dev/commands/koolamusic/claudefiles/polish)
Your own site
<a href="https://agentmods.dev/commands/koolamusic/claudefiles/polish"><img src="https://agentmods.dev/badge/commands/koolamusic/claudefiles/polish.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 956 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00032 $0.00956
Opus 5 $0.00016 $0.00478
Sonnet 5 $0.00006 $0.00191
Haiku 4.5 $0.00003 $0.00096

Measured 5d ago against content hash 386fb61676b8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

polish scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/ux/commands/polish.md · 121 lines

How it starts

The opening of the file, as written. The whole thing — 121 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Meticulous final pass — catch the details that separate good from great. Includes design system normalization and complexity reduction.

First: Use the ux skill for design principles and anti-patterns.

CRITICAL: Polish is the last step. Don't polish work that isn't functionally complete.

Pre-Polish Assessment

  • Is it functionally complete?
  • Does a design system exist? (Search for design system docs, component libraries, style guides)
  • What's the quality bar? (MVP vs flagship)
  • Where are the obvious inconsistencies?

Design System Normalization

If a design system exists:

  • Replace custom implementations with design system components
  • Replace hard-coded colors/spacing/typography with design tokens
  • Match animation timing, easing, and interaction patterns to established conventions
  • Match responsive breakpoints and patterns
  • Match progressive disclosure and information hierarchy

If deviations from the design system exist, fix them. If the design system doesn't cover a pattern, note it for extraction (use /ux:reshape extract).

Complexity Reduction

Before polishing, simplify:

  • One primary action per view — reduce competing buttons and CTAs
  • Progressive disclosure — hide complexity behind clear entry points
  • Remove redundancy — if it's said elsewhere, don't repeat it
  • Flatten structure — reduce nesting, remove unnecessary containers and cards
  • Shorter copy — cut every sentence in half, then do it again
  • Fewer colors, fonts, sizes — use the minimum that serves hierarchy
  • Smart defaults — make common choices automatic

Polish Systematically

Visual Alignment & Spacing

  • Everything lines up to grid. Use spacing scale consistently (no random 13px gaps).
  • Optical alignment for visual weight (icons may need offset).
  • Responsive consistency at all breakpoints.

Typography

  • Same elements use same sizes/weights throughout
  • Line length 45-75 chars for body text
  • No widows/orphans, appropriate hyphenation
  • Font loading — no FOUT/FOIT flashes

Read the full file on GitHub · 121 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 121 lines · 32 tokens per session scan A 386fb61676b8

Subscribe to this mod's changes

polish is a command published in the GitHub repository koolamusic/claudefiles (132 stars, last pushed 5d ago), licensed MIT. It adds 32 tokens to every session and 956 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.