A proactive memory retrieval skill that optimizes search queries to ensure AI agents maintain project continuity and context.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install smart-memory-query
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install smart-memory-query using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Smart Memory Query skill is a sophisticated logic layer designed to enforce proactive and query-optimized use of the memory_search function within an AI agent's workflow. By identifying specific triggers—such as references to prior history, the initiation of new tasks, or the appearance of proper nouns—this skill ensures that the agent maintains continuity and honors previous decisions without needing manual prompts. This prevents the common issue of context loss in long-running projects.
At its core, this skill solves the problem of hallucination by omission by ensuring the agent checks its internal database whenever relevant information might exist. It utilizes strict query-building rules to split complex intents into short, 2-4 token queries, preventing the empty results often caused by over-constrained full-text search queries within Openclaw Skills.
To integrate this skill into your workflow, add the skill definition to your agent's configuration path. This skill requires the memory_search tool to be active within your Openclaw Skills environment.
# Copy the skill into your local configuration
cp smart-memory-query.md ~/.openclaw/skills/
Ensure that your backend database is indexed for full-text search to support the short-token query logic effectively.
| Component | Description |
|---|---|
| Trigger Classification | Categorizes input as T1 (Context), T2 (New Task), or T3 (Proper Noun). |
| Token Constraint | Limits query strings to 2-4 tokens to optimize FTS matching. |
| Multi-Query Logic | Executes separate searches for different intent angles. |
| Result Merging | Logic for synthesizing multiple search hits into a single context update. |
Loading
A high-performance vector database skill for managing embeddings, similarity searches, and retrieval-augmented generation.

An opinionated framework and tool for designing, building, and publishing professional-grade Openclaw Skills.

A specialized search tool for accessing the Moegirl Wiki encyclopedia to retrieve anime, manga, and gaming character data.

A security wrapper that protects AI agents from prompt injection by isolating untrusted shell command outputs using UUID-based boundaries.

An automated monitoring tool that tracks GitHub releases and delivers prioritized changelog summaries to your preferred communication channels.

A specialized AI agent skill that translates complex programming logic into intuitive daily clothing and outfit metaphors for easier understanding.








































