/lore:lore-initfrom lore
Scaffolds the docs/lore/ knowledge base for projects lacking documentation. Detects existing lore, infers project type, proposes starter areas, and creates template files.
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 before doing anything — it defines the structure, frontmatter, and entry meta you will create. The seed files you copy live in ${CLAUDE_PLUGIN_ROOT}/reference/templates/.
docs/lore/ yet and you want to bootstrap one.If docs/lore/ already exists, do NOT overwrite it. Switch to augment-mode: add only the missing core files and report what you added.
docs/lore/ already exists. If it does, switch to augment-mode — add only missing core files (README.md, an area's pitfalls.md / business-rules.md) and never clobber anything that is already there.api-map.md is worth seeding (it pays off for API-heavy projects). When you are unsure, ask the user instead of guessing. If you still can't tell and the user doesn't answer, fall back to the safe minimum: scaffold only the core files and skip api-map.md and architecture/.payments/, auth/). Confirm the list with the user before creating anything. Never create areas without explicit confirmation — if the user doesn't respond, propose them and stop there, don't create them. While confirming, also ask which area (if any) is the project's core — the part that makes it worth building — and mark it in the Areas table's Core column only on explicit confirmation (see lore-spec's Core areas).${CLAUDE_PLUGIN_ROOT}/reference/templates/:
docs/lore/README.md from README.md.tmpl — fill the Areas table with the areas you chose.docs/lore/<area>/pitfalls.md and docs/lore/<area>/business-rules.md from pitfalls.md.tmpl and business-rules.md.tmpl, replacing the <AREA> placeholder with the real area name.docs/lore/api-map.md from api-map.md.tmpl and/or docs/lore/architecture/index.md from architecture-index.md.tmpl, only when the project type warrants them.CONTEXT.md / CONTEXT-MAP.md exists, the vocabulary already lives there — report it as the project's canonical glossary and skip the lore-ul suggestion below. Otherwise look for docs/lore/glossary.md. Per lore-spec it is created lazily, the moment the first term is agreed with the user via lore-ul — never templated in bulk at init time, since terms must be user-confirmed, not generated. If it's missing (true for both a fresh scaffold and an existing base you're augmenting), say so plainly in your report and suggest running lore:lore-ul whenever the user wants to start aligning vocabulary. This is a report line, not an action — do not create the file yourself.CLAUDE.md (or AGENTS.md) yourself — for example: "Project lore lives in docs/lore/ — consult it before planning or bug-fixing, guard diffs against it before committing, and capture implicit knowledge into it." Add it on the user's confirmation; if they decline, just show them the line to paste. The plugin's SessionStart hook already nudges toward the lore skills in repos that have docs/lore/, but the pointer makes triggering robust for teammates and agents running without the plugin installed.This skill is idempotent: never overwrite existing content. Running it on a project that already has lore should only fill in missing core files, and it should report exactly what it added.
What you scaffold is generic structure, not real knowledge. The areas start empty — the user fills them with actual lore later via lore-capture.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mukiwu/muki-ai-plugins --plugin lore8 skills in this plugin
/lore-captureUse when the conversation surfaces knowledge that code, types, tests, or git history can't reveal — the user explains a business rule or a spec, shares a gotcha, gives the why behind a decision, says "that's intentional, not a bug", or you hit a pitfall or dig up a non-obvious root cause while debugging. Record it into docs/lore/ before the session ends and it evaporates./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-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