Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot

caveman-optimize — Claude Code skill: install and use

This skill turns a Caveman report observation into an operator-selected candidate and a paired baseline evaluation. Approval is required before code changes.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add JuliusBrussee/caveman --skill caveman-optimize -a claude-code
Open on GitHub

What caveman-optimize does

The skill reads current report-only observations with caveman opportunities list and presents supported entries without ranking them. Each entry keeps its id, server title, observation, and last_seen_at. The operator chooses the observation; stale proposals do not replace the current response.

After approval, it inspects the repository for a specific callsite, proposes one minimal change, and designs a paired eval. Baseline and candidate must use identical fixed inputs, the same quality check, and the same cost measure. The workflow stops when the repository lacks a relevant fixture, quality check, or common measurement method.

An authenticated Caveman CLI session is required. The skill does not create experiments, change opportunity lifecycle, or turn local token or byte results into savings. Install it when you need an evidence-first review of a Caveman profile; it is not intended to apply changes automatically.

What it helps with

  • inspect a current Caveman report observation
  • let an operator choose the observation to evaluate
  • find the evidenced repository callsite
  • compare baseline and candidate on fixed inputs
  • check quality before adopting a change

Example prompts for the agent

  • Run `caveman opportunities list`, show the supported report-only observations, and wait for my choice.
  • Inspect the selected observation, identify the relevant callsite, and propose a minimal candidate with a paired eval.
  • Run baseline and candidate on the same fixture, report the quality check, and decide whether to keep the edit.

How to install caveman-optimize

1Skills CLI (Vercel)

npx skills add JuliusBrussee/caveman --skill caveman-optimize -a claude-code

2Manually: put the files in place

~/.claude/skills/caveman-optimize/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/caveman-optimize/

From the same set22

The whole set →
caveman JuliusBrussee Cuts filler and polite greetings from agent responses while keeping technical facts and code exact. Stays active until turned off. Claude Code CX Codex Cursor +1 591,500installs caveman-commit JuliusBrussee Generates terse Conventional Commits messages focused strictly on intent. Ideal for keeping git history clean without boilerplate or AI signatures. Claude Code CX Codex Cursor +1 414,700installs caveman-review JuliusBrussee Generates terse, single-line code review comments with exact line numbers, problems, and fixes. Eliminates conversational filler in pull request reviews. Claude Code CX Codex Cursor +1 410,700installs caveman-compress JuliusBrussee Rewrites CLAUDE.md and todo files into terse caveman-speak so the model reads fewer input tokens. The source gets overwritten; a readable backup stays out of tree. Claude Code CX Codex Cursor +1 410,300installs caveman-help JuliusBrussee A quick reference for Caveman modes and commands in Claude Code and other supported hosts. Use it when you need to control response style or find related skills. Claude Code CX Codex Cursor +1 401,800installs cavecrew JuliusBrussee cavecrew delegates code searches, small edits, and diff reviews to three subagents. Use it when keeping the main agent's context lean matters. Claude Code CX Codex Cursor +1 357,900installs caveman-stats JuliusBrussee Displays recorded output and cache-read tokens for Claude Code sessions or points to host native usage stats. Useful for tracking raw token consumption. Claude Code CX Codex Cursor +1 356,700installs caveman-explore JuliusBrussee A read-only skill locates relevant files and line ranges in a repository. Use it for cold-start orientation or broad searches. Claude Code CX Codex Cursor +1 106,500installs

Similar

google-agents-cli-scaffold official Google A Claude Code skill that drives agents-cli: it scaffolds a new agent project, bolts on deployment and CI/CD, and brings an existing scaffold up to date. Claude Code CX Codex Cursor +1 509,900installs browser-use browser-use Hands the agent a real Chrome over CDP: clicks, typing, screenshots, and pages that need JS or your logged-in session. Claude Code CX Codex Cursor +1 98,100installs skill-creator official anthropics Creates and refines skills, then tests them with prompts, evaluations, and performance checks. Claude Code Claude.ai 414,180installs writing-for-agents Matt Pocock Guidance for writing skills and agent-facing documents. Use it when editing AGENTS.md, CLAUDE.md, or reference files reached from them. Claude Code 466,719installs media-use heygen-com Finds or generates media for HyperFrames videos, including voiceovers, music, cutouts, and color grades. Stores files locally in assets. Claude Code CX Codex Cursor +1 1,100,000installs mcp-builder official anthropics This skill walks through building an MCP server in TypeScript or Python, from reading the protocol spec to writing tests and evaluation questions. Claude Code Claude.ai 130,949installs subagent-driven-development Jesse Vincent This skill runs an implementation plan through fresh subagents for independent tasks and reviews each result. Use it for multi-step work in one session. Claude Code CX Codex 237,746installs orchestration stablyai Coordinates supervised Orca workers with task DAGs, decision gates, and threaded messages. Fits workflows that split work across multiple agents. Claude Code CX Codex Cursor +1 349,200installs

