Agent skills I use and share.
| Skill | What it does |
|---|---|
| repo-housekeeping | Audits and cleans up a repository without breaking it |
npx skills add moicd/skills --skill repo-housekeepingOr use pnpm dlx skills add, yarn dlx skills add or bunx skills add.
It looks for dead code, unused dependencies and exports, junk committed by mistake, oversized and duplicate files, and stale branches. It also looks for what tools can't see: options nobody passes, flags fixed at one value, compatibility code for versions long gone. Then it has to prove each finding before anything is removed, because a tool can't tell that a file is loaded from PHP, run from CI, or imported by a name built at runtime.
Ask your agent in your own words:
- "Clean up this repo, but don't break anything."
- "What's dead code or junk here? Don't change anything yet."
- "Which dependencies can we drop?"
You get a report that separates what is safe to remove, what needs your decision, and what looks dead but is in use. If you asked for a cleanup, it removes the safe group in small batches and runs your checks after each one.
- Rewrite history or force-push.
- Delete unmerged branches, remote branches, stashes or worktrees.
- Remove ignored folders such as
node_modules. - Edit vendored code or installed skills.
- Open files that look like secrets. It reports them by name and tells you to rotate them first.
SKILL.mdholds the workflow.scripts/audit_repo.mjsis a read-only scan with no dependencies. It needs Git and Node 18 or later, and reads file names, sizes and Git metadata, never file contents.references/dead-code-tools.mdcovers Knip for JavaScript and TypeScript, plus Vulture, Deptry,deadcode,cargo macheteand others.