Why Stronger Instruction-Following Models Make Your Skills and AGENTS.md a Liability
As instruction-following improves in the latest generation of coding agents, many prompt assets built to compensate for weaker models—skills, project constraint files like AGENTS.md, and long specification documents—start to slow tasks down and amplify hallucinations. This article explains why vague, overly broad, or conflicting rules become negative optimizations, breaks down three root causes of context bloat, and offers a practical cleanup methodology based on context budgeting, plus a checklist and observability practices to keep rules stable over time.
Under Stronger Instruction-Following Models, It’s Time to Clean Up Your Skills and AGENTS.md
1. The Symptom: The Stronger the Model, the More Old Rules Look Like Negative Optimization
As AI coding tools enter a new round of capability upgrades, the community keeps running into the same phenomenon: the large body of prompt assets accumulated to compensate for weaker models—skills, project-level constraint files (such as convention files like AGENTS.md), and long specification documents—no longer delivers returns on the latest generation of models. Instead, they slow tasks down and amplify hallucinations.
The reason is not mysterious. A typical weakness of earlier models was “unstable instruction following”: you told it to read the architecture document, and it might skip it; you told it to run a migration check, and it might forget. So the natural selection in engineering practice was “enforcement”: read it every time, execute it whenever relevant, check it whenever relevant. On weak models, these rules were patches; on strong models, they turn into hard constraints.
Once a model’s instruction-following ability improves significantly, every rule in the context is executed more faithfully. The vaguer, broader, and more mutually conflicting the rules are, the more likely the model is to pause early, ask the user back, or even block the task outright. That is the essence of negative optimization: the execution cost of a rule shifts from “possibly ignored” to “certainly paid.”
2. Root Causes: Three Kinds of Rules Are Creating Context Bloat
2.1 Trigger conditions that are too broad, causing skills to be over-activated
A typical counter-example is writing a skill description as a domain-level judgment:
Use when working with databases, queries, models, or persistence.
The problem is that database, query, model, and persistence cover almost every routine backend change. You are only modifying an ORM field or adjusting a query, but the model decides it is “database-related,” and the entire migration workflow, checklists, and reference material get pulled into the context. The result: the task itself needs three steps, but the context is stuffed with thirty.
The tightened version should describe a specific task action rather than domain nouns:
Use when adding or changing a migration, or reviewing its rollout.
The difference is that the former is “topic matching” while the latter is “action matching.” Action matching is naturally exclusive and can significantly reduce false triggering.
2.2 Mandatory-read constraints turn linear cost into quadratic cost
Another common kind of rule is:
Before every edit, read architecture.md, database.md, and deployment.md.
This rule was born in the era when “agents would not proactively look for documentation.” But under a strong model, it is executed strictly, one time after another: change one string, read once; change a second spot, read again. The context expands at roughly a quadratic rate, causing three losses: higher token cost, slower responses, and diluted effective attention, which in turn makes hallucinations and inconsistencies more likely in long tasks.
2.3 Conflicting rules trigger a “safety pause”
When skill A requires “produce a plan before acting,” skill B requires “fix it directly and verify,” and the project constraints require “complete a review of three documents before every edit,” the rational choice for a strong model facing conflicting instructions is often to stop and ask the user. From the user’s perspective, the model has become dumber and more verbose. In reality, it is strictly executing the contradictions you wrote down.
3. Cleanup Methodology: From Rule Piling to Context Budgeting
Treat context as a resource with a budget, not a free memo. You can do a thorough cleanup along four dimensions.
3.1 Skill descriptions: rewrite with three elements—action, artifact, and exclusions
Recommended template:
Use when <specific action> and <expected artifact>.Do not use for <common false-trigger scenarios>.
Example:
Use when adding a new migration file or changing an existing one,and you need rollout verification.Do not use for read-only query tuning or ORM field renaming.
The “exclusions” are the key new piece of information: they write the boundary explicitly into the context, which is more robust than simply narrowing the positive description.
3.2 Constraint files: separate “invariants” from “workflows”
Project-level constraints should keep only two kinds of content: first, invariants that must not be violated (coding-standard red lines, no direct changes to the main branch, compatibility boundaries that must be preserved); second, low-frequency, high-value workflows (pre-release checks, data-change reviews). Rewrite “read the docs every time” into on-demand retrieval:
When you need architecture background, first search the relevant sections under docs/, then decide whether to read them in full.Load the corresponding specs only when data changes or deployment configuration are involved.
The key is to change “unconditional execution” into “conditional triggering + on-demand loading.”
3.3 Deduplication and layering: keep only one authoritative source for the same constraint
Skills, project constraints, and global preferences often contain synonymous duplicates in three places. The cleanup principle: the global layer holds only cross-project general preferences; the project layer holds invariants; the skill layer holds reusable workflows. The same semantic meaning is allowed only one authoritative source, and the other places are changed to references.
3.4 Conflict detection: eliminate contradictions before committing
It is advisable to maintain a short rule inventory in the repository and manually scan it for mutually exclusive items such as “must produce a plan first” versus “execute immediately.” This step costs very little but yields the greatest stability benefit for strong models.
4. An Actionable Cleanup Checklist
- Count the trigger-description length of each skill, and rewrite any that exceed two lines as action matching first.
- Search constraint files for absolute wording such as
every,always, andbefore every, and rewrite them one by one into conditional form. - Check whether three or more documents are loaded unconditionally, and change them to on-demand retrieval.
- Confirm that every rule has a clear artifact (a file, command output, or review conclusion); delete rules with no artifact outright.
- In long tasks, watch for frequent questions back and repeated reads; these are typical signals of rule conflicts.
5. Working with the Engineering System
After slimming down the rules, you still need runtime observability to verify the effect. The general practice is to use a logging service to record the context-injection source and token usage of each task, and use monitoring alerts to set thresholds for abnormal expansion; keep project specs in the code repository so they evolve with versions rather than being scattered across personal configurations; add static checks of the rule inventory to the continuous integration pipeline to prevent absolute wording from creeping back. If you run agents on a cloud container platform or pipeline, you can archive context snapshots as build artifacts, making it easier to trace “which rule caused the blockage.”
6. Conclusion
“You don’t need to learn if you learn slowly enough” is a joke, but the engineering conclusion behind it is serious: prompt assets depreciate. Every step up in model capability should trigger a context audit. Replace vague domain words with specific actions, replace unconditional reads with on-demand retrieval, and converge duplicate constraints to a single authoritative source—after these three steps, what you get is not a smarter model, but less waste, a shorter path, and more stable delivery.
