Point it at a repo, get an auditable health scorecard — a defensible
Score: X/10with evidence for every point, what's missing, what's weak, and the highest-impact fixes. A Claude Code agent plus a deterministic CLI. Zero-friction, CI-ready.
RepoCred is not a star-chaser. It's a repository-health auditor aligned with OpenSSF Scorecard, GitHub Community Standards, and SemVer — usable as a CI quality gate. Three principles separate it from a homemade linter:
- Reproducible — the score is a traceable sum of checks against a versioned rubric, not an opinion. Same input → same score.
- Auditable — every point awarded or withheld cites evidence (
path:line). - Configurable — each team tunes profile, weights and thresholds to its own bar.
RepoCred is two pieces:
- A deterministic CLI (
repocred) that runs the checks, computes the score, emits--json, returns a CI exit code, and generates badges. All numbers come from here — there is no model in the scoring path, so it's exactly reproducible. - A Claude Code subagent (
agent/repocred.md) that orchestrates the CLI and renders the human-facing scorecard and improvements. It never invents numbers.
See SCORING.md for the full, versioned methodology.
pipx install repocred # or: pip install repocredInstall the Claude Code agent (zero-friction, language-agnostic — it's just a file):
mkdir -p ~/.claude/agents && cp agent/repocred.md ~/.claude/agents/Then in Claude Code: "score this repo with RepoCred".
repocred score . # human scorecard for the current repo
repocred score . --audit # also print the auditable table
repocred score . --json # machine-readable output
repocred score . --mode security # re-weight for a security audit
repocred score . --local # filesystem only, skip remote (gh) checks
repocred suggest . # print ready-to-paste files for the repo's gaps
repocred suggest . --apply # write them (never overwrites existing files)More real output (deterministic, regenerable) lives in examples/.
Example scorecard:
📊 RepoCred: 8.7 / 10 ███████████░░ (rubric v1 · profile: library · mode: balanced)
✅ README (16/18)
✅ CI (12/12)
⚠️ Security / supply-chain (8/15)
❌ License (0/8)
💡 Top improvements (by impact):
1. Add a LICENSE file (MIT is the common default). [+8 pts]
2. Add SECURITY.md + enable Dependabot. [+6 pts]
Fail the build below a threshold (a real exit code, not a vibe):
- run: pipx install repocred && repocred score . --fail-under 7.0Set the bar (and profile, mode, weights) per repo with .repocred.yml — see the example in
this repo.
Some checks (branch protection, CI status, repo metadata) can only be answered via the GitHub
API. RepoCred uses gh automatically when available; otherwise it runs --local and marks
those checks unknown — excluded from the score and disclosed, never silently counted as
failures. A --local score and a full score are not comparable, and a badge is never generated
from an incompletely-verified run.
repocred badge . # writes .repocred/badge.json (shields endpoint badge)
repocred badge . --static # prints a frozen static badge snippetMIT — see LICENSE. RepoCred scores itself; that's the point.