agentleFS
alipajandalipajand/agent-readiness-kit/AGENTS.md

agent-readiness-kit

AGENTS.md2 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…

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
  1. Very specific:

    Use ark init, ark generate, and ark fix to scaffold starter agent files.

    line 9
  2. Very specific:

    Read docs/ARCHITECTURE.md before large changes.

    line 13
  3. Very specific:

    Run pnpm test (or the project test script) before finishing a task.

    line 80
  4. Distinctive:

    Add or update tests when changing audit behavior, scoring, or file generation.

    line 81
  5. Distinctive:

    Do not disable tests or skip CI checks without explicit approval.

    line 83
  6. Distinctive:

    When completing a task, report:

    line 96

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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:

ModuleResponsibility
src/cli.tsCommander 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 vscode

Testing 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:

  1. Summary of changes
  2. Files created or modified
  3. Commands run (install, test, lint, build)
  4. Test results
  5. Known limitations or follow-ups

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.