/atlas:atlas-compactfrom Atlas
Cleans up oversized AI context files (AGENTS.md, CLAUDE.md, memory, vocabulary) by measuring with atlas doctor, classifying content, and proposing compaction, relocation, or dedup.
Ships in Atlas. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill when atlas doctor reports context-size advisories or AI-facing context files grow oversized. The published CLI owns deterministic measurement — which files count, their sizes, thresholds, and statuses. This skill owns semantic judgment — what to cut, move, merge, or keep. Never reimplement measurement, guess sizes, or invent thresholds.
Call the CLI through npx, preferring a locally installed @blazity-atlas/core (npx --no-install @blazity-atlas/core …) and falling back to the published package only when none is installed. Every npx --yes @blazity-atlas/core@latest … command in this skill is the fallback spelling of that rule, not an instruction to skip the local copy.
This skill edits content only. Structure repair — directories, config, symlinks, managed files — stays with doctor --fix.
Run the phases below in order.
From the repository root, run:
npx --no-install @blazity-atlas/core doctor
Follow the result before compacting anything:
npx --yes @blazity-atlas/core@latest doctor --fix first — structure repair precedes compaction. If --fix refuses because of a dirty worktree, ask the user whether to commit, stash, or explicitly rerun with --force; never use --force automatically.Capture the authoritative per-file worklist:
npx --no-install @blazity-atlas/core doctor --handoff context-size
Treat its entry lines as the worklist; do not re-measure by hand.
Resolve every path through the workspace config — never hardcode .ai/: read .ai/config.json, or when absent, follow the .atlas repo-root pointer to <root>/config.json.
Read each flagged file and bucket its content:
Managed Atlas skill files are report-only: never hand-edit them — the byte-equality drift check reverts any edit on the next doctor --fix. An oversized managed skill is package-maintenance work; record it, do not fix it locally.
Present a per-file plan before touching anything: exact moves (source section → destination path), merges, deletions with reasons, and expected size deltas. Never rewrite silently; get explicit approval, whole-plan or per-file.
Everything relocated or rewritten follows the durable-documentation rules: record needs, decisions, and reasons — never individuals or internal process. Keep personal names, private schedules, internal-only references, and absolute local paths out of workspace artifacts.
Apply approved edits only. Preserve the AGENTS.md managed block, user rules, commands, and safety boundaries. Do not create new documentation roots and do not touch config or structure — that is the CLI's job.
npx --no-install @blazity-atlas/core doctor — actually run it, never assume the result.atlas-setup skill.atlas-review skill, when the workspace enables it.init, doctor --fix).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub blazity/atlas --plugin atlas3 skills in this plugin
/atlas-reviewUse when an AI tool idea, plan, implementation, release, or incident needs an Atlas review — deciding whether to build, planning, challenging a plan or implementation, gating a release or promotion, or running a postmortem/atlas-setupUse when a repository needs Atlas setup, repair/update, AGENTS.md refresh, AI memory refresh, vocabulary cleanup, or review after major codebase changesOther plugins' skills for the same job