跳到正文
TakoAPI
返回技能列表

code-reputation

由 ryx2 提供

Search & Research
553下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Semantic code caching for AI agents.

描述

该技能的功能

Code Cache stores code generated by AI agents and retrieves it when a similar task comes up later. It uses semantic search to match task descriptions, so agents reuse validated solutions instead of regenerating them from scratch.

Retrieving proven code from a semantic cache is faster and cheaper than asking an LLM to regenerate the same solution on every run.

何时使用

  • Reusing a data pipeline script across multiple agent runs
  • Retrieving a chart-building snippet for recurring reports
  • Skipping LLM generation when fetching GitHub trending repos again
  • Searching cached solutions before starting a new automation task
  • Rating cached code to improve future retrieval accuracy

示例工作流

输入

User asks: Fetch GitHub trending repos

智能体
  1. 1

    Runs /code-cache search 'Fetch GitHub trending repos' --show-code to check for a match

  2. 2

    Finds a cached snippet with a verdict score above the threshold

  3. 3

    Retrieves execution-ready files via /code-cache files 'Fetch GitHub trending repos'

  4. 4

    Executes the cached code without LLM generation

  5. 5

    Votes on the result with /code-cache vote <id> --up if the output is correct

输出

GitHub trending repos fetched using a cached script, no token generation required

前置要求

  • RAYSURFER_API_KEY environment variable
  • Raysurfer account (to obtain API key from dashboard)

安装

clawhub install ryx2/code-reputation

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接