session-chapter
CommunitySave chapter state and resume cleanly.
Software Engineering#session management#checkpointing#decision log#Claude Code hooks#context compression#knowledge persistence
Authormykcs
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill prevents long Claude Code sessions from losing progress by capturing layered “chapter” state (task, next steps, decisions, and blockers) before context compression, then enabling seamless restoration in a new window with clean context.
Core Features & Use Cases
- Chapter checkpointing: Diagnoses context pressure, captures task stage, artifacts, and token usage into structured files under .omc/chapters/.
- Decision event sourcing: Appends an immutable decisions.md log to preserve the full reasoning chain across windows.
- Priority Context restoration: Writes the current chapter summary into Priority Context via /notepad_write_priority so SessionStart can auto-inject it on new windows.
- Compression strategy selection: Chooses between /rewind (targeted summarization), /compact with a custom instruction, or skipping compression when context is already extremely high.
- Recovery pathways: Supports restoring via a clean new window (recommended), a structured /chapter_resume flow from chapter files, or a fallback claude --resume UUID flow.
Quick Start
When you notice the context is getting full or you want to pause and continue in a new window, run the session-chapter workflow and then start a clean new window via cd [project path] && claude to get automatic Priority Context injection.
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: session-chapter Download link: https://github.com/mykcs/myk-skills/archive/main.zip#session-chapter 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.