Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

raysurferraysurfer 搜索

Agent Skill

raysurfer 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

45,405

周安装

1,911

GitHub Stars

公开资料未说明

下载量

15,634
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:raysurfer(raysurfer 搜索)
来源仓库:https://github.com/ryx2/raysurfer
安装命令:
openclaw skills install raysurfer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install raysurfer

简介

通过 Raysurfer 缓存和重用先前 AI 代理执行的代码。编码前搜索,成功后上传。

SKILL.md

name
raysurfer
description
Cache and reuse code from prior AI agent executions via Raysurfer. Search before coding, upload after success.
argument-hint
[search query or \"upload\"]
allowed-tools

Raysurfer Code Caching Skill

You have access to Raysurfer, a code caching system that stores and retrieves code from prior AI agent executions. Always check the cache before writing new code and upload successful results afterward.

Environment

  • API Base URL: https://api.raysurfer.com
  • Auth: Bearer token via the RAYSURFER_API_KEY environment variable
  • All API calls use Content-Type: application/json

Workflow

Follow this sequence for every coding task:

Step 1: Search the Cache

Before writing any code, search for existing cached solutions.

To also include community public snippets (crawled from GitHub), add the X-Raysurfer-Public-Snips: true header.

curl -s -X POST https://api.raysurfer.com/api/retrieve/search \
  -H "Authorization: Bearer $RAYSURFER_API_KEY" \
  -H "Content-Type: application/json" \
  -H "X-Raysurfer-Public-Snips: true" \
  -d '{"task": "<describe the task here>", "top_k": 5, "min_verdict_score": 0.3}'

The response contains:

{
  "matches": [
    {
      "code_block": {
        "id": "uuid",
        "name": "descriptive name",
        "description": "what this code does",
        "source": "the actual code content",
        "language": "python"
      },
      "combined_score": 0.85,
      "filename": "suggested_filename.py",
      "thumbs_up": 12,
      "thumbs_down": 1
    }
  ],
  "total_found": 3,
  "cache_hit": true
}

Decision logic:

  • If total_found > 0 and the top match has combined_score >= 0.7 and a favorable vote ratio (thumbs_up > thumbs_down), use the cached code.
  • If matches exist but scores are low, use them as a starting point and adapt.
  • If no matches, generate the code from scratch.

Step 2a: Use Cached Code (Cache Hit)

When a good cache hit is found:

  1. Extract the source field from the best matching code_block.
  2. Write it to the appropriate file(s).
  3. Adapt paths, variable names, or configuration to the current project if needed.
  4. Run the code to verify it works.
  5. Proceed to Step 3 (Vote).

Step 2b: Generate Code (Cache Miss)

When no suitable cache hit exists:

  1. Write the code as you normally would.
  2. Run the code to verify it works.
  3. Proceed to Step 4 (Upload).

Step 3: Vote on Cached Code

After using cached code, report whether it worked:

curl -s -X POST https://api.raysurfer.com/api/store/cache-usage \
  -H "Authorization: Bearer $RAYSURFER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"code_block_id": "<id from the match>", "code_block_name": "<name from the match>", "code_block_description": "<description from the match>", "succeeded": true, "task": "<the task description>"}'

Set succeeded to true if the code ran correctly, false if it failed or needed significant changes.

Step 4: Upload New Code

After successfully generating and running new code (cache miss), upload it for future reuse:

curl -s -X POST https://api.raysurfer.com/api/store/execution-result \
  -H "Authorization: Bearer $RAYSURFER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "task": "<describe what this code does>",
    "file_written": {"path": "relative/path/to/file.py", "content": "<full file content>"},
    "succeeded": true
  }'

Only upload code that executed successfully. AI voting is enabled by default.

Handling Arguments

  • If invoked with a search query (e.g., /raysurfer parse CSV and generate chart), run Step 1 with that query as the task.
  • If invoked with upload (e.g., /raysurfer upload), run Step 4 for the most recently generated code in the conversation.
  • If invoked with no arguments, display a summary of the workflow and ask what the user wants to do.

When $ARGUMENTS is provided, use it as: $ARGUMENTS

Runnable Scripts

Ready-to-run scripts are in this skill's directory. Requires RAYSURFER_API_KEY to be set.

Search

python search.py "Parse a CSV and plot a chart"
bun search.ts "Parse a CSV and plot a chart"
bash search.sh "Parse a CSV and plot a chart"

Upload

python upload.py "Generate a bar chart" chart.py
bun upload.ts "Generate a bar chart" chart.py
bash upload.sh "Generate a bar chart" chart.py

Guidelines

  • Always verify RAYSURFER_API_KEY is set before making API calls. If unset, inform the user and skip cache operations.
  • Write descriptive task strings that capture what the code does, not how it does it (e.g., "Parse CSV file and generate a bar chart with matplotlib" rather than "run pandas read_csv and plt.bar").
  • Never hardcode API keys in any command or file.
  • If the API is unreachable, proceed with normal code generation without blocking the user.
  • Keep uploaded code self-contained when possible so it is maximally reusable.

Quick Reference

ActionEndpointMethod
Search cache/api/retrieve/searchPOST
Upload code/api/store/execution-resultPOST
Vote on code/api/store/cache-usagePOST

See references/api-reference.md for full request and response schemas.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

72.27%
按下载量换算11,299

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

未展示

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills