Context Memoize Cache
/install context-memoize-cache
Context Memoize Skill
Caches frequently used context fragments to reduce redundant processing.
Trigger
When user says "缓存这个上下文" or "memoize this context" - save the current context for reuse.
Implementation
Use a simple file-based cache:
# Save context fragment
echo "$CONTENT" >> ~/.openclaw/context-cache/fragments.md
# List cached fragments
ls ~/.openclaw/context-cache/
# Clear cache
rm -rf ~/.openclaw/context-cache/
Integration
This skill can be called from AGENTS.md Session Startup to pre-load cached context:
if [ -f ~/.openclaw/context-cache/fragments.md ]; then
cat ~/.openclaw/context-cache/fragments.md
fi
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install context-memoize-cache - After installation, invoke the skill by name or use
/context-memoize-cache - Provide required inputs per the skill's parameter spec and get structured output
What is Context Memoize Cache?
Caches user-specified context fragments in a file to avoid redundant processing and enable reuse across sessions. It is an AI Agent Skill for Claude Code / OpenClaw, with 119 downloads so far.
How do I install Context Memoize Cache?
Run "/install context-memoize-cache" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Context Memoize Cache free?
Yes, Context Memoize Cache is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Context Memoize Cache support?
Context Memoize Cache is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Context Memoize Cache?
It is built and maintained by shaoxiang616 (@shaoxiang616); the current version is v0.1.0.