一键导入
memory-retrieval
Retrieve relevant memories from memento knowledge graph at task start
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Retrieve relevant memories from memento knowledge graph at task start
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | memory-retrieval |
| description | Retrieve relevant memories from memento knowledge graph at task start |
Use this skill at the start of every task to retrieve relevant context from the memento knowledge graph. This provides "mid-term memory" - knowledge acquired between your training data cutoff and the current session.
Construct 2-4 semantic search queries based on:
Use memento_semantic_search with these parameters:
query: "<your search query>"
limit: 10
min_similarity: 0.6
hybrid_search: true
Example searches for a task about adding authentication:
memento_semantic_search(query: "rizer authentication")
memento_semantic_search(query: "rizer user security")
memento_semantic_search(query: "Rust authentication patterns")
Check the first observation of each entity for project association:
Project: rizer | Path: /home/jwilger/projects/rizer | Scope: PROJECT_SPECIFICScope: GENERAL or no
project prefixPrioritize project-specific memories, but include relevant general knowledge.
If relations exist, use memento_open_nodes to retrieve related entities:
Since relations may be sparse, focus on entity observations which often contain references to related concepts.
Organize retrieved memories into categories:
After retrieval, briefly summarize what you found:
## Retrieved Memories
### Relevant to Current Task
- [Entity Name]: Key insight or decision
- [Entity Name]: Relevant pattern or convention
### Project Context
- [Brief summary of project-specific knowledge that applies]
### Potential Considerations
- [Any warnings or past issues relevant to this task]
For a task "Add health check endpoint to rizer":
1. Search: "rizer health check API"
→ Found: "Rizer API Design Decisions" (ADR about REST conventions)
2. Search: "Rust health endpoint patterns"
→ Found: "Axum Health Check Pattern" (general knowledge)
3. Search: "rizer monitoring observability"
→ Found: "Rizer Observability Strategy" (project decision)
4. Expand: Open "Rizer API Design Decisions"
→ Observations mention "REST conventions", "error handling"
→ Note: Uses standard HTTP status codes
Summary: Project uses REST with standard HTTP codes. Health endpoints
should follow /health convention returning 200 OK with JSON body.