compact-lifecycle-reuse
CommunityExtend compaction with reusable lifecycle hooks.
Authorliuyu520
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Reuse compact lifecycle hooks (pre-compact snapshot, post-compact cleanup, orchestrator decide/execute) to extend or debug the compact workflow as conversations evolve.
Core Features & Use Cases
- Pre-compact snapshot hooks to capture full session state before any destructive operation.
- Post-compact cleanup hooks to restore or adjust messages after compaction and preserve user intent.
- Orchestrator-level hooks to influence decide/execute paths without bypassing safety checks.
- Debugging scaffolds to observe, log, and simulate compact flows across different scenarios.
Quick Start
Hook into the compactConversation flow to apply a pre-compact hook, then perform post-compact cleanup as needed.
Dependency Matrix
Required Modules
None requiredComponents
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: compact-lifecycle-reuse Download link: https://github.com/liuyu520/cc_source/archive/main.zip#compact-lifecycle-reuse Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.