repo-tidy

repo-tidy is a skill for Claude Code, Codex from rjwalters/kicad-tools. It costs 20 tokens per session (13,508 once invoked), scanned A, original, MIT.

A repository cleanup tool that finds clutter such as temporary files, build outputs, and caches.

In plain words
What is it for?
It inventories the working tree, deletes clearly safe clutter, and can also clear caches or show directory sizes.
Why use it?
It removes safe junk without automatically deleting items that might contain real work, while keeping rebuildable caches unless you opt in.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; positional $N argument; mentions Claude Code.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is # repo root (`../repo-wt-fix123`, `/private/tmp/…`, `/private/var/folders/…`),.

Good fit It inventories the working tree, deletes clearly safe clutter, and can also clear caches or show directory sizes.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/rjwalters/kicad-tools
agentmods
npx agentmods add skills/rjwalters/kicad-tools/repo-tidy

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 repo-tidy

README.md
[![agentmods](https://agentmods.dev/badge/skills/rjwalters/kicad-tools/repo-tidy/github.svg)](https://agentmods.dev/skills/rjwalters/kicad-tools/repo-tidy)
Your own site
<a href="https://agentmods.dev/skills/rjwalters/kicad-tools/repo-tidy"><img src="https://agentmods.dev/badge/skills/rjwalters/kicad-tools/repo-tidy/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 repo-tidy

Your own site · 80×15
<a href="https://agentmods.dev/skills/rjwalters/kicad-tools/repo-tidy"><img src="https://agentmods.dev/badge/skills/rjwalters/kicad-tools/repo-tidy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 13,508 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.00020 $0.13508
Opus 5.5 $0.00008 $0.05403
Sonnet 5.5 $0.00004 $0.02702
Haiku 4.5 $0.00002 $0.01351

Measured 8d ago against content hash c1a9e6a060de, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

repo-tidy 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.

.agents/skills/repo-tidy/SKILL.md · 863 lines

How it starts

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

Codex form of the /repo:tidy command. Other commands appear as $repo-<verb> skills. Helper scripts and .claude/ paths below are relative to the repository root and exist when the Claude Code surface is installed alongside this one.

$repo-tidy — Tidy Up

Sweep the working tree for clutter and clean it up. Inventory everything, categorize by confidence, then by default delete the SAFE category (pure junk that holds no unique work) and report what was freed. Regenerable caches (compilation/tool/build output) are kept by default and only cleared when you pass --caches — deleting them is harmless but forces a costly rebuild, so it is opt-in. Items that could be real work (ASK) are always presented for a human call, never auto-deleted.

Usage

$repo-tidy                    # Inventory, delete SAFE junk (caches kept), report; ASK items presented
$repo-tidy --caches           # Also clear regenerable caches (__pycache__/, dist/, .mypy_cache/, …)
$repo-tidy --ask              # Walk every category interactively before deleting anything
$repo-tidy --sizes            # Also measure worktree root sizes (slow: du has no prune)
$repo-tidy --fast             # Skip the reference scans entirely; unscanned candidates land in ASK, not SAFE
$repo-tidy --deep             # One reference scan per candidate instead of one batched pass (audit only)
$repo-tidy packages/core      # Scope to one subtree

(--apply is accepted as a synonym for the default, for muscle memory. --caches composes with --ask: --ask still walks every category, --caches just moves the cache tier into the auto-delete set for the non-interactive default. --sizes only adds the per-worktree size column described in step 1 — it never changes what is deleted.)

--fast / --deep are the two ends of the reference-scan cost dial, and neither is the default. The default is one batched reference pass over the whole candidate set, described in step 2 — that is what every run does unless one of these flags is passed:

Read the full file on GitHub · 863 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. 8d ago First seen · 863 lines · 20 tokens per session scan A c1a9e6a060de

Subscribe to this mod's changes

repo-tidy is a skill published in the GitHub repository rjwalters/kicad-tools (73 stars, last pushed yesterday), licensed MIT. It adds 20 tokens to every session and 13,508 once invoked, about $0.0001 per session on Opus 5.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-11-01.

Related

repo-tidy compared with skills from other repositories

repo-tidy next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
repo-tidyrjwalters/kicad-toolsSkill73yesterdayMITA20Claude Code, Codex
orbit-notionnexu-io/open-designSkill107ktodayApache-2.0A117Claude Code, Codex
agentmailpaperclipai/paperclipSkill113ktodayMITA30Claude Code, Codex
Cortexdanielmiessler/LifeOSSkill20k4d agoMITA184Claude Code
rowboat-spacesrowboatlabs/rowboatSkill18ktodayApache-2.0A60Claude Code, Codex
feishuHmbown/CodeWhaleSkill41kyesterdayMITA33Claude Code, Codex
pinchtab-mcppinchtab/pinchtabSkill11k12d agoMITA52Claude Code, Codex