agent-readiness-kit
AGENTS.md1 starsChanged 2 months agoMITView on GitHub
agent-readiness-kit is a TypeScript Node.js CLI published as the ark binary. It audits a repository for readiness when AI coding agents (Cursor, Codex, Claude Code, Copilot, and similar tools) work in that codebase. The tool runs entirely locally: no external API calls, no telemetry, no authentication, and no LLM calls. It reads files on disk, runs deterministic checks, and prints terminal, JSON, Markdown, HTML, JUnit, or SARIF reports. Use ark init, ark generate, and ark fix to scaffold starter agent…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository7 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .cursor/rules/CHECK_AUTHORING.mdcCursor rule
- .cursor/rules/COMMITS.mdcCursor rule
- .cursor/rules/project.mdcCursor rule
- .cursor/rules/SAFE_WRITE.mdcCursor rule
- .cursor/rules/TESTING.mdcCursor rule
- adding-an-audit-checkSkill
The file
We split this AGENTS.md into the rules it gives an agent
6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 9
Use ark init, ark generate, and ark fix to scaffold starter agent files.
- Very specific: line 13
Read docs/ARCHITECTURE.md before large changes.
- Very specific: line 80
Run pnpm test (or the project test script) before finishing a task.
- Distinctive: line 81
Add or update tests when changing audit behavior, scoring, or file generation.
- Distinctive: line 83
Do not disable tests or skip CI checks without explicit approval.
- Distinctive: line 96
When completing a task, report:
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent instructions
Project overview
agent-readiness-kit is a TypeScript Node.js CLI published as the ark binary. It audits a repository for readiness when AI coding agents (Cursor, Codex, Claude Code, Copilot, and similar tools) work in that codebase.
The tool runs entirely locally: no external API calls, no telemetry, no authentication, and no LLM calls. It reads files on disk, runs deterministic checks, and prints terminal, JSON, Markdown, HTML, JUnit, or SARIF reports.
Use ark init, ark generate, and ark fix to scaffold starter agent files. Generated writes use safe-write semantics and never overwrite existing files unless --force is passed.
Architecture boundaries
Read docs/ARCHITECTURE.md before large changes. Respect module boundaries:
| Module | Responsibility |
src/cli.ts | Commander command routing |
src/audit/* | Audit orchestration, 13 category checks, and score history |
src/config/* | .arkrc loading and validation |
src/generate/* | Safe starter file generation (init, cursor, codex, claude, copilot, github, vscode, fix) |
src/report/* | Terminal, JSON, Markdown, HTML, JUnit, SARIF, badge, and diff formatters |
src/fs/* | Filesystem helpers (writeFileSafe, glob search) |
tests/* | Vitest coverage for checks and CLI behavior |
Agent-editable areas: audit checks, report formatting, generate templates, filesystem helpers, tests, and documentation under docs/.
Human review required: authentication, authorization, billing, telemetry, external network calls, breaking changes to the public CLI surface, and npm publish configuration.
Commands
# Development
pnpm dev
# Build
pnpm build
# Lint / typecheck
pnpm lint
pnpm typecheck
# Format
pnpm format
pnpm format:check
# Tests
pnpm test
# Clean build artifacts
pnpm clean
# Run audit against this repo
pnpm dev audit
pnpm dev audit --json
pnpm dev audit --junit
pnpm dev audit --sarif
pnpm dev audit --output docs/agent-readiness-report.md
pnpm dev audit --output docs/agent-readiness-report.html
# Run a single audit category
pnpm dev check <category-id>
# Compare two audit snapshots
pnpm dev diff before.json after.json
# Generate SVG badge
pnpm dev badge --output badge.svg
# Scaffold missing files identified by audit
pnpm dev fix
# Generate specific tool files
pnpm dev generate copilot
pnpm dev generate github
pnpm dev generate vscodeTesting expectations
- Run
pnpm test(or the project test script) before finishing a task. - Add or update tests when changing audit behavior, scoring, or file generation.
- Audit checks must remain deterministic and test-covered.
- Do not disable tests or skip CI checks without explicit approval.
Forbidden changes without approval
- Authentication, authorization, or session handling
- Billing, payments, or subscription logic
- Security policies, secrets handling, or credential storage
- Telemetry, analytics, or external API integrations
- Database schema migrations in production paths
- Breaking public API contracts or renaming CLI commands
Final report format
When completing a task, report:
- Summary of changes
- Files created or modified
- Commands run (install, test, lint, build)
- Test results
- Known limitations or follow-ups
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

