session-compression

Compress session activity into structured memory artifacts with YAML frontmatter.

2|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/DojoGenesis/gateway --skill session-compression-dojogenesis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: session-compression
Source: https://github.com/DojoGenesis/gateway/tree/main/plugins/wisdom-garden/skills/session-compression
Command: npx skills add https://github.com/DojoGenesis/gateway --skill session-compression-dojogenesis

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Session compression converts ephemeral session activity into enduring memory artifacts so future sessions start with context, decisions, and open items already surfaced and actionable.

Core Features & Use Cases

  • Decision distillation: Extracts key decisions and the reasoning behind them so architectural and workflow choices are preserved.
  • Memory maintenance: Updates or creates per-topic memory files with YAML frontmatter and updates the MEMORY.md index to reflect additions, removals, and open items.
  • Use Case: Run at the end of a multi-file refactor or design discussion to persist what changed, why it mattered, and which tasks remain open.

Quick Start

Use the session-compression skill to compress the current session's changes, extract decisions, update MEMORY.md, and produce a compression summary.

Frequently Asked Questions about session-compression

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I preserve session context and open items for future coding sessions?

Session compression extracts key decisions, context, and open items into memory artifacts, updating per-topic memory files with YAML frontmatter and a MEMORY.md index. Running it at the end of a multi-file refactor ensures future sessions start with full context.

What is the best way to extract architectural decisions from a git diff?

Session compression detects changed files via git diff and git status, then distills the architectural choices and reasoning behind those code changes. It consolidates the extracted decisions into structured memory files for long-term knowledge management.

How do I consolidate memory entries to avoid duplicate project knowledge?

Session compression consolidates or merges memory entries by updating existing per-topic memory files rather than creating duplicates. It adjusts the MEMORY.md index to reflect additions, removals, and unresolved open items during the compression process.

Can I use session compression for multi-file project work and code refactors?

Session compression applies directly to end-of-session workflows across code refactors, architecture decisions, and multi-file project work. It preserves what changed, why it mattered, and which tasks remain open for future reference.

What does a compression report show after updating memory files?

A compression report summarizes the created and updated memories generated during session compression. It provides an overview of the structured memory artifacts extracted, ensuring you can verify which decisions and open items were persisted.