pre-compact

Community

Preserve session context before compaction

Authorempty-can
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill prepares an active Claude Code session for compaction so important working context is not lost between sessions. It helps you capture the current task state, surface any uncommitted changes that need a decision, and produce a focused compact instruction that makes the next restart easier.

Core Features & Use Cases

  • Memory Refresh Before Context Reset: Reviews and updates memory files so the latest task status, agreements, pending decisions, and restart points are recorded before compaction.
  • Selective Change Awareness: Checks for uncommitted Git changes and only interrupts the flow when there is something the user needs to review or decide on.
  • Focused Compaction Prompting: Generates a short, intent-driven /compact comment that emphasizes the current task, remaining steps, pending decisions, and any relevant work-in-progress.
  • Use Case: When a long coding or analysis session is nearing its context limit, use this Skill right before /compact to leave a clean handoff for the next session without cluttering the conversation.

Quick Start

Ask the assistant to run the pre-compact skill before you use /compact so it can refresh memory, check for uncommitted changes, and suggest the best compact instruction.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: pre-compact
Download link: https://github.com/empty-can/cc-relative-info/archive/main.zip#pre-compact

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 545,000+ vetted skills library on demand.