compress-session skillA
compress-session is agent-read markdown (skill) from pedrohcgs/claude-code-my-workflow: Distill the current conversation into a structured note (decisions made, open questions, file pointers with line numbers, next 1–3 actions) and save to `quality_reports/session_logs/` before auto-compression. Differs from `/checkpoint` (explicit stop-point snapshot) and from auto-compaction (which truncates rather than distills). Use when context is approaching auto-compact threshold, when a long pipeline has accumulated many decisions, or when the user says "compress", "distil this session", "b.
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified before it reaches your agent: the main file against the SHA-256 recorded here, the others against the git hashes of its source commit. The deterministic audit below grades the latest version, and the same checks always give the same file the same grade.
What the file says
# `/compress-session` — distil, don't truncate Auto-compaction is **lossy**: it keeps recent turns and drops earlier ones, with no preservation of *what was decided* mid-session. `/compress-session` is the **distil-not-truncate** alternative — produce a structured note that the next session can resume from in under a minute. ## Why this skill exists Drew Breunig's ["How Long Contexts Fail"](https://www.dbreunig.com/2025/06/22/how-contexts-fail-and-how-to-fix-them.html) identifies four failure modes for long-context sessions: 1. **Poisoning** — early hallucinated content gets quoted by later turns, compounding the error. 2. **Distraction** — irrelevant earlier context dilutes the model's attention to current task. 3. **Confusion** — contradicted facts pile up; the model doesn't know which to trust. 4. **Clash** — multiple plans, decisions, or specs accumulate without explicit reconciliation. The template's 200-line `MEMORY.md` cap defends against *distraction*. The plan-on-disk convention defends against *clash*. Nothing currently defends against *poisoning* or directly against *confusion* — that's what this skill is for. ## Distinction from `/checkpoint` …
Read the whole file at its exact version.
How to install
mdr add pedrohcgs/claude-code-my-workflow/compress-session@v1.0.0mdr add pedrohcgs/claude-code-my-workflow/compress-session@sha256:396313c640285edfPin to a label to follow the author's releases, or to a sha256 for exact bytes. Either way the resolved hash is written to mdr.lock, and mdr install fetches those bytes again and checks them, so it installs them exactly or fails.
[](https://markdownregistry.com/a/art_r4ppqi45ywke54au)
2 badge views in 30 days
Versions
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v1.0.0 latest | 2026-09-27 | 6535de7 | 9,209 B | A | view · diff |
| v1.0.0 | 2026-08-23 | f214337 | 7,612 B | A | view · diff |
| v1.0.0 | 2026-08-21 | 8a2f894 | 7,605 B | A | view · diff |
| v1.0.0 | 2026-05-20 | 851c954 | 7,591 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (9209 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
pedrohcgs/claude-code-my-workflow · 1,598 stars · license MIT · pushed 2026-09-27 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_r4ppqi45ywke54au GET https://markdownregistry.com/api/v1/resolve?ref=pedrohcgs/claude-code-my-workflow/compress-session GET https://markdownregistry.com/api/v1/blob/396313c640285edf692eb3f58f427ca3e894aac1e1669cb8e9d94ff320f2c8f7
Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.