Why Strong Models Need Leaner Skills and AGENTS.md

    As instruction-following models improve, overly broad context rules in Skills and AGENTS.md can slow tasks down instead of protecting them. This article explains why strong models turn vague, mandatory, or conflicting rules into overhead, and walks through a structured cleanup: auditing rule hit rates, rewriting domain descriptions as action descriptions, switching always-read constraints to on-demand loading, resolving conflicts with a clear priority order, and replacing process narratives with verifiable checks. It also covers engineering practices for observing and governing rules after the cleanup.

    1. The Symptom: More Rules, More Friction

    A common conclusion has emerged in recent discussions about a new generation of models with strong instruction-following capabilities: context rules that were once treated as best practices may become negative optimizations on these models. A joke circulating in the community captures the idea well—if you learn slowly enough, you never have to learn at all. Behind the joke is a serious technical fact: the stronger a model’s instruction-following ability, the more literally it executes every rule in the context, and any flaw in rule design gets amplified.

    A cloud vendor’s official prompt engineering guidance for a new-generation model reaches a similar conclusion: because the new model is significantly more sensitive to instructions, context constraints such as Skills and AGENTS.md are more likely to be triggered and enforced. Vague, conflicting, or overly broad rules can cause the model to pause early, repeatedly ask the user for confirmation, or even block the task outright.

    This shifts the core tension in context engineering. The old problem was “the model doesn’t listen and won’t read the docs on its own,” so people added mandatory rules as a safety net. The new problem is “the model listens too well,” treating every rule as a hard constraint and enforcing it line by line. Redundant rules have gone from insurance to shackles.

    2. Root Causes: Why Strong Models Turn Broad Rules into Burdens

    2.1 Overly Broad Triggers Over-Activate Skills

    A typical counter-example looks like this:

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

    The problem is the coverage is too wide. A developer might only be changing a field on an ORM model or fixing ordinary logic in a query, yet the model still decides the “database migration Skill” is relevant. The consequences cascade: once the Skill is triggered, its migration rules, check steps, and reference material all enter the context, crowding out useful information, and every subsequent step can be disrupted by this irrelevant workflow.

    The tightened version should describe a specific task rather than a broad domain:

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

    The difference is that the first describes a “domain” while the second describes an “action.” Domain words are naturally high-frequency; only action words are decidable.

    2.2 Mandatory Read Rules Cause Context Bloat

    Another common pattern is:

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

    This rule was born in an earlier era when agents did not proactively retrieve project documentation, so it is a historical artifact. On a strong instruction-following model, however, it gets executed literally and repeatedly: change a single string, and several documents are read in full; make a second change, and they are read in full again. Beyond wasting tokens and slowing progress, the more serious consequence is rapid context expansion, which dilutes key information and raises the probability of hallucination.

    2.3 Conflicting and Overlapping Rules Cause Decision Stalls

    When multiple Skills or rule sections give different requirements for the same scenario, a strong model tends to “clarify before acting.” What the user perceives is that it is always asking, always waiting, and never getting anything done.

    3. Governance: Give the Context a Structured Cleanup

    Step 1: Build a Rule Inventory and Audit Hit Rates

    Consolidate all Skills and rule entries into a table and track three metrics: trigger frequency, whether the rule is actually used after being triggered, and whether it overlaps with other entries. Entries with zero triggers over the long term, or high triggers but low usage, should be deleted or rewritten first.

    Step 2: Rewrite “Domain Descriptions” as “Action Descriptions”

    Standardize on the pattern “verb + specific object + clear boundary,” and avoid chaining multiple abstract nouns with “or.” Example:

    1. # Counter-example
    2. Use when working with build, packaging, or deployment.
    3. # Preferred
    4. Use when changing the release pipeline definition or its version tags.

    Step 3: Change “Always” Hard Constraints to On-Demand Loading

    Do not require reading all documents on every edit; instead, let the model retrieve them when needed:

    1. Read architecture.md only when the change crosses module boundaries.
    2. Consult database.md only when schema or index definitions are touched.

    Combined with layered context (an overview file + domain-specific files + on-demand retrieval), this can significantly reduce the context size for a single pass.

    Step 4: Eliminate Conflicts and Define Priority

    Set a single arbitration order for rules, for example: security policy > build and release standards > code style > personal preference. Conflicting entries should be merged rather than kept side by side.

    Step 5: Replace Process Narratives with Verifiable Acceptance Conditions

    Write “check steps” as automated validation commands or assertions so the model runs verification instead of reading procedures. This saves tokens and is more reliable.

    4. Implementation on Cloud Platforms

    After slimming down the rules, you still need engineering-grade observability and governance. Common practices include running standardized build and validation pipelines on a container platform to lock in acceptance conditions; using logging services and monitoring alerts to track metrics such as Skill trigger counts, context length, and task blocking rate; and using object storage to archive rule versions for traceable change management. Baidu AI Cloud typically provides these kinds of general capabilities in a modular way, so teams can combine them freely around their own tech stack without being tied to a specific interface.

    5. Conclusion

    Strong models do not automatically deliver efficiency gains; they simply expose context quality problems more thoroughly. Cleaning up Skills and AGENTS.md is essentially a shift from “piling on rules” to “designing constraints”: trigger conditions must be specific to actions, document loading should be on-demand rather than mandatory, and conflicting rules should converge into a single arbitration chain. After this slimming pass, you will likely find that the rules you truly need are often no more than half of the original set, while task completion speed and stability improve noticeably.