caveman-discover
하는 일
이 스킬은 코드 저장소의 AI 작업 목록을 만들고 그 작업에 이름표를 제안하여, 비용을 워크플로별로 묶을 수 있게 합니다. 어떤 작업이 가장 많은 비용이 드는지 알고 싶은 Caveman Cloud 사용 팀을 위한 것입니다.
사용하는 경우
- ✓저장소에서 비용이 드는 AI 워크플로가 무엇인지 보고 싶을 때.
- ✓모든 트래픽이 한 묶음에 있어서 워크플로별로 나누고 싶을 때.
- ✓제안을 검토한 후 LLM 호출에 이름표를 붙이고 싶을 때.
스킬 링크
https://github.com/JuliusBrussee/caveman/blob/main/skills/caveman-discover/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 저장소에서 LLM 워크플로를 찾아 이름표를 제안하고, 코드를 바꾸기 전에 제 승인을 기다려 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 진입점에서부터 저장소를 살펴 찾은 워크플로를 나열하고 이름표 표를 제안합니다. 승인한 뒤에만 코드를 바꾸며, 다시 실행해도 아무것도 바뀌지 않아야 합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
You are labeling this repository's LLM workflows for Caveman Cloud. A
workflow is a job the code performs — "answer a support ticket", "build the
nightly digest", "run the eval suite" — not a technology. Every gateway
request can carry a workflow label; unlabeled traffic all lands in one
unlabeled-workflow bucket. Your job: find the workflows, name them well,
wire the labels, and verify nothing broke.
This changes code, so it goes through the user's normal review: propose the table first, apply after the user agrees. Re-running on an already-labeled repo must change nothing (idempotent).
This skill is operator-invoked. An unlabeled-traffic Cave Plan observation is
review-only and does not create an advisory file, proposal, or Draft PR. Do not
infer that telemetry selected a callsite or authorized an edit. Independently
inventory the repository, present the labeling table, and wait for the user's
approval before changing code.
Step 1 — Inventory the workflows
Walk the repo from its entry points, not from its imports:
- HTTP/RPC handlers that call an LLM (directly or through layers)
- Scheduled jobs: cron definitions, queue consumers, workers, GitHub Actions that invoke LLM code
- CLI commands and scripts (
scripts/,bin/, package.json scripts) - Eval / test harnesses that burn real tokens
- Distinct agents or chains inside a framework (each LangGraph graph, each crew, each agent definition is usually its own workflow)
One workflow = one job a human would name. Ten callsites inside the same
request handler are one workflow; one shared llm.ts helper used by three
jobs is three workflows (label at the callers, never the shared helper).
Step 2 — Name them
Slug grammar (the gateway enforces this): lowercase [a-z0-9_-], 1–96 chars.
Name the job, not the tech:
- Good:
support-reply,nightly-digest,pr-review,eval-suite,onboarding-email - Bad:
openai-calls(tech),main(says nothing),SupportReply(invalid),johns-test-3(won't age)
Names are forever-ish — renaming later splits the spend history. When a job's
purpose isn't clear from the code, derive the slug from the file name and mark
it review in the table rather than inventing a purpose.
Step 3 — Propose, then apply
Present this table and ask to proceed:
| workflow | job | where | how it gets labeled |
|---|---|---|---|
| support-reply | answers inbound tickets | src/bot/reply.ts:41 | defaultHeaders on the reply client |
| nightly-digest | 02:00 summary job | jobs/digest.ts:12 | header on the digest client |
| eval-suite (review) | scripts/eval.ts:8 — purpose inferred from filename | scripts/eval.ts:8 | env override at invocation |
Then wire each label with the lightest mechanism available at that callsite:
- @caveman-ai/sdk / caveman_cloud SDK: per-trace
workflowoption, ordefaultWorkflowon the client a single-job service constructs. - Raw provider SDKs (OpenAI/Anthropic/LangChain/LiteLLM/Vercel): add
"x-cave-workflow": "<slug>"to the samedefaultHeaders/default_headers/extra_headersblock that already carriesx-cave-api-key. Shared client used by several jobs → pass the header per call (every SDK above accepts per-request header overrides), or give each job its own thin client. - Wrapped coding agents (
caveman wrap):--workflow <slug>flag orCAVE_WORKFLOW=<slug>env at the invocation site (cron line, CI step). - Raw HTTP: add the
x-cave-workflowheader to the request.
Label the callers, keep the diff minimal, match the repo's style. If a callsite is not routed through the Caveman gateway at all, don't label it — list it under "not wired" in the report (labels only travel on gateway traffic; wiring is the caveman-setup skill's job).
Step 4 — Verify
Run whatever the repo already uses to exercise one labeled path (a test, a
dev script, one curl). Then confirm: the request still succeeds (the gateway
rejects an invalid label with 400 cave_invalid_request_header — fix the slug
if so). Labeled spend appears on the dashboard at /activity?tab=workflows as
each workflow next runs; jobs on a schedule show up when the schedule fires,
and that's worth saying in the report rather than pretending they're live.
Step 5 — Report
## Workflows labeled
| workflow | job | where |
|---|---|---|
| support-reply | answers inbound tickets | src/bot/reply.ts:41 |
| nightly-digest | 02:00 summary job | jobs/digest.ts:12 |
Verified: <the la
자주 묻는 질문
바로 코드를 바꾸나요?
아닙니다. 먼저 표를 제안하고, 동의한 후에만 변경을 적용합니다.
워크플로는 무엇으로 정의되나요?
기술이 아니라 코드가 수행하는 작업을 뜻합니다. 예를 들어 지원 티켓에 답하는 것이 있습니다.
두 번 실행해도 안전한가요?
네. 설명에 따르면 이미 이름표가 붙은 저장소에서 다시 실행해도 아무것도 바뀌지 않습니다.
상세 정보
작성자의 원본 설명
Find and label every LLM workflow in the repository so Caveman Cloud groups spend by workflow instead of one bucket. Use for "discover workflows" or breaking LLM spend down by workflow.
repo: JuliusBrussee/caveman
인기도
- GitHub 스타
- 117k
- 순위
- #746
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
cavecrew
117k에이전트가 검색, 작은 수정, 변경 검토를 간결한 하위 에이전트에 맡길 시점을 골라 주 대화의 공간을 아끼도록 돕습니다.
caveman-compress
117kCLAUDE.md나 할 일 목록 같은 메모 파일을 입력 토큰을 줄이기 위해 짧은 caveman 스타일로 줄이도록 에이전트를 돕습니다.
caveman-stats
117k에이전트가 Claude Code 세션이 사용한 출력 및 캐시 읽기 토큰 수를 모드별로 묶어 보여 주도록 돕습니다.
caveman
117k에이전트가 기술적 사실은 모두 유지하면서 군더더기를 뺀 짧고 직접적인 스타일로 답하도록 돕습니다.
비슷한 스킬
gitcrawl
394k에이전트가 저장된 GitHub 이슈와 풀 리퀘스트 보관본을 검색하고, 중복 항목을 묶고, GitHub에서 현재 상태를 확인하도록 돕습니다.
slacrawl
394k에이전트가 로컬 Slack 보관본에서 메시지를 검색하고 개수를 세며, 보관본이 얼마나 최신인지 확인하고 필요할 때 새로 고치도록 돕습니다.
goplaces
394k에이전트가 Google Places로 장소를 검색하고, 세부 정보와 리뷰를 가져오고, 장소 이름을 확인하며, 스크립트용 JSON을 출력하도록 돕습니다.