Home / raffertyuy / repo-of-repos · .agents/skills/clean-repos/SKILL.md · GitHub

clean-repos skillA

clean-repos is agent-read markdown (skill) from raffertyuy/repo-of-repos: Find and remove stale entries from repos.yaml whose directories no longer exist on disk.

Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified before it reaches your agent: the main file against the SHA-256 recorded here, the others against the git hashes of its source commit. The deterministic audit below grades the latest version, and the same checks always give the same file the same grade.

What the file says

# 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
   - If the list is empty, report "Nothing to clean" and stop

2. **Check each entry** — for every entry, check if `repos/<name>/` exists on disk

3. **Collect 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

4. **Show the stale entries** — display a table:

   | Entry | Type | URL | Status |
   |-------|------|-----|--------|
   | `<name>` | git | `<url>` | Directory missing |
   | `<name>` | local | — | Directory missing |

5. **Ask for confirmation** — "Remove these N entries from the config? (yes/no)"
   - If the user says no, stop without changes

6. **Remove stale entries from `repos/repos.yaml`** — delete each stale entry from the `repos:` list
   - If all entries were stale, leave `repos: []`
…

Read the whole file at its exact version.

How to install

Latest version
mdr add raffertyuy/repo-of-repos/clean-repos@git:20260723.1db5b32
Exact content
mdr add raffertyuy/repo-of-repos/clean-repos@sha256:70f6066777fc60f3

Pin to a label to follow the author's releases, or to a sha256 for exact bytes. Either way the resolved hash is written to mdr.lock, and mdr install fetches those bytes again and checks them, so it installs them exactly or fails.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_ue5me6t3tdsc2esb.svg)](https://markdownregistry.com/a/art_ue5me6t3tdsc2esb)

2 badge views in 30 days

Versions

versioncommittedcommitsizeaudit
git:20260723.1db5b32 latest2026-07-23 1db5b32 2,457 BA view

Audit of the latest version

A  17 of 17 checks passed. Deterministic, no model, same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (2457 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

raffertyuy/repo-of-repos · 12 stars · license MIT · pushed 2026-09-25 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_ue5me6t3tdsc2esb
GET https://markdownregistry.com/api/v1/resolve?ref=raffertyuy/repo-of-repos/clean-repos
GET https://markdownregistry.com/api/v1/blob/70f6066777fc60f323e594a3ab44c843ff89115afe1a4a5306b485044a1d8c91

Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

More from raffertyuy/repo-of-repos

add-repository skill
raffertyuy/repo-of-repos · .agents/skills/add-repository/SKILL.md · Clone a git repo or register a local folder into repos/ and update repos.md with its description
git:20260723.1db5b32 · audit A · 12 stars
commit-all-repos skill
raffertyuy/repo-of-repos · .agents/skills/commit-all-repos/SKILL.md · Iterate through all sub-repos in repos/ and stage/commit/push each one, then do the same for the master repo
git:20260723.1db5b32 · audit A · 12 stars
commit skill
raffertyuy/repo-of-repos · .agents/skills/commit/SKILL.md · Stage, commit, and push changes for the master repo only (excludes sub-repos in repos/)
git:20260723.1db5b32 · audit A · 12 stars
create-plan skill
raffertyuy/repo-of-repos · .agents/skills/create-plan/SKILL.md · Create an implementation plan in _plans/ with embedded repo context and step-by-step task lists
git:20260723.1db5b32 · audit A · 12 stars
implement-plan skill
raffertyuy/repo-of-repos · .agents/skills/implement-plan/SKILL.md · Execute a plan from _plans/, implementing steps, checking off tasks, running tests, and documenting fixes
git:20260723.1db5b32 · audit A · 12 stars
pr-all-repos skill
raffertyuy/repo-of-repos · .agents/skills/pr-all-repos/SKILL.md · Create PRs in all sub-repos with uncommitted branches, then link them as siblings
git:20260723.1db5b32 · audit A · 12 stars
pull-all-repos skill
raffertyuy/repo-of-repos · .agents/skills/pull-all-repos/SKILL.md · Clone/pull git repos, verify local folders, auto-register orphans, and regenerate repos.md
git:20260723.1db5b32 · audit A · 12 stars
remove-repository skill
raffertyuy/repo-of-repos · .agents/skills/remove-repository/SKILL.md · Remove a repo or local folder from repos/, updating repos.yaml, repos.md, and .gitignore
git:20260723.1db5b32 · audit A · 12 stars
sync-template skill
raffertyuy/repo-of-repos · .agents/skills/sync-template/SKILL.md · Pull latest repo-of-repos template updates into this workspace
git:20260723.1db5b32 · audit A · 12 stars
update-all-md-docs skill
raffertyuy/repo-of-repos · .agents/skills/update-all-md-docs/SKILL.md · Review and update all markdown docs in the repo-of-repos (excluding cloned repos)
git:20260723.1db5b32 · audit A · 12 stars
add-repository skill
raffertyuy/repo-of-repos · .claude/skills/add-repository/SKILL.md · Clone a git repo or register a local folder into repos/ and update repos.md with its description
git:20260723.1db5b32 · audit A · 12 stars
clean-repos skill
raffertyuy/repo-of-repos · .claude/skills/clean-repos/SKILL.md · Find and remove stale entries from repos.yaml whose directories no longer exist on disk
git:20260723.1db5b32 · audit A · 12 stars

Every file in raffertyuy/repo-of-repos

Other files named clean-repos

clean-repos skill
raffertyuy/repo-of-repos · .claude/skills/clean-repos/SKILL.md · Find and remove stale entries from repos.yaml whose directories no longer exist on disk
git:20260723.1db5b32 · audit A · 12 stars

Browse by kind, by grade A, or by owner.