chore(claude): version skills and local settings; add rag-files/rag-memories
- Adjust .gitignore to track .claude/settings.local.json and .claude/skills/** while keeping other .claude content local. - Add rag-files (knowledge retrieval + .claude/files notes), rag-memories, and mywebpage-update skills with PDF/Excel references. - Fix settings.local.json hooks (SessionStart schema) for Claude Code. - Update CLAUDE.md for rag-files paths and memory/file pool notes. - Remove tracked .claude/plans and sessions placeholders no longer used. Made-with: Cursor
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
处理知识库查询时遵循以下模式:
|
||||
|
||||
1. **分层导航**: 先读索引文件(`data_structure.md`),再定位相关文件,最后局部读取
|
||||
2. **先学习后处理**: 遇到 PDF/Excel 前,先读取对应处理方法文档(`.claude/skills/rag-skill/references/`)
|
||||
2. **先学习后处理**: 遇到 PDF/Excel 前,先读取对应处理方法文档(`.claude/skills/rag-files/references/`)
|
||||
3. **渐进式检索**: 使用 `grep` 定位关键词,只读取匹配上下文,避免整文件加载
|
||||
4. **多轮迭代**: 最多5轮检索,逐步缩小范围;找不到时明确告知而非臆造
|
||||
|
||||
@@ -102,6 +102,8 @@
|
||||
- `.claude/memories/` - 持久化记忆(自动加载到上下文)
|
||||
- `.claude/memories/core.json` - 核心记忆文件
|
||||
- `.claude/memories/current_mode.json` - 当前模式状态
|
||||
- `.claude/files/` - 较长摘录、笔记,供后续 Grep/Read(skill:`rag-files`)
|
||||
- 沉淀操作指引:短事实/偏好用 skill `rag-memories`,长材料用 `rag-files` 写入 `.claude/files/`
|
||||
|
||||
### 触发记录
|
||||
- 用户说"记住..." / "记下来..."
|
||||
|
||||
Reference in New Issue
Block a user