Skip to content
Skill

Atlas compact

Guides an agent through trimming oversized AI context files without changing repo

Atlas compact is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
26
Last commit
License
MIT
Listing updated

Similar skills

About Atlas compact

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

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (4 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 atlas plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

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

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

gemini skills install https://github.com/Blazity/atlas.git --path .ai/skills/atlas-compact

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

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Atlas compact 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.

More from Blazity/atlas

  1. Runs an evidence-based Atlas review gate on AI tool ideas, plans, releases and incidents

    • Open source
    • 26 GitHub stars
    • Ai governance
  2. Sets up and refreshes Atlas AI context files for a repository

    • Open source
    • 26 GitHub stars
    • Developer tools