ai-ready
AGENTS.md221 starsChanged 3 months agoMITView on GitHub
This is an Agent Skill — not a traditional application. The deliverable is a skill definition (SKILL.md) that teaches an AI coding agent how to make any repository AI-ready. There is nothing to compile and nothing to ship a binary from. There is code, though, and it has to pass before you push: a small Python validation harness under tools/ and tests/ that checks the skill's detection data against fixture repos. See § Testing. The skill follows the vendor-neutral Agent…
- Installs packages
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,736 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 repository3 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- ai-readySkill
The file
We split this AGENTS.md into the rules it gives an agent
7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 43
Before pushing, run what CI runs:
- Very specific: line 64
Use npx skills add ./ --list to confirm the skill is discoverable without installing it, and npx skills remove ai-ready to clean up.
- Distinctive: line 69
Run before you push — see docs/authoring.md for the full CI check list:
- Distinctive: line 95
Wrap markdown at 120 characters: Not inferable; the existing files are inconsistent
- Distinctive: line 114
Use real file paths and real commands, not placeholders
- Distinctive: line 115
Prefer structured output (tables) over prose for analysis results
- Distinctive: line 116
Always end with a summary step listing what was created, skipped, and what to do next
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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
AI-Ready Repo — Agent Guide
This is an Agent Skill — not a traditional application. The deliverable is a skill definition
(SKILL.md) that teaches an AI coding agent how to make any repository AI-ready. There is nothing to compile
and nothing to ship a binary from.
There is code, though, and it has to pass before you push: a small Python validation harness under tools/
and tests/ that checks the skill's detection data against fixture repos. See § Testing.
The skill follows the vendor-neutral Agent Skills standard, so one canonical
skills/ai-ready/SKILL.md is consumed by GitHub Copilot, Claude Code, OpenAI Codex, and Cursor. Each tool gets
its own thin manifest that points at that same directory — never duplicate the skill content.
Repository Structure
Conventional where you'd expect: skills/ai-ready/ holds the skill, docs/ the prose, tests/ and tools/
the validation harness, evals/ the manual rubric. Run ls for the rest.
The part that is not guessable, and that CI enforces:
Six files carry a version and all six must agree — skills/ai-ready/SKILL.md (metadata.version, the
source of truth), plugin.json, .github/plugin/plugin.json, .claude-plugin/plugin.json,
.codex-plugin/plugin.json, and .claude-plugin/marketplace.json (nested under plugins[0]). There is also
.agents/plugins/marketplace.json, which carries no version. Bumping one and not the rest is the most common
way to fail the build.
Packaging Model
One canonical skills/ai-ready/SKILL.md; every tool gets a thin manifest pointing at that same directory.
Never duplicate the skill content. Details of each tool's manifest: docs/authoring.md.
Tech Stack
- Content format: Markdown, YAML, JSON — this is a documentation-driven project
- No build system and nothing to compile. The repo ships files agents read directly
- Validation harness: Python 3 with
pyyaml, undertools/andtests/. Dependency-free otherwise — no framework, no test runner.tests/test_detection.pyis a plain script that exits non-zero
Build & Run
There is no build step. This repo ships markdown, YAML and JSON files that agents read directly.
Before pushing, run what CI runs:
pip install pyyaml
python3 tests/test_detection.py # risk-path globs against fixtures
python3 tools/gen_detection_tables.py --check # generated tables match their dataTo test the skill locally in every installed tool:
npx skills add ./ --agent claude-code codex cursorThat installs skills/ai-ready/ into each tool, so edits take effect on the next agent restart. Then
start your agent and invoke the skill:
make this repo ai-readyUse npx skills add ./ --list to confirm the skill is discoverable without installing it, and
npx skills remove ai-ready to clean up. Native plugin installs are documented in README.md.
Testing
Run before you push — see docs/authoring.md for the full CI check list:
pip install pyyaml
python3 tests/test_detection.py # risk-path globs against tests/fixtures/
python3 tools/gen_detection_tables.py --check # generated tables match their dataskills/ai-ready/data/risk-paths.yml is the source of truth for detection; edit it, regenerate, commit
both, and add a fixture case when you fix a bad detection.
CI validates packaging, not judgment — a SKILL.md with wrong instructions still passes. That's what
evals/ is for; see docs/authoring.md before changing skill behavior.
Key Patterns and Conventions
- Skills live in
skills/<name>/SKILL.md— markdown with YAML frontmatter (name,description) and steps - The skill needs no code — it uses the agent's built-in file tools. No extensions, no runtime
- Issue and PR text must say it came from AI Ready — e.g.
Assisted by [ai-ready](https://github.com/johnpapa/ai-ready) - Docs stay in sync — see the Maintenance Matrix below
Writing Conventions
Match the surrounding files for anything not listed here — indentation, heading style and code-fence language tags are all visible in any file you open.
- Wrap markdown at 120 characters. Not inferable; the existing files are inconsistent
- Tables for structured data, always with a header row. Prefer them over prose for anything comparative
**bold**for emphasis,_italic_for terms,`backticks`for file paths and commands- Quote YAML strings containing special characters
Skill Writing Conventions
Adding lines to SKILL.md means naming which lines come out, in the pull request — or putting the new
content in references/ instead.
Detection tables may name tools. Rules may not. A rule illustrated with one ecosystem's command teaches the agent the rule is about that ecosystem.
references/ holds only what changes agent behavior. Reasoning goes in docs/why.md — an
explanation the agent cannot act on still costs attention on every run that loads it.
- Each step should be independently actionable — executable without context from other steps
- Include explicit "check if exists" guards before creating files
- Use real file paths and real commands, not placeholders
- Prefer structured output (tables) over prose for analysis results
- Always end with a summary step listing what was created, skipped, and what to do next
CI fails the build if SKILL.md exceeds 500 lines or this file exceeds 150. Both are loaded on every
invocation, so length costs adherence, not just tokens. When you hit a ceiling, move content out — never delete
something load-bearing to get under it. Sources and reasoning: docs/authoring.md.
Maintenance Matrix
| When this changes... | Also update... |
skills/ai-ready/SKILL.md | README.md (if skill behavior changed), docs/how-it-works.md, AGENTS.md, CHANGELOG.md |
SKILL.md past ~500 lines, or AGENTS.md past ~150 | Move narrow-scope content out — references/ for the skill, docs/ or a nested AGENTS.md for this file. See docs/authoring.md. Never cut something load-bearing to hit a number |
.github/workflows/ci.yml | The check list in docs/authoring.md § The full CI picture, and the CI summary in README.md § Contributing |
skills/ai-ready/references/* | Verify consistency with SKILL.md steps that reference them |
New skill added to skills/ | README.md, AGENTS.md (structure section), CHANGELOG.md |
docs/how-it-works.md | Verify consistency with SKILL.md steps and README.md |
README.md problem statement or architecture | Verify consistency with docs/how-it-works.md |
| Repo structure changes (new dirs, moved files) | AGENTS.md (structure section), CHANGELOG.md |
Version bump (SKILL.md metadata) | All manifests — .github/plugin/plugin.json, .claude-plugin/plugin.json, .claude-plugin/marketplace.json, .codex-plugin/plugin.json, root plugin.json — plus CHANGELOG.md and GitHub Release |
| Any plugin manifest | Keep version identical across all manifests and SKILL.md; CI fails on drift |
skills.sh.json | Must list every directory under skills/; CI fails on drift |
| New tool/platform supported | README.md install table, AGENTS.md (packaging model); add a manifest only if the tool cannot use npx skills |
skills/ai-ready/data/*.yml | Run python3 tools/gen_detection_tables.py and commit the regenerated references/detection-tables.md; add or update a fixture in tests/fixtures/ covering the change |
| A detection bug found in a real repo | Add the case to a fixture in tests/fixtures/ in the same PR, and add the pattern to false_positives in data/risk-paths.yml if it is one |
evals/rubric.md | evals/results/TEMPLATE.md if the sections changed; previous results keep their original rubric version |
| Scoring, medals, or the tracked asset list | SKILL.md (asset table + medal table), references/report-template.md (square count, category indicators, cap wording), README.md § Scoring, docs/how-it-works.md, CHANGELOG.md |
Common Pitfalls
- Don't add build/test/runtime dependencies — this is a markdown-only project. Agents should not invent
npm install,pip install, or any setup commands for this repo - SKILL.md frontmatter is required — the
nameanddescriptionfields in the YAML frontmatter are how agents discover and match the skill to user requests. Keep frontmatter to the portable Agent Skills fields (name,description,license,compatibility,metadata,allowed-tools); vendor-specific keys break portability - Test on real repos — the only meaningful test is invoking the skill on different repo types and reading what it generated
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.

