SKILL.md file that teaches Claude Code to automatically use the code cache. Claude checks for cached code before generating new code and uploads successful results for future reuse.
Installation
Clone the skill into your Claude Code skills directory:How It Works
Once installed, the skill auto-invokes when Claude detects a coding task. The workflow:Search the cache
Before generating code, Claude calls the Raysurfer API to check if similar code already exists.
Use or generate
If a high-quality match is found (score >= 0.7, positive votes), Claude uses the cached code directly. Otherwise, it generates new code normally.
Manual Invocation
You can also invoke the skill explicitly:What the Skill Contains
curl commands to call the API directly, so it works without the CLI or MCP server installed. It only needs RAYSURFER_API_KEY set in your environment.
Customization
The skill is a plain markdown file. Fork the repo and editSKILL.md to:
- Adjust the cache hit threshold (default:
combined_score >= 0.7) - Change which tools Claude is allowed to use
- Add project-specific caching rules
- Modify the upload criteria
