
Structured Context Compressor
- 51 installs
- 231 repo stars
- Updated July 10, 2026
- learnprompt/cc-harness-skills
Helps with ai & agent building tasks.
About
structured-context-compressor is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted coding.
- structured-context-compressor
- AI & Agent Building
- AI-coding skill
Structured Context Compressor by the numbers
- 51 all-time installs (skills.sh)
- +2 installs in the week ending Aug 2, 2026 (Skillselion tracking)
- Ranked #7,219 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
- Data as of Aug 2, 2026 (Skillselion catalog sync)
npx skills add https://github.com/learnprompt/cc-harness-skills --skill structured-context-compressorAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 51 |
|---|---|
| repo stars | ★ 231 |
| Last updated | July 10, 2026 |
| Repository | learnprompt/cc-harness-skills ↗ |
What it does
Helps with ai & agent building tasks.
Files
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.pyThen 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
CC Context Compressor
structured-context-compressor is a portable continuation-summary skill for long coding sessions.
Instead of a vague free-form summary, it produces a nine-part artifact that preserves request, files, errors, user messages, pending work, current work, and the next aligned step.
Best For
- long coding conversations
- agent handoff
- continuation after context pressure
- preserving user corrections and constraints
Included Files
SKILL.mdreferences/prompt-template.mdreferences/source-notes.mdscripts/render_template.py
Quick Start
python3 ./scripts/render_template.pyThen fill the generated structure using the workflow from SKILL.md.
Host Fit
- Claude Code: strong fit
- Codex: strong fit
- OpenClaw: strong fit
Portable Prompt Template
Create a structured continuation summary for a long conversation.
Return exactly these 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
Rules:
- preserve user intent precisely
- include all user messages or an accurate condensed equivalent
- keep the next step aligned to the most recent explicit request
- if the current work is unclear, say that explicitly rather than guessingSource Notes
This skill was derived from these Claude Code areas:
src/services/compact/prompt.tssrc/services/compact/compact.tssrc/query.ts
Portable extraction decisions:
- keep the nine-section structure
- keep the emphasis on user-message preservation
- drop host-specific cache-editing and transcript-boundary mechanics
#!/usr/bin/env python3
"""Render the standard nine-section context-compression template."""
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",
]
def main() -> int:
for section in SECTIONS:
print(section)
print()
print("-")
print()
return 0
if __name__ == "__main__":
raise SystemExit(main())