Clean repos

From raffertyuy/repo-of-repos · View interactive version

Clean repos is an AI agent skill from the GitHub repository raffertyuy/repo-of-repos. Find and remove stale entries from repos.yaml whose directories no longer exist on disk

How to use this skill

Skill file

Clean Repos

Scan repos/repos.yaml for stale entries — entries whose corresponding repos/<name>/ directory no longer exists on disk — and remove them from the configuration.

Order of Operations

  1. Parse repos/repos.yaml — read the repos: list
  1. Check each entry — for every entry, check if repos/<name>/ exists on disk
  1. Collect stale entries — entries where the directory does NOT exist
  1. Show the stale entries — display a table:

| Entry | Type | URL | Status |

|-------|------|-----|--------|

| <name> | git | <url> | Directory missing |

| <name> | local | — | Directory missing |

  1. Ask for confirmation — "Remove these N entries from the config? (yes/no)"
  1. Remove stale entries from repos/repos.yaml — delete each stale entry from the repos: list
  1. Remove stale entries from repos/repos.md — for each stale entry, delete its ## <name> section and all content up to the next ## heading or end of file
  1. Update .gitignore — for each stale entry, if repos/<name>/ appears in .gitignore (whether git repo or gitignored local folder), remove the line. No need to ask — stale entries shouldn't leave gitignore debris.
  1. Report a summary:

| Entry | Type | Action |

|-------|------|--------|

| <name> | git | Removed from repos.yaml, repos.md, .gitignore |

| <name> | local | Removed from repos.yaml, repos.md (and .gitignore if present) |

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.