Memori Long-Term Memory
MemoriLabs/Memori
Connects Claude Code to Memori Cloud for long-term memory, recalling stored context before substantive replies and saving new context afterward.
Saves the current session as a searchable log with a curated summary and the raw transcript, so a later session can resume from it.
$ npx skills add EliaAlberti/cpr-compress-preserve-resume --skill compress -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install EliaAlberti/cpr-compress-preserve-resume compress --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/EliaAlberti/cpr-compress-preserve-resume.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/compress .claude/skills/compress && 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 "compress" agent skill from https://github.com/EliaAlberti/cpr-compress-preserve-resume/tree/main/skills/compress into .claude/skills/compress/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "compress", 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/EliaAlberti/cpr-compress-preserve-resume/tree/main/skills/compressType 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 EliaAlberti/cpr-compress-preserve-resume --skill compress -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install EliaAlberti/cpr-compress-preserve-resume compress --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/EliaAlberti/cpr-compress-preserve-resume.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/compress .agents/skills/compress && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "compress" agent skill from https://github.com/EliaAlberti/cpr-compress-preserve-resume/tree/main/skills/compress into .agents/skills/compress/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "compress", 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 EliaAlberti/cpr-compress-preserve-resume --skill compress -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install EliaAlberti/cpr-compress-preserve-resume compress --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/EliaAlberti/cpr-compress-preserve-resume.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/compress .cursor/skills/compress && 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 "compress" agent skill from https://github.com/EliaAlberti/cpr-compress-preserve-resume/tree/main/skills/compress into .cursor/skills/compress/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "compress", 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/EliaAlberti/cpr-compress-preserve-resume.git --path skills/compress--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 EliaAlberti/cpr-compress-preserve-resume --skill compress -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install EliaAlberti/cpr-compress-preserve-resume compress --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/EliaAlberti/cpr-compress-preserve-resume.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/compress .gemini/skills/compress && 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 "compress" agent skill from https://github.com/EliaAlberti/cpr-compress-preserve-resume/tree/main/skills/compress into .gemini/skills/compress/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "compress", 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 EliaAlberti/cpr-compress-preserve-resume compressInstalls 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 EliaAlberti/cpr-compress-preserve-resume --skill compress -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/EliaAlberti/cpr-compress-preserve-resume.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/compress .github/skills/compress && 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 "compress" agent skill from https://github.com/EliaAlberti/cpr-compress-preserve-resume/tree/main/skills/compress into .github/skills/compress/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "compress", 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 EliaAlberti/cpr-compress-preserve-resume --skill compress -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install EliaAlberti/cpr-compress-preserve-resume compress --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/EliaAlberti/cpr-compress-preserve-resume.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/compress .opencode/skills/compress && 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 "compress" agent skill from https://github.com/EliaAlberti/cpr-compress-preserve-resume/tree/main/skills/compress into .opencode/skills/compress/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "compress", 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.
compressSaves the current session as a searchable log with a curated summary and the raw transcript, so a later session can resume from it.
Run before `/compact` or before ending a session, this command writes a markdown session log in two parts: a structured summary the agent writes and the raw transcript appended by a script. The CPR hooks already autosave the raw transcript before each compaction, so this skill is where the curated part comes from. Adding `quick` skips the questions.
Without `quick`, it asks up to three questions: what to preserve (key learnings, solutions and fixes, decisions, files modified, setup and config, pending tasks, errors and workarounds), an optional custom note, and a lowercase hyphenated topic name of three to five words. The file is named from a timestamp and the topic, always includes Quick Reference, Quick Resume Context and Custom Notes sections, and keeps exact values and keywords because `/cpr:resume` searches them.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit cfd1e77. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
ReadWriteAskUserQuestionBash(python3 *)Bash(mkdir *)From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
python3From 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.
CPR Compress loads about 1.1k tokens when it runs. Until then it costs about 45 tokens; SKILL.md has 360 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 EliaAlberti/cpr-compress-preserve-resume at commit cfd1e77, republished under its MIT licence (© EliaAlberti). 360 words, ~1,073 tokens.
.claude/skills/compress/SKILL.md (or your agent's skills folder).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.
!python3 "${CLAUDE_PLUGIN_ROOT}/scripts/cpr_paths.py"
Session id for the raw transcript: ${CLAUDE_SESSION_ID}
$ARGUMENTS
quick: skip the three questions below. Include every section that has real content, and derive the topic name yourself.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.
Skip and Add a custom note. A free-text answer is the note, kept verbatim.api-auth-refactor). Single-select, header "Topic name", exactly two options: Accept: {suggested-name} and Provide a different name. A free-text answer is the topic, normalised to lowercase and hyphens.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.
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.
## 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.© EliaAlberti, MIT. 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/compress of EliaAlberti/cpr-compress-preserve-resume.
Open the folder on GitHubat commit cfd1e77
CPR Compress 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 |
|---|---|---|---|---|---|---|
| CPR Compress this skillEliaAlberti/cpr-compress-preserve-resume | 514 | — | ~1.1k | Automated safety check: Pass | MIT | |
| Memori Long-Term MemoryMemoriLabs/Memori | 17k | — | ~2k | Automated safety check: Notes | Custom licence | |
| Planning with FilesOthmanAdi/planning-with-files | 27k | — | ~2.9k | Automated safety check: Pass | MIT | |
| User Thoughts Memorysickn33/agentic-awesome-skills | 47k | 1 repos | ~2.5k | Automated safety check: Pass | MIT | |
| Planning With FilesOthmanAdi/planning-with-files | 27k | — | ~3k | Automated safety check: Pass | MIT | |
| Harness Engineering10xChengTu/harness-engineering | 102 | 1 repos | ~1k | Automated safety check: Pass | None |
MemoriLabs/Memori
Connects Claude Code to Memori Cloud for long-term memory, recalling stored context before substantive replies and saving new context afterward.
OthmanAdi/planning-with-files
Keeps a task plan, findings and progress log in markdown files on disk so long agent tasks survive context resets, with Gemini hooks and helper scripts.
sickn33/agentic-awesome-skills
Saves a user's project decisions, rules and preferences into a project-local mdbase so later sessions and other agents can recover the intent.
OthmanAdi/planning-with-files
Keeps a task plan, findings and progress log as Markdown files in the project so long multi-step agent work survives context resets.
10xChengTu/harness-engineering
Set up and improve harness engineering (AGENTS.md, docs/, lint rules, eval systems, project-level prompt engineering) for AI-agent-friendly codebases.
OthmanAdi/planning-with-files
Keeps task_plan.md, findings.md and progress.md on disk as the agent's working memory for multi-step work, wired into Kiro steering, with no hooks.
EliaAlberti/cpr-compress-preserve-resume
Writes this session's durable learnings into the project's CLAUDE.md and keeps the file short by archiving stale sections.
EliaAlberti/cpr-compress-preserve-resume
Loads context from recent CPR session logs at the start of a session and can search past sessions by topic, then writes a short resume report.
Categories
Saves the current session as a searchable log with a curated summary and the raw transcript, so a later session can resume from it. Run before `/compact` or before ending a session, this command writes a markdown session log in two parts: a structured summary the agent writes and the raw transcript appended by a script. The CPR hooks already autosave the raw transcript before each compaction, so this skill is where the curated part comes from.
CPR Compress fits situations like: saving a long session before running /compact; ending a session with decisions and pending tasks recorded for next time; creating a searchable log of fixes and workarounds found during debugging.
Run `npx skills add EliaAlberti/cpr-compress-preserve-resume --skill compress -a claude-code`. Or copy the skill folder (skills/compress in EliaAlberti/cpr-compress-preserve-resume) into .claude/skills/compress in your project. Claude Code loads it when a task matches its description.
Run `npx skills add EliaAlberti/cpr-compress-preserve-resume --skill compress -a codex`. Or copy the skill folder (skills/compress in EliaAlberti/cpr-compress-preserve-resume) into .agents/skills/compress 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 EliaAlberti/cpr-compress-preserve-resume --skill compress -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/compress, .gemini/skills/compress, .github/skills/compress and .opencode/skills/compress in your project.
Going by SKILL.md and its folder, CPR Compress needs the command-line tools its instructions call (python3). Our summary lists: The CPR plugin; Python 3 for its path and transcript scripts. Its frontmatter pre-approves these tools: Read, Write, AskUserQuestion, Bash(python3 *), Bash(mkdir *).
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.
CPR Compress is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.1k tokens (SKILL.md is roughly 4.3k 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 CPR Compress: Memori Long-Term Memory (MemoriLabs/Memori, 17k stars), Planning with Files (OthmanAdi/planning-with-files, 27k stars), User Thoughts Memory (sickn33/agentic-awesome-skills, 47k stars) and Planning With Files (OthmanAdi/planning-with-files, 27k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
EliaAlberti (a GitHub user) maintains it in EliaAlberti/cpr-compress-preserve-resume, which has 514 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on September 9, 2026.
Source: EliaAlberti/cpr-compress-preserve-resume on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.