Сжатие сессии в структурированную заметку

productivity

compress-session is a Claude Code skill that distills the current conversation into a structured note — covering decisions made, open questions, file pointers with line numbers, and 1–3 next actions — then saves it to `quality_reports/session_logs/` before auto-compaction can truncate the context. Unlike `/checkpoint` (a deliberate stop-point snapshot) or Claude's built-in auto-compaction (which drops early turns rather than summarizing them), this skill adds an explicit "Discarded as noise" section listing failed hypotheses and dead-ends, directly defending against the poisoning failure mode described in Drew Breunig's analysis of long-context degradation. It fits workflows where a pipeline has accumulated contradictory decisions, a model switch is imminent, or `/context-status` signals the auto-compact threshold is near. The skill uses Read, Write, Glob, Grep, and Bash tools, and accepts an optional topic slug as an argument to name the output file.