
Context manager
Plans context compaction and writes validated handoff files for resuming work in a fresh
Context manager is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 12
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Context manager
This skill helps a user keep a long-running build going when the conversation nears its context limit. It guides the choice of a compaction strategy and then produces a structured YAML handoff file in .claude/handoffs/ recording the assigned task, completion estimate, completed and remaining subtasks, blockers, decisions made, and the files modified or created.
Before a handoff is considered ready, the skill checks its own output. The continuation notes must be specific and actionable, the suggested first action must be an exact next step, and the completion estimate must be honest. Vague handoffs are rewritten. Handoff files are append-only, so earlier files are never edited.
The skill is meant for user-driven handoffs outside an orchestrated build; during orchestrated builds, a separate orchestrator protocol governs handoffs. It is written for Claude Code, works with Read, Write, Edit and Glob, and includes no scripts.
When your agent uses it
Manage context and session handoffs for long or multi-agent builds: pick a compaction strategy and write and validate a structured handoff file so a fresh session picks up cleanly. Use when the context is filling or work must continue in a new session. Trigger on "we're running out of context", "handoff this conversation", "save state", "continue in a fresh session".
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Instructions only, no scripts(see the files on GitHub)
- Asks for: Read, Write, Edit, Glob(see the files on GitHub)
- License: MIT(see the files on GitHub)
From a static check of its 2 files (9 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the skill-madness plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add ivy00johns/Skill-Madness
/plugin install skill-madness@skill-madnessOr copy only this skill to ~/.claude/skills/context-manager:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/context-manager &&
cp -R "$tmp/skills/workflows/context-manager" ~/.claude/skills/context-manager &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/context-manager inside it instead.
Copy the skill folder to ~/.agents/skills/context-manager to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/context-manager &&
cp -R "$tmp/skills/workflows/context-manager" ~/.agents/skills/context-manager &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/context-manager inside it instead.
Copy the skill folder to ~/.cursor/skills/context-manager to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/context-manager &&
cp -R "$tmp/skills/workflows/context-manager" ~/.cursor/skills/context-manager &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/context-manager inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/ivy00johns/Skill-Madness.git --path skills/workflows/context-managerOr copy the folder to ~/.gemini/skills/context-manager yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/context-manager:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/context-manager &&
cp -R "$tmp/skills/workflows/context-manager" ~/.copilot/skills/context-manager &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/context-manager inside it instead.
Get the folder:
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.gitThen copy Skill-Madness/skills/workflows/context-manager into your agent's skills folder as context-manager. Agents that support SKILL.md read one folder per skill.
What it does
- Compaction strategy selection
- Helps decide how to compact a session before resorting to a full handoff.
- Structured handoff file
- Writes a YAML handoff covering task state, decisions, and touched files.
- Handoff quality check
- Validates that continuation notes and the first action are concrete and usable.
- Fresh session continuation
- Lets a new session pick up from the latest handoff file and its suggested first step.
- Append-only handoff records
- Keeps each handoff as a separate timestamped file without editing earlier ones.
Good for
- Hand off this conversation to a fresh session before the context runs out
- Save the current build state so work can continue tomorrow
- Compact the session and summarize what has been decided so far
- Check whether a draft handoff file has enough detail to resume from
Context manager FAQ
What does Context manager need to run?
It is a Claude Code skill that uses Read, Write, Edit and Glob tools. It has no scripts and no external services are listed.
Where does Context manager write its output?
It writes structured YAML handoff files to the .claude/handoffs/ directory, using a unique filename per handoff.
Does Context manager run during an orchestrated build?
No. It is intended for user-invoked handoffs. During orchestrated builds, a separate orchestrator handoff protocol applies.
When is Context manager triggered?
Typical triggers include phrases like running out of context, handoff this conversation, save state, or continue in a fresh session.
How do I install Context manager in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/context-manager to use it in all your projects, or to .claude/skills/context-manager in one project. Or install the skill-madness plugin, which includes it: /plugin marketplace add ivy00johns/Skill-Madness, then /plugin install skill-madness@skill-madness.
Does Context manager run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Context manager?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Context manager?
The closest alternatives to Context manager are Handoff, Handoff, Code handoff, Handoff and Handoff.
Where this comes from
- Description: from the skill's own SKILL.md.
More from ivy00johns/Skill-Madness

Finds merged and stale git branches, then deletes them only after your confirmation
- Open source
- 12 GitHub stars
- Developer tools

Finds and removes git worktrees whose changes are already merged into main
- Open source
- 12 GitHub stars
- Developer tools

Bulk-scans a skill ecosystem for consistency, quality gaps and ownership conflicts
- Open source
- 12 GitHub stars
- Developer tools

Runs a single-skill quality review covering structure, triggering and output checks
- Open source
- 12 GitHub stars
- Developer tools

Turns skill review or audit reports into a prioritized list of concrete SKILL.md fixes
- Open source
- 12 GitHub stars
- Developer tools

Applies planned edits to SKILL.md files, validates them, and offers to sync
- Open source
- 12 GitHub stars
- Developer tools





