Skip to content
Back to skills

Structured Context Compressor

ASecurity

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.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 2, 2026
ai-agentspythonbash

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 2, 2026

npx -y skills add shengdabai/Tony-Claude-Code-Skills --skill structured-context-compressor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Structured Context Compressor?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Structured Context Compressor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/shengdabai-structured-context-compressor/badge)](https://www.skillsdirectory.com/skills/shengdabai-structured-context-compressor)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: structured-context-compressor
description: 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.
---

# 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:

```bash
python3 {baseDir}/scripts/render_template.py
```

Then apply the prompt in [references/prompt-template.md](./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](./references/prompt-template.md)
- Source notes: [references/source-notes.md](./references/source-notes.md)
- Helper script: `python3 {baseDir}/scripts/render_template.py`

Files in this skill

  • README.md796 B
  • SKILL.md1.3 KB
  • references/prompt-template.md578 B
  • references/source-notes.md343 B
  • scripts/render_template.py563 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…