一键导入
lore-ingest
Compile all pending lore captures into structured wiki pages. Merges inbox files into cross-linked pages, updates indexes, and commits to git.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Compile all pending lore captures into structured wiki pages. Merges inbox files into cross-linked pages, updates indexes, and commits to git.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Capture durable knowledge from the current conversation to the lore inbox. Use when decisions are made, bugs are root-caused, patterns are identified, or lessons are learned. Do NOT capture ephemeral task details.
Behavioral guidelines to reduce common LLM coding mistakes. Apply when writing, reviewing, or refactoring code. Covers thinking before coding, simplicity, surgical changes, and goal-driven execution.
Initialize the lore knowledge base and memory system for the current project. Run once per project before using lore-capture or lore-ingest.
| name | lore-ingest |
| description | Compile all pending lore captures into structured wiki pages. Merges inbox files into cross-linked pages, updates indexes, and commits to git. |
Compile captures from the inbox into the lore wiki.
Derive the project slug and lore base path using the same logic as lore-capture:
-, strip Windows drive letter$env:USERPROFILE\.claude\projects\<slug>\lore\~/.claude/projects/<slug>/lore/If lore base does not exist, tell the user to run /lore-init first and stop.
List files in <lore-base>/inbox/.
If empty: report "Lore inbox is empty — nothing to ingest." and stop.
Move all files from inbox/ to .pending/ before processing (so a crash mid-ingest doesn't lose captures or re-process them).
Use the appropriate shell:
Move-Item "$lore\inbox\*" "$lore\.pending\"mv "$lore/inbox/"* "$lore/.pending/"Read:
<lore-base>/index.md — overall structure.pending/suggested_category)<lore-base>/INGESTER.md — merge/create rules (if present); otherwise use the rules belowFor each capture file in .pending/:
Determine target page:
suggested_category to pick the category folder (project/, architecture/, decisions/, feedback/, user/)Merge or create:
Page format:
# <Title>
<Content written to be understood weeks later with no conversation context.
Include: what was decided, why, alternatives rejected, caveats.>
## Related
- [[other-page-slug]]
Update indexes after each page:
<category>/_index.md — one-line entry per page in that category<lore-base>/index.md — add new pages under their category# Unix/macOS
git -C "<lore-base>" add -A
git -C "<lore-base>" commit -m "lore: ingest N capture(s)"
# Windows (PowerShell)
git -C "$lore" add -A
git -C "$lore" commit -m "lore: ingest N capture(s)"
If git is not initialized, tell the user to run /lore-init first.
Delete all files from .pending/ after a successful commit.
Report: "Lore ingest complete — N page(s) updated, M page(s) created. Run /lore-capture to add more knowledge."