What it is for
Builds a feature, endpoint, field or behavior change in an existing codebase. A ticket names what to build, not every rule the result must respect, so the skill looks for rules in other layers before it edits anything. Use it when- You are adding or changing behavior and want the rules a ticket never mentions to be found first.
- You are working from a feature ticket or change request.
- You only need a plan (use Feature Gap Analysis).
- You want a written specification first (use Spec-Driven Development).
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
implement-featurewhen the request fits. - By name. Ask for it directly (
/implement-featurein Claude Code; the plugin may show it ascorestory-local:implement-feature), or say “use the implement-feature 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
FEATURE-NOTES.mdin the repository root: outcome and acceptance criteria, rules honored and constraints from other layers (id,path:start-end, value), assumptions, changed files, commands run with results, andNot verified.- New tests and the implementation. No commit, push or ticket unless you ask.
How it works
- Preflight with
statusandcorpus_info. - Write the outcome and acceptance criteria; ask about missing ones, or record the narrowest reading as an assumption.
- Run the cross-layer sweep:
searchwithkind:"sao:Rule"in two phrasings per noun or quantity,entitywith evidence on each relevant hit, thenread_file. If the feature reports a decision other code makes, find that code withsearchandconnectionsand reuse it. - Find the closest existing feature and write the implementation boundary: files, pattern to copy, rules to keep, tests to write.
- Write tests first, and run them to see them fail for the missing behavior.
- Before each edit,
rules_foron the exact lines, thenentityandread_file; implement, run tests, close out the notes.
Limits
- A rule the feature would violate stays in force. The skill honors the stricter enforced value or stops and names the conflict; it does not choose silently.
- The skill does not call the feature finished. It reports what was tested and what was not.
- 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 runs a longer phased workflow against a hosted project. This one is a single notes-file recipe over the local graph.
Skill source
The full recipe is the skill file itself:implement-feature/SKILL.md on GitHub.