LLM Instruction Following Is Improving: Time to Clean Up Skills and Agent Rules

    Stronger instruction following can turn legacy agent rules into unnecessary overhead. This article explains how broad skill triggers and mandatory document reads increase token usage and slow development, then outlines how to audit triggers, separate global constraints from on-demand references, reuse document context, resolve conflicts, and evaluate the cleanup.

    LLM Instruction Following Is Improving: Time to Clean Up Skills and Agent Rules

    1. Why Stronger Models Expose Weak Rules

    When AI agents and coding assistants first emerged, models had limited ability to interpret context. They often failed to consult project documentation or identify which conventions applied to a task. Developers responded with a straightforward strategy:

    • Put every potentially useful rule and reference into system prompts or agent instruction files.
    • Give skills broad activation criteria, prioritizing coverage over precision.
    • Add mandatory safeguards such as “Read all project documentation before every edit.”

    These approaches could work reasonably well with earlier models. Because those models did not consistently follow every instruction, they effectively ignored some redundant requirements, keeping the overhead manageable.

    As instruction following improves, that balance changes. A model that follows rules more faithfully can turn previously ignored constraints into actual execution costs. The problem is not necessarily that the model has become worse. Rather, rules written for models that were less reliable at following instructions can become counterproductive when applied to more compliant models.

    Vague, conflicting, or overly broad instructions no longer remain harmless background text. They can become repeated actions, unnecessary context, and avoidable delays.

    2. Two Common Types of Counterproductive Rules

    Overly Broad Skill Triggers

    Many skill descriptions use activation criteria like this:

    1. Use when working with databases, queries, models, or persistence.

    The scope is too broad. “Databases,” “queries,” “models,” and “persistence” cover a large share of everyday backend development.

    Suppose the task is simply to change the type of a field in an ORM model or fix an edge case in a routine query. The model may still decide that the skill is relevant. That can lead to a chain of unnecessary work:

    1. The skill activates even though the task does not require it.
    2. Its migration rules, checklists, and reference documents enter the context.
    3. Irrelevant material competes with the information that actually matters.
    4. Token usage increases, responses slow down, and the risk of hallucinations may rise.

    A better trigger describes a specific task action:

    1. Use when adding or changing a migration, or reviewing its rollout.

    This identifies a clear intent—adding or modifying a migration, or reviewing its rollout—rather than a broad technical domain. Routine business-logic changes are less likely to activate the skill unnecessarily, leaving the context focused on the current task.

    Mandatory Reads of All Project Documentation

    Another common legacy rule looks like this:

    1. Before every edit, read architecture.md, database.md, and deployment.md.

    This once helped compensate for models that did not proactively look up documentation. With stronger instruction following, however, the model may interpret and execute it literally:

    • Before changing a single string, it reads all three documents.
    • Before the next edit, even a punctuation change, it reads them again.
    • Across conversation turns and editing operations, the same reads recur.

    The result is higher token usage, slower progress, and rapidly growing context. As the context expands, the model may become less reliable at retaining earlier details, increasing the risk of hallucinations or inconsistent output.

    The safeguard can therefore undermine the reliability it was intended to improve.

    3. How to Clean Up Skills and Agent Rules

    Audit Each Trigger: Replace Domain Labels with Task Actions

    Review every skill’s activation criteria and ask three questions:

    • Does the condition describe a specific, identifiable task action?
    • When the condition matches, is most of the skill’s information likely to be useful?
    • Could ordinary development work activate it unnecessarily?

    Replace broad domain labels such as “database,” “performance,” or “security” with concrete actions such as “create a migration,” “review an index,” or “inspect authentication middleware.”

    The goal is not to activate every potentially relevant skill. It is to activate skills when their guidance is genuinely needed, rather than adding unrelated material to every request.

    Separate Always-On Constraints from On-Demand References

    Divide instructions into two categories:

    1. # Always-on constraints: short and global
    2. - Follow the repository's existing code style and directory structure.
    3. - Do not introduce new runtime dependencies unless explicitly requested.
    4. # Detailed references: load on demand
    5. - For data migration work: consult docs/migration.md.
    6. - For deployment changes: consult docs/deployment.md.

    Detailed references should not rely on “read this every time” as a fallback. Tie them to explicit task conditions instead.

    This keeps project knowledge available without forcing the model to repeatedly load material unrelated to the current work.

    Read Once and Reuse Across Turns

    If the toolchain supports session-level state or a memory cache, retain summaries of documents already read. Later turns can use those summaries instead of loading the full documents again.

    A typical policy is:

    1. # Documentation reading policy
    2. - When a document first becomes relevant, read it and record its key conclusions in the session.
    3. - In later turns, retrieve only the relevant sections when additional detail is needed, rather than rereading the entire document.

    This can reduce context growth during long sessions while keeping relevant guidance accessible.

    Detect Conflicts and Consolidate Duplicates

    A cleanup should explicitly address both conflicting and duplicate instructions.

    The more faithfully a model follows instructions, the more disruptive contradictions can become. It may pause to ask the user for clarification, alternate between incompatible requirements, or stop making progress altogether.

    A practical review should:

    • List each rule’s source, purpose, and scope in a table.
    • Merge rules that express the same requirement.
    • Establish precedence for conflicting rules, such as preferring specific rules over general ones.
    • Remove obsolete rules and requirements already enforced by tools. For example, formatting handled automatically by a formatter does not need to be restated in detail in the prompt.

    The aim is a coherent instruction set, not simply a shorter one.

    Set a Rule Budget

    Give agent instruction files a soft size limit—for example, a few hundred lines—and require existing rules to be removed or consolidated when new ones are added.

    More rules do not automatically produce better guidance. Ten precise rules can be more useful than a hundred vague ones.

    A budget encourages maintainers to evaluate whether each instruction deserves space in the agent’s persistent context.

    4. How to Evaluate the Cleanup

    After revising the rules, assess the results across several dimensions:

    1. Unnecessary activation rate: Do unrelated skills still activate during routine code changes?
    2. Token usage: For comparable workloads, has the context size per call decreased?
    3. Task completion speed: Does the model spend less time on unnecessary document reads and repeated clarification?
    4. Output consistency: Do long sessions encounter fewer pauses or blocked tasks caused by conflicting rules?
    5. Maintainability: Do new rules have clear ownership and a defined review process?

    These checks help establish whether the cleanup improves actual agent behavior rather than merely making instruction files look tidier.

    5. From Defensive Rules to Precise Activation

    Each improvement in model capability changes what effective prompts and agent rules look like.

    Broad skill triggers, mandatory full-document reads, and layers of fallback instructions were often introduced to compensate for weaker models. With stronger instruction following, those same rules can become counterproductive: consuming tokens, slowing work, expanding context, and increasing the risk of unreliable output.

    The purpose of this cleanup is to move from defensive, “just in case” instructions to precise, on-demand activation.

    Skill triggers should describe concrete task actions. Detailed references should be tied to explicit scenarios. Global constraints should be concise and free of conflicts.

    More precise rules let stronger models spend their tokens and attention on the problem that actually needs to be solved.