- Home
- Skills
- Code Quality & Review
- Repotidy: A clean repo before you publish or hand over
More screenshots
Works with the AI Agents you already use
Repotidy: A clean repo before you publish or hand over
Audits dead code, assets, dependencies, secrets and personal data, verifies every removal, purges leaked files from history only after your approval, proves behaviour unchanged, and ends with a dated rotate list.
$12
Repotidy: A clean repo before you publish or hand over
Example session with this skill installed
Repotidy: we want to make shop-app public next week. Clean it up and make sure nothing private is in the tree or history.
- Read your context and instructions
- Compiled the repotidy
- Generated the data export
Checked shop-app on fresh main, clean tree. Audit ran as 7 passes.
Candidates (6, deep-verified)
| # | Item | Evidence | Proposal |
|---|---|---|---|
| 1 | .env.local.bak | DB password in tree and in 3 commits | remove + purge |
| 2 | src/legacy/ (41 files) | zero imports, no route or config reference | remove |
| 3 | public/exports/customers.csv | emails, also at old path data/customers.csv | move private + purge both paths |
| 4 | pnpm-lock.yaml | CI installs from it | keep |
| 5 | left-pad-x dependency | flagged unused, but imported in build/plugins.js | keep |
| 6 | public/img/hero-old.png (6 MB) | no reference, not in server logs | remove |
Reply by number: remove / keep / move.
Health pass (repo level): src/cart/checkout.ts is the top hotspot (58 changes, highest complexity), one sole author.
After approval
- Backup bundle
../shop-app-2026-10-19.bundlecreated git filter-repo --invert-paths --path .env.local.bak --path public/exports/customers.csv --path data/customers.csv- Full suite green; moved helpers give identical output
- Privacy test: 1 hit in a commit message (client name, money figure, critical). Proceed, redact or cancel?
Rotate list
| Key | Provider | Used in | Found |
|---|---|---|---|
| DB password | hosted Postgres | .env.local.bak | 2026-10-19, chase 2026-10-26 |
Next steps
- Answer items 1 to 6 by number.
- Approve the force-push, then re-clone everywhere.
- Rotate the DB password before going public.
customers.csv
CSV · data export
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
Before a repo goes public or to a new maintainer, the risks are easy to miss: an old key still in history, a backup file holding a database password, dead code nobody dares remove. Delete the wrong file, such as a lockfile CI installs from, and the build breaks. Repotidy cleans a repository in a fixed order: audit, verify, clean, purge, prove, publish, rotate.
What it does
- Parallel audit of structure, dead code, assets, dependencies, secrets, personal data and history, with evidence per item.
- Repo health pass finds churn hotspots crossed with complexity, rework and bus factor, at file level, never per person.
- Deep verification of every removal candidate against config, registration files, CI, routes and runtime URL loads.
- History purge with git filter-repo or a squash import, only after your explicit approval and a backup bundle.
- Proof that behaviour did not change: full suite green and identical output for moved functions.
- Privacy test scans the tree and every outward text (commit messages, README, release notes) against your private-terms list.
- Dated rotate list for every key that ever reached history.
How it works
- Check the ground:
.gitpresent, clean tree, latest main. - Audit and deep-verify, then you answer remove, keep or move by number.
- Restructure in small
git mvbatches, a commit per module. - Purge and force-push only with approval; stale clones and hashes are noted.
- Publish or back up, then rotate keys and add a pre-commit guard.
Frameworks & tools
git, git filter-repo, gh, a secret scanner such as gitleaks, ruff, radon or the ESLint complexity rule, and your existing test runners.
Why this beats prompting it yourself
Agents often flag used dependencies as unused. This skill deep-verifies first, takes no destructive step without your numbered answer, and treats a deleted secret as not yet safe: only rotation ends the leak.
Use cases
- Open-sourcing or turning a repo into a template.
- Handover to a new maintainer.
- Leak response after a secret or customer CSV was committed.
- Legacy trim of dead assets and code.
Known limitations
Not for mid-feature work or design refactors. A history rewrite kills old clones. A leak only in the last unpushed commit just needs an amend and a key rotation.
How to use
Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scanned
Verified clean 1 day ago
- Passed all security checks, Safe to install
Requires