refactor-radar

refactor-radar is a skill for Claude Code from greglas75/zuvo. It costs 71 tokens per session (4,531 once invoked), scanned A, original, MIT.

A refactoring-triage tool that measures a codebase, finds related modules, and ranks possible refactoring candidates. Refactoring means changing code structure without changing its intended behaviour.

In plain words
What is it for?
Use it to discover and rank refactoring or test-debt work, save reports, and register approved decisions; it does not perform the refactoring.
Why use it?
It helps decide what is worth changing before anyone edits product code, while keeping the evidence and approvals separate from execution.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Part of the zuvo plugin — 57 skills, 47 agents, 5 hooks shipped together

Good fit Use it to discover and rank refactoring or test-debt work, save reports, and register approved decisions; it does not perform the refactoring.

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

Made for: Claude Code.

Or install zuvo, the plugin that ships this one along with the rest of its 57 skills, 47 agents, 5 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 refactor-radar

README.md
[![agentmods](https://agentmods.dev/badge/skills/greglas75/zuvo/refactor-radar/github.svg)](https://agentmods.dev/skills/greglas75/zuvo/refactor-radar)
Your own site
<a href="https://agentmods.dev/skills/greglas75/zuvo/refactor-radar"><img src="https://agentmods.dev/badge/skills/greglas75/zuvo/refactor-radar/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 refactor-radar

Your own site · 80×15
<a href="https://agentmods.dev/skills/greglas75/zuvo/refactor-radar"><img src="https://agentmods.dev/badge/skills/greglas75/zuvo/refactor-radar.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,531 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.00071 $0.04531
Opus 5 $0.00036 $0.02266
Sonnet 5 $0.00014 $0.00906
Haiku 4.5 $0.00007 $0.00453

Measured 4d ago against content hash 25d3b2cb83b4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

refactor-radar 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 4d 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/refactor-radar/SKILL.md · 323 lines

How it starts

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

zuvo:refactor-radar

Decide WHAT is worth changing before zuvo:refactor decides HOW. Start with deterministic discovery, validate the evidence, then propose bounded work. Never turn a ranked row into an authorized refactor automatically.

Modes and boundaries

  • DISCOVER (default): read code, metadata and existing decisions; save the raw results and the ranked report, then link them in the answer. Saving these requested deliverables needs no extra approval and is not REGISTER. No product edits, queue, ledger, history, reservation, dependency install, commit or PR. An authorized farm run may stage a private, disposable --prepare-farm job; disclose its location. Explicit chat-only/no-file-write requests (--no-save) and --dry-run suppress report files; do not ask users to opt in.
  • REGISTER: only when asked to save approved work; validate G1–G5, write a new queue and, if requested, append decisions/history. This does not reserve files or start work.
  • EXECUTE: a separate request routed to zuvo:refactor or zuvo:write-tests. Recheck SHA, reservations and tests immediately before editing.

A worktree is disposable execution infrastructure, not a product, candidate or historical identity. Use canonical repo ID + commit SHA + relative paths. Current worktree diffs can warn about conflicts; a branch name alone is only a hint. Never retain a vanished directory as a permanent exclusion, or infer FREE just because it vanished: check PRs/contracts.

Argument Parsing

Input Meaning
[path] Map to script --scope <repo-relative path>; keep complete families intersecting it
--top N Requested final rows, default 50; fewer validated candidates is a valid result
--validate N Agent-side investigation budget, default min(3 × top, 60); not a script flag
--mode refactor|tests Same discovery signals; tests mode suggests COVER, never infers coverage from LOC
--ref <ref>, --cutoff <ISO timezone> Freeze code SHA and history window, including for HEAD
--engine builtin|codesift Stdlib estimate or verified CodeSift envelope; never compare their raw CC
--prepare-farm <new directory> Export immutable inputs and worker code locally; NO measurement
--snapshot <input.json> Replay a prepared DISCOVER job on the farm, without Git or credentials
--timings, --timeout <seconds> Phase timings on stderr and a whole-process deadline
--json <new file> Override the raw JSON destination; otherwise save in the run directory
--no-save Agent-side chat-only opt-out; do not pass this flag to the CLI
--queue <new file> Requires explicit REGISTER and a validated --decisions file
--history <dir> Read compatible history; write only with --record-snapshot
--no-remote Skip PR queries; availability UNKNOWN, not FREE
--dry-run No artifacts, validation or queue creation

Read the full file on GitHub · 323 lines

Files

What ships with it

3 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. 4d ago First seen · 323 lines · 71 tokens per session scan A 25d3b2cb83b4

Subscribe to this mod's changes

refactor-radar is a skill published in the GitHub repository greglas75/zuvo (6 stars, last pushed 5d ago), licensed MIT. It adds 71 tokens to every session and 4,531 once invoked, about $0.0004 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-09-08.