Grade how ready a repository is for AI coding agents. Library and CLI behind masonemery.com/ready.
Fully agent-ready: CLAUDE.md points to AGENTS.md, one npm run verify covers types, lint, tests, build and a self-grade.
Setup is clear: .nvmrc pins Node, package-lock.json locks dependencies, and npm test, npm run typecheck and npm run lint are all one-liners mirrored step for step in CI. npm run verify chains every check, including a self-grade, so an agent can confirm a change end to end with one command. One subtlety is that selfcheck runs dist/bin.js, so it only works after npm run build; verify orders this correctly, but running it alone on a fresh clone will fail. The README's Getting started section is aimed at consumers installing the release tarball, so contributors and agents depend on AGENTS.md and CONTRIBUTING.md for local setup.
Your README badge
[](https://masonemery.com/ready/thepolytheist/agent-ready) The badge shows your latest grade and updates when you re-check.
Fix these first
Note that selfcheck needs a prior build
selfcheck runs node dist/bin.js, so an agent that runs it alone on a fresh clone gets a confusing missing-file error instead of a grade.
## Self-grade `npm run selfcheck` runs the built CLI from `dist/`, so run `npm run build` first. Or run `npm run verify`, which builds before it self-grades.
Show how to run a single test file in AGENTS.md
Running one Vitest file is much faster for agents iterating on a single check than running the full suite each time.
## Running a subset of tests - `npx vitest run test/<file>` runs one test file. - `npm run test:watch` re-runs tests on change while you work interactively.
Point contributors to AGENTS.md from the README
The README's setup covers installing the release tarball, so a pointer to contributor setup helps agents find the clone, install and verify flow quickly.
## Contributing Clone the repo, run `npm ci`, then `npm run verify` before opening a pull request. See CONTRIBUTING.md and AGENTS.md for details.
Breakdown
Agent instructions
25/25- ✓ Agent instructions file 10/10
Found CLAUDE.md, AGENTS.md. - ✓ Instructions have substance 5/5
2,281 characters of instructions. - ✓ Instructions say how to build and test 7/7
Lists the commands to run, including tests. - ✓ Instructions are a sensible size 3/3
Short enough to read in full every session.
Tests
20/20- ✓ One command runs the tests 10/10
`npm test` runs `vitest run`. - ✓ Test files exist 10/10
Found test/.
Type & lint checks
15/15- ✓ Type checking 8/8
TypeScript, checked with `npm run build`. - ✓ Linter or formatter 7/7
Configured: biome.json.
CI
15/15- ✓ CI is set up 5/5
2 GitHub Actions workflows. - ✓ CI runs the tests 6/6
A workflow runs the test suite. - ✓ CI runs type or lint checks 4/4
A workflow runs type or lint checks.
Setup clarity
15/15- ✓ README explains setup 5/5
README has setup steps with commands. - ✓ Dependencies are locked 4/4
Found package-lock.json. - ✓ Runtime version is pinned 3/3
The expected language/tool version is declared. - ✓ Environment variables are documented 3/3
Found .env.example.
Guardrails
10/10- ✓ Contribution guide 3/3
Has a CONTRIBUTING guide. - ✓ Pre-commit hooks 3/3
Pre-commit hooks catch mistakes before they land. - ✓ No committed junk 4/4
No build output, dependencies or secrets committed at the root.