caveman-learn

Applies consent-gated fixes to ranked token sinks from a Caveman learn report.

1|Updated May 3, 2021
One-click install
npx skills add https://github.com/leogurja/dotfiles --skill caveman-learn-leogurja
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: caveman-learn
Source: https://github.com/leogurja/dotfiles/tree/main/home/dot_agents/skills/caveman-learn
Command: npx skills add https://github.com/leogurja/dotfiles --skill caveman-learn-leogurja

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AI agent configurations accumulate token waste: bloated CLAUDE.md files, never-invoked skills, and context re-pasted every session. The caveman learn analyzer measures where tokens go, but acting on its findings requires careful, reversible edits that provably reduce cost without degrading the agent's recall. ## Core Features & Use Cases - Consent-gated fix loop: Reviews ranked token sinks from caveman learn report --json and proposes one fix at a time, applying each edit only after explicit user approval. - Net-token-negative gate: Re-measures every applied trim and reverts any edit that fails to lower tokens per turn. - Cavemem offload: Moves recurring context blocks into cavemem with a pointer left behind, verifying recall works before trimming the source so the agent never loses access to the content. - Skill distillation holdouts: For repeated tool-step procedures, writes a skill and starts an on/off experiment instead of claiming unproven savings. - Use Case: After running a Caveman learn scan showing a heavy CLAUDE.md as the top sink, use this Skill to dry-run a candidate trim, approve the diff, confirm the token reduction, and record the outcome for longitudinal tracking. ## Quick Start Ask the agent to run a caveman learn report and walk you through fixing the top token sinks one approved edit at a time.

Frequently Asked Questions about caveman-learn

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reduce my AI agent's token costs with caveman learn?▼

Run caveman learn report --json to get a Cave Score and ranked token sinks, then use this skill to review each sink. It proposes concrete fixes per sink class and applies them only after your per-edit approval, re-measuring to confirm the reduction.

How does cavemem offload work for recurring context?▼

The skill verifies the block via its content hash, stores it with caveman mem remember, and replaces it with a pointer. It confirms recall returns the content before trimming the source, and reverts entirely if recall fails or tokens do not decrease.

Can caveman learn apply edits automatically without approval?▼

No. Every edit is consent-gated individually with no apply-all option, and the caveman learn analyzer itself is read-only. The skill is the only writer, and each change is reversible with an exact report of what changed.

What happens if a trim does not lower tokens per turn?▼

The net-token-negative gate rejects it: the edit is reverted and the failure is reported. For offloads, the stored memory is forgotten and the source file is left untouched.

Why are skill distillation fixes handled with experiments instead of the token gate?▼

A distilled skill loads every session but pays back only on matching sessions, so a file re-count cannot measure it. The skill starts an on/off holdout experiment requiring at least 5 sessions per arm before any verdict.