Skip to content
moicdPublic

About

Agent skills I use and share.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Skills

Agent skills I use and share.

Skill What it does
repo-housekeeping Audits and cleans up a repository without breaking it

Install

npx skills add moicd/skills --skill repo-housekeeping

Or use pnpm dlx skills add, yarn dlx skills add or bunx skills add.

repo-housekeeping

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.

Use

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.

What it won't do unless you ask

  • 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.

How it works

  • SKILL.md holds the workflow.
  • scripts/audit_repo.mjs is 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.md covers Knip for JavaScript and TypeScript, plus Vulture, Deptry, deadcode, cargo machete and others.

License

MIT

About

Agent skills I use and share.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages