Memory Manager
Handles local persistence of research outputs, intermediate reasoning, and reusable knowledge chunks
- License 许可
- MIT
- 最近更新
- 2026-06-22
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- Memory Manager
- tags
- [ "memory", "persistence", "cache" ]
- author
- ForgeWeave Core
- version
- 1.0.0
- skill_id
- memory-manager
- description
- Handles local persistence of research outputs, intermediate reasoning, and reusable knowledge chunks
- tui_compatibility
- [ "opencode", "claude", "gemini", "qwen" ]
02 资源文件 2
- 参考文档references/storage-patterns.md720 B
- 脚本scripts/cache_manager.py2.9 KB
03 SKILL.md 正文
Memory Manager
Purpose
Persist and retrieve structured data across sessions — research outputs, intermediate reasoning steps, reusable knowledge chunks, and cache entries. Prevents redundant work by reusing previously computed results when inputs match.
When to Use
- Research results should be saved for future reference
- Intermediate reasoning needs to be persisted for multi-step workflows
- Previously computed results can be reused instead of recomputed
- Debug or trace information needs to be logged
When Not to Use
- The data is ephemeral and only needed for the current response
- The data contains secrets or credentials (use secure storage instead)
- The storage would exceed reasonable size limits
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
operation |
enum | Yes | save, load, search, clear |
key |
string | Depends | Unique key for the data |
data |
object | For save | The data to persist |
namespace |
string | No (default: general) | Category for the data |
Expected Outputs
| Output | Description |
|---|---|
| Operation result | Success with location, or loaded data, or search results |
Exact Workflow Steps
- Determine the persistence location based on namespace and TUI
- For save: serialize data to disk at
research/or.<tui>/memory/ - For load: deserialize data from its persisted location
- For search: scan persisted data for matching keys or content
- For clear: remove caches and temporary data
Required Checks
- [ ] Saved data is retrievable with the correct key
- [ ] Cache entries have expiration or size limits
- [ ] No sensitive data is persisted without warning
Failure Modes
| Failure Condition | Response |
|---|---|
| Key not found on load | Report "not found" |
| Storage full | Suggest clearing old entries |
| Serialization fails | Report the unsupported type |
References
| Reference | Path |
|---|---|
| Cache & Store skill | ../cache-store/SKILL.md |
| research/ directory | ./research/ |
04 同仓库更多 Skills
Workflow Orchestrator
Coordinates multi-skill execution pipelines (e.g., research → plan → build → test)
Web Research
Browser-driven or scraping-based skill for real-time internet extraction using Playwright and HTTP-based fetching
Validation Engine
Checks outputs from other skills for consistency, correctness, and adherence to AGENTS.md rules
Tool Selector
Determines which tools, APIs, MCP actions, or system capabilities are required for a given task
Test Generator
Creates test plans and test cases (unit, integration, edge cases) based on existing or planned code
Skill Generator
Meta-skill that creates new SKILL.md files from research outputs and patterns discovered in execution