S
structured-context-compressor
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
- 01Renders a standard nine-section template
- 02Preserves user messages or their accurate equivalent
- 03Tracks files, code sections, errors, and fixes
- 04Records pending tasks and current work
- 05Identifies the next aligned step
Use cases
- 01Handing off a long coding conversation
- 02Continuing work across agents
- 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-compressorAfter installing, type/structured-context-compressorin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
README.mdreferences/prompt-template.mdsource-notes.mdscripts/render_template.pyDetails
From the project READMEStructured 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
Comments
Markdown supported