/codebase-ai-readiness:assess-readinessfrom codebase-ai-readiness
Scans a codebase to produce an autonomy maturity map with a numeric readiness score, category breakdown, blockers, and prioritized roadmap. Useful for evaluating how well a project supports AI-assisted development.
Ships in codebase-ai-readiness. 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.
Produce an autonomy maturity map for the target codebase. The output is a readiness-report.md file containing a numeric score, category breakdown, workflow artifact summary, collaboration effectiveness assessment (including an alignment note when practices and score diverge), recommended autonomy level, blockers, and a prioritized roadmap.
Use Glob and Grep to understand the project:
package.json, Cargo.toml, go.mod, pyproject.toml, pom.xml, *.csproj).github/workflows/, .gitlab-ci.yml, Jenkinsfile, .circleci/).pre-commit-config.yaml, .husky/, lefthook.yml, .git/hooks/)test/, tests/, __tests__/, *_test.go, *_spec.rb)README.md, docs/, CHANGELOG.md, ADR/, adr/)tsconfig.json, mypy.ini, pyrightconfig.json, .strict)Dockerfile, docker-compose.yml, .devcontainer/, flake.nix, mise.toml)cdk.json, cdktf.json, terraform/, *.tf, Pulumi.yaml, template.yaml (SAM), *.bicep, cloudformation/)*.proto, openapi.*, *.schema.json, swagger.*)AGENTS.md, CLAUDE.md, .cursorrules, .cursor/rules/)docs/plans/, docs/exec-plans/, PLANS.md)docs/requirements/, docs/specs/, requirements/), design (docs/design/, design/), review learnings (docs/reviews/, docs/learnings/) — load references/workflow-artifacts.md.env.example, config.schema.json)CODEOWNERS, OWNERS)eslint-plugin-boundaries in config, deptry, madge, ArchUnit, structural tests)plop, hygen, cookiecutter, .template files).claude/skills/, agent skill directories)hooks.json, post-tool-use automation)wc -l, excluding vendored/generated/build dirs), not by eyeballing a few. Report the share of files under 300 lines (the "good" target in category 2.15) and flag outliers over 500 lines. The two thresholds are distinct: 300 is the per-file comprehension target; 500 marks a file large enough to warrant splitting.Evaluate 15 categories. Load references/category-definitions.md and references/category-definitions-agent.md for detailed signals. Also load references/agent-contributor-model.md for the framing principles.
2.1 Structure and modularity
2.2 Documentation
2.3 Testable boundaries
2.4 CI reliability
flaky labels)--onlyChanged, Launchable) — keeps feedback fast as agent-generated test volume grows2.5 Typing strength
strict: true in tsconfig, --strict in mypy)any, type: ignore, as unknown)2.6 Deterministic environment and deployment
.env.example, .env.template)2.7 Architecture decisions
2.8 Machine-readable intent
Load references/spec-first-artifacts.md for the spec-first checklist, scoring bands, and cap rule.
REQ-*.md, spec/requirements/), Gherkin scenario per active requirement, pure core separated from IO/adapters, determinism ports where simulation appliesgit log (closing keywords like Closes #123, bare #123, or tracker keys). If git history is unavailable, mark the PR-link signal "not inspectable" rather than scoring it absent.Apply the cap rule from spec-first-artifacts when scoring: strong schemas/property tests without requirement files or executable criteria → cap 2.8 at 60.
2.9 Progressive context disclosure
.feature files), not just file locations2.10 Hidden state and magic
.env.example, config schema)2.11 Repository-scale reasoning
2.12 Failure mode legibility
2.13 Feedforward surfaces
Load references/feedforward-surfaces.md for detailed scoring signals.
--no-verify; branch protection enforces checks server-side)2.14 Compound engineering readiness
Load references/compound-engineering.md and references/workflow-artifacts.md for detailed scoring signals.
2.15 Context engineering friendliness
Load references/context-engineering.md for detailed scoring signals.
Load references/scoring-rubric.md for scoring criteria.
Assign each category a score from 0-100:
Use the category weights from the scoring rubric to compute a weighted average (0-100).
Load references/autonomy-levels.md and map the overall score to L0-L5.
If category 2.8 Machine-readable intent is below 51 or spec-first artifacts are absent (no
requirement files, no executable acceptance criteria per references/spec-first-artifacts.md), apply
the autonomy cap rule: recommended level must not exceed L3 regardless of weighted score.
Note spec-first gaps in blockers.
For the current autonomy level, identify what specifically prevents moving to the next level. Be concrete: name missing files, missing configurations, weak categories.
Load references/collaboration-metrics.md. Estimate or mark "not measured" for first-pass
acceptance, iteration cycles per task, and post-merge rework. Note infrastructure enablers
(PR templates, labels, review rubrics, learning docs). Produce 2-4 recommendations to start
or improve tracking aligned with the recommended autonomy level. Apply the Alignment note
from references/autonomy-levels.md when collaboration signals and score diverge.
Produce a prioritized list of 5-10 recommended actions. For each action:
When the recommended autonomy level is L2, load
../generate-roadmap/references/l2-to-l3-hinge.md and prioritize paired codebase +
repo-enabler items in the roadmap table.
If Step 7 flagged practices ahead of codebase, weight actions toward verification, types,
and CI. If codebase ahead of practices, weight toward AGENTS.md, plans dir, and
collaboration tracking from the hinge repo-enabler table.
Write readiness-report.md in the codebase root. Load references/report-template.md for the
required sections and tables. Write the Alignment note under Collaboration effectiveness
after completing Step 7.
references/agent-contributor-model.md (opens in a new tab)references/autonomy-levels.md (opens in a new tab)references/category-definitions-agent.md (opens in a new tab)references/category-definitions.md (opens in a new tab)references/collaboration-metrics.md (opens in a new tab)references/compound-engineering.md (opens in a new tab)references/context-engineering.md (opens in a new tab)references/feedforward-surfaces.md (opens in a new tab)references/report-template.md (opens in a new tab)references/scoring-rubric.md (opens in a new tab)references/spec-first-artifacts.md (opens in a new tab)references/workflow-artifacts.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub krokoko/cairn --plugin codebase-ai-readiness2 skills in this plugin
Other plugins' skills for the same job