# Atlas compact

> Atlas compact is an open-source agent skill for developer tools. Guides an agent through trimming oversized AI context files without changing repo. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/Blazity/atlas/tree/main/.ai/skills/atlas-compact
- **Repository:** https://github.com/blazity/atlas
- **GitHub stars:** 26
- **License:** MIT
- **Skill name:** atlas-compact
- **Collection:** https://github.com/Blazity/atlas
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

Atlas Compact is a workflow for cleaning up AI-facing context such as an oversized AGENTS.md or CLAUDE.md, bloated memory or vocabulary files, and durable docs that have grown too large. It relies on the Atlas CLI for measurement and thresholds, so the agent runs the doctor command first and works from its per-file worklist rather than estimating sizes itself.

The skill moves the agent through phases: measure, classify each flagged file's content into root instructions, memory, decisions, terminology or duplicates, propose a per-file plan, apply only approved edits, then rerun the CLI to confirm the result. It keeps commands, invariants and safety rules in place and treats managed Atlas skill files as report-only.

It expects a repository using the Atlas CLI, with Node tooling available through npx. Structure repair such as directories, config and symlinks is left to the CLI's fix command.

## When your agent uses it

> Use when AI context needs cleanup — atlas doctor context-size advisories, an oversized AGENTS.md or CLAUDE.md, bloated memory or vocabulary files, or durable docs that need compaction, relocation, or dedup

## What it can access

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

- [Instructions only, no scripts](https://github.com/Blazity/atlas/tree/HEAD/.ai/skills/atlas-compact)
- [License: MIT](https://github.com/Blazity/atlas/tree/HEAD/.ai/skills/atlas-compact)

## Features

- **Deterministic size measurement:** Relies on the Atlas CLI doctor command to report which context files count and their size status.
- **Content classification:** Sorts flagged sections into root instructions, memory, decisions, terminology or duplicates.
- **Approval-gated plan:** Presents exact moves, merges and deletions per file and waits for approval before editing.
- **Post-edit verification:** Reruns the doctor check and compares before and after context-size results.
- **Managed file protection:** Flags oversized Atlas-managed skill files for package maintenance instead of editing them locally.

## Good for

- Shrink an oversized AGENTS.md or CLAUDE.md file
- Split bloated memory notes into durable docs
- Remove duplicated sections across context files
- Deduplicate project vocabulary and terminology files
- Check whether AI context is within size thresholds

## Install

### Claude Code

This skill ships in the `atlas` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add Blazity/atlas
/plugin install atlas@blazity
```

Or copy only this skill to `~/.claude/skills/atlas-compact`:

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

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

### Codex

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

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

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

### Cursor

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

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

For one project only, put the folder in `.cursor/skills/atlas-compact` 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/Blazity/atlas.git --path .ai/skills/atlas-compact
```

Or copy the folder to `~/.gemini/skills/atlas-compact` yourself.

### VS Code

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

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

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/Blazity/atlas.git
```

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

## FAQ

### What does the skill need before Atlas compact runs?

It needs the Atlas CLI available, preferably a locally installed @blazity-atlas/core, and it is meant to run from the repository root.

### Does Atlas compact delete content automatically?

No. It presents a per-file plan with moves, merges and deletions and applies only the edits the user approves.

### Does Atlas compact change directories or config?

No. Structure repair such as directories, config and symlinks is handled by the CLI's doctor --fix command.

### When does Atlas compact trigger?

It triggers when AI context needs cleanup, such as context-size advisories from atlas doctor or oversized AGENTS.md, CLAUDE.md, memory or vocabulary files.

### How do I install Atlas compact in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/atlas-compact to use it in all your projects, or to .claude/skills/atlas-compact in one project. Or install the atlas plugin, which includes it: /plugin marketplace add Blazity/atlas, then /plugin install atlas@blazity.

### Does Atlas compact 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 Atlas compact?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Atlas compact?

The closest alternatives to Atlas compact are Atlas setup, Claude md refactor, Context engineering, Intent layer and Agentsmd optimize.

## Where this comes from

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

## Alternatives

- [Atlas setup](https://ai-powered.com/skills/atlas-setup): Atlas setup is an open-source agent skill for developer tools.
- [Claude md refactor](https://ai-powered.com/skills/claude-md-refactor): Claude md refactor is an open-source agent skill for developer tools.
- [Context engineering](https://ai-powered.com/skills/context-engineering): Context engineering is an open-source agent skill for developer tools.
- [Intent layer](https://ai-powered.com/skills/intent-layer): Intent layer is an open-source agent skill for developer tools.
- [Agentsmd optimize](https://ai-powered.com/skills/agentsmd-optimize): Agentsmd optimize is an open-source agent skill for developer tools.
- [Context strategy](https://ai-powered.com/skills/context-strategy): Context strategy is an open-source agent skill for developer tools.
- [Agents md checker](https://ai-powered.com/skills/agents-md-checker): Agents md checker is an open-source agent skill for developer tools.
- [Agentsmd scaffold](https://ai-powered.com/skills/agentsmd-scaffold): Agentsmd scaffold is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/atlas-compact
