# Send Code Reputation to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "code-reputation",
    "name": "Code Reputation",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/ryx2/code-reputation",
    "canonicalUrl": "https://clawhub.ai/ryx2/code-reputation",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/code-reputation",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=code-reputation",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "_meta.json",
      "code_cache.py",
      "tests/test_skill.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "code-reputation",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T17:26:02.521Z",
      "expiresAt": "2026-05-07T17:26:02.521Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=code-reputation",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=code-reputation",
        "contentDisposition": "attachment; filename=\"code-reputation-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "code-reputation"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/code-reputation"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/code-reputation",
    "downloadUrl": "https://openagent3.xyz/downloads/code-reputation",
    "agentUrl": "https://openagent3.xyz/skills/code-reputation/agent",
    "manifestUrl": "https://openagent3.xyz/skills/code-reputation/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/code-reputation/agent.md"
  }
}
```
## Documentation

### Code Cache - Semantic Code Caching for AI Agents

This skill enables semantic code caching via the Raysurfer API.

### What It Does

When your agent generates and executes code, Code Cache stores it. When a similar task comes up later, the agent can retrieve and run the cached code instead of regenerating it—saving time and tokens.

### Setup

Get your API key from the Raysurfer dashboard and configure it:

# Via environment variable
export RAYSURFER_API_KEY=your_api_key_here

# Or via OpenClaw config
openclaw config set skills.entries.code-cache.apiKey "your_api_key_here"

### Search for cached code

/code-cache search <task description> [--top-k N] [--min-score FLOAT] [--show-code]

Search for cached code snippets that match a natural language task description.

Options:

--top-k N — Maximum number of results (default: 5)
--min-score FLOAT — Minimum verdict score filter (default: 0.3)
--show-code — Display the source code of the top match

Example:

/code-cache search "Generate a quarterly revenue report"
/code-cache search "Fetch GitHub trending repos" --top-k 3 --show-code

### Get code files for a task

/code-cache files <task description> [--top-k N] [--cache-dir DIR]

Retrieve code files ready for execution, with a pre-formatted prompt addition for your LLM.

Options:

--top-k N — Maximum number of files (default: 5)
--cache-dir DIR — Output directory (default: .code_cache)

Example:

/code-cache files "Fetch GitHub trending repos"
/code-cache files "Build a chart" --cache-dir ./cached_code

### Upload code to cache

/code-cache upload <task> --files <path> [<path>...] [--failed] [--no-auto-vote]

Upload code from an execution to the cache for future reuse.

Options:

--files, -f — Files to upload (required, can specify multiple)
--failed — Mark the execution as failed (default: succeeded)
--no-auto-vote — Disable automatic voting on stored code blocks

Example:

/code-cache upload "Build a chart" --files chart.py
/code-cache upload "Data pipeline" -f extract.py transform.py load.py
/code-cache upload "Failed attempt" --files broken.py --failed

### Vote on cached code

/code-cache vote <code_block_id> [--up|--down] [--task TEXT] [--name TEXT] [--description TEXT]

Vote on whether cached code was useful. This improves retrieval quality over time.

Options:

--up — Upvote / thumbs up (default)
--down — Downvote / thumbs down
--task — Original task description (optional)
--name — Code block name (optional)
--description — Code block description (optional)

Example:

/code-cache vote abc123 --up
/code-cache vote xyz789 --down --task "Generate report"

### How It Works

Cache Hit: When you ask for code similar to something previously executed, Code Cache returns the cached version instantly
Cache Miss: When no match exists, your agent generates code normally, then Code Cache stores it for future use
Verdict Scoring: Code that works gets 👍, code that fails gets 👎—retrieval improves over time

### API Reference

The skill wraps these Raysurfer API methods:

MethodDescriptionsearch(task, top_k, min_verdict_score)Unified search for cached code snippetsget_code_files(task, top_k, cache_dir)Get code files ready for sandbox executionupload_new_code_snips(task, files_written, succeeded, auto_vote)Store new code after executionvote_code_snip(task, code_block_id, code_block_name, code_block_description, succeeded)Vote on snippet usefulness

### Why Code Caching?

LLM agents repeat the same patterns constantly. Instead of regenerating code every time:

30x faster: Retrieve proven code instead of waiting for generation
Lower costs: Reduce token usage by reusing cached solutions
Higher quality: Cached code has been validated and voted on
Consistent output: Same task = same proven solution

Learn more at raysurfer.com or read the documentation.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: ryx2
- Version: 1.0.1
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-30T17:26:02.521Z
- Expires at: 2026-05-07T17:26:02.521Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/code-reputation)
- [Send to Agent page](https://openagent3.xyz/skills/code-reputation/agent)
- [JSON manifest](https://openagent3.xyz/skills/code-reputation/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/code-reputation/agent.md)
- [Download page](https://openagent3.xyz/downloads/code-reputation)