polish

polish is a skill for Claude Code from radumarias/xorio-claude-plugin. It costs 70 tokens per session (540 once invoked), scanned A, original, MIT.

A preparation process for local code changes that simplifies, cleans up, reviews, and security-checks them before a pull request. A pull request is a proposed code change submitted for review and merging.

In plain words
What is it for?
Use it to prepare staged or unstaged changes for a pull request, apply approved cleanup and fixes, and run final validation.
Why use it?
It gathers several quality checks into one workflow and helps catch readability, correctness, standards, and security problems before the change is merged.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md.

Part of the xorio plugin — 9 skills, 10 commands, 4 agents, 2 hooks shipped together

Good fit Use it to prepare staged or unstaged changes for a pull request, apply approved cleanup and fixes, and run final validation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/radumarias/xorio-claude-plugin/polish
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.

Any agent
npx skills add radumarias/xorio-claude-plugin --skill polish
Clone the repo
git clone --depth 1 https://github.com/radumarias/xorio-claude-plugin

Made for: Claude Code.

Or install xorio, the plugin that ships this one along with the rest of its 9 skills, 10 commands, 4 agents, 2 hooks.

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/skills/radumarias/xorio-claude-plugin/polish/github.svg)](https://agentmods.dev/skills/radumarias/xorio-claude-plugin/polish)
Your own site
<a href="https://agentmods.dev/skills/radumarias/xorio-claude-plugin/polish"><img src="https://agentmods.dev/badge/skills/radumarias/xorio-claude-plugin/polish/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for polish

Your own site · 80×15
<a href="https://agentmods.dev/skills/radumarias/xorio-claude-plugin/polish"><img src="https://agentmods.dev/badge/skills/radumarias/xorio-claude-plugin/polish.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 540 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00070 $0.00540
Opus 5 $0.00035 $0.00270
Sonnet 5 $0.00014 $0.00108
Haiku 4.5 $0.00007 $0.00054

Measured 9d ago against content hash 243ec4777666, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 9d 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.

skills/polish/SKILL.md · 63 lines

What it actually says

Polish Workflow

Run the full polish pipeline on local changes (unstaged + staged git diff).

Step 1: Scope Check

Run git diff --stat HEAD to identify changed files. If no changes found, report "Nothing to polish" and stop.

Step 2: Code Simplification

Launch the pr-review-toolkit:code-simplifier agent on the local changes (git diff). Present findings. Apply simplification suggestions that improve readability without changing behavior.

Step 3: Code Cleanup

Invoke the cleanup-code skill scoped to local changes only. This handles: language detection, standards loading, cleanup analysis, refactoring with validation.

Step 4: Code Review

Launch the pr-review-toolkit:code-reviewer agent on the local changes. Present findings. Fix any issues flagged.

Step 5: Security Audit

Launch the xorio:security-auditor agent scoped to changed files (git diff --name-only HEAD). Fix any critical or high findings before finishing.

Step 6: Standards Validation

Launch the superpowers:code-reviewer agent (via Task tool) to validate all accumulated changes from Steps 2-5 against the project's coding standards and conventions. Fix any findings.

Step 7: Final Validation

Run language-appropriate validation on changed files:

  • Rust: cargo fmt --all && cargo clippy --all-targets --all-features && cargo test
  • TypeScript: npx biome check --write . && npx tsc --noEmit && npm test
  • Python: ruff check --fix . && ruff format . && mypy . && pytest

Step 8: Update CLAUDE.md

Invoke claude-md-management:revise-claude-md (via Skill tool) to capture any learnings, patterns, or convention updates discovered during the polish process.

Step 9: Summary

Report:

  • Files polished (count + list)
  • Simplifications applied
  • Cleanup changes made
  • Review issues fixed
  • Security findings addressed
  • Standards validation status
  • Final validation status (pass/fail)
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. 9d ago First seen · 63 lines · 70 tokens per session scan A 243ec4777666

Subscribe to this mod's changes

polish is a skill published in the GitHub repository radumarias/xorio-claude-plugin (3 stars, last pushed 1mo ago), licensed MIT. It adds 70 tokens to every session and 540 once invoked, about $0.0003 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-31.