Agent-fit review
A read-only review that answers one question: how much does this codebase help or hurt an agent working in it? It scores nine principles with evidence from the repository and ends with a short, ordered fix list.
When to use
- Before rolling out coding agents on an existing codebase.
- When agents keep making the same kinds of mistakes in one repo.
- Periodically, to see whether the codebase is drifting.
Steps
-
Map the repo. Read the README, AGENTS.md or CLAUDE.md, the package manifests, CI workflows and the top two levels of folders. Note the stack and its versions.
-
Score each principle from 0 to 2 with evidence (file paths, commands, counts). 0 = works against agents, 1 = partly, 2 = helps.
# Principle Look for 1 Boring, popular technology In-house frameworks or DSLs, unmaintained or very new dependencies, outdated major versions 2 Types at every boundary Strict mode, validated inputs at HTTP/form/env/DB boundaries, anyor untyped JSON3 Locality Feature folders vs. layer folders; how many folders one feature touches 4 Small, explicit files Files over ~400 lines, barrel re-exports, magic auto-registration 5 Written conventions AGENTS.md exists, is accurate, lists real commands 6 Tests as the spec One verify command, test coverage of core flows, tests that run locally without secrets 7 Explicit over clever Metaprogramming, decorators that hide control flow, deep inheritance 8 Fewer moving parts Services, queues and infrastructure the product’s tier does not need 9 Encoded workflows Scripts, generators or skills for repeated tasks vs. tribal knowledge -
Run what you can (install, verify command, tests) and record whether it worked from a clean checkout. A repo that does not run scores 0 on 5 and 6 regardless of what its docs say.
-
Rank fixes by leverage: what removes the most agent mistakes for the least work. Usually: a verify command, an accurate AGENTS.md, typed env, then layout.
-
Report. Do not change code in this skill; hand fixes to
agent-ready-repo,vertical-slice-featureortests-as-spec.
Output
# Agent-fit review: <repo>
Score: 12/18
| Principle | Score | Evidence |
| ----------- | ----- | ----------------------------------------------------- |
| Boring tech | 2 | Next.js 16, Postgres, Drizzle; no in-house frameworks |
| ... | | |
## Top fixes
1. Add `npm run verify` (lint + typecheck + test) and run it in CI. (agent-ready-repo)
2. ...
Keep the report to one screen: nine rows and at most five fixes.