mcpField
S
structured-context-compressor

structured-context-compressor

github.com/learnpromptAgent workflows24068 installsUpdated 16w ago
Repository

About structured-context-compressor

structured-context-compressor is a skill for turning long conversations into a structured continuation artifact. It is intended for coding sessions, handoffs, and agent-to-agent work where user intent and corrections must remain traceable.

Key features

  1. 01Renders a standard nine-section template
  2. 02Preserves user messages or their accurate equivalent
  3. 03Tracks files, code sections, errors, and fixes
  4. 04Records pending tasks and current work
  5. 05Identifies the next aligned step

Use cases

  1. 01Handing off a long coding conversation
  2. 02Continuing work across agents
  3. 03Preserving intent when context is limited

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/learnprompt/cc-harness-skills --skill structured-context-compressor

After installing, type/structured-context-compressorin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

README.md
references/
prompt-template.md
source-notes.md
scripts/
render_template.py

Details

From the project README

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

Comments

Markdown supported