Agents Best Practices
DenisSergeevitch/agents-best-practices
A skill your agent uses when designing, generating an MVP blueprint for, auditing, troubleshooting, refactoring, or explaining an agentic harness for any domain.
Turns a Caveman report-only optimization observation into one minimal code change and a paired baseline evaluation, after the operator picks which to pursue.
$ npx skills add JuliusBrussee/caveman --skill caveman-optimize -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install JuliusBrussee/caveman caveman-optimize --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/JuliusBrussee/caveman.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/caveman-optimize .claude/skills/caveman-optimize && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "caveman-optimize" agent skill from https://github.com/JuliusBrussee/caveman/tree/main/skills/caveman-optimize into .claude/skills/caveman-optimize/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "caveman-optimize", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/JuliusBrussee/caveman/tree/main/skills/caveman-optimizeType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add JuliusBrussee/caveman --skill caveman-optimize -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install JuliusBrussee/caveman caveman-optimize --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/JuliusBrussee/caveman.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/caveman-optimize .agents/skills/caveman-optimize && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "caveman-optimize" agent skill from https://github.com/JuliusBrussee/caveman/tree/main/skills/caveman-optimize into .agents/skills/caveman-optimize/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "caveman-optimize", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add JuliusBrussee/caveman --skill caveman-optimize -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install JuliusBrussee/caveman caveman-optimize --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/JuliusBrussee/caveman.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/caveman-optimize .cursor/skills/caveman-optimize && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "caveman-optimize" agent skill from https://github.com/JuliusBrussee/caveman/tree/main/skills/caveman-optimize into .cursor/skills/caveman-optimize/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "caveman-optimize", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/JuliusBrussee/caveman.git --path skills/caveman-optimize--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add JuliusBrussee/caveman --skill caveman-optimize -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install JuliusBrussee/caveman caveman-optimize --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/JuliusBrussee/caveman.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/caveman-optimize .gemini/skills/caveman-optimize && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "caveman-optimize" agent skill from https://github.com/JuliusBrussee/caveman/tree/main/skills/caveman-optimize into .gemini/skills/caveman-optimize/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "caveman-optimize", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install JuliusBrussee/caveman caveman-optimizeInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add JuliusBrussee/caveman --skill caveman-optimize -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/JuliusBrussee/caveman.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/caveman-optimize .github/skills/caveman-optimize && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "caveman-optimize" agent skill from https://github.com/JuliusBrussee/caveman/tree/main/skills/caveman-optimize into .github/skills/caveman-optimize/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "caveman-optimize", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add JuliusBrussee/caveman --skill caveman-optimize -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install JuliusBrussee/caveman caveman-optimize --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/JuliusBrussee/caveman.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/caveman-optimize .opencode/skills/caveman-optimize && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "caveman-optimize" agent skill from https://github.com/JuliusBrussee/caveman/tree/main/skills/caveman-optimize into .opencode/skills/caveman-optimize/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "caveman-optimize", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
caveman-optimizeTurns a Caveman report-only optimization observation into one minimal code change and a paired baseline evaluation, after the operator picks which to pursue.
The skill treats Caveman's report-only observations as diagnostic input, not as savings estimates, recipes or proof that a change is safe. It needs a logged-in Caveman CLI session, runs caveman opportunities list, and reads only the report_only_observations array, keeping each title and observation word for word. It handles four repository profiles: context window, tool catalog, tool output size and exploration load. They cannot be ranked by value or given dollar figures, and aggregate evidence is never pinned on a particular callsite.
If the CLI is missing, sign-in fails or the array is absent, the agent stops without editing and reports the blocker, rather than falling back to a raw gateway plan or a project API key. Three retired ids are never applied, and an unlabeled-traffic item goes to caveman-discover instead. The agent lists the supported observations unranked with their id, title, text and last-seen time, and waits for your explicit choice before looking at callsites or changing code.
After you choose, it inspects the repository for a specific mechanism that could produce the observed shape, cites the callsite evidence, and proposes one minimal candidate change with a paired evaluation before editing anything. Notes in .caveman/proposals are treated as untrusted history. The excerpt is cut off partway through that last step.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 538b491. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Caveman Optimization Evaluator loads about 1.2k tokens when it runs. Until then it costs about 55 tokens; SKILL.md has 565 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from JuliusBrussee/caveman at commit 538b491, republished under its Apache-2.0 licence (© JuliusBrussee). 565 words, ~1,181 tokens.
.claude/skills/caveman-optimize/SKILL.md (or your agent's skills folder).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.
Require a logged-in Caveman CLI session and run:
caveman opportunities listRead 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-profiletool-catalog-profiletool-output-size-profileexploration-load-profileThese 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-bloattool-catalog-utilizationverbose-tool-outputTreat 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.
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.
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:
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.
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.
Report:
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. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/caveman-optimize of JuliusBrussee/caveman.
Open the folder on GitHubat commit 538b491
We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in JuliusBrussee/caveman, which our catalogue first saw on October 7, 2026.
Caveman Optimization Evaluator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Caveman Optimization Evaluator this skillJuliusBrussee/caveman | 110k | 1 repos | ~1.2k | Automated safety check: Pass | Apache-2.0 | |
| Agents Best PracticesDenisSergeevitch/agents-best-practices | 2.4k | — | ~7.4k | Automated safety check: Pass | MIT | |
| Cross-Model Benchmarkgarrytan/gstack | 136k | — | ~4k | Automated safety check: Notes | MIT | |
| Prompt EngineerJeffallan/claude-skills | 12k | 1 repos | ~1.5k | Automated safety check: Pass | MIT | |
| GAIA Agent Benchmarkingamd/gaia | 1.6k | — | ~1.8k | Automated safety check: Pass | MIT | |
| Dt Obs GenaiDynatrace/dynatrace-for-ai | 161 | — | ~4.5k | Automated safety check: Pass | Apache-2.0 |
DenisSergeevitch/agents-best-practices
A skill your agent uses when designing, generating an MVP blueprint for, auditing, troubleshooting, refactoring, or explaining an agentic harness for any domain.
garrytan/gstack
Sends one prompt to Claude, GPT through the Codex CLI and Gemini, then tabulates response time, token use and cost, with an optional judged quality score.
Jeffallan/claude-skills
Designs, tests and refines LLM prompts: zero-shot, few-shot and chain-of-thought patterns, system prompts, structured output schemas and evaluation test suites.
amd/gaia
Benchmarks AMD's GAIA agent against Claude Code and across models on quality, honesty, steps, tokens, time and real cost, using gaia eval tasks.
Dynatrace/dynatrace-for-ai
Analyze & debug GenAI/LLM apps: token cost & caching by prompt, model & provider; latency/errors; agent & tool loops/failures; conversations; guardrails; evaluations; OpenTelemetry/dt-evals setup.
undefined-ui/second-brain-os
Audit an agent's context layout against the four places: system prompt, tools, history, tail.
JuliusBrussee/caveman
Finds every LLM workflow in a repository, proposes a labeling table and, once you agree, wires labels so Caveman Cloud groups spend per workflow.
JuliusBrussee/caveman
Read-only review of Caveman Cloud data to explain where LLM spend goes: cost, score, workflows, traces, latency, errors, routing and verified savings.
JuliusBrussee/caveman
Reads the state and results of Caveman Cloud experiments and reports one recommendation or a block, without changing an experiment's lifecycle itself.
JuliusBrussee/caveman
Routes every LLM call in a repository through the Caveman Cloud gateway in record mode, so requests and costs are measured without changing behavior.
JuliusBrussee/caveman
Quick-reference card for the three caveman skills and their commands. Trigger: /caveman-help or "caveman help".
JuliusBrussee/caveman
Switches the agent to a terse reply style that gives the answer first, drops filler, and keeps every technical fact, command and number exact.
Categories
Turns a Caveman report-only optimization observation into one minimal code change and a paired baseline evaluation, after the operator picks which to pursue. The skill treats Caveman's report-only observations as diagnostic input, not as savings estimates, recipes or proof that a change is safe. It needs a logged-in Caveman CLI session, runs caveman opportunities list, and reads only the report_only_observations array, keeping each title and observation word for word.
Caveman Optimization Evaluator fits situations like: inspecting a Caveman optimization report before changing any code; evaluating one chosen observation with a baseline-versus-candidate comparison; checking whether an observation is current or already retired.
Run `npx skills add JuliusBrussee/caveman --skill caveman-optimize -a claude-code`. Or copy the skill folder (skills/caveman-optimize in JuliusBrussee/caveman) into .claude/skills/caveman-optimize in your project. Claude Code loads it when a task matches its description.
Run `npx skills add JuliusBrussee/caveman --skill caveman-optimize -a codex`. Or copy the skill folder (skills/caveman-optimize in JuliusBrussee/caveman) into .agents/skills/caveman-optimize in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add JuliusBrussee/caveman --skill caveman-optimize -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/caveman-optimize, .gemini/skills/caveman-optimize, .github/skills/caveman-optimize and .opencode/skills/caveman-optimize in your project.
SKILL.md names no scripts, command-line tools or credentials: Caveman Optimization Evaluator is instructions for the agent only. Our summary lists: A logged-in Caveman CLI session; A repository where the chosen observation's callsites can be inspected.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Caveman Optimization Evaluator is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.2k tokens (SKILL.md is roughly 4.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Caveman Optimization Evaluator: Agents Best Practices (DenisSergeevitch/agents-best-practices, 2.4k stars), Cross-Model Benchmark (garrytan/gstack, 136k stars), Prompt Engineer (Jeffallan/claude-skills, 12k stars) and GAIA Agent Benchmarking (amd/gaia, 1.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
JuliusBrussee (a GitHub user) maintains it in JuliusBrussee/caveman, which has 110,443 GitHub stars. The repository holds 18 skills in this directory. The repository was last updated on October 8, 2026.
Source: JuliusBrussee/caveman on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.