From engram
Use when mapping or investigating a repository/codebase to cache agent-earned understanding as citation-backed discoveries via engram's store_discovery tool. Trigger on "map this repo", "help me understand this codebase", onboarding to unfamiliar third-party code, or before substantial work in an unmapped area. Pairs with search_discovery for on-demand recall.
How this skill is triggered — by the user, by Claude, or both
Slash command
/engram:discoveringThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
A **discovery** caches understanding you earned by reading code — the expensive
A discovery caches understanding you earned by reading code — the expensive re-derivation you would otherwise repeat next session. Its value is the work it saves, so the bar is simple: store a discovery only when re-deriving it would cost meaningful tokens. Discoveries are separate from the curated four memory types (decision / preference / convention / gotcha) and never load at session start — they are pulled on demand.
Do not capture: anything trivially re-read in one file, transient state, secrets, or restating the curated four. Capture is explicit — never auto-extract.
Every discovery carries >= 1 citation — that is what makes it trustworthy and ageable. For each citation capture:
kind: file | commit | url | reporef: path / repo URL / doc URLlocator: line range for filespin: the aging anchor captured now — content-hash (fact files), commit SHA
(map files), @rev (repo), or fetched-at (url)excerpt: the cached substance — keep the few lines worth not re-fetching.
Soft cap ~50 lines; exceed only with explicit reason.search_discovery for the area first (a
natural-language description — it is semantic). If a near-duplicate exists,
call store_discovery with that record's id to replace it rather than
adding a duplicate.store_discovery(content, kind, citations[], scope="discovery:repo:<repo>", summary?, tags?, id?)
— omit id to create; pass the near-duplicate's id (from step 1) to replace
it in place rather than adding a new record.When entering mapped territory later, issue a targeted search_discovery scoped
to discovery:repo:<repo>. Pass cross_spine=true only when you deliberately
want to span every discovery scope. The result carries each citation's pin and
the record's created_at — render trust from those (age, pinned commit, whether
the cited code has since moved); the server stores signals, never a verdict.
Provides CDSS development patterns for drug interaction checking, dose validation, clinical scoring (NEWS2, qSOFA), and alert classification integrated into EMR workflows.
npx claudepluginhub seanb4t/engram --plugin engram