Audit and build the infrastructure a repo needs so agents can work autonomously — boot scripts, smoke tests, CI/CD gates, dev environment setup, observability, and isolation. Use when a repo can't boot, tests are broken or missing, there's no dev environment, agents can't verify their work, or agents need human help to get anything done. Do not use for reviewing an existing diff or for documentation-only cleanup.
97
100%
Does it follow best practices?
Impact
87%
1.03xAverage score across 3 eval scenarios
Passed
No known issues
Make a repo ready for autonomous agent work.
agent-readiness builds the rig, verify proves your own change, review critiques existing codereviewverifydocsConcrete examples:
pnpm dev, cargo run, or docker compose upcurl http://127.0.0.1:3000/healthpnpm exec playwright testGrade the repo across these dimensions:
For each, report:
pass / partial / failUse references/grading.md. Lowest dimension sets the overall grade.
Example output:
bootable: partial — `pnpm dev` starts the app after manual env setup
testable: fail — only mocked tests under test/
observable: partial — health endpoint exists, structured logs missing
verifiable: fail — no stable smoke or interaction script
overall grade: DBuild missing layers in this order:
Boot → Smoke → Interact → E2e → Enforce → Observe → Isolate
Each step should be independently useful. Stop once the repo is reliably verifiable; do not build a cathedral because you got excited.
Boot — create a single-command entry point:
#!/usr/bin/env bash
set -euo pipefail
<your-boot-command> &
APP_PID=$!
for i in $(seq 1 30); do
curl -sf http://localhost:${PORT:-3000}/health > /dev/null 2>&1 && break
sleep 1
done
curl -sf http://localhost:${PORT:-3000}/health > /dev/null 2>&1 || {
echo "ERROR: App failed to start"; kill $APP_PID 2>/dev/null; exit 1
}
echo "App is ready"Smoke — fast proof the app is alive (< 5 seconds):
curl -sf http://localhost:3000/health | jq . # HTTP service
./dist/my-cli --version # CLI tool
npx playwright test smoke.spec.ts # UI appEnforce — pre-push hook to catch failures before CI:
#!/usr/bin/env bash
# .git-hooks/pre-push
set -euo pipefail
<your-lint-command>
<your-smoke-command>See references/setup-patterns.md for e2e, observability, isolation, and containerized stack patterns.
Tighten weak or flaky layers:
When the repo reaches C+ and can be judged honestly, hand off to verify or review.
If changes created doc drift, hand off to docs.
reviewAfter readiness work, report:
verify, review, docs, or human review