Score a local repository on docs, tests, CI, security and maintenance with ten weighted offline checks and an A-F grade. Use when the user asks how healthy, complete or well maintained a repository is, or what basics it lacks.
94%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Ten weighted, offline checks over a local checkout, combined into a 0-100 score and a grade. It needs only Python 3.10+ and the standard library, reads files without following symlinks, never runs repository code and makes no network calls.
Get the two git facts the script cannot read itself (the script never runs git). Run these in the repository and keep the output:
git ls-files -z > /tmp/tracked.txt
git log -1 --format=%cIIf the folder is not a git repository, skip this step: SEC001 and MNT001 are then reported as skipped and left out of the score.
Run the scorer:
python scripts/repo_health.py PATH --tracked-files /tmp/tracked.txt --last-commit 2026-11-30T12:00:00+00:00Replace the timestamp with the value printed by git log. Add --format json for machine-readable output and --min-score 80 to exit with code 1 below a threshold.
Read the report: total, per-category scores and one line per check (PASS, FAIL, SKIPPED). Weights, grades and what each check looks for are in checks.
Summarize the failing checks by weight, highest first, and say which are quick to fix. See interpreting results.
Create or edit files only when the user asks.
0 success, 1 score below --min-score or a domain error (not a directory, too many files, timestamp without timezone), 2 usage or I/O error.
Presence checks, not quality checks: a license file counts whether or not it is the right license, and a CI file counts when it contains a known test command (pytest, npm test, go test, tox, nox, make test). Files over 1 MiB are never read; more than 50,000 files stops with exit code 1. --now fixes the reference time for reproducible runs.
repository in the plugin manifest, or publish from a GitHub Action to verify it.