# Skill description over 1,024 characters

> ax-check rule: The frontmatter description is longer than the 1,024 characters the specification allows.

Section: ax-check rule · Descriptions and schemas  
Canonical: https://agentexperience.tech/checks/axc-d024/

The frontmatter description is longer than the 1,024 characters the specification allows.

- **How serious**: **error** Something is broken or missing.
- **Kind of check**: **[Conformance](https://agentexperience.tech/checks/#kinds)** A finding is a fact about the input.
- **ax-check command**: `ax-check lint`
- **Where it applies**: SKILL.md
- **Topics**: [skills](https://agentexperience.tech/evidence/#pattern-skills), [context-budget](https://agentexperience.tech/evidence/#pattern-context-budget)
- **Rule text from**: ax-check 0.2.0Documented ahead of release

**Fix in one line** Cut the description to what and when; move detail into the SKILL.md body or references.

The `description` in the SKILL.md frontmatter is longer than the 1,024 characters the Agent Skills specification allows. A loader that enforces the limit may reject the skill or cut the description, and a cut loses the end of the text, where a “when to use it” sentence may sit. Even where it is accepted, the description is loaded for every installed skill, so extra length costs context all the time.

## What it checks

ax-check measures the length of the frontmatter `description` of each SKILL.md and reports any longer than 1,024 characters.

## Why it matters

The Agent Skills specification sets a maximum of 1,024 characters for `description`. Anthropic’s skill authoring guidance (vendor guidance) gives the same maximum and adds that the description “is injected into the system prompt”. The description’s job is discovery: say what the skill does and when to use it, so the agent can decide whether to load the body. Instructions, examples and reference material belong in the body or in bundled files, which load only when the skill is used.

## How to fix

- Cut the description to two parts: what the skill does, and when to use it (and, if useful, when not to).
- Move steps, examples, option lists and background into the SKILL.md body.
- Move long reference material into files under `references/` and link to them from the body.

## Example

### Before

```markdown
---
name: invoice-review
description: >
  Checks a draft invoice before it is sent. First open the invoice and read
  every line item, then compare each line with the order, then check the tax
  rate for the customer's country using the table below, then check the due
  date against the payment terms ... (a tax table and 12 more steps follow,
  1,400 characters in total)
---
```

### After

```markdown
---
name: invoice-review
description: Checks a draft invoice before it is sent, covering totals, tax and due dates. Use this when asked to review, check or approve an invoice. Do not use it to create invoices.
---

# Invoice review

1. Open the draft invoice and read every line item.
2. Compare each line with the order.
3. Check the tax rate in [the tax table](references/tax-rates.md).
```

## How ax-check detects it

ax-check takes the `description` value as the YAML parser returns it and counts its characters. A folded or literal block scalar is measured after YAML has joined its lines. The value is not trimmed first.

What it ignores: a missing description is reported by [SKILL.md frontmatter missing or invalid](https://agentexperience.tech/checks/axc-d022/), not here. A long description that is still under the limit is not reported by this rule; [Description length outlier](https://agentexperience.tech/checks/axc-d016/) reports descriptions that are far longer than the others in the same set of skills.

Known false positives: ax-check counts characters as JavaScript string units, so an emoji or another character outside the Basic Multilingual Plane counts as two. A description just under the limit that uses many such characters may be reported.

If the finding does not apply, silence it with `--disable <rule-id>`.

## Sources

- Specification: Agent Skills specification, agentskills.io, retrieved 2026-10-08. [https://agentskills.io/specification](https://agentskills.io/specification). `description` is required, non-empty, at most 1,024 characters, and “Describes what the skill does and when to use it.”
- Vendor guidance: Skill authoring best practices, Anthropic, retrieved 2026-10-08. [https://docs.claude.com/en/docs/agents-and-tools/agent-skills/best-practices](https://docs.claude.com/en/docs/agents-and-tools/agent-skills/best-practices). Description maximum 1,024 characters; “The description is injected into the system prompt.”

## Related evidence

Records in the [AX evidence register](https://agentexperience.tech/evidence/) about the same pattern as this rule. They don’t test the rule itself.

- [Injected skills lowered pass rates and raised token cost on average](https://agentexperience.tech/evidence/ev-0017/): WebDev-Skills-Bench (preprint) found that injecting matched public skills reduced mean Pass@2 by 1.3% to 4.2% across four models and raised token cost by 72% to 394%, with gains in only 17% to 36% of skill-project pairs. Preprint: not yet peer reviewed
- [Skill rules that name a command or path change what agents do](https://agentexperience.tech/evidence/ev-0018/): A study of 3,159 skills (preprint) found that adding a checkable rule raised the rate at which four coding agents took the required action by +0.23 on average, with the gain coming mainly from rules naming a command or path the old skill did not mention. Preprint: not yet peer reviewed
- [Skill selection precision collapses as the skill pool grows](https://agentexperience.tech/evidence/ev-0019/): A preprint reports that as the pool of available skills grew from 5 to 100, the precision with which agents actually used the right skill fell from 29.6% to 3.3%. Preprint: not yet peer reviewed
- [Search-and-execute meta-tools cut catalogue tokens by 99% in production](https://agentexperience.tech/evidence/ev-0022/): PayPal authors report (preprint) that exposing two meta-tools, search and execute, over 2,000+ MCP tools cut tool-token consumption in production from 140.2k tokens (70.1% of context) to 1.3k tokens (0.8%). Preprint: not yet peer reviewed
- [A capable agent skipped the index and guessed the page](https://agentexperience.tech/evidence/ev-0027/): A preregistered ablation on a 709-page Markdown wiki (preprint) found that a capable tool-using agent never loaded the compact catalogue index, inferring page paths from the question instead, while retrieval-based access kept answer quality non-inferior and cut cost by about a third to over half. Preprint: not yet peer reviewed
- [Adding the context7 MCP server gave no lift; its tools went unused](https://agentexperience.tech/evidence/ev-0030/): Microsoft reports that adding the context7 MCP server to an anti-hallucination skill gave no meaningful lift on an SPFx upgrade: its tools did not load in 3 of 5 runs and were not called in the other 2, while telling the agent to use CLI for Microsoft 365 raised configuration correctness from 30/80 to 75/80. Vendor measurement: the vendor’s own, with its method

## Related guides

- [Write agent-readable documentation](https://agentexperience.tech/insights/make-documentation-legible/): Agent-readable documentation in practice: what documentation for AI agents must answer, how to shape a page around one decision, and how to keep it true. Guide
- [Agent tool catalogues need a pruning strategy](https://agentexperience.tech/insights/agent-tool-catalogs/): How to design an agent tool catalogue: why selection gets harder as an MCP tool catalog grows, three ways to prune it, and how to name neighbouring tools. Guide

## Go here next

- [Write agent-readable documentation](https://agentexperience.tech/insights/make-documentation-legible/): What AI agents read, how to shape a page around a single decision, and how to keep the text true as the product moves. Guide
- [Injected skills lowered pass rates and raised token cost on average](https://agentexperience.tech/evidence/ev-0017/): WebDev-Skills-Bench (preprint) found that injecting matched public skills reduced mean Pass@2 by 1.3% to 4.2% across four models and raised token cost by 72% to 394%, with gains in only 17% to 36% of skill-project pairs. Evidence
- [Bundled reference missing](https://agentexperience.tech/checks/axc-d025/): SKILL.md links to a bundled file that does not exist, or points outside the skill folder. Rule

## About this rule text

[Skill name breaks the naming rules](https://agentexperience.tech/checks/axc-d023/)

[Bundled reference missing](https://agentexperience.tech/checks/axc-d025/)

[All ax-check rules](https://agentexperience.tech/checks/)

Rule text from ax-check 0.2.0, by Himadri Mishra. The licence will be confirmed before the source repository is published.
