← Back to Skills Marketplace
rylinjames

Semantic Cache

by rylinjames · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
218
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install semantic-cache
Description
Semantic cache for LLM API calls using Redis. Caches responses by meaning, not exact match. Activate when the user wants to cache AI responses, reduce API co...
Usage Guidance
This skill appears to be what it claims, but take these precautions before installing/using it: (1) Point REDIS_URL to a Redis instance you control and preferably to a dedicated database/namespace so cache operations (keys, del, ft.dropIndex) don't remove unrelated data. (2) Be aware that running query/test/stress scripts will call OpenAI (embedding + completion) and can incur cost. (3) Use least-privilege credentials for Redis (ACLs or limited user) and rotate API keys as usual. (4) Run tests in a sandboxed/dev environment first to confirm key-prefix behavior and TTLs. (5) If you require stricter review, inspect the package-lock and installed transitive dependencies or run npm audit before deployment.
Capability Analysis
Type: OpenClaw Skill Name: semantic-cache Version: 1.0.0 The semantic-cache skill is a legitimate utility for caching LLM responses using Redis vector search and OpenAI embeddings. Analysis of scripts/cache.js and scripts/stress-test.js shows standard implementation of KNN search and cache management without any dangerous sinks, unauthorized network calls, or data exfiltration logic. The instructions in SKILL.md are aligned with the code's functionality and do not contain prompt-injection attacks or deceptive commands.
Capability Assessment
Purpose & Capability
Name/description, required binaries (node), npm dependencies (redis, openai), and required env vars (REDIS_URL, OPENAI_API_KEY) all match the stated goal of embedding queries, searching Redis vector index, and calling OpenAI on misses. The primary credential (REDIS_URL) is appropriate.
Instruction Scope
SKILL.md and the scripts limit actions to embedding text, searching/creating a Redis vector index, storing results, and calling OpenAI. The code does not read unrelated local files or exfiltrate data to unexpected endpoints. Caveats: the CLI commands and test/stress scripts use redis.keys and redis.del with the KEY_PREFIX and attempt to drop the index; if your Redis contains other keys with the same prefix or you misconfigure REDIS_URL, these commands could delete entries. The stress-test makes many OpenAI embedding requests (costly) and may create many keys during testing.
Install Mechanism
Installation is via normal npm packages (redis, openai) declared in package.json and package-lock.json; no downloads from arbitrary URLs or extractor installs. The package-lock shows many transitive dependencies (expected for these SDKs) — standard but increases the dependency surface.
Credentials
Required env vars (REDIS_URL, OPENAI_API_KEY) are necessary for Redis access and embedding/completion calls. Optional env vars used by the code (SEMANTIC_CACHE_THRESHOLD, SEMANTIC_CACHE_TTL) are reasonable configuration knobs. No unrelated secrets or system credentials are requested.
Persistence & Privilege
Skill does not request always: true and does not modify other skills or system-wide agent settings. It runs as a normal user-invocable tool. Note that autonomous invocation is allowed by default on the platform (not a fault of this skill).
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install semantic-cache
  3. After installation, invoke the skill by name or use /semantic-cache
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release — Redis vector search cache for LLM API calls. Cache by meaning, not exact match. 77x faster responses on cache hits.
Metadata
Slug semantic-cache
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Semantic Cache?

Semantic cache for LLM API calls using Redis. Caches responses by meaning, not exact match. Activate when the user wants to cache AI responses, reduce API co... It is an AI Agent Skill for Claude Code / OpenClaw, with 218 downloads so far.

How do I install Semantic Cache?

Run "/install semantic-cache" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Semantic Cache free?

Yes, Semantic Cache is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Semantic Cache support?

Semantic Cache is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Semantic Cache?

It is built and maintained by rylinjames (@rylinjames); the current version is v1.0.0.

💬 Comments