/ai-ready:ai-readyfrom ai-ready
Analyzes a repository and generates AI-ready configuration: AGENTS.md, per-tool pointer files, skills, CI workflows, issue/PR templates, changelog, and docs. Reports an AI-readiness score.
Ships in ai-ready. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Adopt the perspective of an experienced repo maintainer. Prioritize what reduces review burden and contributor friction. Every file you generate should earn its place — generic boilerplate creates noise.
Follow these steps in order to analyze the current repository and generate all missing AI-ready configuration assets.
First run vs. re-run: On the first run, most assets will be missing — the skill creates them. On re-runs, it audits existing assets against the current codebase, checking for drift, stale content, and new conventions from recent PR reviews.
Skipping assets: If the user's prompt mentions skipping specific assets, respect those exclusions. Still run the full analysis, but skip generation for the excluded assets.
Report-only mode: If the user asks for a report without generating files (e.g., "how ai-ready is this repo?", "score this repo"), run the full analysis (Steps 0–1) and display the report (Step 11) — but skip all generation steps (Steps 2–10).
Assets are grouped into three categories. Count assets with Nailed It status for the score.
🤖 AI Context — what AI agents read to understand your repo
| # | Asset | Generated in |
|---|---|---|
| 1 | AGENTS.md | Step 2 |
| 2 | Per-tool pointer files (.github/copilot-instructions.md, CLAUDE.md, …) | Step 3 |
| 3 | Maintenance matrix (in AGENTS.md) | Step 2 |
| 4 | Reviewer agents (.github/agents/) | Step 4c |
| 5 | Starter skill (.github/skills/) | Step 4d |
| 6 | Security skill (.github/skills/, when there is surface) | Step 4e |
🔧 Dev Workflow — what keeps PRs clean and contributors on track
| # | Asset | Generated in |
|---|---|---|
| 7 | CI workflow (.github/workflows/ci.yml) | Step 5 |
| 8 | Issue templates (.github/ISSUE_TEMPLATE/) | Step 6 |
| 9 | PR template (.github/PULL_REQUEST_TEMPLATE.md) | Step 6 |
📖 Onboarding — what helps new contributors get started
| # | Asset | Generated in |
|---|---|---|
| 10 | Changelog (CHANGELOG.md) | Step 9 |
| 11 | Documentation (or explicit "not needed" note) | Step 10 |
Scoring: 🟩 Nailed It (counted) · 🟨 Could Be Better (not counted) · ⬜ Missing (not counted). Medals, the two prerequisites that cap them, and what the score may never claim are in references/report-template.md — read it in Step 11.
The skill is GitHub-native — it discovers everything from GitHub's tools.
Run git remote -v to extract the GitHub owner/repo. If not GitHub, fall back to local-only analysis.
Use GitHub MCP tools or gh CLI to auto-discover repo metadata, PR review patterns, and community health gaps. See references/github-discovery.md for the full API table, PR mining technique, and health gap mapping.
Repeated reviewer feedback — from humans and from review agents — becomes conventions in AGENTS.md. Weight recent patterns more heavily, and flag an abandoned one rather than resurrecting it as a current rule.
GitHub context tells you what the repo is. Local analysis tells you how it works. Use glob, grep, and view combined with GitHub context from Step 0.
Find manifest files and extract details. See references/detection-tables.md for the full manifest table, VS Code extension detection, multi-app collections, demo app patterns, and course/tutorial repo detection.
Course repos (3+ signals: numbered folders, lesson keywords, no primary app) adapt Steps 2–5. See detection-tables.md for the full signal list and step adaptations.
Community workflows (stale, welcome, labeler) are valid automation, not missing CI. Do not report a repo as having no CI because its only workflow is a stale-bot.
Check for: AGENTS.md, .github/copilot-instructions.md, CLAUDE.md, .cursorrules, .cursor/rules/,
.github/skills/, .github/agents/, .github/extensions/, .devcontainer/.
Two failure modes, and the second is the common one. AGENTS.md is canonical; every other instruction
file should be a short pointer to it.
AGENTS.md. Flag as
Could Be Better: duplicated guidance drifts silently, and then two agents work from two versions of the
same standard.AGENTS.md never
sees the conventions; a tool reading only the Copilot file never sees the build and test commands.For a split, list specifically which sections exist in the tool file but not in AGENTS.md — those are
what Step 2 needs to absorb. Do not rewrite the tool file here; propose the move and let the user decide.
Detect CODEOWNERS, dependabot.yml, issue and PR templates, LICENSE, a README Contributing section,
changelog health, and docs setup. Two judgments that are not obvious: a changelog may live in a docs site
rather than CHANGELOG.md, so follow pointer files before reporting one missing; and freshness is measured
against the latest git tag, not the file's date.
Produce a structured findings table combining GitHub context and codebase analysis with file-path evidence. See references/detection-tables.md for the full findings table template.
List which of the 11 assets are missing. For existing assets, compare against analysis and flag drift as "Could Be Better."
If workspace config found, list areas with name, path glob, and primary stack. For large library monorepos, map cross-package dependencies. See references/detection-tables.md for details.
If missing, create AGENTS.md at the repo root. If it exists, compare against analysis and flag drift.
AGENTS.md is the canonical entry point for how this repo works — the one file every tool reads, and the
one place a given convention is stated. That is not the same as putting everything in it. Read
references/agents-md.md before generating: what belongs, what does not, and where
the rest goes.
Two rules govern everything below.
1. The discoverability test. Before writing any section, ask: can the agent find this by reading the
code? If yes, do not write it down. AGENTS.md is loaded before every task, so every line is paid for on
every run and competes for attention with the actual work. Directory trees, tech-stack inventories and
architecture summaries all fail this test — generate them only for what is genuinely surprising about this
repo, and skip them entirely when the layout is conventional.
2. Put it at the narrowest scope that fits. Needed on every task → root AGENTS.md. Needed only in one
area → a nested AGENTS.md in that directory, which is part of the standard and how monorepos are meant to
scale (closest file wins). Needed only when doing one procedure → a skill (Step 4d). Lookup material → a linked
doc.
Start at 20–30 lines — what agents most often get wrong in this repo — and grow only when a real mistake proves something is missing. 150 is a ceiling, not a target: past it, move something. This file gets worse as it gets longer, because a model follows roughly 150–200 instructions before adherence degrades and every line competes with the ones already there.
Generate these. They exist nowhere in the code, so they always pass the test:
.csproj ProjectReferences, import
chains, mod declarations, __init__.py re-exports. Keep it a table; Step 4d turns it into the procedure,
so do not write the procedure here as well.Do not generate these unless the repo makes them surprising: a project overview, a CI/CD section, a repository structure section, or a tech stack list. Each costs attention on every task and tells the agent something it can see.
A Key Patterns and Conventions heading is usually the conventions bullet above under a second name. Pick one.
Test Conventions — untestable claims. If the repo has more than one test lane — a fast mocked unit lane plus a slower one with real framework access, or unit plus integration plus e2e — add a rule telling agents not to take a pull request's "this can't be tested" at face value. Before agreeing, search the other lane for existing precedent of stubbing the exact API or state the new code depends on. A claim that is true for one lane is often false once another is checked, and "untestable" is the easiest way for a change to arrive with no coverage and nobody arguing.
Only generate this rule when multiple lanes actually exist — skip it for a single-lane setup, where it would be advice about a situation the repo doesn't have.
Every line in both must be decidable by a machine with nobody interpreting it. A command that exits non-zero on failure passes the test. "Write clean code" does not.
## Done means — the conditions a change must meet before it is finished, derived from the repo's real
commands.
## Never merges without a human — the boundary, seeded from the risk paths actually present in this repo
and stated as paths or conditions rather than categories.
Before writing any boundary line, check what you matched against
data/risk-paths.yml § false_positives. Every entry there is a line this skill got
wrong in a real repo. A wrong entry is worse than a missing one — it puts a human back into merges that never
needed one, and the first obviously-wrong line teaches the reader the section is guesswork.
Templates for both sections, and the definition line that must sit under the boundary heading, are in references/agents-md.md § Generating the two sections.
Scoring: AGENTS.md counts as Nailed It only when both sections are present, every line in them is
machine-checkable, and ## Never merges without a human carries its definition line. An AGENTS.md without them is Could Be Better — it tells an agent how to work, but
nothing about what it may finish on its own.
Generate a short pointer for each tool detected in Step 1d, plus .github/copilot-instructions.md by
default.
| Tool | File |
|---|---|
| GitHub Copilot | .github/copilot-instructions.md |
| Claude Code | CLAUDE.md |
| Cursor | .cursorrules |
Pointer content is three lines:
# Conventions
The conventions for this repository live in [`AGENTS.md`](<relative path>). Read that file first.
The link is relative to the pointer file, not to the repo root:
| Pointer file | Link |
|---|---|
.github/copilot-instructions.md | ../AGENTS.md |
CLAUDE.md, .cursorrules (repo root) | ./AGENTS.md |
.github/instructions/*.instructions.md | ../../AGENTS.md |
Copilot is the one exception worth a little more. Copilot auto-loads .github/copilot-instructions.md into
context, so anything genuinely Copilot-specific (and only that) may follow the pointer line in the same file.
Never restate conventions that already live in AGENTS.md.
Never duplicate. If an existing tool file restates AGENTS.md, do not silently rewrite it — flag it as
drift in the report and let the user decide (see Do No Harm).
Monorepo: Create .github/instructions/{area-name}.instructions.md with applyTo patterns for areas with
different stacks. These may carry real content, since they are scoped to paths rather than duplicating the root
conventions.
If missing, generate .mcp.json at the repo root based on detected dependencies (databases, APIs, cloud platforms, browser automation, DevOps tools). Use ${VAR} for secrets. Only include servers the project actually needs — do not speculatively add servers.
If .vscode/mcp.json exists, flag it as "Could Be Better" and suggest migrating to .mcp.json.
If .github/agents/ is missing or contains no reviewers, generate a starting set of reviewer agents.
Three cover most repos — spec-conformance, test-integrity, blast-radius — but the count follows the
repo, not a rule. Generate only the ones whose question can come back no here: skip test-integrity in a
repo with no tests, skip blast-radius where nothing is hard to undo. Say what you skipped and why. Full
bodies and how to add one are in references/reviewer-agents.md.
Tell the user to spread them across models where their tool supports pinning one. Reviewer agents on a single model largely miss the same things; three on one model is one reviewer with three prompts.
blast-radius reads the ## Never merges without a human section written in Step 2, which is what connects
the boundary to something that actually runs.
If the repo already has agents covering these concerns, leave them and flag drift instead.
Generate .github/skills/shipping-a-change/SKILL.md from the matrix plus the Adding a New [Feature/Module]
registration chain:
---
name: shipping-a-change
description: What to update when you change something in this repo, and what "done" requires. Use before opening a pull request.
---
# Shipping a change
## Add a new <thing this repo adds most often>
1. <real path> — create it
2. <real path> — register it
3. <real path> — export or declare it
4. <real command> — verify
## When you change this, also change that
| Change | Also update |
|---|---|
| <real path> | <real paths> |
## Done
<the `## Done means` list from AGENTS.md, verbatim>
Use real paths and real commands. A skill full of placeholders is worse than no skill — it looks authoritative and teaches nothing.
If .github/skills/ already has one covering this, flag drift instead.
If the matrix is thin — fewer than three real cascades — skip generation and say why; a one-row skill is noise.
Do not generate a generic security skill. "Don't hardcode secrets" is already in every model's weights — a security skill that reads like a blog post is worse than none, because it dilutes the rules that actually matter here and people stop reading it. This step exists to capture what is specific to this repo and exists nowhere else.
Scan for security surface (see references/detection-tables.md § Security surface detection). If none is found, do not generate the skill — say so in the report in one line, the same way Step 4d skips a thin matrix.
If surface is found, generate .github/skills/security-review/SKILL.md, populated from what the repo actually
has. Sources, in priority order:
SECURITY.md, a checklist inside AGENTS.md, comments near the
sensitive code. It is usually already there — move it, don't invent alongside it.The skeleton to fill is in references/detection-tables.md § Security surface detection.
Every line must name something real in this repo. If a section would only restate general good practice, drop it.
If a security skill or SECURITY.md already exists, propose the move and let the user decide.
If no PR-triggered workflow exists, create .github/workflows/ci.yml with: pull_request + push triggers with paths-ignore for docs/config, a build-and-test job matching the project's actual toolchain. Use the default branch detected in Step 0b — do not hardcode main. Never modify existing workflows.
If missing, create bug report and feature request YAML forms, plus a PR template with description, changes, how-to-test, and checklist (derived from maintenance matrix). Note old-format .md templates as "Could Be Better."
If README exists but has no Contributing section: link to CONTRIBUTING.md if it exists, otherwise add a Contributing section with fork/branch/PR instructions and test commands. Never rewrite the rest of the README.
If missing, create CHANGELOG.md with Keep a Changelog format. If a pointer file, verify the target. If stale, flag with dates. Document non-standard locations in AGENTS.md.
If docs exist, record their location, framework, and conventions in AGENTS.md — not in a pointer file, which holds no content of its own. If missing, assess whether they are needed by project type. Always document docs status in AGENTS.md.
Display the report using the format in references/report-template.md. Include the skill version from frontmatter metadata.version at the bottom of the report (e.g., Assisted by ai-ready v1.0.0). Then:
This skill's first obligation is to leave the repo in a better state than it found it — never worse.
| cat to every gh/git command. Use git --no-pager.Assisted by [ai-ready](https://github.com/johnpapa/ai-ready).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub johnpapa/ai-ready --plugin ai-readyOther plugins' skills for the same job