clean-repos
БесплатноБез исполняемых скриптовНе проверенFind and remove stale entries from repos.yaml whose directories no longer exist on disk
от raffertyuy★ 19 звёзд на GitHubОб этом скилле
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
Parse
repos/repos.yaml— read therepos:list- If the list is empty, report "Nothing to clean" and stop
Check each entry — for every entry, check if
repos/<name>/exists on diskCollect stale entries — entries where the directory does NOT exist
- If no stale entries found, report "All entries are present on disk. Nothing to clean." and stop
Show the stale entries — display a table:
Entry Type URL Status <name>git <url>Directory missing <name>local — Directory missing Ask for confirmation — "Remove these N entries from the config? (yes/no)"
- If the user says no, stop without changes
Remove stale entries from
repos/repos.yaml— delete each stale entry from therepos:list- If all entries were stale, leave
repos: []
- If all entries were stale, leave
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- If no entries remain, restore the placeholder:
<!-- No repositories found. Clone repos into repos/ and run /pull-all-repos to populate this file. -->
- If no entries remain, restore the placeholder:
Update
.gitignore— for each stale entry, ifrepos/<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.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
- This skill never deletes directories — it only cleans up config for directories that are already gone
- The inverse scenario (directories exist but aren't in config) is handled by
/pull-all-reposorphan detection - Always confirm before making changes — never auto-remove
- Safe to run as a dry-run check: if there are no stale entries, it just reports "nothing to clean"
Установить clean-repos в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл clean-repos?
Find and remove stale entries from repos.yaml whose directories no longer exist on disk
Как установить скилл clean-repos?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл clean-repos запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic