A methodology for making an existing codebase safe and clear enough to hand work to AI agents — then resolving the backlog with autonomous agents on the tractable subset and human pairing on the rest.
Status: v0.1 — nine skills across two plugins; pending live validation. The manifests, methodology docs, case study, guardrails, and all skills are in place. The whole pipeline has not yet been run end-to-end on a second codebase — that's the next milestone, and the methodology stays v1 (calibrated to one codebase) until it is. See Roadmap.
This repository is a Claude Code plugin marketplace shipping two plugins. Installing them gives you a set of skills that walk a project through the full pipeline:
- Bootstrap the repository for agent work — branch protection, CI, issue labels, issue templates.
- Install the methodology docs into the project's own tree.
- Audit the codebase area by area, filing a labeled, agent-classified backlog of issues.
- Resolve those issues — autonomously where the audit proved the work tractable, in pair-mode where judgment is load-bearing.
Wrapping that pipeline: a companion guardrails plugin installs the safety
floor (destructive actions denied, production gated, secrets protected),
setup wires the whole thing up in one idempotent command, and report
computes how well the loop is actually working.
It was extracted from a real audit-to-autonomy run on a deployed bilingual
content-and-booking site, where the methodology took the project from a
stalled, vibe-coded state to 138 issues filed and closed, 165 PRs merged,
zero breakages of main. That run is documented as the case study.
Most attempts to put AI agents on an existing codebase pick one of two losing patterns: pair with the agent and watch every keystroke (trust, but no autonomy), or point it at the repo and hope (autonomy, but no trust). The third path — the one this methodology encodes — is to audit first to find the work that is genuinely tractable for autonomy, then deploy autonomy only there, and to write briefs tight enough that an agent's only job is to execute a verified specification.
The surprising lesson from the pilot was that the biggest win wasn't autonomy at all — it was clarity. A well-specified issue backlog cured the stop-start "blank page" problem that quietly kills side projects, and made every session productive from minute one. The full, honest account is in the retrospective.
# Add this repository as a marketplace
/plugin marketplace add wanderindev/agent-ready
# Install the methodology plugin
/plugin install agent-ready@agent-ready
# Recommended: the safety baseline the methodology assumes is in place
/plugin install agent-ready-guardrails@agent-readySkills then appear namespaced as /agent-ready:<skill>.
Then run /agent-ready:setup — one idempotent command that does the rest:
preflight, install the guardrails policy on this machine, ensure your target
repo is bootstrapped and documented, and health-check the result. Re-run it
anytime to repair a half-configured setup. The sections below explain the
pieces it wires together.
The methodology's skills assume a deny/ask/allow floor already exists in the
repos you point agents at — no force-push, no push to main, no pr merge, no
touching secrets. agent-ready-guardrails is
where that floor comes from: a codebase-agnostic policy plus a PreToolUse guard
that blocks the catastrophic subset the moment the plugin is enabled. Install it
once per machine, then apply the policy:
plugins/agent-ready-guardrails/scripts/install-policy.sh # idempotent; backs up firstIt ships as a separate plugin because safety should not depend on running the full audit — you want the floor on every repo, audited or not. This mirrors a lesson from taking the methodology to a second codebase, where the guardrails were the piece most easily left behind. See the plugin's README for the policy design and how to extend it for your stack.
| Skill | Phase | What it does |
|---|---|---|
setup |
Setup | One-run, idempotent onboarding: preflight, install the guardrails policy on this machine, ensure the repo is bootstrapped + documented (delegates to the two below), then health-check. Re-run to repair. |
repo-bootstrap |
Setup | Idempotently configures git branch protection, a CI workflow, issue labels, and issue templates on the target repo (via gh/git). |
methodology-install |
Setup | Copies the methodology docs into the target's own tree, walks the worked-example placeholders for domain-appropriate replacements, and resets the cross-session register. |
area-audit |
Audit | Scaffolds the 10-slot area-audit prompt for one area, gating on the per-area fills; enforces the closing gates when a session reports back. |
plan-epic |
Resolve | Clusters the open backlog high→low by severity into a workable epic — proposes 2–3 candidates, creates the chosen one in GitHub. |
fix-epic |
Resolve | Executes an epic in pair-mode — works the whole cluster on one coherent branch/PR, in dependency order, closing the issues and the epic. |
fix-issue |
Resolve | Drives one or more GitHub issues to agent-written PRs via a brief-writing + implementation agent pipeline, with non-skippable verification gates and an independent fresh-session diff review that confers readiness (autonomous). |
update-pr |
Resolve | Brings an open PR up to date with main and resolves conflicts in an isolated worktree. |
report |
Measure | Prints the self-computed methodology scorecard — backlog/clarity, autonomous quality (outcomes + fresh-review pass rate), safety, throughput. Read-only; joins a local git-untracked event log the loop emits with live gh/git queries. |
The two Resolve paths are deliberate complements: fix-issue is autonomous
dispatch for the agent-tractable subset; plan-epic + fix-epic is the
clustered pair-mode path the pilot's retrospective found more productive and
lower-friction for a solo reviewer.
setup ─ one idempotent command: guardrails floor + bootstrap + docs + health check
│
▼
repo-bootstrap ──► methodology-install ──► area-audit (×N) ──┬─► plan-epic ─► fix-epic (pair-mode clusters)
(infra) (docs) (backlog) └─► fix-issue ─► fresh review (autonomous subset)
│
▼
report ─ self-computed scorecard of the loop
Plugins are read-only once installed; they cannot push GitHub state or write
files into your project on their own. So the Setup-phase skills do that work
explicitly, running gh/git/cp against your target repo — setup
orchestrates repo-bootstrap (infra) and methodology-install (docs), and
installs the guardrails policy into your Claude settings. The bundled templates
they copy out live under plugins/agent-ready/assets/ and are referenced at
runtime via ${CLAUDE_PLUGIN_ROOT}.
agent-ready/
├── .claude-plugin/marketplace.json # makes this repo an installable marketplace (two plugins)
├── plugins/agent-ready/
│ ├── .claude-plugin/plugin.json
│ ├── skills/ # the nine skills above
│ └── assets/ # templates the setup skills copy into a target
│ ├── github/ # labels.json + ISSUE_TEMPLATE/
│ ├── ci/ # stack-specific CI workflow stubs
│ └── methodology/ # the portable methodology docs
├── plugins/agent-ready-guardrails/ # the safety baseline (deny/ask/allow + PreToolUse guard)
│ ├── .claude-plugin/plugin.json
│ ├── policy/permissions.json # the canonical deny/ask/allow policy
│ ├── hooks/ # guard.sh + hooks.json (catastrophic-subset backstop)
│ └── scripts/install-policy.sh # idempotent policy merge into a settings file
├── case-study/ # the pilot retrospective + worked corpus
└── LICENSE # MIT
- Scaffold: marketplace + plugin manifests, folder skeleton, license
- Specify the
plan-epic+fix-epicpair-mode cluster skills (scaffolds) - Lift & sanitize the methodology docs, the
area-audit/fix-issue/update-prskills, issue templates, and the case study from the pilot - Build
repo-bootstrap(idempotent labels + templates + CI stub + branch protection) - Build
methodology-install(copy docs, rewrite dangling cross-links, init prompts dir + empty register) - Build
plan-epicandfix-epic(severity-ranked clustering + pair-mode epic execution) - Add the
agent-ready-guardrailsplugin (deny/ask/allow baseline + PreToolUse guard + installer) - Add fresh-session review to
fix-issue(independent diff review confers PR readiness) - Add the
reportskill (self-computing methodology scorecard from a local event log + livegh/git) - Add the
setupskill (idempotent onboarding: preflight + guardrails install + bootstrap/docs + health check) - Validate the whole pipeline on a second codebase
The methodology is v1, calibrated to one codebase, one operator, one model family. It is promising, not proven across codebases — the next repositories are the test plan, not the confirmation. See the case study's caveats.
MIT © 2026 Javier Feliu