Index of every page on this site: llms.txt
All skills
juliusbrussee avatar

/caveman-learn

@bad48a0
by Julius Brusseejuliusbrussee/caveman114k stars
6,594
Run it yourself

Act on a Caveman learn report - review the ranked token sinks, apply cost-lowering fixes with per-edit consent, and report what those fixes returned. Use when asked to lower an agent's token cost, what caveman has saved, to trim a heavy CLAUDE.md, or to offload re-pasted context into cavemem.

Use this Skill: https://skilld.dev/gh/juliusbrussee/caveman/caveman-learn

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

README.md

≈458 tokens on demand. Your agent reads this file only when SKILL.md points to it.

caveman-learn skill

Close the loop on caveman learn. The command finds where your agent's tokens go; this skill walks through the findings with you and applies the fixes, one approved edit at a time.

Install

caveman skills install caveman-learn            # this repo's .claude/skills
caveman skills install caveman-learn --user      # all repos (~/.claude/skills)
caveman skills install caveman-learn --agent codex

What it does

  1. Runs caveman learn report --json and shows your Setup Score and the findings, biggest first.
  2. For each finding you pick, it proposes a fix and asks yes or no:
    • Safe fix (a heavy CLAUDE.md, a skill you never use): a concrete trim. It is kept only if it measurably makes every message smaller.
    • Repeated text (text you paste again in session after session): move it to Caveman memory (cavemem). The full text is stored once, the agent recalls a short version when it needs it, and a small pointer stays behind. Kept only when it beats pasting, and only after a test recall proves the text still comes back.
    • Needed (setup your agent relies on): never touched.

After an approved edit passes its re-check, caveman learn applied <id> records which finding was fixed, how, when, and its size before. Later scans compare the sessions after the fix and report improved, unchanged, regressed, or insufficient_data (not enough sessions yet). This record does not edit your own or your repository's files.

Honesty

Everything is an estimate (inferred): no currency, never "verified". Every edit waits for your yes and can be undone. A move to memory that would leave the agent unable to recall the text is rejected. caveman learn itself never edits your files; this skill does, and only with your yes.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts7d3 checks · Risk SAFE
  • Gen Agent Trust Hub7d

    The skill is a token optimization tool designed to reduce an AI agent's token usage by analyzing performance reports and suggesting fixes. It demonstrates high security standards by requiring explicit user consent for every file modification, verifying content integrity using SHA256 hashes before processing, and implementing a 'net-token-negative' gate that reverts any changes that do not measurably improve efficiency.

  • Socket7d

    No alerts

  • Snyk7d

    Risk: LOW · No issues

Signed by skilld at bad48a0. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last week.

Activeupdated last week

README badge

README badge for juliusbrussee/caveman/caveman-learn