Why Stronger Instruction Following Requires Cleaning Up Skills and AGENTS.md
As language models improve at instruction following, long-context understanding, and tool use, accumulated Skills and AGENTS.md rules can turn vague guidance into real execution costs. This article explains why stronger models are more affected by low-quality rules and how to shift from mandatory full reads to task-based context routing, including cleanup principles, negative constraints, and an ongoing governance process.
Introduction: Context Governance Becomes an Engineering Problem in the Era of Strong Models
As a new generation of large language models continues to improve in instruction following, long-context understanding, and tool use, many teams still rely on prompt engineering habits from the early days of AI coding assistants. They accumulate large numbers of Skill descriptions, AGENTS.md constraints, project notes, and checklists in their repositories.
These rules were effective early on. Models often did not proactively retrieve project documentation, so developers had to force the necessary background into the context with hard constraints such as “read these documents before every edit.”
Once model capabilities improved, the problem reversed. Stronger instruction following means the model takes every rule more seriously instead of selectively ignoring it. Vague, broad, or conflicting rules are then amplified into real execution costs: a routine string change may trigger a database migration workflow, and a minor UI fix may force the model to load architecture, database, and deployment documentation. The result can be wasted tokens, premature task pauses, repeated questions to the user, or even blocked tasks.
The core question is therefore not whether to write rules, but how to rebuild context governance for strong models: moving rules from indiscriminate fallback behavior to precise routing, and moving context loading from full preloading to task-based matching.
1. Why Strong Models Are More Easily Slowed Down by Poor Rules
Stronger Instruction Following Has Side Effects
Earlier models executed complex instructions inconsistently, so developers often relied on repetition, forceful wording, and broad coverage to improve hit rates. For example, “use the migration Skill when handling database-related content” might be ignored by a weaker model but is strictly followed by a stronger one.
The problem is that terms such as “database,” “query,” “model,” and “persistence” cover an extremely wide scope. If a task contains a similar keyword, the model may decide the migration rule applies and load migration steps, checklists, and reference material together. Even a task that only changes an object-relational mapping field or fixes a query will be pulled into an unrelated workflow.
Context Bloat Triggers a Chain Reaction
More context is not always better. Irrelevant content in the context causes three problems:
- Higher token costs and slower responses;
- Diluted key information, making it easier for the model to misjudge task boundaries;
- Accumulated historical constraints that increase rule conflicts and hallucinations.
If an AGENTS.md says “read the architecture, database, and deployment documents before every edit,” the model loads them repeatedly. Three consecutive edits mean three repeated reads. For a strong model, this is not insurance; it continuously amplifies noise.
Rule Conflicts Can End Tasks Early
When strong models encounter conflicting rules, common behaviors include pausing the task, asking the user for confirmation, requesting more information, or becoming blocked. For example, one rule says “all changes must be reviewed first,” while another says “submit small changes directly.” The model cannot determine which rule has priority and has to stop and ask. The more numerous and vague the rules are, the more often such conflicts occur.
2. From Mandatory Full Reads to a Context Routing Table
The recommended approach is essentially a simple context routing table: each task type loads only its relevant documents instead of reading everything every time.
| Current task | Context to load |
|---|---|
| Change a service boundary or module responsibility | Architecture documentation |
| Change a data structure or table schema | Database documentation |
| Prepare a release or deployment | Deployment documentation |
| Fix a routine UI defect | No additional documentation |
The key is to tighten the trigger from a broad topic to a specific action. Instead of writing “use migration rules when database work is involved,” write “use migration rules when adding or changing a migration file or reviewing a rollout plan.” The former can be falsely triggered by an ordinary query change; the latter only matches real migration work.
An example of rule wording could be:
Use migration skill only when:- adding or changing a migration file- reviewing a rollout plan for schema changesDo not load architecture.md for UI-only fixes.Load database.md only for schema or query-model changes.Load deployment.md only when preparing a release.
The value of this style is that it is decidable, excludable, and composable. The model does not have to guess whether “database-related” means “migration required”; it decides whether to load context based on explicit actions.
3. Cleanup Principles for Skills and AGENTS.md
Remove Redundant Fallback Rules
Many rules are historical artifacts. Early models did not read documentation, so teams wrote “must read every time.” Early models did not run tests, so teams wrote “must run the full test suite before every commit.” With strong models, preserve the goal rather than the forced action. For example, replace “read three documents before every edit” with “load the relevant document by task type.”
Merge Conflicting Constraints
A single repository often contains contradictory rules: one requires fast iteration, another requires full review; one prioritizes reuse, another requires abstraction and refactoring. Governance should define priority and scope, for example:
- Emergency defect fix: allow minimal changes, but require regression verification;
- New feature development: prioritize existing modules and abstract only beyond their boundaries;
- Before release: require completion of the deployment checklist.
Split Long Rules into Matchable Fragments
Long paragraph rules are difficult to execute precisely. Split them into a “condition-action-exclusion” structure. For example:
- when: schema changeaction: load database.md, run migration checksexclude: read-only reporting queries- when: release preparationaction: load deployment.md, verify rollback plan
Structured wording does not necessarily depend on a specific tool. It can also be written into repository documentation and matched by the model paragraph by paragraph.
4. A Practical Governance Process
Step 1: Inventory Existing Rules
List all Skill descriptions, repository documentation files, and checklists. Mark each with its creation reason, trigger condition, recent match history, and whether it conflicts with other rules. Delete rules whose purpose cannot be explained first.
Step 2: Build Routing by Task
Classify rules by task, such as changing service boundaries, data structures, deployment and release, UI fixes, and dependency upgrades. Specify the minimum necessary context for each task type. The goal is for routine tasks to load no additional context by default.
Step 3: Add Negative Constraints
Writing only when to use a rule is not enough; also write when not to use it. Negative constraints significantly reduce false triggers. For example, explicitly state that UI copy changes do not load database documentation and read-only queries do not trigger the migration workflow.
Step 4: Monitor Continuously and Roll Back
Use logging services, monitoring alerts, and trace records to observe context length, task pause frequency, repeated reads, and task completion rates. If a rule continuously bloats the context or causes frequent confirmations, roll it back or tighten its trigger conditions.
5. Context Asset Governance Recommendations for Enterprises
For enterprise R&D teams, rule files have become a type of context asset. Bring them into version control, review, and regular cleanup:
- Rule changes must state the goal and applicable scope;
- Clean up low-hit, high-conflict rules quarterly;
- Store general engineering standards separately from project-specific rules;
- Apply a stricter loading allowlist to highly sensitive projects;
- Use common cloud capabilities such as container platforms, object storage, and logging services for rule distribution and observability, but avoid exposing irrelevant infrastructure details in prompts.
Conclusion
With strong models, more rules are not necessarily better; more precise rules are. The cleanup of Skills and AGENTS.md is essentially an upgrade from compensatory prompts that rely on mandatory reads to context engineering based on task routing. Developers should work on trigger conditions, negative constraints, conflict merging, and continuous monitoring so that the model loads only the information the current task truly needs. This preserves the benefits of stronger instruction following while avoiding wasted tokens, context bloat, and blocked tasks.
