skills/llm-cache/SKILL.md
Semantic LLM response cache — caches and retrieves LLM responses for semantically similar prompts using vector similarity
npx skillsauth add Thomashighbaugh/opencode llm-cacheInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Uses the existing vector index infrastructure (sqlite-vec) to cache LLM responses for semantically similar prompts. When a prompt is semantically similar (cosine similarity > 0.92) to a previously cached prompt, the cached response is returned instead of making a fresh LLM call.
.opencode/.vector/ (sqlite-vec, gitignored).opencode/cache/llm/{hash}.jsonXenova/all-MiniLM-L6-v2 (shared with vectorize-context)Cache keys are derived from the structural prompt — the prompt with dynamic context (file contents, error messages, timestamps) stripped. This means:
This skill is invoked automatically by the cache system in plugins/hubs-plugin.ts. It can also be triggered manually:
/harvest-context cache llm "your prompt here"
cache-utils.ts — Shared cache infrastructurevectorize-context — Vector index management/harvest-context cache — Cache management commandstools
Create valid, type-safe TypeScript tools for OpenCode — generates correct boilerplate, typed interfaces, and handler stubs. Use when building new tools for global config or per-project .opencode/tools/.
testing
Explore multiple solution branches in parallel, evaluate each, and recommend the best path. Use when the user explicitly invokes /ideation tree-of-thoughts or asks for "tree of thought" / "branching exploration".
testing
Run multiple independent reasoning passes and find consensus. Use when the decision is critically important, the stakes are high, or the user explicitly requests "run it multiple times" / "check consistency" / "self-consistency".
testing
Optimization by PROmpting — generate candidate prompt variations, test each against a benchmark, and report the best performer. Use when the user invokes /ideation opro or asks for "prompt optimization" / "OPRO".