What it is for
Takes a defect, regression or wrong result and works it from symptom to fix. Before any edit it looks for the same value or rule enforced in other layers, because the file that shows the symptom is often not the one that decides the outcome. Use it when- You have a bug report, a failing behavior, or a bug ticket in an indexed repository.
- The fix may touch a value that is also checked in a service, schema, config file or UI validator.
- The work is a new feature (use Feature Implementation).
- You only want to understand how something works (use Using CoreStory v3).
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. - Tests that can run in this repository. The skill writes a failing test first; if tests cannot run, it says so in the notes file instead of claiming a pass.
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
bug-resolverwhen the request fits. - By name. Ask for it directly (
/bug-resolverin Claude Code; the plugin may show it ascorestory-local:bug-resolver), or say “use the bug-resolver 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
BUG-NOTES.mdin the repository root (or the file you name): symptom, root cause withpath:start-end, rules checked before each edit, constraints found in other layers, sibling sites changed or left alone, commands run, and aNot verifiedsection.- A regression test and the code fix. The skill does not commit, push or open tickets unless you ask.
How it works
- Preflight with
statusandcorpus_info; stop and relaystatus.next_stepif the snapshot is not ready. - Write the symptom, expected behavior and reproduction at the top of the notes file.
- Investigate with
search(rules and code),entityfor the statement and evidence,connectionsfor callers and callees, andread_filefor the lines. - Sweep other layers: search for each business noun or quantity in two phrasings, open every hit outside the files to be edited, and record each as a constraint from another layer. On a conflict, keep the stricter enforced value or stop and name the conflict.
- Write a regression test that fails first, then call
rules_foron the exact lines before every edit. - Make the smallest fix, run the tests, and finish the notes.
Limits
- A rule found in the graph is a lead until the evidence lines have been read back against source.
- An empty
rules_forpage does not mean no rule applies. - 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 works from a hosted project and its generated documents. This one works from the local rule graph, and its cross-layer sweep is part of the required steps.
Skill source
The full recipe is the skill file itself:bug-resolver/SKILL.md on GitHub.