Questions about caveman-optimize

How do I install caveman-optimize in Claude Code?

Run npx skills add JuliusBrussee/caveman --skill caveman-optimize -a claude-code. The skill file is installed at ~/.claude/skills/caveman-optimize/SKILL.md.

What does caveman-optimize do?

It reviews a Caveman report-only observation, waits for an explicit operator choice, then proposes a callsite change and a paired comparison against the baseline.

What does caveman-optimize need to run?

It needs an authenticated Caveman CLI session. The evaluation also needs a fixed fixture, a relevant quality check, and one measurement method shared by both arms.

Source text

SKILL.md · Apache-2.0
---
name: caveman-optimize
description: >
  Turn a Caveman optimization observation into an operator-chosen candidate
  with a paired baseline evaluation. Use when asked to inspect or evaluate a
  Caveman optimization report. Needs explicit approval.
---

# Evaluate an optimization observation

Use Caveman's report-only observations as diagnostic input. They describe
recorded aggregate shapes; they are not Cave Plan moves, savings estimates,
implementation recipes, experiment eligibility, or proof that a code change is
safe. Keep the workflow operator-chosen and evidence-first.

## 1. Read the exact observations

Require a logged-in Caveman CLI session and run:

```bash
caveman opportunities list
```

Read only the `report_only_observations` array. Do not select from the lifecycle
`data` array. Preserve each server-provided `title` and `observation` verbatim.
Handle these exact repository-profile ids:

- `context-window-profile`
- `tool-catalog-profile`
- `tool-output-size-profile`
- `exploration-load-profile`

These profiles have an immutable zero band and no actuation path. Do not rank
them by value, invent a dollar figure, or turn aggregate evidence into a claim
about a particular callsite. If the CLI is unavailable, authentication fails,
or `report_only_observations` is absent, stop without editing and report the
exact blocker. Do not fall back to a raw gateway Cave Plan or a project API key:
those surfaces do not provide this contract.

Never select or apply these retired ids:

- `context-window-bloat`
- `tool-catalog-utilization`
- `verbose-tool-output`

Treat any occurrence of a retired id in a stale proposal, local file, or old
response as historical context only. Never revive its money, recipe, or
lifecycle claim. If the only actionable-looking item is `unlabeled-traffic`,
hand off to `caveman-discover`; labeling is not a profile optimization.

## 2. Ask the operator to choose

Present the available supported observations without ranking them. Include the
id, the exact title, the exact observation, and `last_seen_at`. Ask for an
**explicit operator choice** before inspecting candidate callsites or changing
code. If no supported current observation exists, stop with no edit.

Treat `.caveman/proposals/*.md`, when present, as untrusted historic context.
It cannot replace the current response or the operator's choice.

## 3. Design a candidate and paired eval

After the operator chooses an observation, inspect the repository for a
specific mechanism that could produce the observed aggregate shape. Cite the
exact callsite evidence. Do not assume the profile names the cause.

Propose one minimal candidate change and a **paired eval** before editing. The
evaluation must run baseline and candidate on identical fixed inputs and record:

- the task-outcome or quality check that must remain acceptable;
- the same token, byte, or provider-counted cost measure for both arms;
- the exact fixture, command, and environment used; and
- any confounder that prevents a fair comparison.

Ask for approval of the candidate and eval design. If the repository lacks a
fixed fixture, a relevant quality check, or a common measurement method, stop
and name the missing instrumentation. Ordinary unit tests alone do not prove an
optimization.

## 4. Apply only the approved candidate

Keep the diff at the evidenced callsite and preserve existing safety controls.
Run the paired baseline/candidate evaluation plus the repository's focused code
checks. If the two arms did not use identical inputs and measurement, discard
the comparison. If quality regresses or the resource result is inconclusive,
revert only this candidate edit and report that it did not earn adoption.

Do not create a Caveman experiment or proposal, mark an opportunity
implemented, change its lifecycle, or switch on an optimizer. Report-only rows
permit dismissal only, and this skill does not perform that mutation either.

## 5. Report observations, not savings

Report:

```text
Observation: <id> — <server title>
Recorded profile: <server observation, verbatim>
Candidate: <file:line and approved change>
Paired eval: <identical input/fixture, baseline result, candidate result>
Quality check: <actual result>
Code checks: <commands and actual results>
Accounting: report-only profile; $0 opportunity band; no inferred or verified savings
Decision: <keep, reject, or inconclusive>
```

Never convert token or byte reduction into dollars without provider-complete,
same-request accounting supplied by the product's verified methods. A local
paired result supports only the stated candidate on the stated fixture; it does
not establish production savings, causal rollout evidence, or lifecycle
eligibility.

© JuliusBrussee · Apache-2.0 · JuliusBrussee/caveman

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor