Why Your Agent Skills Need to Slim Down in the Era of Strong Instruction-Following Models
As coding agents become much better at following instructions, bloated skill rules start to backfire—causing over-triggering, repeated file reads, and unnecessary blocking. This article explains the root causes and shows how to turn scattered rules into a context routing table, with a five-step cleanup process and common pitfalls to avoid.
1. The Symptom: More Rules, Slower Responses
Over the past two years, the rapid improvement in AI coding tools has largely come from stronger instruction following. Early models often ignored the constraint files developers placed in the project root. The community responded with a blunt approach: write down every best practice you can think of—which documents to read, which checks to run, and in what order—leaving nothing out.
Now that models follow instructions much more faithfully, this “more is safer” habit has started to backfire. Three behaviors stand out:
- Over-triggering: A simple UI copy change unrelated to database migrations gets classified as “involves persistence,” pulling the entire migration workflow into context.
- Repeated execution: Every file edit triggers a fresh read of all architecture documents. Change three places, read three times.
- Premature blocking: When rules have fuzzy boundaries or conflict with each other, the model plays it safe by stopping to ask the user—or terminating the task outright.
The conclusion is straightforward: context is not free, and more rules are not automatically better. The value of a rule lies not in how many scenarios it covers, but in putting only the right information into context at the right moment.
2. Root Causes: Three Mechanisms Deteriorating at Once
2.1 Trigger conditions written too broadly, leading to semantic misjudgment
A typical problematic rule looks like this:
Use when working with databases, queries, models, or persistence.
Words like “database,” “model,” and “query” cover an enormous surface area. Changing a field on an ORM entity, optimizing a query, or adjusting an ordinary business model can all match semantically. Once matched, the attached migration standards, rollback checks, and reference materials all enter context, creating context pollution: truly relevant information gets diluted by large amounts of weakly related content, the model’s attention is scattered, and output quality drops.
A tightened version should describe a specific action rather than a broad domain:
Use when adding or changing a migration, or reviewing its rollout.
The difference: the former describes a “domain,” the latter a “task.” A domain is almost always relevant; a task is relevant only at specific moments.
2.2 Mandatory-read rules become pure overhead with strong models
Another common pattern:
Before every edit, read architecture.md, database.md, and deployment.md.
This rule was born in an era when models “would not proactively look for documentation”—a compensatory design. Today’s models execute constraints carefully and repeatedly: change one string, read once; change a second spot, read again. The result is a triple loss—token consumption rises linearly, responses slow down, and context balloons rapidly. That ballooning, in turn, worsens hallucination and instruction drift.
2.3 Rule conflicts trigger defensive behavior
When multiple skills have overlapping applicability conditions, unclear priorities, or even contradictory instructions, the model cannot decide whom to obey. Stopping to ask the user is its rational choice under uncertainty. From the user’s perspective: a clearly small task gets confirmed over and over, and the workflow grinds to a halt.
3. The Method: Turn Rules into a Context Routing Table
The thinking behind the recommended style is to organize scattered rules into a routing table: first determine the task type, then decide which context to load.
Use architecture.md for service boundaries.Use database.md for schema changes.Use deployment.md when preparing a deployment.
The mapping can be expressed explicitly:
| Current Task | Context to Load |
|---|---|
| Adjusting service boundaries or module responsibilities | Architecture document |
| Changing table structures or data models | Database design document |
| Preparing a release or changing the pipeline | Deployment document |
| Ordinary UI defects or copy adjustments | Load none of the above |
The last row is the easiest to overlook yet delivers the biggest payoff: explicitly declaring “do not load” is the key to suppressing over-triggering.
4. Implementation: Five Steps for a Cleanup
- Inventory: List all skills and constraint files, noting each rule’s origin and the problem it was meant to solve. Delete any rule with no corresponding problem.
- Rewrite trigger conditions: Replace domain words with decidable action phrases—start with a verb and specify the input or output.
- Deduplicate and layer: Put global constraints (code style, commit conventions) in a base layer; stack-specific rules in a project layer; one-off task notes in temporary instructions, cleaned up when the task ends.
- Eliminate conflicts: Assign clear priorities and mutual exclusions so two rules never match the same scenario at once.
- Measure and regress: Track context growth per task, number of tool calls, task completion rate, and human intervention count. Use data to judge whether slimming down worked.
A before-and-after example:
# BeforeAlways read all docs before any change. Never skip validation.# AfterRead the module doc only when its public interface changes.Run unit tests for the touched package; skip unrelated suites.Ask the user only when two requirements conflict.
5. Common Pitfalls
- Treating slimming down as deleting rules: The goal is a better signal-to-noise ratio—keep high-value constraints, remove redundancy and overly broad phrasing.
- Changing skills but not constraint files: Both enter context and must be governed together.
- Cleaning up once and never maintaining: Rules rot as projects evolve; include them in regular reviews.
- Ignoring “do not load” phrasing: Without negative instructions, the model leans toward “reading a bit more is safer.”
6. Conclusion
Strong instruction following cuts both ways: the more obedient the model, the more certain the damage from low-quality rules. The idea that “learning slowly means you do not need to learn” is really a reminder to invest in general-purpose capabilities with lower migration costs—such as context engineering—rather than chasing temporary features of a particular model version. In engineering practice on platforms like Baidu AI Cloud, combining unified observability across logging services, monitoring and alerting, and container platforms turns context consumption and task success rate into continuously trackable metrics—so rule governance evolves from a one-time campaign into a long-term mechanism.
