context-compaction

Installation
SKILL.md

Context Compaction

Preserve essential state when context window fills up.

Always Preserve

Item Why
Test names + output (pass/fail) Regression detection, reproducibility
Build status (success/error + msg) Know if in broken state
Files modified (path + why) Track changes, enable rollback
Open TODOs with state Prevents losing WIP
Env vars set this session Re-establish environment
Decisions made (WHY) Enables contextual future decisions

DO NOT Compress

  • Exact file paths
  • Error messages (verbatim)
  • Test names
  • Numeric results (counts, sizes, checksums)

Example Output

Tests: 2 fail (test_embed_vector, test_turso_insert)
Build: error - "missing trait impl Write for &str"  
Files: do-memory-core/src/embed.rs (added async embed)
TODOs: [in_progress] refactor embed.rs - 60% done
Env: TURSO_DATABASE_URL=libsql://...
Decision: switched to async embed to fix blocking in hot path

See Also

Related skills

More from d-o-hub/rust-self-learning-memory

Installs
7
GitHub Stars
7
First Seen
Mar 27, 2026