
structured-context-compressor
Compress a long agent conversation into a nine-part continuation summary that preserves request, files, errors, user messages, current work, and the next aligned step.
- Installs
- 68
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/learnprompt/cc-harness-skills --skill structured-context-compressor- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads structured-context-compressor automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Structured Context Compressor
Use this skill when a free-form summary is too lossy and you need a reliable continuation artifact.
Use It For
- long coding conversations
- session handoff
- agent-to-agent continuation
- preserving user intent under context pressure
Quick Start
Render the standard template:
python3 {baseDir}/scripts/render_template.py
Then apply the prompt in references/prompt-template.md.
Nine Sections
- primary request and intent
- key technical concepts
- files and code sections
- errors and fixes
- problem solving
- all user messages
- pending tasks
- current work
- next aligned step
Highest-Value Rule
Preserve all user messages or an accurate equivalent. Do not compress away the corrections that changed the direction of work.
Supporting Files
- Prompt template: references/prompt-template.md
- Source notes: references/source-notes.md
- Helper script:
python3 {baseDir}/scripts/render_template.py
FAQ
What does the structured-context-compressor skill do?
Compress a long agent conversation into a nine-part continuation summary that preserves request, files, errors, user messages, current work, and the next aligned step.
How do I install structured-context-compressor?
Run npx skills add https://github.com/learnprompt/cc-harness-skills --skill structured-context-compressor in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/structured-context-compressor/ (personal) or .claude/skills/structured-context-compressor/ (project).
Which AI agents can use structured-context-compressor?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is structured-context-compressor safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains structured-context-compressor?
It is published by learnprompt in learnprompt/cc-harness-skills. It has 68 recorded installs.
More from learnprompt/cc-harness-skills
dream-memory
learnprompt/cc-harness-skills
Consolidate recent logs, sessions, and existing memory files into durable topic memories, normalize dates, prune stale entries, and keep MEMORY.md short enough for prompt use.
verification-gate
learnprompt/cc-harness-skills
Open the skill to read its SKILL.md instructions.
memory-extractor
learnprompt/cc-harness-skills
Open the skill to read its SKILL.md instructions.
kairos-lite
learnprompt/cc-harness-skills
Open the skill to read its SKILL.md instructions.
swarm-coordinator
learnprompt/cc-harness-skills
Open the skill to read its SKILL.md instructions.
Popular other skills
hyperframes-cli
heygen-com/hyperframes
The HyperFrames CLI by job - scaffold, check, look at frames, edit the timeline, preview, render locally or in the cloud, publish, project history - plus reading its JSON and recovering from build or render failures.
triage
mattpocock/skills
Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.
ask-matt
mattpocock/skills
Ask which skill or flow fits your situation. A router over the skills in this repo.
to-questionnaire
mattpocock/skills
Turn a decision you can't fully answer into a questionnaire for someone else to fill in.
loop-me
mattpocock/skills
Grill me about specs for the workflows I want to build, within this workspace.