/lore:lore-capturefrom lore
Records non-obvious knowledge (business rules, gotchas, design decisions) into docs/lore/ before session ends. Use when code, types, tests, or git history can't reveal the information.
Ships in lore. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Read ${CLAUDE_PLUGIN_ROOT}/reference/lore-spec.md first — especially "What lore is / isn't" and the entry-meta format.
A SessionStart hook may nudge you toward this skill when you're working in a repo that has docs/lore/ and the user starts explaining a product rule, a behavior, or a gotcha. The hook only prompts you — whether the knowledge is worth recording, and whether to invoke the skill, is still your call. You can also invoke it directly anytime you learn something worth keeping.
When you learn something the current code can't tell you on its own: a pitfall you hit and its cause, a behavior confirmed intentional, an API quirk or contract, or the why behind a decision.
<area>/, or create a new one from the templates with its own pitfalls.md and business-rules.md. When the area is marked core in the README, lean toward recording on a borderline call — core knowledge pays the highest interest.pitfalls.md; a rule or the why behind something goes in business-rules.md; a topic deep enough to stand alone gets its own <topic>.md. Any brand-new file starts with lore-spec's file frontmatter (area: + kind:, e.g. kind: topic) so it stays greppable like the rest of the base.## heading followed by the one-line meta directly under it: code: (the file path, with an optional → symbol), updated: (today's date), and status: active. When the entry hangs off a glossary term, add term: with the term's exact heading to the meta line. Then write the body — what it is, why, and what to do; include a concrete example when you can, examples are what pin the boundary. When the rule has an observable "done right" state, also say what that looks like — a success criterion makes the entry checkable, not just readable.docs/lore/README.md.Never record what the code already expresses — its structure, what a function does, or a fix that is already visible in git. That noise drowns out the real lore.
For the updated: value, follow lore-spec's date rule: use a real, known current date or ask the user — never invent or backdate one.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mukiwu/muki-ai-plugins --plugin lore8 skills in this plugin
/lore-checkUse when asked whether the project's lore is healthy or still helping, or when the 30-day heartbeat suggests a re-check — audits coverage, link health, freshness, entry quality, adoption, and language health, read-only, then hands fixes off to lore-maintain, lore-capture, and lore-ul./lore-consultUse when about to plan a feature, fix a bug, or touch unfamiliar code in a repo that has a docs/lore/ folder, before writing any implementation — surfaces the business rules, pitfalls, glossary terms, and API map relevant to the task, and flags entries that look stale./lore-evalUse when asked whether lore actually catches the mistakes it records, after rewording entries or changing lore-guard, or when lore-check suggests measuring — replays past violations against a fresh lore-guard pass, scores which entries get caught, and hands the misses to lore-maintain. Read-only toward lore./lore-guardUse when about to commit, open a PR, or claim a change is done in a repo that has docs/lore/ — maps the changed files to lore entries through their code: links and reports any business rule, pitfall, or glossary naming rule the change violates. Read-only for both code and lore./lore-initUse when a project has no docs/lore/ yet and implicit knowledge starts coming up in conversation, or when the user asks to initialize, bootstrap, or set up project lore — scaffolds the docs/lore/ knowledge base./lore-maintainUse when lore looks stale or noisy, when a lore-check report flags problems, or on a periodic sweep — finds stale, duplicate, or wrong entries, checks that code links and the README index still hold, and prunes obsolete content; marking over deleting, with confirmation for destructive actions.Other plugins' skills for the same job