一键导入
lore-init
Initialize the lore knowledge base and memory system for the current project. Run once per project before using lore-capture or lore-ingest.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Initialize the lore knowledge base and memory system for the current project. Run once per project before using lore-capture or lore-ingest.
用 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.
Compile all pending lore captures into structured wiki pages. Merges inbox files into cross-linked pages, updates indexes, and commits to git.
| name | lore-init |
| description | Initialize the lore knowledge base and memory system for the current project. Run once per project before using lore-capture or lore-ingest. |
Set up the lore wiki and memory system for the current project. Run this once.
Derive the project slug from the current working directory:
/ or \) with -C: → drop it)C:\Development\my-project → Development-my-projectLore base (platform-aware):
$env:USERPROFILE\.claude\projects\<slug>\~/.claude/projects/<slug>/Paths to create:
<lore-base>/lore/inbox/<lore-base>/lore/.pending/<lore-base>/lore/project/<lore-base>/lore/architecture/<lore-base>/lore/decisions/<lore-base>/lore/feedback/<lore-base>/lore/user/<lore-base>/memory/# Lore — Knowledge Base
## Categories
- **project/** — platform status, product vision, roadmap, demo notes
- **architecture/** — modules, data flows, technical design decisions
- **decisions/** — ADRs: technology choices and tradeoffs
- **feedback/** — coding preferences, workflow rules the user has stated
- **user/** — user profile, working style, expertise areas
## Pages
(empty — add pages as you ingest captures)
# Ingester Instructions
When processing a capture from inbox, follow these rules:
## Determine the target page
Use `suggested_category` from the capture frontmatter to pick the category folder.
Within that folder, find the most relevant existing page or create a new one.
Naming: `<topic-slug>.md` — 2-4 words, kebab-case, describing the subject.
## Merge vs create
- If a page on this topic already exists: merge the new content in. Update rather than duplicate.
- If no page exists: create it with a clear title and the capture content.
## Page format
```markdown
# <Title>
<Content — written to be understood weeks later with no conversation context.
Include: what was decided, why, what alternatives were rejected, any caveats.>
## Related
- [[other-page-slug]]
After writing or updating a page:
<category>/_index.md — one-line entry per page in that categoryindex.md — add the page under its category if it's new
## Step 4: Create memory/MEMORY.md
```markdown
# Memory Index
(empty — memories are added automatically during conversations)
cd <lore-base>
git init
git add -A
git commit -m "lore: init knowledge base"
Report:
Lore initialized at <lore-base>
Directories created:
lore/inbox/ ← captures land here (/lore-capture)
lore/.pending/ ← in-flight during ingest
lore/project/
lore/architecture/
lore/decisions/
lore/feedback/
lore/user/
memory/ ← auto memory (MEMORY.md index)
Next steps:
/lore-capture — capture knowledge from this conversation
/lore-ingest — compile inbox into wiki pages