rysweet avatar

Context Management

This gives you proactive token budget control instead of scrambling after compaction hits. Check your current usage, create snapshots at 70-85% capacity, and restore context at three detail levels (essential is ~250 tokens, comprehensive is ~1,250). Version 3.0 adds burn rate tracking so you get predictions like "you'll hit 70% in ~15 tool uses" and health indicators for your statusline. The priority system keeps requirements and decisions while archiving verbose logs. Best move is checking status regularly during long sessions and snapshotting before major operations. Works alongside the PreCompact hook but catches problems earlier when you still have room to maneuver.

skills.sh installs
170
GitHub stars
76
last updated
Aug 21, 2026

Install

$ npx -y skills add rysweet/amplihack --skill context-management --agent claude-code

Installs into .claude/skills of the current project.

Files

Context Management Skill

Purpose

This skill enables proactive management of Claude Code's context window through intelligent token monitoring, context extraction, and selective rehydration. Instead of reactive recovery after compaction, this skill helps users preserve essential context before hitting limits and restore it efficiently when needed.

Version 3.0 Enhancements:

  • Predictive Budget Monitoring: Estimate when capacity thresholds will be reached
  • Context Health Indicators: Visual indicators for statusline integration
  • Priority-Based Retention: Keep requirements and decisions, archive verbose logs
  • Burn Rate Tracking: Monitor token consumption velocity for early warnings

When to Use This Skill

Sponsors

Details

Repository
github.com/rysweet/amplihack
Categories
DevOps & CI/CD, Productivity & Planning
First seen
Jun 3, 2026

More from rysweet/amplihack

All 58
1hoodini avatarlangchainhoodini/ai-agents-skillsBuild LLM applications with LangChain and LangGraph. Use when creating RAG pipelines, agent workflows, chains, or complex LLM orchestration. Triggers on LangCha169skills.sh installs
2pedronauck avatarui-ux-pro-maxpedronauck/skillsUI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 9 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind,168skills.sh installs
3oaustegard avatardeveloping-preactoaustegard/claude-skillsSpecialized Preact development skill for standards-based web applications with native-first architecture and minimal dependency footprint. Use when building Pre167skills.sh installs
4cinience avataralicloud-media-livecinience/alicloud-skillsManage Alibaba Cloud ApsaraVideo Live resources and workflows via OpenAPI/SDK. Use for live domain configuration, stream ingest and playback setup, recording/tr166skills.sh installs
5davila7 avatarzapier-make-patternsdavila7/claude-code-templatesNo-code automation democratizes workflow building. Zapier and Make (formerly Integromat) let non-developers automate business processes without writing code. Bu166skills.sh installs
6sundial-org avataropencode-controllersundial-org/awesome-openclaw-skillsControl and operate Opencode via slash commands. Use this skill to manage sessions, select models, switch agents (plan/build), and coordinate coding through Ope166skills.sh installs