One-click install
npx skills add https://github.com/jacob-balslev/skill-graph --skill context-management-jacob-balslev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-management
Source: https://github.com/jacob-balslev/skill-graph/tree/main/marketplace/skills/context-management
Command: npx skills add https://github.com/jacob-balslev/skill-graph --skill context-management-jacob-balslev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Context drift and noisy sessions cause agents to keep re-reading, speculate from stale assumptions, and lose decision trails during compaction or handoff.

Core Features & Use Cases

  • Evidence-first intake triage (four buckets): categorizes candidate context as must-have, useful soon, durable background, or noise before large reads.
  • Six-step context-management loop: anchors an active question, defines prove/disprove evidence, loads cheapest sources first, collapses confirmed facts into a checkpoint, drops disproven assumptions, and verifies the question didn’t change mid-stream.
  • Compaction-ready handoffs + selective recovery: preserves the minimum five-field checkpoint for resume and rebuilds only what the current question needs after context loss.

Quick Start

Use context-management when your agent session feels noisy or inconsistent, then ask it to produce a one-sentence active question, a minimal prove/disprove evidence plan, and a handoff-ready checkpoint before you compact, restart, or handoff.

Frequently Asked Questions about context-management

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

FAQPage Schema
How do I prevent context drift in an active agent session during iterative problem solving?

To prevent context drift, apply a deterministic context-management loop that maintains one active hypothesis and one verification target, ensuring only validated evidence stays in the working set. This stops agents from speculating on stale assumptions and losing their decision trail.

What is the best way to prepare an agent session for compaction or handoff without losing the decision trail?

The best way to prepare for compaction or handoff is to generate a five-field checkpoint that captures the active question, verified facts, and a minimal evidence plan. This allows a successor agent to cold start rapidly and rebuild only the necessary context.

How do I manage context intake to avoid loading noisy or irrelevant data into the agent working set?

Manage context intake by using evidence-first triage to categorize candidate data into must-have, useful soon, durable background, or noise buckets. This prevents large unneeded reads and keeps the working set shaped strictly around the active question.

How does selective recovery work after context loss in an agent session?

Selective recovery after context loss works by using the preserved five-field checkpoint to resume the session. It rebuilds only the specific context required by the current active question, rather than reloading the entire previous environment.

When should I enforce anti-drift mechanisms during agent operations?

You should enforce anti-drift mechanisms whenever your agent session feels noisy, inconsistent, or when the primary verification target changes mid-stream. This ensures unverified assumptions are dropped and the active question doesn't shift unexpectedly.