# Manage context

> Manage context is an open-source agent skill for developer tools. Shows and switches which skills, plugins and MCP servers load into Claude Code context. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/ccomkhj/skills/tree/main/manage-context
- **Repository:** https://github.com/ccomkhj/skills
- **GitHub stars:** 10
- **License:** MIT
- **Skill name:** manage-context
- **Collection:** https://github.com/ccomkhj/skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill audits what a Claude Code project loads at session start. It reports each skill's role (automatic, name only, slash only or off), whether it was installed globally, per project or by a plugin, and how the setting was resolved across settings layers. It can also switch skills, plugins, MCP servers and built-in tools on or off without editing config by hand.

The workflow is built around scripts. A quick switch command previews changes as a dry run, lists any rejected or ignored settings, and applies them only after an explicit confirmation. A full scan measures the token cost of the starting context from the session's first turn, mines roughly 90 days of usage for recommendations, and writes an HTML report with tabs for the baseline, skills, recommendations, ignored settings and a pending plan. Changes are backed up first and can be reverted with an undo file.

It expects Python 3 and Claude Code with access to the project's settings files and the local session history. Token counts are estimates.

## When your agent uses it

> Show the role every skill plays in a project (Auto, name-only, /slash only, off; installed globally, per project or by a plugin; switched differently in other projects) and switch skills, plugins, MCP servers and built-in tools on or off. Measures what fills a session's starting context, mines 90 days of usage for recommendations, and applies changes with a dry run and undo.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs Python scripts](https://github.com/ccomkhj/skills/tree/HEAD/manage-context)
- [No network calls found in its scripts](https://github.com/ccomkhj/skills/tree/HEAD/manage-context)
- [License: MIT](https://github.com/ccomkhj/skills/tree/HEAD/manage-context)

## Features

- **Skill role overview:** Shows whether each skill is automatic, name only, slash only or off, and where that setting comes from.
- **Quick on and off switch:** Changes skill, plugin or scope settings with a dry run before anything is written.
- **Starting context measurement:** Estimates the tokens that skills, plugins and tools add to a session's first turn.
- **Usage-based recommendations:** Suggests setting changes based on roughly 90 days of tool calls and typed commands.
- **Ignored settings detection:** Finds configuration that has no effect and explains the cause and fix.
- **Safe apply and undo:** Backs up config before atomic writes and produces an undo command.

## Good for

- Show me which skills are active in this project
- Trim my session's starting context and tell me what uses the most tokens
- Make the deploy workflow skill slash-only
- Turn off a plugin I no longer use in this project
- Recommend skills to disable based on my recent usage

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/manage-context` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ccomkhj/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/manage-context &&
cp -R "$tmp/manage-context" ~/.claude/skills/manage-context &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/manage-context` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/manage-context` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ccomkhj/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/manage-context &&
cp -R "$tmp/manage-context" ~/.agents/skills/manage-context &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/manage-context` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/manage-context` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ccomkhj/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/manage-context &&
cp -R "$tmp/manage-context" ~/.cursor/skills/manage-context &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/manage-context` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/ccomkhj/skills.git --path manage-context
```

Or copy the folder to `~/.gemini/skills/manage-context` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/manage-context`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ccomkhj/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/manage-context &&
cp -R "$tmp/manage-context" ~/.copilot/skills/manage-context &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/manage-context` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ccomkhj/skills.git
```

Then copy `skills/manage-context` into your agent's skills folder as `manage-context`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Manage context need to run?

It runs Python scripts, so Python 3 is required, and it reads Claude Code's project and global settings and session history.

### Does Manage context change my settings without asking?

No. It shows a dry run of every change and applies it only after an explicit yes, and it writes a backup and undo file.

### Where does Manage context apply changes?

Changes go to the project settings by default, or to global settings if you pass the global scope.

### When do changes take effect?

Changes take effect in the next session, not the current one.

### How do I install Manage context in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/manage-context to use it in all your projects, or to .claude/skills/manage-context in one project.

### Does Manage context run scripts?

Yes. It runs Python scripts. No network calls were found in its 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 Manage context?

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 Manage context?

The closest alternatives to Manage context are Config hygiene edho ferdian, Context budget, Organize skill MCP, Claude settings audit and Ck.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Config hygiene edho ferdian](https://ai-powered.com/skills/config-hygiene-edho-ferdian): Config hygiene edho ferdian is an open-source agent skill for developer tools.
- [Context budget](https://ai-powered.com/skills/context-budget): Context budget is an open-source agent skill for developer tools.
- [Organize skill MCP](https://ai-powered.com/skills/organize-skill-mcp): Organize skill MCP is an open-source agent skill for developer tools.
- [Claude settings audit](https://ai-powered.com/skills/claude-settings-audit): Claude settings audit is an open-source agent skill for ai models and llm tooling.
- [Ck](https://ai-powered.com/skills/ck): Ck is an open-source agent skill for developer tools.
- [Scan sessions and learn](https://ai-powered.com/skills/scan-sessions-and-learn): Scan sessions and learn is an open-source agent skill for developer tools.
- [Config gc](https://ai-powered.com/skills/config-gc): Config gc is an open-source agent skill for developer tools.
- [Context modes](https://ai-powered.com/skills/context-modes): Context modes is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/manage-context
