clear-context

Solid

Automatic context management with graceful handoff to a continuation subagent at 80% usage

AI & Automation 308 stars 27 forks Updated today MIT

Install

View on GitHub

Quality Score: 96/100

Stars 20%
83
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

## Table of Contents - [Quick Start](#quick-start) - [When to Use](#when-to-use) - [The Auto-Clear Pattern](#the-auto-clear-pattern) - [Thresholds](#thresholds) - [Auto-Clear Workflow](#auto-clear-workflow) - [Integration with Existing Hooks](#integration-with-existing-hooks) - [Self-Monitoring Pattern](#self-monitoring-pattern) # Clear Context Skill ## Quick Start When context pressure reaches critical levels (80%+), invoke this skill to: 1. Save current session state 2. Delegate continuation to a fresh subagent 3. Continue work without manual intervention ``` Skill(conserve:clear-context) ``` ## When To Use - **Proactively**: Before starting large multi-chained tasks - **Reactively**: When context warning indicates 80%+ usage - **Automatically**: Integrated into long-running workflows ## When NOT To Use - Context usage is under 50% - continue working normally - Mid-critical-operation where handoff would lose state - **Consider "Summarize from here" first** (Claude Code 2.1.32+): Before full auto-clear, try partial summarization via the message selector. This compresses older context while preserving recent work — often sufficient to relieve pressure without a full handoff. ## The Auto-Clear Pattern Since `/clear` requires user action, we achieve automatic context clearing without interruption through **subagent delegation**: ``` Main Agent (high context) ↓ Saves state to .claude/session-state.md ↓ Spawns continuation subagent (fresh context) ...

Details

Author
athola
Repository
athola/claude-night-market
Created
6 months ago
Last Updated
today
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category