Skip to content
coihuin-compress logo

Coihuin Compress

coihuin-compress

Context compression for long coding sessions. Creates checkpoints (state snapshots) and maintains them as you work.

SKILL.md

Full skill instructions

Coihuin Compress

Context compression at natural breakpoints, not reactive to token limits.

Workflow

Session 1 (new work):
  → "checkpoint" → creates new checkpoint
  → chkcc current <checkpoint> → set as current

Session 2+ (continuing):
  → Read checkpoint file
  → chkcc current <checkpoint> → set as current
  → work + continuous maintenance
  → "archive" when done

Continuous Maintenance

This is the core principle. Don't wait for "delta" commands. Update the checkpoint as you work:

When This HappensUpdate This Section
Decision made→ Decisions
File created/​modified/​deleted→ Artifact Trail
Task completed→ Play-By-Play, Current State
Blocker hit→ Breadcrumbs, Next Actions
Direction changes→ Session Intent, Next Actions

Update immediately, not in batches. Small, frequent updates keep the checkpoint alive in your working memory.

Checkpoint States

StateLocationMeaning
currentcheckpoints/​active/The ONE checkpoint being actively worked on
activecheckpoints/​active/In-progress work (not immediate focus)
archivedcheckpoints/​archive/Completed work
chkcc current <checkpoint>  # Set as current
chkcc current               # Show current
chkcc current --clear       # Clear current
chkcc status                # Show all active with summaries

Operations

Checkpoint

Create new state snapshot.

Trigger: "checkpoint", "create checkpoint"

How:

  1. Read checkpoint-format.md for structure
  2. Extract "What Must Survive" from conversation
  3. Generate checkpoint following the format
  4. Save to checkpoints/​active/<name>.md
  5. Update checkpoints/​active/​INDEX.md

Delta (Explicit)

Force a structured update when you want visibility into what changed.

Trigger: "delta", "update checkpoint"

How:

  1. Add ## Delta: <timestamp> section to checkpoint
  2. Summarize what changed since last delta
  3. Update main sections with current state

Note: With continuous maintenance, explicit deltas are less necessary. Use when you want a clear marker of progress.

Archive

Complete work and move to historical storage.

Trigger: "archive"

How:

  1. Capture outcome from user:

    What was achieved? Any learnings worth preserving?

  2. Add ## Completion section with status, outcome, learnings, date
  3. Move to checkpoints/​archive/
  4. Update checkpoints/​active/​INDEX.md
  5. Learnings auto-extracted to checkpoints/​LEARNINGS.md

Validation: Cannot archive checkpoints with active children (use --force to override).

Fork Detection

When work diverges into parallel streams, offer options:

Strong signals (any one suggests fork):

  • User says work is unrelated
  • Different issue/​ticket involved
  • Fundamental context switch

Weak signals (two+ together suggest fork):

  • Working in entirely different files
  • Scope expanding beyond original intent
  • New dependencies unrelated to current work

When detected, present options:

  • A) Create separate checkpoint (sets parent for lineage)
  • B) Continue with current (expand scope)
  • C) Set aside divergent work

Not a fork: Trivial fixes, config changes, supporting changes for main work.

Directory Structure

checkpoints/
├── active/
│   ├── INDEX.md
│   └── chk-*.md
├── archive/
│   └── chk-*.md
└── LEARNINGS.md          # Accumulated insights from archives

Reference Files

FilePurpose
checkpoint-format.mdCheckpoint structure specification
index-format.mdINDEX.md structure specification
LEARNINGS.mdAccumulated learnings from archived checkpoints

Priority Hierarchy (token pressure)

  1. Must Keep: Problem, session intent, decisions, current state, next actions
  2. Should Keep: Recent artifacts, recent play-by-play, technical context, breadcrumbs
  3. Can Summarize: Older play-by-play, completed artifacts, historical decisions

Quality Self-Check

Before finalizing updates, verify:

  1. Problem Clarity: Could a fresh agent understand without the conversation?
  2. Decision Rationale: Is the "why" captured, not just the "what"?
  3. State Specificity: Concrete progress, not vague status?
  4. Action Actionability: Can someone execute Next Actions immediately?
  5. Fresh Agent Test: Loading this cold, would you know exactly what to do?

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View