Skip to content
5 min read

How Much Context Window Do AI Coding Agent Skills Cost?

Every automatic skill adds its name and description to the system prompt of every session. Here is how to calculate the token cost and cut it without deleting skills.

Claude CodeCodexToken CostSKILL.md

When you install a skill in Claude Code, Codex, or Antigravity, the full SKILL.md file does not load at session start. Only its discovery listing—the skill’s name and description from YAML frontmatter—is injected into the system prompt so the model knows when to activate it.

With five skills, that cost is negligible. With forty or eighty skills accumulated over months of work, every new session starts with thousands of tokens spent on tools you are not using for the current task, plus slower trigger selection when descriptions overlap.

How the per-session skill listing adds up

Most coding agents format each available skill into a catalog line in the system prompt in roughly this shape:

- nextjs-app-router: Build and review Next.js App Router pages, Server Components, Server Actions, and caching boundaries.

Using the standard English approximation of four characters per token (ceil(chars / 4)), one skill with a 280-character description adds about 75 tokens to every session.

Library size Avg. description length Estimated startup cost per session
10 automatic skills 180 characters ~500 tokens
35 automatic skills 320 characters ~3,000 tokens
60 automatic skills 500 characters ~7,800 tokens
80 automatic skills 800 characters ~16,400 tokens

The Agent Skills specification caps description at 1,024 characters (and name at 64 characters). Even a valid 900-character description costs ~230 tokens on every turn where the system prompt is sent—whether or not you ever invoke that skill.

Token cost is only half the problem

Bloated skill catalogs hurt agent quality in two more ways:

  1. Competing triggers: Two skills with vague descriptions (“Use for any TypeScript or React task”) force the model to guess which workflow to load, or load the wrong one.
  2. Per-agent asymmetry: If you turn off automatic loading in Claude Code’s frontmatter, Codex still loads the skill automatically unless its own config is updated too.

How each agent controls automatic loading

Different agents expose different mechanisms for keeping a skill installed while removing its startup token cost:

Agent Native Manual (on-call) switch Startup cost when Manual How to remove completely
Claude Code disable-model-invocation: true in SKILL.md frontmatter 0 tokens Park out of ~/.claude/skills
Codex policy.allow_implicit_invocation: false in agents/openai.yaml 0 tokens Park out of ~/.agents/skills
Antigravity None documented Always loads if in folder Park out of ~/.gemini/config/skills

Putting a skill in Manual (on-call) mode keeps it callable by name when you ask for it explicitly, while dropping its startup description cost to zero in Claude Code and Codex. Parking moves the skill out of every agent’s folder—including Antigravity—and restores it in one click when you need it again.

Four steps to budget your skill library

1. Measure what each agent actually loads

Do not guess from your folder count. An agent may read multiple directories (for example, Codex reads both ~/.agents/skills and ~/.codex/skills), and symlinks can hide duplicates.

With the Skillroom CLI, run:

skillroom cost --top 15

This prints each agent’s estimated session total, how many skills are loaded vs. on call, and the 15 most expensive automatic skills.

2. Trim oversized and overly broad descriptions

Run the local linter to catch descriptions over 500 characters (a note), over the 1,024-character limit (a warning), or phrased too broadly (“any task”, “everything”):

skillroom lint
skillroom overlap --threshold 0.3

Move version numbers, install counts, and long examples out of description into the body of SKILL.md, and add an explicit "Not for ..." boundary when two skills cover neighboring topics.

3. Move specialized skills to Manual

Keep daily core workflows Automatic. Switch narrow or seasonal skills—tax prep, release checklists, one-off migration tools, video rendering—to Manual so they cost zero tokens until you call them by name:

# Preview the exact file changes and token savings first
skillroom state on-call release-checklist migration-audit

# Apply once verified
skillroom state on-call release-checklist migration-audit --yes

Because Skillroom writes both disable-model-invocation: true in SKILL.md and policy.allow_implicit_invocation: false in agents/openai.yaml, Claude Code and Codex stay aligned.

4. Use presets for task modes

If you switch between distinct modes of work—say frontend engineering vs. technical writing—group each set into a preset in Skillroom. Switching presets puts non-matching skills on call or parks them in one step, and every change is recorded in the journal so skillroom undo reverses it cleanly.

Next, read how to share one ~/.agents/skills folder across Claude Code, Codex, and Antigravity so your token budget stays consistent across every tool you open.

More guides