Why Strong Models Make Your Skills and AGENTS.md Files a Liability

    As instruction-following models improve, broad rule sets and overly wide skill triggers start to backfire. This article explains why strong models faithfully execute noisy instructions, walks through two common failure cases—over-broad skill triggers and forced full-document reads—and presents a four-step cleanup method: inventory and deduplicate, narrow triggers, add context routing and layering, and measure with regression tests. It also covers long-term maintenance practices for treating context as a versioned asset with a lifecycle.

    Introduction: Why Adding More Rules Stopped Working

    In the early days of AI coding tools and code agents, the community relied on a simple optimization idea: whenever a model seemed to “forget” project conventions, keep appending rules to the context. Teams stuffed architecture docs, database notes, and deployment manuals into a convention file at the project root, wrapped every reusable procedure as a Skill with the broadest possible trigger description, and worried about the model missing anything.

    This worked well on models with limited instruction-following ability and weak proactive retrieval awareness. But once a new generation of general-purpose models with stronger instruction following and better long-context utilization entered engineering practice, the same rule sets began to produce negative optimization: tokens were consumed by large amounts of ineffective content, tasks were interrupted frequently, agents repeatedly asked for confirmation before acting or even blocked outright, and context ballooned quickly, triggering more severe hallucinations. A half-joking saying spread through the industry: learn slowly enough, and you never have to learn. Behind that joke is a serious engineering conclusion—context is no longer free, and rules themselves carry maintenance and execution costs.

    This article focuses on why Skills and project convention files need a thorough cleanup under strong instruction-following models. It abstracts the common mechanism behind the problem and offers a practical refactoring method.

    1. Root Cause: Stronger Instruction Following Also Executes Noise Faithfully

    The typical failure mode of early models was “not doing what should be done”: not proactively reading docs, not changing code according to conventions, forgetting to run checks. The engineering response was hard constraints, such as “always read all project documentation before every edit.” These rules were highly cost-effective on weakly compliant models, because the model would ignore some instructions anyway, and mandatory clauses pulled key behaviors back to baseline.

    Strong instruction-following models change that premise. They carefully, repeatedly, and literally execute every constraint you write down, including the ones you added just “to be safe.” As a result, three problems erupt at once:

    • Over-triggering: skill descriptions are too broad, so unrelated tasks are judged as matches.
    • Context bloat: once triggered, the accompanying manuals, checklists, and reference material all enter the context and crowd out the effective information window.
    • Semantic conflicts and blocking: when vague, overlapping, or overly broad rules contradict each other, the model tends to stop and ask the user, or pause the task to avoid risk.

    This is not the model “getting dumber”; it is an inevitable result of higher execution fidelity. The goal of context engineering must shift from “covering more cases” to “providing only the right information at the right moment.”

    2. Case One: Over-Broad Skill Triggers Cause False Matches

    Imagine a database migration Skill whose trigger description reads “Use when working with databases, queries, models, or persistence.” The problem is that these words cover an enormous semantic surface: changing a field mapping, optimizing a query, or adjusting a data transfer object can all be judged as “database-related.”

    Once a false match happens, the chain reaction begins: migration process specs, rollback check steps, historical version notes, and reference docs are all injected into the context. The actual change might be only a few lines of code, but the model first reads thousands of words of irrelevant manuals before starting. Multiple edits repeat this multiple times, so cost and latency rise linearly while the benefit is zero.

    A safer approach narrows the trigger to concrete actions and artifacts, such as “when adding or changing a migration script” or “when reviewing its rollout plan.” The rule of thumb is simple: a trigger description should contain a verifiable task object, not a broad domain noun.

    1. # Not recommended: stacked domain nouns with excessive coverage
    2. Use when working with databases, queries, models, or persistence.
    3. # Recommended: bound to a concrete action and artifact
    4. Use when adding or changing a migration script,
    5. or when reviewing its rollout plan.

    3. Case Two: “Always Read Everything” in Convention Files

    Another frequent problem appears in project convention files, typically phrased as: “Before every edit, read the architecture, database, and deployment docs.” This rule was born from early agents that would not proactively retrieve project material, so forced reading served as a fallback.

    A strong instruction-following model treats it as a hard precondition: change one UI string, first read all three documents in full; make a second change, read them all again. By the end of a task, the context is packed with service boundaries, table schemas, and release processes that have nothing to do with the current change. Beyond slowing progress and raising cost, there is a subtler price—irrelevant information dilutes attention on key constraints, making the model more likely to drift on details.

    The right fix is to rewrite “full mandatory reads” as “on-demand routing” by building an explicit context routing table:

    Current task type Context to load
    Adjusting service boundaries, splitting modules Architecture doc
    Changing table schemas, indexes, data migrations Database doc
    Preparing release, rollback, canary rollout Deployment doc
    Routine UI defects, copy changes No extra loading

    Example of a rewritten convention file:

    1. ## Context Routing
    2. - Service boundaries or module splits: read architecture.md
    3. - Table schema or index changes: read database.md
    4. - Release and rollback preparation: read deployment.md
    5. - Other changes: load no additional docs

    The essence of this change is replacing imperative constraints with a conditional information retrieval strategy, turning context loading from static full loads into dynamic on-demand loads.

    4. Refactoring Method: A Four-Step Context Cleanup

    Step one, inventory and deduplicate. List every Skill and convention clause, noting each one’s trigger condition, attached material, and the last time it was correctly matched. Items that have never matched in a long time, or that always trigger falsely, should be deleted first rather than patched.

    Step two, tighten the trigger surface. Rewrite each Skill as a three-part description of “action + artifact + scenario,” avoiding broad domain nouns. For Skills that genuinely need broad coverage, split them into multiple narrowly triggered Skills to avoid injecting large amounts of material at once.

    Step three, establish routing and layering. Keep only stable, global, unambiguous principles in the project convention file (such as code style, commit conventions, security red lines); push volatile details down into on-demand documents; move large reference material into tool retrieval or an external knowledge base so the agent fetches it when needed instead of preloading it.

    Step four, measure and regress. Run a regression over a set of real historical tasks: track average context length, false skill triggers, task interruptions, per-task time, and token consumption. Whether the cleanup worked should be answered by these metrics, not by intuition.

    5. Long-Term Maintenance: Treat Context as an Asset with a Lifecycle

    Context assets need version control and periodic recycling. In practice, a few disciplines help: change convention files alongside code review to avoid rule drift; clean the Skill library quarterly and retire entries with zero matches; define priority and scope (global/directory/file level) for conflicting rules to reduce repeated confirmations over ambiguity; hand automatically verifiable conventions to pipeline checks instead of expecting the model to read docs and comply every time—what tools can guarantee deterministically should not be left to probabilistic reasoning.

    On the platform side, a combination of containerized development environments, logging services, monitoring and alerting, and pipeline checks can make “whether conventions are enforced” observable. General cloud infrastructure from providers such as Baidu AI Cloud is also commonly used to host these agent runtime environments and observability systems.

    Conclusion

    Strong instruction-following models do not make context engineering simpler; they make it more precise. Cleaning up Skills and project convention files comes down to one point: remove broad triggers, switch to conditional routing, and give every context injection a clear reason. When rules shift from “more is safer” to “more precise is more effective,” token cost, response speed, and output stability all improve at once—and that is a general engineering capability you do not have to relearn with every new model generation.