MCPInstall

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
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads structured-context-compressor automatically when relevant.

  3. 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

  1. primary request and intent
  2. key technical concepts
  3. files and code sections
  4. errors and fixes
  5. problem solving
  6. all user messages
  7. pending tasks
  8. current work
  9. 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

View all →

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.

AI & Agents74 installs

verification-gate

learnprompt/cc-harness-skills

Open the skill to read its SKILL.md instructions.

72 installs

memory-extractor

learnprompt/cc-harness-skills

Open the skill to read its SKILL.md instructions.

68 installs

kairos-lite

learnprompt/cc-harness-skills

Open the skill to read its SKILL.md instructions.

64 installs

swarm-coordinator

learnprompt/cc-harness-skills

Open the skill to read its SKILL.md instructions.

53 installs

Popular other skills

View category →

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.

1.3M installs

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.

1M installs

ask-matt

mattpocock/skills

Ask which skill or flow fits your situation. A router over the skills in this repo.

778.4K installs

to-questionnaire

mattpocock/skills

Turn a decision you can't fully answer into a questionnaire for someone else to fill in.

508.9K installs

wait-what

mattpocock/skills

Stop. That last message did not land: re-pitch it.

459.7K installs

loop-me

mattpocock/skills

Grill me about specs for the workflows I want to build, within this workspace.

447.9K installs