A high-performance caching utility providing intelligent data retention through LRU and LFU eviction strategies.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install smart-cache
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-cache using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Smart Cache is a sophisticated performance optimization tool designed to streamline data handling within your AI workflows. By serving as a robust middleware layer for Openclaw Skills, it allows developers to implement intelligent caching mechanisms that reduce latency, minimize redundant API calls, and lower operational costs. Whether you are managing frequent LLM responses or temporary session data, this skill ensures your agent maintains a lean memory footprint while prioritizing the most relevant information.
This utility provides granular control over data lifecycle management through configurable Time-To-Live (TTL) settings and size limits. Built with developer experience in mind, it integrates seamlessly into the Openclaw Skills ecosystem, offering a programmatic way to handle state and persistence without the complexity of external database management.
To get started with this cache utility, ensure it is registered in your Openclaw Skills directory. You can configure the caching behavior through a simple JSON object:
{
"strategy": "lru",
"maxSize": 500,
"defaultTTL": 3600000
}
For local development, you can instantiate the class directly within your agent code:
const cache = new skills.smartCache.SmartCache({
strategy: 'lru',
maxSize: 500
});
Smart Cache organizes information in an internal Map, tracking metadata to support various eviction strategies within Openclaw Skills.
| Attribute | Type | Description |
|---|---|---|
value |
Any | The actual data payload being cached |
expiresAt |
Timestamp | Unix timestamp when the entry is considered expired |
createdAt |
Timestamp | Time of insertion used for lifecycle auditing |
accessCount |
Integer | Counter used by the LFU strategy to identify least frequent usage |
accessOrder |
Array | Ordered list of keys used by the LRU strategy to identify least recent usage |
Loading
A robust rate-limiting utility for managing API quotas and request throttling through customizable user tiers.

A comprehensive guardian interface for monitoring activity, managing screen time, and configuring safety filters for AI agent interactions.

An advanced AI-powered content moderation system for real-time detection of explicit images, videos, and text.

A comprehensive suite of safety tools for detecting and filtering explicit content using Openclaw Skills.

A comprehensive suite of forensic tools for identifying AI-generated text through advanced NLP, pattern analysis, and machine learning classification.

A systematic framework for AI agents to log errors, user corrections, and new insights to enable continuous self-optimization.








































