compress
Skill512 starsChanged 3 months agoMITView on GitHub
Save this session to a searchable CPR log with a curated summary plus the raw transcript. Run before /compact or before ending a session. Add "quick" to skip the questions.
18 other projects use a version of this.
Adopted by
Most recently taken up by
- voxlo-dev/Lean-Coding-Workspacetheir own version, first seen Oct 5, 2026
- ilang-ai/autocodetheir own version, first seen Sep 20, 2026
- dev-willbird1936/skillstheir own version, first seen Sep 15, 2026
- dorian-akhs/skillstheir own version, first seen Sep 1, 2026
- crfldrxyz/AuthorOps-Skillstheir own version, first seen Sep 1, 2026
- utk2103/Prompt-Studiotheir own version, first seen Aug 22, 2026
Used with
Projects with it also use caveman.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MicrosoftSkillcaveman
Ultra-compressed response style that reduces output token count while preserving technical accuracy, with intensity levels and auto-clarity safety rules
Also in 6 projects that use this
Other versions18 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 18
- cwinvestments/memstack★ 422same name
- iurykrieger/claude-bedrock★ 104same name
- ilang-ai/autocode★ 103same name
- owainlewis/agent-skills★ 44same name
- JPauravS/claudecode-token-optimizer★ 8same name
- utk2103/Prompt-Studio★ 8same name
- IsNoobgrammer/skills-for-agents★ 4same name
- hmzainjamil/claude-ai-skills★ 3same name
- huangzida/skills★ 2same name
- skytiger6724/qwen-skills★ 2same name
8 more not listed
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.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 14 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 29
Ask them with AskUserQuestion, one call each.
- Very specific: line 80
Keep bullets short and concrete.
- Distinctive: line 84
Do not type the conversation yourself.
“Common” is measured: kept by at least 6 in 10 of the 14 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
/cpr:compress
Save this conversation as a session log that a future session can load in seconds and search by topic. The log has two parts: a structured summary you write, and the raw transcript a script appends. Run it before /compact or before ending the session. The CPR hooks also autosave the raw transcript before every compaction, so this skill is where the curated summary comes from.
Where this log goes
!python3 "${CLAUDE_PLUGIN_ROOT}/scripts/cpr_paths.py"
Session id for the raw transcript: ${CLAUDE_SESSION_ID}
Arguments
$ARGUMENTS
- Contains
quick: skip the three questions below. Include every section that has real content, and derive the topic name yourself. - Any other words: use them as the topic name (lowercase, hyphens), and still ask the first two questions.
- Empty: run all three questions.
The questions
Ask them with AskUserQuestion, one call each. The tool adds its own free-text option, so never add an "Other" option and never fall back to a plain-text prompt.
- What to preserve. Multi-select, header "Preserve". Options: Key Learnings, Solutions & Fixes, Decisions Made, Files Modified, Setup & Config, Pending Tasks, Errors & Workarounds. Recommend the ones this session actually produced.
- Custom note. Single-select, header "Custom note", exactly two options:
SkipandAdd a custom note. A free-text answer is the note, kept verbatim. - Topic name. Derive a 3-5 word, lowercase, hyphenated topic first (for example
api-auth-refactor). Single-select, header "Topic name", exactly two options:Accept: {suggested-name}andProvide a different name. A free-text answer is the topic, normalised to lowercase and hyphens.
Write the log
Filename: {timestamp_slug}-{topic}.md inside logs_dir from the block above. Create the folder if it is missing. Write only the sections the user chose, plus the three that are always present: Quick Reference, Quick Resume Context, and Custom Notes.
# Session Log: {timestamp_display} - {topic}
## Quick Reference (for AI scanning)
**Confidence keywords:** {10-20 search terms: project names, technologies, actions, identifiers, people relevant to decisions}
**Projects:** {project names or references mentioned}
**Outcome:** {one sentence}
## Decisions Made
- {decision and the reason}
## Key Learnings
- {learning}
## Solutions & Fixes
- {what was broken, what fixed it, the command or code if short}
## Files Modified
- `{path}`: {what changed}
## Setup & Config
- {exact values: paths, flags, env names. Never paraphrase an identifier}
## Pending Tasks
- [ ] {unfinished work, next steps, blockers}
## Errors & Workarounds
- {error and the workaround}
## Key Exchanges
- {notable exchange, one line}
## Custom Notes
{the note from question 2, or "None"}
---
## Quick Resume Context
{2-3 sentences a future session needs before touching anything. This paragraph is what the SessionStart hook shows at the start of every new session, so make it carry the state.}Keep bullets short and concrete. Preserve exact values. Keywords matter more than they look: /cpr:resume <topic> searches them.
Append the raw transcript
Do not type the conversation yourself. After the file is saved, run:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/dump_transcript.py" "{logs_dir}/{filename}" ${CLAUDE_SESSION_ID}It appends ## Raw Session Log with every user message and assistant reply, skips tool calls and thinking, mirrors the file if routing is configured, and prints the number of turns written. The archive costs zero model output tokens.
Confirm
## Session Saved
`{logs_dir}/{filename}`
- **Project:** {project_name}
- **Topic:** {topic}
- **Sections:** {chosen sections}
- **Keywords:** {keywords}
- **Raw log:** {N} turns appended
Next: `/compact` if you are continuing, or just close the session. `/cpr:resume` loads this back next time.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.

