Context Hygiene

Keep sessions focused and efficient — prune stale outputs, preserve active state, recommend compaction

LucasSantana-Dev Updated 1 repo stars

File contents

Context Hygiene

Identify what must stay active, mark stale outputs for removal, and decide whether to compact or start a fresh session.

Steps

  1. Identify active state — current task, files, decisions that must be preserved
  2. Mark stale content — completed threads, resolved questions, old tool outputs
  3. Decide action — compact current session or recommend a fresh session
  4. Preserve explicitly — write down active task state before any pruning

Output

Keep:    <active task, key files, open decisions>
Prune:   <stale outputs, resolved threads>
Action:  compact | fresh session

Rules

  • Never compact away active task state
  • Never preserve irrelevant historical chatter
  • Write active state explicitly before recommending a fresh session
  • Prefer compaction when the active task is still in progress

LucasSantana-Dev/forgekit/tree/main/packages/catalog/catalog/skills/adt-context-hygiene commit 262cd8775d

Frequently asked questions

npx skillmds@latest add lucassantana-dev/context-hygiene