caveman-setup 是什么?
Wire a repository through the Caveman Cloud gateway so every LLM request is measured, with no behavior change. Use for "set up caveman" or adding LLM spend observability.
以上为来源原文,中文用途说明尚待整理。
怎么接入你的 Agent?
- 定位完整 Skill 目录
打开本项目来源,核对
SKILL.md及其引用的脚本和资料。 - 交给你正在用的 Agent
在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。
- 确认识别,再做具体任务
让 Agent 回报安装目录和识别到的名称
caveman-setup,然后告诉 Agent 你的任务和实际输入,让它先核对触发条件。
展开并复制给 Codex 的安装指令
安装并检查 caveman-setup
请在 Codex 的当前工作环境中安装并检查 caveman-setup 这个 Skill。
项目身份:juliusbrussee/caveman / caveman-setup
来源:https://github.com/juliusbrussee/caveman/blob/9b243662ff98d392bc0a95b865a554583d71be75/skills/caveman-setup/SKILL.md
已定位的源文件:skills/caveman-setup/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Claude Code 的安装指令
安装并检查 caveman-setup
请在 Claude Code 的当前工作环境中安装并检查 caveman-setup 这个 Skill。
项目身份:juliusbrussee/caveman / caveman-setup
来源:https://github.com/juliusbrussee/caveman/blob/9b243662ff98d392bc0a95b865a554583d71be75/skills/caveman-setup/SKILL.md
已定位的源文件:skills/caveman-setup/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Cursor 的安装指令
安装并检查 caveman-setup
请在 Cursor Agent 的当前工作环境中安装并检查 caveman-setup 这个 Skill。
项目身份:juliusbrussee/caveman / caveman-setup
来源:https://github.com/juliusbrussee/caveman/blob/9b243662ff98d392bc0a95b865a554583d71be75/skills/caveman-setup/SKILL.md
已定位的源文件:skills/caveman-setup/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 当前 Agent 的安装指令
安装并检查 caveman-setup
请在 当前 Agent 的当前工作环境中安装并检查 caveman-setup 这个 Skill。
项目身份:juliusbrussee/caveman / caveman-setup
来源:https://github.com/juliusbrussee/caveman/blob/9b243662ff98d392bc0a95b865a554583d71be75/skills/caveman-setup/SKILL.md
已定位的源文件:skills/caveman-setup/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。来源原文与资料状态
- 源文件
- 已保存 SKILL.md,抓取于 2026-11-17T19:31:50.806Z
- 中文使用说明
- 尚待整理,保留英文来源内容
- 安装与任务测试
- 本站未执行安装或任务测试
- 来源复核
- 已保留来源记录;当前完整用法未逐项人工复核
展开 SKILL.md 原文、章节与历史收录资料
skills/caveman-setup/SKILL.md · 抓取时间 2026-11-17T19:31:50.806Z
以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。
抓取成功不代表已完成安装或任务测试。
Wire a repository through the Caveman Cloud gateway so every LLM request is measured, with no behavior change. Use for "set up caveman" or adding LLM spend observability.
查看源文件章节 / Source sections
- 原文:Rules (non-negotiable)
- 原文:Step 1 — Find every live LLM callsite
- 原文:Step 2 — Pick the app slug
- 原文:Step 3 — Wire each callsite
- 原文:Step 4 — Verify with one real request
- 原文:Step 5 — Report
- 原文:Failure templates (use verbatim, filled in — never soften)
原文:正文开头
You are wiring this repository through the Caveman gateway. Caveman is a byte-preserving LLM proxy: in record mode it measures what your app sends and what it costs, and changes nothing else. Your job is a minimal, verified integration — not a refactor. The prompt that sent you here provides four values. Refer to them as: - `GATEWAY` — the gateway base URL (e.g. `https://gateway.caveman.so` or `http://127.0.0.1:8787`) - `CAVE_API_KEY` — the gateway auth secret (treat like any API key: env var only, never committed, never printed in full) - `PROVIDER_KEYS` — `stored` (provider keys live encrypted in Caveman Cloud) or `byok` (this app sends its own provider key per request) - `DASHBOARD` — the dashboard base URL (e.g. `https://app.caveman.so`) If any value is missing, stop and ask for it. Do not guess a URL or mint a key.
原文:Rules (non-negotiable)
1. **Coherent integration.** Wire every live LLM callsite through existing configuration and responsible seams. Touch each layer correctness requires. No drive-by refactors or formatting sweeps; add an abstraction only when it clarifies ownership or lowers lifecycle cost. 2. **Secrets stay in env vars.** `CAVE_API_KEY` goes into the env file the repo already uses (`.env`, `.env.local`, …). If that file isn't gitignored, add it to `.gitignore` and say so. Never hardcode the key in source. 3. **Report only what you observed.** The final report states the HTTP status and usage numbers from the real verification response — never assumed success. If verification fails, report the failure template instead. 4. **Record mode only.** You are adding measurement. You do not enable any optimization, and you do not claim any savings — verified savings are $0 until an optimizer is explicitly turned on and passes its eval gate. 5. **Provider keys are not your business.** With `PROVIDER_KEYS: stored` you never see one. With `byok`, the app's existing provider key stays exactly where it already is.
原文:Step 1 — Find every live LLM callsite
Read dependency files (`package.json`, `requirements.txt`, `pyproject.toml`, `go.mod`, lockfiles) and search the source for LLM clients: - SDK imports: `openai`, `@anthropic-ai/sdk`, `anthropic`, `ai` + `@ai-sdk/*` (Vercel), `langchain*`, `litellm`, `google-genai` / `@google/genai`, `crewai`, `pydantic_ai`, `openai-agents` / `agents` - Raw HTTP to `api.openai.com`, `api.anthropic.com`, `generativelanguage.googleapis.com` - Existing base-URL env vars: `OPENAI_BASE_URL`, `OPENAI_API_BASE`, `ANTHROPIC_BASE_URL`, `GEMINI_BASE_URL`, `GOOGLE_GEMINI_BASE_URL` List what you found (file:line per callsite) before changing anything. If you find **no** LLM callsites, stop and report the "nothing to wire" template at the end of this file — do not invent an integration.
原文:Step 2 — Pick the app slug
One slug names this app in the gateway path: `GATEWAY/w/<app>`. Derive it from the package/module name (e.g. `support-bot`, `acme-api`). Grammar: lowercase `[a-z0-9]` first, then `[a-z0-9._-]`, max 64 chars. Spend for this whole app groups under that slug on the dashboard.
原文:Step 3 — Wire each callsite
The pattern is always the same: **base URL → the gateway with `/w/<app>`, plus one auth header.** Gateway auth is `x-cave-api-key: CAVE_API_KEY` (`Authorization: Bearer CAVE_API_KEY` also works where a header is awkward). With `PROVIDER_KEYS: byok`, also send `x-cave-upstream-key: <the provider key the app already uses>`. Two facts that make the wiring safe (both are gateway-enforced, not hopes): the gateway rebuilds upstream auth headers from scratch, so a client's `Authorization`/`x-api-key` value is never forwarded to the provider; and with `stored`, upstream auth comes from the encrypted connection server-side. So in `stored` mode, where an SDK insists on an api-key parameter, set it to the Cave key — it authenticates the gateway and goes no further. Exact shapes (use the one matching each callsite — these are the product's published recipes, not suggestions): **OpenAI SDK (TS)** — Chat Completions and Responses both route through: ```ts const client = new OpenAI({ baseURL: `${process.env.CAVE_GATEWAY_URL}/w/<app>/openai/v1`, apiKey: process.env.OPENAI_API_KEY, // byok: unchanged · stored: use CAVE_API_KEY defaultHeaders: { "x-cave-api-key": process.env.CAVE_API_KEY!, // byok only: "x-cave-upstream-key": process.env.OPENAI_API_KEY!, }, }); ``` **OpenAI SDK (Python)** — same shape: `base_url=f"{gw}/w/<app>/openai/v1"`, `default_headers={"x-cave-api-key": ..., "x-cave-upstream-key": ...}`. **Anthropic SDK (TS/Python)** — the SDK appends `/v1/messages` itself. The `x-cave-api-key` header is required here in both modes (this SDK's own key param rides `x-api-key`, which is not a gateway-auth header): ```python client = anthropic.Anthropic( base_url=f"{os.environ['CAVE_GATEWAY_URL']}/w/<app>", api_key=os.environ["ANTHROPIC_API_KEY"], # byok: unchanged · stored: use CAVE_API_KEY default_headers={ "x-cave-api-key": os.environ["CAVE_API_KEY"], # byok only: "x-cave-upstream-key": os.environ["ANTHROPIC_API_KEY"], }, ) ```
本段为节选,完整内容见源文件。
原文:Step 4 — Verify with one real request
The user pasted the setup prompt to authorize exactly this: one small verification request. Send it now — do not pause to ask permission for it. An integration that ends unverified because you hesitated is a worse outcome than one tiny request; finishing the verification and the report autonomously is the point of this skill. Send one minimal request through the wiring you just built — the app's own cheapest path if it has a script for it, otherwise curl **on the path matching the protocol you just wired** with the app's own model and a small cap (`max_tokens` ≤ 32): ```bash # OpenAI-protocol wiring: curl -sS "$CAVE_GATEWAY_URL/w/<app>/v1/chat/completions" \ -H "x-cave-api-key: $CAVE_API_KEY" \ -H "content-type: application/json" \ -d '{"model":"<model the repo already uses>","max_tokens":16,"messages":[{"role":"user","content":"ping"}]}' # Anthropic-protocol wiring: curl -sS "$CAVE_GATEWAY_URL/w/<app>/v1/messages" \ -H "x-cave-api-key: $CAVE_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "content-type: application/json" \ -d '{"model":"<model the repo already uses>","max_tokens":16,"messages":[{"role":"user","content":"ping"}]}' ``` (byok: add `-H "x-cave-upstream-key: $PROVIDER_KEY"`.) This is one real, billable provider request — that is the point: real traffic, real measurement. Read the response. Success = HTTP 200 with a `usage` block. Anything else = the matching failure template below.
文件 SHA256:42c8b8eeba19c6d4ffd3c421be60a7e8b5c0e5108fd4496f0be3c7ced90bfd5f
仓库许可证记录:Apache-2.0;repository-license-recorded-scope-unverified,查看来源。
Wire a repository through the Caveman Cloud gateway so every LLM request is measured, with no behavior change. Use for "set up caveman" or adding LLM spend observability.
历史收录数据
| 来源仓库 | juliusbrussee/caveman |
|---|---|
| Skill源路径 | skills/caveman-setup/SKILL.md |
安装前请让使用的Agent先读取这个SKILL.md及其所在目录,确认依赖和所需权限。此页不生成未经来源验证的安装命令。
