tidy

tidy is a skill for Claude Code, Codex from hamza-ali-shahjahan/hamzaish. It costs 77 tokens per session (898 once invoked), scanned A, original, MIT.

A report-first cleanup process for finding and removing obsolete or unused parts of one or many Git repositories.

In plain words
What is it for?
Use it at milestones such as a pre-launch or end of a sprint to inspect repository rot and clean it after confirmation.
Why use it?
It shows how much project clutter exists before making cleanup changes, reducing the risk of unnoticed edits.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it at milestones such as a pre-launch or end of a sprint to inspect repository rot and clean it after confirmation.

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

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 tidy

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/hamza-ali-shahjahan/hamzaish/tidy"><img src="https://agentmods.dev/badge/skills/hamza-ali-shahjahan/hamzaish/tidy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 898 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.00077 $0.00898
Opus 5.5 $0.00031 $0.00359
Sonnet 5.5 $0.00015 $0.00180
Haiku 4.5 $0.00008 $0.00090

Measured 2mo ago against content hash 384d95d3011c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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 2mo 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.

factory/skills/tidy/SKILL.md · 57 lines

How it starts

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

/tidy — the cleanup stage

Rot accumulates in every repo: links that point at moved/gitignored files, a key that slipped into a commit, an asset nothing references, a dependency that 404s on install. None of it is visible day-to-day — it surfaces at the worst time (a reader's 404, a failing CI, a leaked key). /tidy is the stage where you find and clear it on purpose.

This is a stage, not a gate. The fast guards (check-changelog, check-assets) block on every push; /tidy is the broad, report-first sweep you run when it's time to clean.

How to run it

bun run tidy                      # the current repo → summary + recommended next steps
bun run tidy <path>               # a specific repo
bun run tidy --all ~/Claude       # every git repo under a folder → one aggregate table
bun run tidy --links              # drill into one category (--secrets --files --deps)

It scans four kinds of rot and shows the extent first (a count per category) so you never get a wall of output:

what it catches
🔗 Links markdown/HTML links to missing files, or that resolve only to a gitignored target (works on the author's disk, 404s for everyone else)
🔑 Secrets high-confidence committed-key patterns (AWS, Stripe, GitHub, Google, Slack, private-key blocks) — flagged for review, not auto-judged
🗑 Dead files committed images/assets that nothing references — safe to prune
📦 Deps package.json dependencies that don't resolve on npm (the dead-@inngest/sdk class)

The flow (report → recommend → ask → fix)

  1. Run it. Present the summary table — extent per category, per repo.
  2. Recommend. Call out which categories matter and why (a broken link is a reader's 404; a flagged secret needs rotating; an unresolvable dep breaks every install).
  3. Ask. Let the operator pick what to clean. Never assume.
  4. Fix with confirmation — plan, then apply. bun run tidy --fix <repo> prints the exact change plan (which broken links get de-linked) without writing anything; re-run with --apply to make those edits. So you always see each change first. Auto-fix is narrow on purpose: it only de-links broken/gitignored text links ([text](bad) → text). Secrets, deps, images/HTML links, and file deletions are never auto-applied — they're listed as manual with guidance (rotate a key, pick the right package), because their fix is judgement, not a line-edit. Survey many with --all, then --fix one repo at a time.

Read the full file on GitHub · 57 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. 2mo ago First seen · 57 lines · 77 tokens per session scan A 384d95d3011c

Subscribe to this mod's changes

tidy is a skill published in the GitHub repository hamza-ali-shahjahan/hamzaish (11 stars, last pushed 1mo ago), licensed MIT. It adds 77 tokens to every session and 898 once invoked, about $0.0003 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-09-03.

Related

tidy compared with skills from other repositories

tidy next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tidyhamza-ali-shahjahan/hamzaishSkill111mo agoMITA77Claude Code, Codex
conventional-commitJanDeDobbeleer/oh-my-poshSkill24ktodayMITA26Claude Code, Codex
Dotfilesdanielmiessler/LifeOSSkill21k12d agoMITA125Claude Code, Codex
python-releaseComposioHQ/composioSkill31ktodayMITA53Claude Code, Codex
about-thinkrailJetBrains/thinkrailSkill8.5ktodayApache-2.0A153Claude Code, Codex
worktreeget-bb/bbSkill6.2ktodayMITA33Claude Code, Codex
release-noteskenryu42/cc-safety-netSkill2.1kyesterdayMITA65Claude Code, Codex