← Back to Skills Marketplace
nissan

Prompt Cache

by Nissan Dookeran · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
474
Downloads
0
Stars
2
Active Installs
1
Versions
Install in OpenClaw
/install prompt-cache
Description
SHA-256 prompt deduplication for LLM and TTS calls — hash normalize prompts, check cache before calling APIs, store results for instant replay. Use when maki...
Usage Guidance
Do not assume this will work out of the box. Before installing or using: (1) confirm how the 'database' module is provided — the skill does not declare or install a DB adapter or connection details; (2) fix the schema/SQL mismatch (SKILL.md's CREATE TABLE lacks prompt_text but the code INSERTs prompt_text) or adjust the INSERT to match the schema; (3) ensure DB connection credentials/config are specified (and declared in requires.env) and stored securely; (4) consider removing the broad exception swallow in set_cached so cache failures are visible; (5) decide whether the truncated hash (first 32 hex chars) and inconsistent normalization (language not lowercased in hash) are acceptable for your collision/lookup needs. If the author provides a corrected release addressing these points (clear DB adapter, declared env vars, matching schema), the skill would be coherent; in its current form it is unreliable and potentially misleading.
Capability Analysis
Type: OpenClaw Skill Name: prompt-cache Version: 1.0.0 The skill implements a prompt caching mechanism using SHA-256 hashing and a platform-provided database. The `SKILL.md` explicitly declares `network.outbound: false` and the Python code adheres to this, making no external network calls. Database interactions use parameterized queries, preventing SQL injection. There are no signs of data exfiltration, malicious execution, persistence mechanisms, or prompt injection attempts against the agent. A minor functional bug exists in `scripts/prompt_cache.py` where `set_cached` attempts to insert into a `prompt_text` column not defined in the `SKILL.md` schema, which would cause caching to fail silently but without security implications.
Capability Assessment
Purpose & Capability
The stated purpose (local prompt cache for LLM/TTS) matches the code's intent, but required pieces are missing or inconsistent: the implementation imports a 'database' module (not provided or declared), and the SKILL.md shows a schema that does not match the INSERT used in code (INSERT references prompt_text which the schema does not define). These inconsistencies mean the skill cannot reliably provide the advertised capability without additional configuration or code changes.
Instruction Scope
SKILL.md promises local-only cache operations and lists a schema, usage, and supported backends, but it gives no instructions on how to supply or configure the 'database' module/connection (no connection string, no env vars, no adapter code). The code itself performs DB queries via db.execute — that could target local or remote DBs depending on the runtime binding, which is unspecified.
Install Mechanism
There is no install spec (instruction-only), which minimizes installer risk. However, the package includes a code file that depends on an external 'database' module/backend. The absence of an install or dependency declaration means the environment must already provide a compatible database binding, which is an operational gap rather than an install risk.
Credentials
The skill declares no required environment variables or primary credential, yet real use with Postgres/Turso/SQLite will require DB credentials or connection configuration. This mismatch (no declared env vars but DB dependency present) is disproportionate and leaves unclear how sensitive connection data should be provided or protected.
Persistence & Privilege
The skill does not request always-on installation and does not declare extra privileges. Autonomous invocation is allowed by default (not flagged). Nothing in the package requests system-wide persistence or modifies other skills.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install prompt-cache
  3. After installation, invoke the skill by name or use /prompt-cache
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release — extracted from Sandman Tales v2 hackathon
Metadata
Slug prompt-cache
Version 1.0.0
License
All-time Installs 2
Active Installs 2
Total Versions 1
Frequently Asked Questions

What is Prompt Cache?

SHA-256 prompt deduplication for LLM and TTS calls — hash normalize prompts, check cache before calling APIs, store results for instant replay. Use when maki... It is an AI Agent Skill for Claude Code / OpenClaw, with 474 downloads so far.

How do I install Prompt Cache?

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

Is Prompt Cache free?

Yes, Prompt Cache is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Prompt Cache support?

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

Who created Prompt Cache?

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

💬 Comments