What it is for
Two skills sit behind this page.using-corestory is the short recipe for answering a question about a codebase with evidence. corestory-reference is the setup and tool reference: how to install, what each tool does, and why a call can fail or look empty.
Use it when
- You ask how something works, where a rule or value comes from, or what a file enforces.
- You want to trace or explain code in a repository CoreStory v3 has indexed.
- A CoreStory call failed or returned something that looks empty, and you want to know why.
Prerequisites
- A repository that CoreStory v3 has indexed. See Install CoreStory v3.
- The
corestory-localplugin or an MCP connection, so the agent can reach the tools.
How to invoke it
- Automatic. With the Claude Code plugin, a session hook points the agent to the matching skill before it answers.
- By name. Ask for it (
/using-corestoryor/corestory-referencein Claude Code; the plugin may show them ascorestory-local:using-corestory). - From a rules file. Without the plugin hook, add the one-line fallback to
CLAUDE.mdorAGENTS.md.
What it produces
An answer in the conversation, withpath:start-end citations for lines the agent read. There is no notes file; this skill is for questions, not deliverables.
How it works
- Preflight:
status, thencorpus_info. If the snapshot is not ready, the agent relaysstatus.next_stepand asks whether to continue from source alone. It never runsinitoringestwithout your explicit OK, becauseingestspends your model-provider money. - For rules about a concept,
searchwithkind:"sao:Rule". For code,kind:"plot:Chunk". - For rules about a file or lines,
rules_for, followingnext_callto the end. - For detail,
entitywithinclude:["description","evidence"]. A plainentitycall returns almost nothing for a rule. - Verify:
read_fileon the cited lines before stating the rule. - For structure,
connectionsfor edges andlist_filesfor layout.
The tools
Limits
searchhas no relevance floor and never returns an empty result. A nonsense query still gets hits, so treat hits as leads. An empty or exhausted result does not prove no rule exists.- Keep calls small. Use default limits, follow
next_callinstead of raisinglimit, and read line ranges, not whole files. Largelimitvalues and a whole-fileread_filereturn very large responses. rules_foralso returns rules that only support the lines asked about. Rules carry no category and are not linked to features.- If
searchsays it “could not answer”, the embedding key is missing.rules_for,entity,connectionsandread_filestill work. - A copied or renamed repository folder reads as uninitialized; run
statusafter moving one. A failed or partial ingest can leave a store that looks usable, so checkstatus.latest_ingest. - CoreStory reads and indexes code. It does not run or test it, and it does not call an answer finished.
- Results describe the ingested snapshot, which may differ from your working tree.
- Compared with the hosted playbooks: there is no project, PRD, tech spec, or conversation thread here. Everything comes from the local graph through the tools above.