code-cleanup
Installation
SKILL.md
Code Directory Cleanup
Audit and tidy the ~/code/ directory.
Run from the home directory (~/).
Phase 1: Inventory
For every subdirectory in ~/code/ (including inside org folders), collect:
- Git remote (
git remote get-url origin, or "no-git") - GitHub org (parsed from remote URL)
- Repo type (R package = has
DESCRIPTION, Julia package = hasProject.toml, paper/grant = has.qmd/.tex/submission/, website = has_quarto.ymlwithout package files, org-config =.githubrepos, other) - Last commit date (
git log -1 --format="%ci") - Folder name vs remote name mismatch
- Worktrees (
git worktree listin each repo, flag any worktrees whose branch no longer exists on the remote)
Phase 2: Flag Problems
Report a table for each category: