repo-health-audit
v0.1.4
Published
Audit local repositories for open-source readiness and actionable health recommendations.
Maintainers
Readme
repo-health-cli
Audit local repositories for open-source readiness and get a deterministic health score with actionable recommendations.
repo-health-cli is a Lighthouse-style CLI for local repositories. It checks README quality, licensing, CI, tests, package metadata, community files, docs, release readiness, and agent-readiness in one local command.
Demo
The CLI prints a compact terminal report by default and can emit JSON for automation. See the basic example for common commands.
Install
This project is published as repo-health-audit on npm and installs the repo-health command.
Install globally from npm:
npm install -g repo-health-audit
repo-health audit .Use it locally from a cloned checkout:
npm install
npm run build
node dist/cli.js audit .For development without building first:
npm run dev -- audit .Usage
Audit the current repository:
repo-health audit .Audit another local repository:
repo-health audit /path/to/repoPrint valid JSON only:
repo-health audit . --jsonDisable terminal colors:
repo-health audit . --no-colorFail CI-style when the score is below 80:
repo-health audit . --strictUse a custom strict threshold:
repo-health audit . --strict --threshold 90When running from source, replace repo-health with node dist/cli.js after npm run build, or use npm run dev --.
Documentation
Sample Output
Repo Health Score: 78/100 - C
Critical
- Add a LICENSE file.
- Add a test workflow under .github/workflows/.
Recommended
- Add CONTRIBUTING.md.
- Add SECURITY.md.
- Add usage examples to README.md.
Category breakdown
README quality 14/20
Licensing 4/10
CI / automation 8/15
Tests 10/15
Package metadata 8/10
Community files 2/10
Documentation 5/8
Release readiness 4/7
Agent readiness 3/5Scoring Categories
Scores are deterministic and weighted to total 100:
| Category | Weight | | --- | ---: | | README quality | 20 | | Licensing | 10 | | CI / automation | 15 | | Tests | 15 | | Package metadata | 10 | | Community files | 10 | | Documentation | 8 | | Release readiness | 7 | | Agent readiness | 5 |
Each check is scored as pass, warning, or fail. Category scores are rounded and the final score maps to grades:
| Grade | Score | | --- | ---: | | A | 90-100 | | B | 80-89 | | C | 70-79 | | D | 60-69 | | F | below 60 |
Local Development
npm install
npm test
npm run test:pack
npm run build
npm run typecheck
npm run dev -- audit .Roadmap
- Keep checks deterministic and local-first.
- Improve existing rule explanations and remediation links.
- Harden package verification and release documentation as the CLI evolves.
Non-goals
- No GitHub API calls.
- No SARIF or GitHub Actions annotation output.
- No registry writes outside the explicit publish workflow.
- No paid APIs.
- No LLM calls.
- No web UI.
- No destructive auto-fixes.
- No large plugin/rule-engine architecture before the core CLI is useful.
License
Apache-2.0. See LICENSE.
