Chapter 12 · Anti-patterns & FAQ¶
Anti-patterns¶
Each of these comes from real skills failing in real sessions. The fix is almost always the same principle: the agent is a reader with a job — write for the moment it's in.
1 · The mega-skill
One skill that commits, reviews, deploys, and writes docs. Triggers on everything, competes with every other skill, and its body is a novel. Split by job; let the agent chain them.
2 · The vague description
"Helps with code." — never triggers, or triggers always. The
description is a routing decision: what + when + the user's vocabulary.
3 · The wall of prose
800 lines of instructions the agent skims. Critical rules buried at line
600 are decoration. Body < 500 lines, critical rules first, the rest
into references/.
4 · The nesting doll
SKILL.md → a.md → a-details.md → a-details-v2.md. Agents partially read chains and act on fragments. One level deep, split sideways instead.
5 · The unrouter reference
References linked with no "when to read this" condition — always loaded (hidden bloat) or never loaded (dead weight).
6 · Rules where scripts belong
"Always verify the JSON parses before saving" — as prose, it's a
suggestion. Deterministic checks go in scripts/
(chapter 6).
7 · Scripts where judgment belongs
A 500-line script trying to decide tone or strategy with regexes. Scripts verify and crunch; the model judges.
8 · The human README inside the skill
Onboarding docs for humans inside the skill folder — the agent reads them as instructions and gets confused. Agent-facing content lives in SKILL.md/references; human-facing docs live in the repo.
9 · Case-sensitivity roulette
skill.md, Skill.md, SKILL.MD — discovery expects exactly
SKILL.md, and the folder name must match the name field exactly.
10 · Time bombs
"Until August 2026, use the v1 endpoint" — stale instructions the agent will faithfully follow forever. Put current truth in the body; move superseded patterns to an explicitly deprecated section.
11 · Terminology drift
"endpoint" / "URL" / "route" used interchangeably, or "field" / "box" / "control". Pick one term per concept and keep a glossary in a reference if the domain is large.
12 · Windows-blind paths
scripts\helper.py in the body, or shell-only one-liners presented as
the only path. Forward slashes, pathlib in scripts, and a note when a
command is platform-specific.
13 · The unbounded memory
A memory file that grows forever until nobody reads it. Caps, pruning, and evidence requirements — chapter 8.
14 · Secrets in the folder
Tokens, .env copies, internal hostnames — committed and then
published to a marketplace. Skills travel; audit them like public code.
15 · The noisy neighbor
A description that over-triggers and hijacks tasks that belong to other skills. Negative triggers and narrower claims.
FAQ¶
My skill doesn't trigger. How do I debug it?¶
In order:
- Vocabulary check — does the description contain the words the user actually said? Rewrite the description with those words.
- Scope check — is the skill installed in a path this agent scans? Start a fresh session (skills are discovered at startup).
- Crowding check — is another skill's description matching harder? Add negative triggers to yours.
- Force it — invoke the skill explicitly (most agents let you call a skill by name) to separate trigger problems from body problems. If forced loading works, it's the description; if it doesn't, it's the body.
- Run the trigger eval set from chapter 10 after every description edit.
Can a skill call another skill?¶
Not directly — skills are documents, not functions. But the agent can load another skill mid-task if your instructions say when ("once the changelog entry is final, suggest running the version-bump skill"), and pipelines form through shared artifacts (chapter 9).
Skills vs. AGENTS.md / rules files — when does each win?¶
Always-on context (conventions, tone, "never touch main") belongs in rules files — it's cheap and universal. Skills are for conditional knowledge: loading the deploy runbook on every session would be waste; loading it when someone says "deploy" is the point. If you're writing the same thing in a rules file and a skill, the rules file gets the general principle and the skill gets the procedure.
Do skills work without scripts?¶
Yes — the format's minimum is a SKILL.md, and plenty of great skills are pure workflow. Scripts pay for themselves when you find yourself writing enforcement prose ("always", "never", "must be under") or asking the agent to compute something from many inputs.
How many skills can I install?¶
Dozens — discovery costs ~100 tokens per skill (name + description). The practical ceiling isn't context, it's trigger confusion: many skills with overlapping descriptions will misroute. Partition your description space as your fleet grows.
Can I edit a skill I installed from a marketplace?¶
Yes. Copy it from its installed location to your user directory
(~/.agents/skills/<name>/) and edit there — the user-level copy overrides
the original in most agents. Keep the original name and folder name:
identity is the installation path, but the name is what references and
invocations use.
Are description length limits hard limits?¶
Yes — the spec allows at most 1024 characters for description and
64 for name (compatibility: 500). Validators enforce them, and
registries may reject skills that exceed them.
How do I keep skills working across model upgrades?¶
Re-run your trigger evals and a few golden tasks after major model changes — trigger behavior and instruction-following shift between models. Rubric drift (chapter 10) is your early warning.
Case Studies — the three example skills, end to end.