polish

polish is a skill for Claude Code, Codex from momentmaker/kaijutsu. It costs 70 tokens per session (1,406 once invoked), scanned A, original, MIT.

An automated review-and-fix loop for completed coding work.

In plain words
What is it for?
Use it after implementing a feature or plan to review the changed files, clean up user-facing text, and verify the final code.
Why use it?
It repeatedly searches the changes for defects, applies fixes, and checks the result with tests, linters, or builds.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it after implementing a feature or plan to review the changed files, clean up user-facing text, and verify the final code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/momentmaker/kaijutsu/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 momentmaker/kaijutsu --skill polish
Clone the repo
git clone --depth 1 https://github.com/momentmaker/kaijutsu

Made for: Claude Code, Codex.

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/momentmaker/kaijutsu/polish.svg)](https://agentmods.dev/skills/momentmaker/kaijutsu/polish)
Your own site
<a href="https://agentmods.dev/skills/momentmaker/kaijutsu/polish"><img src="https://agentmods.dev/badge/skills/momentmaker/kaijutsu/polish.svg" alt="Measured on agentmods" 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 1,406 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.01406
Opus 5 $0.00035 $0.00703
Sonnet 5 $0.00014 $0.00281
Haiku 4.5 $0.00007 $0.00141

Measured 8d ago against content hash fb6265320c42, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 8d 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/core/polish/SKILL.md · 120 lines

How it starts

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

polish

Loops until clean. Each pass: review the diff, fix everything found, re-run tests/linters. Stop when convergence-detect says no new signal is appearing.

This skill composes:

  • blunder-hunt for the review (multi-pass adversarial critique)
  • convergence-detect for the stop condition (smarter than "ran N rounds")
  • verification-before-completion for the hard test/build/lint gate AFTER convergence (convergence ≠ correctness)
  • deslop for any user-facing prose touched in the diff

Step 0: Scope

Determine what was implemented:

  • Read any active implementation plan if it exists
  • git diff master...HEAD --stat (or --cached --stat / --stat if on master)
  • Identify all files in the change set

Step 1-N: Review-Fix Passes

Cap at 4 passes. Stop early when convergence-detect says converged.

For each pass, alternate two lenses:

Lens A — Random Code Exploration (odd passes: 1, 3)

Traverse the codebase semi-randomly:

  1. Pick 5 files in the diff at random
  2. Read each in full, not just the diff hunks
  3. Look for: dead code from refactoring, leftover debug statements, missing error handling at system boundaries, security issues, race conditions, missing tests for new paths
  4. For each finding: severity + file:line + description

Lens B — Cross-Agent Integration Review (even passes: 2, 4)

Look at how pieces fit together:

  1. List the public-API surface added or changed in the diff
  2. Find every call site of those APIs (in the diff and outside)
  3. Verify: contracts honored, error paths handled by callers, no silent type narrowing, no swallowed errors
  4. For each finding: severity + file:line + description

Apply blunder-hunt to each pass

Run blunder-hunt with the pass's lens on the in-scope files. The primitive handles the lie-to-them pressure and the dedup. Polish just consumes the output.

Parallel pass-runners (when supported)

For a single pass with K lenses, compose dispatch-parallel: spawn one subagent per lens, run all in parallel, collect findings. Wall-time savings are large on big diffs. Each subagent gets the same diff but a different lens prompt; synthesis dedupes findings that surface in 2+ subagents.

Read the full file on GitHub · 120 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago First seen · 120 lines · 70 tokens per session scan A fb6265320c42

Subscribe to this mod's changes

polish is a skill published in the GitHub repository momentmaker/kaijutsu (3 stars, last pushed 2mo ago), licensed MIT. It adds 70 tokens to every session and 1,406 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.