9649e8a761
P0 (核心): - wiki-setup: 初始化 wiki vault - wiki-ingest: 蒸馏文档为 wiki 页面 - wiki-capture: 保存对话为 wiki 笔记 P1 (重要): - wiki-rebuild: 重建 wiki 索引 - data-ingest: 录入非结构化数据 - ingest-url: 抓取 URL 内容 - wiki-export: 导出知识图谱 P2 (可选): - wiki-research: 多轮搜索研究 - impl-validator: 验证实现 - graph-colorize: 着色 Obsidian 图形 - wiki-agent: 录入 agent 历史 Co-Authored-By: Claude Dev <noreply@anthropic.com>
2.6 KiB
2.6 KiB
name, description, trigger
| name | description | trigger |
|---|---|---|
| wiki-setup | 初始化新 wiki vault,创建目录结构和初始配置文件 | 当用户需要创建新的 wiki vault 或重新初始化现有 wiki 时 |
Wiki Setup
使用场景
- 用户首次设置 wiki 系统
- 需要重新初始化现有 wiki vault
- 创建新的项目 wiki
操作步骤
-
确认 wiki vault 路径
- 默认:
/Volumes/KnowledgeBase/wiki-vault - 可通过环境变量
WIKI_VAULT_PATH自定义
- 默认:
-
创建目录结构
wiki-vault/ ├── .obsidian/ # Obsidian 配置 ├── practices/ # 最佳实践 ├── concepts/ # 概念和思维模型 ├── entities/ # 人物、公司、工具 ├── projects/ # 项目知识 ├── skills/ # 可重用的 how-to ├── references/ # 外部资料摘要 ├── synthesis/ # 跨项目分析 ├── journal/ # 每日学习日志 ├── index.md # 主索引 ├── log.md # 查询/更新日志 └── wiki-instructions.md # 触发规则说明 -
创建初始文件
index.md - 主索引文件:
# Wiki Index ## Practices - [[performance-patterns]] - [[design-patterns]] ## Concepts - [[distributed-systems]] - [[data-structures]] ## Recent Updates See [[log.md]] for recent changeswiki-instructions.md - Wiki 触发规则:
# Wiki Instructions ## Query Triggers - "What do I know about X?" - "Find everything related to Y" - "Check my wiki for..." ## Update Triggers - "Update wiki" - "Save to wiki" - "Distill this to wiki" -
创建 Obsidian 配置
- 创建
.obsidian/目录 - 生成基本配置文件(如果需要)
- 创建
-
初始化 MCP Server 索引
- 调用 MCP Server 的
rebuild_index工具 - 确认索引路径(默认:
~/.sanguo-llmwiki/index.db)
- 调用 MCP Server 的
输出格式
{
"success": true,
"vault_path": "/path/to/wiki-vault",
"created_dirs": ["practices", "concepts", ...],
"created_files": ["index.md", "log.md", ...],
"index_initialized": true
}
配置文件
~/.sanguo-llmwiki/config.yaml(如不存在则创建):
wiki:
vault_path: "/Volumes/KnowledgeBase/wiki-vault"
index_path: "~/.sanguo-llmwiki/index.db"
mcp:
mode: "stdio"
host: "localhost"
port: 8080
logging:
level: "INFO"
注意事项
- 如果目录已存在,不会覆盖现有文件
- 首次运行需要初始化 MCP Server 索引
- 确保有足够的磁盘空间