Repo Health Check Lite
A lightweight, read-only check for common repository hygiene signals and selected project files.
- Input
- A local project folder selected by the user
- Output
- A small JSON report of observed hygiene signals and missing items; it does not certify overall project health.
What it does
- Checks a bounded set of repository files and configuration cues
- Reports findings with relative paths
- Does not execute repository code or change files
Overview
Repo Health Check Lite is a read-only Python 3.11+ CLI that inventories a local software repository for missing documentation, test files, and configuration hygiene cues without executing any target code or making network calls. It outputs deterministic JSON with explicit remediation items and marks runtime test execution as UNKNOWN so static evidence is never confused with a live test pass.
When to use it
- Triaging an unfamiliar or newly inherited repository before onboarding or running builds.
- Adding a fast, zero-dependency static hygiene check to local developer workflows or agent pre-flight steps.
- Producing a machine-readable JSON inventory of structural gaps (missing README, missing test files) without importing untrusted code.
Run a repository health check
Needs Python 3.11 or newer and only the standard library. Run from the package directory and point it at the repository you want inventoried.
python3 scripts/repo_health_check_lite.py /path/to/repositorySample output
Abridged output from the 0.1.0 package, run on a small synthetic fixture.
{
"status": "ok",
"findings": [
{
"code": "README_MISSING",
"severity": "review",
"priority": 2,
"remediation": "Add a README describing setup and a reproducible usage example."
},
{
"code": "TEST_FILES_MISSING",
"severity": "review",
"priority": 2,
"remediation": "Add or identify the actual test suite; filename checks cannot establish execution."
}
],
"file_count": 1,
"test_execution": "UNKNOWN"
}Exit codes and limits
- Exit 0 means the inspection completed, including when it has findings. Exit 2 means invalid or unreadable input.
- Static evidence only: no customer code, imports, tests or network requests are executed.
- Inputs are limited to 1 MB per file, 5,000 files and 20 MB in total; symlinks and common credential files are skipped.
- Checks filenames, configuration and text cues only; there is no Python AST or runtime analysis.
Questions
Does Repo Health Check Lite run my test suite or import project code?
No. It performs static file, configuration, and text-cue inspection only. No customer code, imports, tests, or network requests are executed, and test_execution is reported as UNKNOWN.
What are the runtime dependencies and repository size limits?
It requires Python 3.11 or newer and uses only the Python standard library. Scans are bounded to 1 MB per file, 5,000 files, and 20 MB total, skipping symlinks and common credential files.
How do exit codes work in CI or agent pipelines?
Exit code 0 indicates the static inspection completed cleanly (even when findings are reported in the JSON output). Exit code 2 indicates invalid or unreadable input.
What is the difference between Repo Health Check Lite and Python Repo Auditor?
Repo Health Check Lite inspects filenames, configuration, and text cues across general repositories without AST parsing, whereas Python Repo Auditor parses Python ASTs to flag language-specific patterns such as mutable default arguments.