con un clic
agent-readiness
Assess and improve a repository's readiness for AI-assisted development
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Assess and improve a repository's readiness for AI-assisted development
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Create a well-structured Jira ticket with acceptance criteria
Implement a feature based on a Jira ticket, with ticket quality and guideline validation
Show a prioritized dashboard of Jira tickets, GitHub PRs/reviews, and Google Tasks
Launch all 9 review agents in parallel for a thorough code review
| name | agent-readiness |
| description | Assess and improve a repository's readiness for AI-assisted development |
Assess the current repository's readiness for AI-assisted development, then offer to improve it step by step. $ARGUMENTS
Whenever you need to ask the user a question, always use the AskUserQuestion tool — never ask as plain text.
When a step involves a discussion with the user, tell them they can say "done" or "skip" to move on to the next step.
Before making any changes, present the following explanation to the user:
This skill helps you build a layered documentation system for AI-assisted development. Each file has a distinct role:
docs/*-guidelines.md— Detailed, domain-specific playbooks (security, testing, database, etc.) with concrete rules agents followAGENTS.md— The onboarding doc for any AI agent: cross-cutting conventions + an index pointing to the guideline filesCLAUDE.md— A thin, Claude Code-specific layer that imports AGENTS.md and adds Claude-only behavior (build commands, etc.).coderabbit.yaml— Points CodeRabbit (AI code reviewer) to the guideline files so it enforces your conventions during PR reviewsREADME.md— The front door: high-level project context for humans and agents alikeCONTRIBUTING.md— Contribution conventions for both humans and agentsdocs/ARCHITECTURE.md— Institutional knowledge about the system's design and key architectural decisionsWe'll check what's already in place, then walk through each file step by step.
Check every requirement listed below and record its state as ✅ or ❌. Present the results in a table. This is a read-only step — do not modify any files.
Check them in this order:
| # | Requirement | How to check |
|---|---|---|
| 1 | Domain-specific guideline files exist (docs/*-guidelines.md) | Glob for docs/*-guidelines.md — ✅ if at least one file exists |
| 2 | AGENTS.md exists with AI-specific guidance, repo conventions, and docs index | Check for AGENTS.md at the repo root |
| 3 | CLAUDE.md imports AGENTS.md | Check for CLAUDE.md at the repo root containing @AGENTS.md |
| 4 | CodeRabbit configured with guideline files (.coderabbit.yaml) | Check for .coderabbit.yaml at the repo root containing a knowledge_base.code_guidelines.filePatterns entry pointing to docs/*-guidelines.md |
| 5 | README.md with repo-level foundational context | Check for README.md at the repo root |
| 6 | CONTRIBUTING.md with contribution conventions for humans and agents | Check for CONTRIBUTING.md at the repo root |
| 7 | docs/ARCHITECTURE.md with institutional knowledge | Check for docs/ARCHITECTURE.md |
Present the results:
| Requirement | Status |
|----------------------------------------------------|--------|
| Domain-specific guideline files (docs/) | ❌ |
| AGENTS.md (agent onboarding + docs index) | ❌ |
| CLAUDE.md (Claude-specific config + imports) | ❌ |
| CodeRabbit configured to enforce guidelines | ❌ |
| README.md (project overview + getting started) | ✅ |
| CONTRIBUTING.md (contribution workflow) | ❌ |
| docs/ARCHITECTURE.md (design decisions + context) | ❌ |
Then proceed to step 2.
Present the following explanation to the user:
Guideline files (
docs/*-guidelines.md) are the deepest layer of the documentation system. They contain detailed, domain-specific rules (security, testing, database, etc.) — concrete conventions from your repo, not generic knowledge. AGENTS.md will point to these files so any AI agent can find them.
Ask the user if they want to generate or update guideline files. If they decline, skip to the next step.
If they accept, follow this process:
First, check if AGENTS.md exists and contains a docs index section. If it does, extract the domains already listed there — these were identified in a previous run and should be included in the suggested list.
Then, start from this curated list of domains:
Merge the curated list with any previously identified domains from AGENTS.md (including custom domains the user may have added in a prior run).
Use an Explore agent with the Sonnet model to scan the repository and determine which domains from the merged list are relevant. A domain is relevant if the repo contains code, configuration, or patterns that fall within that domain (e.g., skip database if there is no database usage, skip api-contracts if there are no REST APIs).
Present the filtered list to the user and ask if they want to add any custom domains or remove any from the list. Wait for confirmation before proceeding.
For each confirmed domain, launch an agent in the background using the Opus model. Each agent must:
docs/<domain>-guidelines.md already exists, read it first and incorporate its content — update with new findings while preserving still-accurate contentEach guideline must not exceed 200 lines. To stay within this limit, agents must:
The agent decides the structure of the guideline content based on what it finds. The content should be actionable guidance that a specialized implementation or review agent can follow when working in this repo.
Once all exploration agents have completed, ensure the docs/ directory exists and write each guideline to docs/<domain>-guidelines.md. Then proceed to verification.
For each domain, launch a verification agent in the background using the Sonnet model. Each verification agent must read docs/<domain>-guidelines.md for its assigned domain and all other docs/*-guidelines.md files for cross-document consistency checks. Each verification agent must:
The verification agent must NOT add new content — its only job is to confirm or correct what the exploration agent produced.
Once all verification agents have completed, overwrite each docs/<domain>-guidelines.md with the corrected content.
Present the following explanation to the user:
AGENTS.md is the onboarding doc for any AI agent — Claude, Cursor, CodeRabbit, or any other tool. It sits between the high-level README and the deep domain playbooks in
docs/: it captures cross-cutting conventions (naming, code style, architecture) and includes an index pointing to the detailed guideline files. Unlike CLAUDE.md, it's agent-agnostic — any tool can use it.
Ask the user if they want to generate or update AGENTS.md. If they decline, skip to the next step.
If they accept, follow this process:
Detect all existing docs/*-guidelines.md files. Present the list to the user and ask which ones to include or update in the AGENTS.md docs index. Allow the user to discuss this — they can add, remove, or reorder entries. When they say "done" or "skip", proceed.
Launch an agent in the background using the Opus model. The agent must:
docs/*-guidelines.md files to understand what's already covered in detailThe proposed content should include:
The content must stay focused on what isn't already covered elsewhere. The docs/*-guidelines.md files have the domain depth — AGENTS.md should not duplicate it.
Once the agent has completed, present the proposed AGENTS.md content to the user for review. Let them adjust, add, or remove content. When they say "done" or "skip", write the agreed content to AGENTS.md.
Present the following explanation to the user:
CLAUDE.md is the Claude Code-specific layer on top of AGENTS.md. It uses
@AGENTS.mdto import the agent guidance automatically, then adds anything that only applies to Claude Code — like build/test commands to run or behavioral preferences. It's intentionally thin: most guidance lives in AGENTS.md where all agents can use it.
Ask the user if they want to generate or update CLAUDE.md. If they decline, skip to the next step.
If they accept, follow this process:
CLAUDE.md must NOT duplicate or restate anything already in AGENTS.md or docs/*-guidelines.md. Since @AGENTS.md imports all that guidance, repeating it in CLAUDE.md is redundant and creates maintenance burden. The only content that belongs in CLAUDE.md is what is exclusive to Claude Code and irrelevant to other agents.
Belongs in CLAUDE.md (Claude Code-exclusive):
@AGENTS.md importmvn verify, npm test)Does NOT belong in CLAUDE.md (put in AGENTS.md instead):
docs/*-guidelines.md)@AGENTS.md. If not, tell the user this import is needed for Claude Code to load the agent guidance, and offer to add itdocs/*-guidelines.md filesdocs/*-guidelines.md filesdocs/*-guidelines.md filesdocs/*-guidelines.md files to know what is already covered — none of this content should appear in CLAUDE.md@AGENTS.md import (so Claude loads the agent guidance)Present the following explanation to the user:
CodeRabbit is an AI-powered code review tool. By pointing it to the guideline files in
docs/, it can enforce your repo-specific conventions automatically during pull request reviews — the same rules your implementation agents follow.
This step creates or updates a .coderabbit.yaml that points CodeRabbit to the docs/*-guidelines.md files.
Ask the user if they want to configure CodeRabbit. If they decline, skip to step 6.
If they accept:
.coderabbit.yaml does not existCreate a new file with this content:
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
# See https://docs.coderabbit.ai/reference/configuration for all fields and default values
knowledge_base:
code_guidelines:
filePatterns:
- "docs/*-guidelines.md"
Do not include any other fields or sections — only what differs from CodeRabbit defaults.
.coderabbit.yaml already existsknowledge_base.code_guidelines.filePatterns entry into the existing configurationknowledge_base.code_guidelines.filePatterns entry, merge the patterns (avoid duplicates)Present the following explanation to the user:
README.md is the front door of the repository — high-level project context for both humans and AI agents. While the guideline files and AGENTS.md give agents detailed rules, README.md helps them understand what the project is, how it's structured, and how to build and run it before diving into the code.
Ask the user if they want to generate or update README.md. If they decline, skip to the next step.
If they accept, follow this process:
If README.md exists, read it and assess whether it covers these areas:
Present the assessment to the user, highlighting what's missing or could be improved.
Launch an agent in the background using the Opus model. The agent must:
docs/*-guidelines.md files to understand what's already documented elsewhere and avoid duplicating itPresent the proposed content to the user for review. Let them adjust, add, or remove content. When they say "done" or "skip", write the agreed content to README.md.
Re-check all requirements from step 1. Present the before/after comparison:
| Requirement | Before | After |
|----------------------------------------------------|--------|-------|
| Domain-specific guideline files (docs/) | ❌ | ✅ |
| AGENTS.md (agent onboarding + docs index) | ❌ | ✅ |
| CLAUDE.md (Claude-specific config + imports) | ❌ | ✅ |
| CodeRabbit configured to enforce guidelines | ❌ | ✅ |
| README.md (project overview + getting started) | ✅ | ✅ |
| CONTRIBUTING.md (contribution workflow) | ❌ | ❌ |
| docs/ARCHITECTURE.md (design decisions + context) | ❌ | ❌ |
Ask the user if they want to create a pull request with all the changes made during this session. If they decline, stop here.
If they want a PR:
improve-agent-readinessgh pr createThis PR was generated by the /agent-readiness Claude skill from https://github.com/gwenneg/claude-engineering-toolkit.