본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

code-cache

ryx2 제작

Search & Research
487clawskills.sh가 보고한 다운로드 수
0조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

Semantic code caching for AI agents.

설명

이 스킬이 하는 일

Stores code generated during agent executions and retrieves semantically similar code for future tasks. Uses the Raysurfer API to search, upload, and vote on cached snippets. Cuts redundant generation by reusing validated solutions from prior runs.

Retrieving pre-validated cached code avoids the latency and token cost of having an LLM regenerate the same patterns on every run.

사용 시점

  • Reusing a prior data pipeline script without regenerating it
  • Retrieving cached chart-building code for a recurring report
  • Searching past executions before writing new API fetch code
  • Uploading a successful script to the cache after an agent run
  • Downvoting a broken cached snippet to improve future retrieval quality

예시 워크플로

입력

User asks: 'Fetch GitHub trending repos'

에이전트
  1. 1

    Search cache with /code-cache search "Fetch GitHub trending repos" --show-code

  2. 2

    Review the top match score and inspect the returned snippet

  3. 3

    Retrieve execution-ready files with /code-cache files "Fetch GitHub trending repos"

  4. 4

    Run the retrieved code in the agent sandbox

  5. 5

    Upload the result with /code-cache upload "Fetch GitHub trending repos" --files fetch.py

출력

GitHub trending repos fetched using cached code, with the execution stored and auto-voted for future reuse

요구 사항

  • RAYSURFER_API_KEY environment variable
  • Raysurfer account (sign up at raysurfer.com to access the API key dashboard)

설치

clawhub install ryx2/code-cache

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크