caveman-discover

작성자: juliusbrussee

현재 저장소의 모든 LLM 워크플로우를 찾아 라벨을 붙여, Caveman Cloud가 코드가 실제로 수행하는 작업(support-reply, nightly-digest)별로 지출을 그룹화하도록 합니다. 단일 익명 버킷 대신 말입니다. 사용자가 Caveman 검색 프롬프트를 붙여넣거나 "워크플로우 검색"이라고 말하거나 LLM 지출을 워크플로우별로 세분화하도록 요청할 때 사용합니다. 저장소는 이미 Caveman 게이트웨이를 통해 라우팅되어야 합니다(caveman-setup 스킬이 해당 부분을 수행합니다).

npx skills add https://github.com/juliusbrussee/caveman --skill caveman-discover

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 workflow option, or defaultWorkflow on the client a single-job service constructs.
  • Raw provider SDKs (OpenAI/Anthropic/LangChain/LiteLLM/Vercel): add "x-cave-workflow": "<slug>" to the same defaultHeaders / default_headers / extra_headers block that already carries x-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 or CAVE_WORKFLOW=<slug> env at the invocation site (cron line, CI step).
  • Raw HTTP: add the x-cave-workflow header 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 labeled path you actually exercised, and what you observed>
Lands at: <DASHBOARD>/activity?tab=workflows — each row appears as that workflow
next runs. Anything still unlabeled shows as `unlabeled-workflow`.
Not wired (no gateway routing, so no label): <list or "none">
Marked review: <slugs whose purpose was inferred from filenames, or "none">

If you found no LLM entry points at all: say exactly that, and point at the setup skill (<docs origin>/docs/agent-setup.md) instead of manufacturing a table.

juliusbrussee의 다른 스킬

caveman
juliusbrussee
초압축 통신 모드. 토큰 사용량 약 75% 절감, 원시인처럼 말하되 기술적 정확성 유지. 강도 레벨 지원: lite, full(기본값), ultra, wenyan-lite, wenyan-full, wenyan-ultra. 사용자가 "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief"라고 말하거나 /caveman을 호출할 때 사용. 토큰 효율이 요청될 때 자동 트리거됨.
communicationproductivity
caveman-commit
juliusbrussee
초압축 커밋 메시지 생성기. 커밋 메시지에서 노이즈를 줄이면서 의도와 이유를 보존합니다. Conventional Commits 형식. 제목 50자 이내, "이유"가 명확하지 않을 때만 본문 포함. 사용자가 "커밋 작성", "커밋 메시지", "커밋 생성", "/commit"을 말하거나 /caveman-commit을 호출할 때 사용. 변경 사항을 스테이징할 때 자동 트리거됩니다.
developmentcode-review
caveman-compress
juliusbrussee
자연어 메모리 파일(CLAUDE.md, todos, preferences)을 caveman 형식으로 압축하여 입력 토큰을 절약합니다. 모든 기술적 내용, 코드, URL 및 구조를 보존합니다. 압축된 버전이 원본 파일을 덮어씁니다. 사람이 읽을 수 있는 백업은 FILE.original.md로 저장됩니다. 트리거: /caveman-compress FILEPATH 또는 "compress memory file
developmentdocument
caveman-help
juliusbrussee
모든 동굴인 모드, 스킬, 명령어에 대한 빠른 참조 카드입니다. 일회성 표시이며 지속 모드가 아닙니다. 트리거: /caveman-help, "caveman help", "what caveman commands", "how do I use caveman".
developmentdocumentproductivity
caveman-review
juliusbrussee
초압축 코드 리뷰 코멘트. PR 피드백에서 잡음을 줄이고 실행 가능한 신호를 유지합니다. 각 코멘트는 한 줄로 구성: 위치, 문제, 수정. 사용자가 "이 PR 리뷰해줘", "코드 리뷰", "diff 리뷰", "/review"라고 말하거나 /caveman-review를 호출할 때 사용됩니다. 풀 리퀘스트를 리뷰할 때 자동으로 트리거됩니다.
developmentcode-review
caveman-stats
juliusbrussee
현재 세션의 실제 토큰 사용량과 예상 절감액을 표시합니다. Claude Code 세션 로그에서 직접 읽어오며, AI 추정을 사용하지 않습니다. /caveman-stats 명령어로 실행됩니다. 출력은 mode-tracker 훅에 의해 주입되며, 모델 자체는 숫자를 계산하지 않습니다.
developmentdata-analysis
cavecrew
juliusbrussee
We need to translate the given text from English to Korean. The text describes a decision guide for delegating to caveman-style subagents. It mentions specific names: cavecrew-investigator, cavecrew-builder, cavecrew-reviewer, and cavecrew. Also mentions "Explore" (likely a tool or function). The instruction says to preserve product names, protocol names, URLs, numbers, and technical terms. So we keep "cavecrew", "cavecrew-investigator", "cavecrew-builder", "cavecrew-reviewer", "Explore", "~60%", and "delegate to subagent", "use cavecrew", "spawn..." as is. The rest should be translated naturally. We need to output only the translated text, no extra commentary or labels. The source text is inside <text> tags, but we only output the translation. Let's translate: "Decision guide for delegating to caveman-style subagents." -> "원시인 스타일의 하위 에이전트에 위임하기 위한 결정 가
developmentcode-reviewapi
caveman-explore
juliusbrussee
읽기 전용 저장소 탐색기. 콜드스타트 탐색, 광범위한 파일 간 위치 파악, 또는 직접 검색이 실패하여 무언가가 어디에 있는지 찾아야 할 때 적극적으로 사용할 것. 이슈에 정확한 파일이나 심볼이 이미 명시되어 있거나, 이전 턴에서 이미 유용한 file:line 정보가 반환된 경우에는 건너뛸 것. 간결한 path:line 인용만 반환하며, 읽기 및 grep 작업은 주 대화에 포함되지 않습니다.