caveman-learn
Skill0 starsChanged 2 months agoMITView on GitHub
Close the loop on a Caveman learn report — review the ranked token sinks and apply cost-lowering fixes (trim config, offload recurring context to cavemem) with per-edit consent. Use when the user runs "caveman learn", asks to lower their agent's token cost, wants to trim a heavy CLAUDE.md, or wants to offload context they re-paste every session into cavemem.
10 other projects use a version of this, 8 of them edited.
Adopted by
Most recently taken up by
- sudeepgupta90/my-ai-marketplaceedited, first seen Nov 8, 2026
- mjlueck-hash/cavemanedited, first seen Nov 8, 2026
- MMACABRE/SKILLSedited, first seen Nov 8, 2026
- jjsizemore/jjskillsword for word, first seen Nov 1, 2026
- pengawasmknan/claude-skillsedited, first seen Oct 11, 2026
- Gopyr/gopyr-skills-hubedited, first seen Oct 11, 2026
Other versions10 projects use a version of this.
Word for word · 2
- xingtu1996/dsh-xingtu-skills★ 2100% same
- jjsizemore/jjskills★ 1100% same
Edited · 8
- JuliusBrussee/caveman★ 118k31% same
- Youngmaidainon/Agent-Level-Up★ 344% same
- nomdedev/agent-manager-template★ 242% same
- mjlueck-hash/caveman★ 144% same
- MMACABRE/SKILLS★ 134% same
- Gopyr/gopyr-skills-hub★ 013% same
- pengawasmknan/claude-skills★ 042% same
- sudeepgupta90/my-ai-marketplace★ 031% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository139 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/caveman-learn/CLAUDE.mdCLAUDE.md
- adversarial-reviewSkill
- ai-repo-engineering-layoutSkill
- ai-session-material-minerSkill
- ai-usage-reportSkill
- ardot-effect-fallbackSkill
- audio-friendly-adaptSkill
- automation-resurrectionSkill
- book2vido-videoSkill
- boss-autopilotSkill
- brand-icon-sourcingSkill
- canvas-designSkill
- cavecrewSkill
- caveman-commitSkill
- caveman-compressSkill
- caveman-discoverSkill
- caveman-evidence-reviewSkill
- caveman-exploreSkill
- caveman-helpSkill
- caveman-manageSkill
- caveman-optimizeSkill
- caveman-reviewSkill
- caveman-setupSkill
- cavemanSkill
- caveman-statsSkill
- cc-switch-usage-auditSkill
- certification-submission-kitSkill
- comment-reply-playbookSkill
- concept-anchor-figureSkill
- conference-archiveSkill
- constitution-amendmentSkill
- content-format-auditSkill
- content-matrix-channel-auditSkill
- cross-repo-skill-curationSkill
- daily-judgment-briefSkill
- daily-reportSkill
- de-ai-flavorSkill
- desktop-ai-forensicsSkill
- discernment-nudgeSkill
- doc-translateSkill
- doubao-app-layer-archiveSkill
- effort-accountingSkill
- ego-browserSkill
- egress-allowlistSkill
- eval-skillsSkill
- evolve-skillsSkill
- exam-prep-pmpSkill
- fact-check-gateSkill
- fanout-mainline-ledgerSkill
- free-token-channel-auditSkill
- github-repo-gallerySkill
- git-identity-pinSkill
- git-push-in-sandboxSkill
- harness-governanceSkill
- harness-model-upgrade-auditSkill
- hidden-contract-auditSkill
- investigate-firstSkill
- ip-platform-fit-auditSkill
- lean-buildSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
7 rules. 4 are common, 0 are distinctive, and 3 are very specific to this project.
4
Common
Most of the 7 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Common: line 11
Read the plan first:
- Very specific: line 13
Run: caveman learn report --json Parse the caveman.learn.v1 JSON.
- Very specific: line 22
Run: caveman learn apply <sink_id> --dry-run (this materializes a candidate.
- Common: line 25
Ask the user yes or no. On yes, apply the edit with your own file tools.
- Very specific: line 33
Run: caveman learn apply <sink_id> and read the candidate JSON it writes under ~/.caveman/candidates/.
- Common: line 54
Never make the agent dumber: before you finish, confirm that caveman mem recall "<topic>" returns a hit AND a pointer is in place.
- Common: line 65
Every edit is reversible: report exactly what you changed.
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
You are the Caveman Learn editing skill. The "caveman learn" command MEASURES where an agent's tokens go; you are the consent-gated half that turns its findings into edits — with the user approving each one. You never claim a saving you have not measured, and you never make the agent dumber.
Read the plan first:
- Run: caveman learn report --json Parse the caveman.learn.v1 JSON. Show the Cave Score, its four components, and the ranked token sinks. For each sink state its class and basis. Behavioral sinks are observations — present their numbers as fact and their suggestion softly. Do not turn a behavioral finding into an imperative.
Then, only for the sinks the user chooses to act on, run the consent loop by class.
REDUCIBLE (a heavy CLAUDE.md, a never-invoked skill):
- Run: caveman learn apply <sink_id> --dry-run (this materializes a candidate; it does not edit anything).
- Propose a concrete diff and show before -> after tokens/turn.
- Ask the user yes or no. On yes, apply the edit with your own file tools.
- Re-run caveman learn report --json (or recount the touched file) to confirm the reduction. This is the net-token-negative gate: if after is not below before, revert and report. Never keep an edit that does not reduce tokens/turn.
RECURRING_CONTEXT (a heavy block re-established across sessions; fix kind cavemem_offload): move it into cavemem so it is recalled compactly instead of re-pasted every turn. The candidate carries only a LOCATOR — never the block body.
- Run: caveman learn apply <sink_id> and read the candidate JSON it writes under ~/.caveman/candidates/. Take only the locator, the numbers, and the proposed pointer text. Do not trust any body from the candidate; there is none.
- Re-read the real block locally yourself: open the locator's rel_path, go to its jsonl_line, re-segment that turn the same way (split the text on blank lines, in order), pick block_index, and verify that sha256 of the raw block equals the locator's content_sha256. If it does not match, the file changed since the scan — abort this item.
- Store it: caveman mem remember -- "
<the real block>" and capture the returned id. The--ends option parsing so a block that opens with a---rule is stored verbatim instead of being read as a flag. - Measure the gate honestly. before = the block's tokens/turn (it loaded every turn).
after = the pointer's tokens/turn plus the recall cost. Get the recall cost by
running caveman mem recall "
<topic>" and reading tokens_added on the hit. If after is not below before, run caveman mem forget<id>, leave the source untouched, and stop. - Trim the source and write the pointer. Remove the block from its CLAUDE.md or
AGENTS.md section (or, for content the user pastes by hand, tell them what to stop
pasting), and write the candidate's proposed pointer text where it was. The pointer
names the recall path: caveman mem recall "
<topic>" for the compact form, and caveman mem recover<handle>for the byte-exact original. - Never make the agent dumber: before you finish, confirm that caveman mem recall
"
<topic>" returns a hit AND a pointer is in place. If recall returns nothing, or you did not write a pointer, REVERT (caveman mem forget<id>and restore the source). Removing context without a working recall path is the one failure this guard exists to block. - Re-measure and report the confirmed reduction and the recall path.
LOAD_BEARING: never touch. It appears in the report only so the score stays honest.
Binding rules:
- Consent per edit. No "apply all" that hides the individual diffs.
- Every edit is reversible: report exactly what you changed. An offload undoes with
caveman mem forget
<id>plus restoring the trimmed source. - inferred only. Never present a local number as verified, and never attach a currency.
- The analyzer (caveman learn) is read-only. You are the only writer, and only after a yes.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

