context-compressor

Compress Claude session context by measuring, slimming, and archiving documents.

Updated Aug 27, 2026
Ready to run
npx skills add https://github.com/kanno321-create/shorts_studio --skill context-compressor-kanno321-create
๐Ÿ’ฌ Prompt for ChatGPT / Claude Chatโ–ผ
Please help me install this Agent Skill.
Skill: context-compressor
Source: https://github.com/kanno321-create/shorts_studio/tree/main/.claude/skills/context-compressor
Command: npx skills add https://github.com/kanno321-create/shorts_studio --skill context-compressor-kanno321-create

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

CLAUDE ์„ธ์…˜ ์‹œ์ž‘ ์‹œ CLAUDE.md, WORK_HANDOFF.md, SESSION_LOG.md ๋“ฑ์ด ๋กœ๋”ฉ๋  ๋•Œ ๊ณผ๋„ํ•œ ์ปจํ…์ŠคํŠธ ์†Œ๋น„๋กœ ์ธํ•œ Lost-in-the-Middle ์œ„ํ—˜์„ ์ค„์ด๊ณ , ๊ณผ๊ฑฐ ์•„์นด์ด๋ธŒ์™€ ์ตœ๊ทผ ์„ธ์…˜์˜ ์ค‘๋ณต ์ œ๊ฑฐ๋ฅผ ํ†ตํ•ด ์ดˆ๊ธฐ ์ปจํ…์ŠคํŠธ๋ฅผ 1,000์ค„ ์ด๋‚ด๋กœ ์œ ์ง€ํ•ฉ๋‹ˆ๋‹ค.

Core Features & Use Cases

  • ๊ณผ๊ฑฐ ์•„์นด์ด๋ธŒ + ์ตœ๊ทผ ์œ ์ง€ + ์ค‘๋ณต ์ œ๊ฑฐ๋ฅผ ํ†ตํ•œ ์ž๋™ ์ปจํ…์ŠคํŠธ ์••์ถ•์œผ๋กœ ๋ถˆํ•„์š”ํ•œ ํ…์ŠคํŠธ๋ฅผ ์ค„์ž…๋‹ˆ๋‹ค.
  • Phase-based ์›Œํฌํ”Œ๋กœ์šฐ๋กœ ์ธก์ •, ๋‹ค์ด์–ดํŠธ, ์••์ถ•, ์•„์นด์ด๋ธŒ, ์ค‘๋ณต ์ œ๊ฑฐ๋ฅผ ์ˆœ์ฐจ์ ์œผ๋กœ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค.
  • ์ตœ์ข… ์‚ฐ์ถœ๋ฌผ๋กœ ์Šฌ๋ฆผํ™”๋œ ๋ฌธ์„œ ์„ธํŠธ์™€ ์•„์นด์ด๋ธŒ ๋ฐ ์ปจํ…์ŠคํŠธ ๊ฐ์‚ฌ ๋ณด๊ณ ์„œ๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.

Quick Start

์„ธ์…˜ ์‹œ์ž‘ ์‹œ ์ปจํ…์ŠคํŠธ ์••์ถ• ์›Œํฌํ”Œ๋กœ์šฐ๋ฅผ ์‹คํ–‰ํ•˜์—ฌ ๊ณผ๊ฑฐ ์•„์นด์ด๋ธŒ์™€ ์ตœ๊ทผ ์„ธ์…˜๋งŒ ๋‚จ๊ธฐ๊ณ  ์ค‘๋ณต์„ ์ œ๊ฑฐํ•˜๋ผ.

Frequently Asked Questions about context-compressor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent Lost-in-the-Middle issues when loading large documents into Claude AI sessions?โ–ผ

Context compression for Claude AI sessions involves archiving past session logs and slimming recent documents to reduce initial context consumption. This prevents Lost-in-the-Middle by maintaining a single source of truth and keeping startup context under 1,000 lines through a phased workflow.

What is the best way to archive past Claude session logs and reduce startup context size?โ–ผ

The best way to archive past Claude session logs is to execute a phased workflow that sequentially measures, slims, compresses, archives, and deduplicates session context. This produces slimmed original documents, archived past records, and a context audit report to prevent Lost-in-the-Middle.

How do I manage CLAUDE.md and WORK_HANDOFF.md files to avoid excessive context consumption at startup?โ–ผ

Manage CLAUDE.md and WORK_HANDOFF.md files by applying context compression that deduplicates past archives and recent session logs. This phased workflow slims the original documents and outputs a context audit report, ensuring startup context remains under 1,000 lines.

Can I use a context compression workflow to maintain a single source of truth for Claude session documentation?โ–ผ

Yes, you can use a context compression workflow to maintain a single source of truth for Claude session documentation. It enforces a single source of truth by deduplicating past archives and recent sessions, outputting slimmed originals and a context audit report to prevent Lost-in-the-Middle.

What are the limitations of context compression for preventing Lost-in-the-Middle in Claude sessions?โ–ผ

The limitation of context compression for preventing Lost-in-the-Middle is that it is specifically applicable to Claude-powered sessions that load large documents at startup. It requires archiving past sessions and slimming the most recent ones to maintain initial context under 1,000 lines.