repo-cleanup

Installation
SKILL.md

Repository Cleanup

Inventory first, approve exact targets second, delete last. Treat cleanup as preservation work: a clean directory is not disposable until its commits, data, ownership, and runtime use are accounted for.

Scope

Resolve the target repository from the user's argument or current directory. Read its applicable agent instructions before inspecting it. If the target is not one Git repository, stop and ask which repository to clean.

The default scope is:

  • registered Git worktrees and their local branches;
  • repository-owned build, debug, benchmark, and temporary artifacts;
  • repository-owned inactive database generations or copies;
  • matching temporary artifacts outside the repository only when ownership is evidenced by an exact project name, configured path, manifest, log, or process command.

Keep unrelated system caches, other repositories, live databases, user documents, and unfamiliar paths outside the plan. Route broad machine cleanup to a system disk-cleanup workflow instead.

Audit

Installs
2
Repository
whamp/skills
GitHub Stars
1
First Seen
Aug 12, 2026
repo-cleanup — whamp/skills