What it is for
A planning skill. It compares a requested feature with the current code and lists gaps by category with the rules that stay in force, then orders the work by dependency. It does not edit code. Use it when- You need to know the surface area of a change before writing code.
- You want a developer-ready handoff of what exists and what must be built.
- You are ready to build (use Feature Implementation).
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. - A feature description with inputs, outputs and acceptance behavior. The skill asks for missing details.
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
feature-gap-analysiswhen the request fits. - By name. Ask for it directly (
/feature-gap-analysisin Claude Code; the plugin may show it ascorestory-local:feature-gap-analysis), or say “use the feature-gap-analysis skill” in other agents. - From a rules file. Without the plugin hook, add the one-line fallback from the overview to
CLAUDE.mdorAGENTS.md.
What it produces
GAP-ANALYSIS.mdin the repository root: the feature, what exists, gaps by category with ids (data model, business logic, UI, output, integration, constraints), a dependency-ordered plan, andNot verified.
How it works
- Preflight with
statusandcorpus_info; write the feature at the top of the file. - Find what exists:
searchfor rules and code,entitywith evidence,read_file, andconnectionsfor callers and callees. Existing features are reached throughconnectionsup to the feature manifest, never throughentityon the manifest. - For each file to be touched, call
rules_forand follownext_call; check each rule withentityandread_file. - List gaps by category: current state with
path:start-end, required change, rules that stay in force, dependencies. A rule enforced in more than one layer is a gap in every layer. - Write the plan: steps in dependency order, the pattern to copy, tests to add, what could be deferred, and the highest-risk change.
Limits
- Rules are not linked to features, so rules are matched to features by file path.
- Call edges are available only where the language has structure for them (COBOL in this release); the skill says when categories had few or no hits.
- Every behavior claim is from reading.
- 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 Feature Gap Analysis, which can also compare two systems’ capabilities. This v3 page covers one feature against one codebase.
Skill source
The full recipe is the skill file itself:feature-gap-analysis/SKILL.md on GitHub.