What it is for
Inventories a codebase and rates readiness by area. It reports size, layout, capabilities, rules by theme, where logic is concentrated, and where the same value is repeated across layers or languages. Use it when- You need to size up a legacy system before choosing a strategy.
- You are starting phase one of a code modernization.
Prerequisites
- A repository that CoreStory v3 has indexed. The skill checks this first with
statusandcorpus_info, and stops if the snapshot is missing or the last ingest failed. Setup is on the CoreStory v3 playbooks overview. - The
corestory-localplugin or the MCP connection, so the agent can reach the CoreStory v3 tools. - For COBOL, call-edge analysis (hubs and call chains) is available. Java and Python have no call sites in this release, so coupling there comes from rules and source reading.
How to invoke it
- Automatic. With the Claude Code plugin, a session hook points the agent to the matching skill before it edits or answers. The agent picks
codebase-assessmentwhen the request fits. - By name. Ask for it directly (
/codebase-assessmentin Claude Code; the plugin may show it ascorestory-local:codebase-assessment), or say “use the codebase-assessment skill” in other agents. - From a rules file. Without the plugin hook, add the one-line fallback from the overview to
CLAUDE.mdorAGENTS.md. - Inside a modernization it is phase one and writes
modernization/01-assessment.md; see the phase-file convention.
What it produces
ASSESSMENT.mdin the repository root (or the file you name) with: summary, inventory, capabilities, rules by theme withpath:start-end, hubs and coupling, risks with severity and evidence, readiness by area (low, medium or high, with reasons), suggested order of work, andNot verified.
How it works
- Preflight with
statusandcorpus_info; record the counts and languages. - Inventory the layout with
list_files(always with a prefix, paging withnext_cursorunchanged). Reach capabilities and features throughconnectionsfrom a rule up to the feature manifest, then open each capability withentity. - Search rules by theme with
search(kind:"sao:Rule"); open important ones withentityandread_file. - Check concentration with
rules_foron the largest files and coupling withconnectionsand call edges where they exist. - Scan what CoreStory cannot see (dependency versions, secrets, tests, CI) with Grep, labeled as source-only, and write the report.
Limits
- Rules carry no category, so the agent assigns the themes. Readiness ratings are judgments with reasons, not exact scores.
- Runtime behavior, performance and test coverage are unassessed.
- CoreStory reads and indexes code. It does not run or test it. Any test results in the output are the agent’s own, from commands it ran.
- Results describe the ingested snapshot, which may differ from your working tree if files changed since.
- Hits from
searchare leads, not proof. The skill reads the cited lines before it relies on a rule, and lists what it could not check underNot verified. - Compared with the hosted playbook: the hosted playbook is Codebase Assessment.
Skill source
The full recipe is the skill file itself:codebase-assessment/SKILL.md on GitHub.