repo-health
Skill1 starsChanged 32 days agoMITView on GitHub
Read-only weekly sweep over every repo under the code root (default ~/code, override with REPO_ROOT or --root), flagging dirty worktrees, unpushed/unpulled commits, broken git state, stale branches, missing CI/AGENTS.md/LICENSE, dead remotes, untiered or unversioned dirs. Writes REPO-HEALTH.md at the root and nominates the next repos for /repo-groom, /repo-deps or /repo-deep. Use when the user says "repo health", "sweep my repos", "how are my repos doing", "/repo-health", or on the weekly cron.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- dataGriff/skillstheir own version, first seen Nov 1, 2026
- moberghr/mtk-agent-toolkittheir own version, first seen Oct 25, 2026
- Al-Baqshi/consistent.ceotheir own version, first seen Oct 17, 2026
- Sassy-Dog/skillstheir own version, first seen Oct 8, 2026
- exerias21/brainstorm-toolkittheir own version, first seen Oct 4, 2026
- calebnewtonusc/Chewbaccatheir own version, first seen Aug 11, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- moberghr/mtk-agent-toolkit★ 9same name
- calebnewtonusc/Chewbacca★ 8same name
- Al-Baqshi/consistent.ceo★ 1same name
- Sassy-Dog/skills★ 1same name
- dataGriff/skills★ 0same name
- exerias21/brainstorm-toolkit★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository19 other files it gives its agents.
- AGENTS.mdAGENTS.md
- cj-abSkill
- cj-ambitionSkill
- cj-automateSkill
- cj-cloudflare-workerSkill
- cj-code-reviewSkill
- cj-dailySkill
- cj-meetingsSkill
- cj-notesSkill
- cj-nowSkill
- cj-owa-toolsSkill
- cj-thingsSkill
- cj-todoSkill
- cj-uxloopSkill
- cj-video-visionSkill
- cj-voice-dnaSkill
- repo-deepSkill
- repo-depsSkill
- repo-groomSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 3 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Read-only, no exceptions: Never commit, stash, fetch, prune, or git gc anything while running this, not even "while I'm in there".
- Very specific: line 17
If ~/.config/cj-skills/repo-health.md exists, read it before acting.
- Very specific: line 40
Default run is local-only and takes about a second.
- Very specific: line 44
When a weekly cron is set up, it runs python3 <skill-dir>/repo-health.py --network, so a fresh REPO-HEALTH.md is usually already at the …
- Distinctive: line 49
Run the script. It writes the whole report itself, including a heuristic Top 5.
- Distinctive: line 51
Read the report back and sanity-check it.
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
repo-health
The detector in the repo-routine family. It only finds things; /repo-groom,
/repo-deps and /repo-deep are the fixers.
Read-only, no exceptions. Never commit, stash, fetch, prune, or git gc
anything while running this, not even "while I'm in there". If the user asks
for a fix mid-sweep, finish the report first and hand off to the fixer skill.
Local overlay
If ~/.config/cj-skills/repo-health.md exists, read it before acting. It holds this user's own profiles, paths and conventions, and it wins over the defaults here.
Scope
The code root is $REPO_ROOT (default ~/code; --root overrides). Its
.repo-tiers.json maps relative repo paths to tiers
(S-priv / S-pub / W / W-ro / archive / external); schema and tier
meanings are in references/tiers.md, the single source
for the whole repo-routine family. Tiers archive and external are skipped. Repos on disk but absent from the file are swept
anyway and listed under "Not in .repo-tiers.json". If the file is missing,
everything discovered gets swept.
Run it
<skill-dir>/repo-health.py # ~1s over ~100 repos
<skill-dir>/repo-health.py --network # + ls-remote per origin
<skill-dir>/repo-health.py --stdout # don't write the fileFlags: --root (default $REPO_ROOT, else ~/code), --out (default
REPO-HEALTH.md, relative to root, so the report follows the root), --jobs, --stale-days (default 180), --network, --stdout.
Default run is local-only and takes about a second. Use --network when the
user asks about dead remotes or it's been a while. It adds a few seconds and
can hang on VPN-only hosts.
When a weekly cron is set up, it runs python3 <skill-dir>/repo-health.py --network,
so a fresh REPO-HEALTH.md is usually already at the root; read it before rerunning.
Then
- Run the script. It writes the whole report itself, including a heuristic Top 5.
- Read the report back and sanity-check it. The script scores mechanically; you
know context it doesn't. Re-rank or replace the Top 5 by editing
REPO-HEALTH.mdwhen the heuristic picked something silly (a scratch repo with 200 dirty binaries is not the week's most valuable action). - Present to the user in chat: the summary counts in one or two lines, then the Top 5 as a numbered list with the concrete command to run. Don't paste the findings table; point at the file.
Nomination rules the script uses, for when you're re-ranking:
| Signal | Nominate |
| broken git state, dead remote | manual repair; no routine can run on it |
| missing CI / AGENTS.md / LICENSE | /repo-groom <repo> |
| has a dep manifest, otherwise fine | /repo-deps <repo> |
| clean baseline, active | /repo-deep <repo> |
Notes
- "Broken" means
git log -1fails. Two common causes show in the message:not a git repository(usually a vanished.git/refs/) andcannot read commit object(torn object store). Different fixes: re-init refs vs.git fetch --refetchor re-clone. - Agent co-author trailers are matched on the identity in the trailer
(
noreply@anthropic.com, Copilot, Devin, Cursor, Codex), never on theCo-authored-by:key alone, since real humans co-author too and their trailers stay. Nothing scrubs them automatically. The fix is agit filter-repohistory rewrite plus a force-push, which breaks every other clone, so it is never a/repo-groomstep and never runs on a cron. Read the committer list before believing a repo is shared: two emails are usually one person with a laptop typo (ann@example.orgvsann@example.com), while a fork shows strangers and bots. Public repos may have clones no committer list can see. Take a backup branch first (backup/pre-history-scrub-<date>). - Stale branch = merged into HEAD, or no commit in
--stale-days. The current branch is never counted. - Untiered repos are exempt from the baseline-file checks; they're scratch until the user tiers them. If one deserves a tier, say so.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

