After an LLM Upgrade: How to Clean Up Your Skill Files and Project Conventions

    As newer LLMs follow instructions and use tools more reliably, old safeguards such as overly broad skill triggers and mandatory document reads can become negative optimization. This article explains why legacy rules can degrade performance, analyzes two common anti-patterns, and provides a five-step cleanup process for auditing skill triggers, converting imperative rules into conditional routing, removing conflicts, validating behavior, and versioning conventions.

    1. Why Old Rules Can Become Negative Optimization

    When model-driven coding assistants first emerged, the industry faced a common problem: models were not strong at following instructions or proactively retrieving project documentation. To make agents produce results that better conformed to engineering conventions, the developer community adopted a set of established practices: place a global convention file in the project root, such as an AGENTS.md-style document; configure reusable Skill modules on general collaboration platforms; and use broad trigger conditions—“better to over-trigger than miss”—so the model loads as much context as possible.

    These practices were reasonable, and even necessary, in the past. But their premise was that models would not strictly execute those rules. When early models faced hard constraints such as “read all three documents before every edit,” they often executed selectively or occasionally skipped them, so the actual overhead remained manageable. As newer models have made major gains in instruction following, tool use, and task planning, they have begun to follow the letter of the rules. If you change only one string, the model still reads all specified documents in full; if you change a second place, it reads them all over again. At that point, old rules degrade from safeguards into pure burden.

    The industry has reached a consensus on this phenomenon. In an official prompt engineering guide released by a leading model lab for its new-generation model, the guide explicitly notes that the new model has stronger instruction-following ability and is therefore more susceptible to vague, conflicting, or overly broad instructions in skill files and global conventions. This can cause the model to pause prematurely and ask the user, or even block the task directly. When another model version was released earlier, the community also discussed a similar issue: under strong models, stacked context injection—sometimes called “superpower-style” configuration—has become negative optimization, wasting tokens with no benefit.

    Behind this is a somewhat ironic pattern: patches you prepared for weak models are not needed by strong models; what strong models need is clean rules. As a widely circulated saying goes, if technology evolves fast enough, the configuration methods you learned before no longer need to be used.

    2. Analysis of Two Typical Anti-Patterns

    2.1 Skill Trigger Conditions That Are Too Broad

    Bad example:

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

    The problem is that terms such as “databases,” “queries,” “models,” and “persistence” have extremely broad semantic coverage. Almost any backend task can touch them. If you are only modifying an ORM model definition, or fixing ordinary business logic in a query statement, the model may still determine that “the database migration skill is relevant to the current task.” As a result, that skill, along with its migration rules, check steps, and reference materials, all enter the context. The consequences are:

    • Irrelevant rules occupy valuable context window space.
    • In subsequent reasoning, the model may be disturbed by these irrelevant instructions, producing hallucinations or incorrect constraints.
    • Token cost grows linearly with each trigger.

    The officially recommended change is to tighten the description to a specific task:

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

    This describes a clear task type rather than a broad technical domain. The skill is loaded only when you actually need to add or change a migration, or review its rollout, avoiding over-triggering.

    2.2 Mandatory “Read Every Time” Rules

    Bad example:

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

    Such rules were very common in the early days, because agents at that time indeed did not proactively look for project documentation. Developers could only rely on “forced full-document reading” as a fallback. But under new-generation strong models, the model will seriously and repeatedly execute this constraint:

    • Change one string → read all three documents in full.
    • Fix a second small issue → read all three documents in full again.
    • Context expands rapidly, effective information density drops, hallucination probability rises, and task progress slows down.

    Recommended rewrite:

    1. Use architecture.md for service boundaries, database.md for schema changes,
    2. and deployment.md when preparing a deployment.

    This effectively refactors a mandatory instruction into a concise context routing table:

    Current task type Documents to load
    Modifying service boundaries architecture.md
    Modifying data structures database.md
    Preparing a deployment deployment.md
    Routine UI bug fix No additional loading

    The model retrieves information on demand based on the nature of the task, instead of loading everything every time.

    3. How to Systematically Carry Out This Cleanup

    Step 1: Audit all skill trigger conditions. Check each skill’s “when to use” description one by one, and replace broad domain words such as “working with,” “related to,” and “anything involving” with specific task verbs such as “adding,” “refactoring,” and “reviewing rollout.” A simple criterion: if an ordinary task could falsely trigger it, the condition is too broad.

    Step 2: Change imperative sentences in global convention files into conditional sentences. Search for all rules beginning with “Before every,” “Always,” “Never,” or “Every time,” and assess whether they truly need unconditional execution. In most cases, rewrite them as routing-style expressions such as “When…, use…” and return the decision to the model.

    Step 3: Remove conflicts and redundancy. When multiple rules describe the same thing with different wording, or when old and new conventions coexist, a strong model will try to satisfy all constraints at the same time and can easily stall or repeatedly ask questions. Merge duplicates and maintain a single source of truth.

    Step 4: Establish a validation baseline. After cleanup, test agent behavior with a set of typical tasks: small changes, cross-module refactoring, documentation updates, and deployment preparation. Compare token consumption, number of turns, and final result quality before and after cleanup to confirm that no critical constraints were accidentally removed.

    Step 5: Put cleanup into version management. Skill and convention files should go through code review just like code. After each major model version upgrade, rerun the audit, because the boundary between “lenient rules for weak models” and “clean rules for strong models” keeps moving.

    4. Deeper Implications

    The essence of this cleanup is a shift in the AI collaboration paradigm: from “using rules to compensate for model shortcomings” to “using precise context routing to leverage model strengths.” In the weak-model era, more rules meant more safety; in the strong-model era, more precise rules mean more efficiency.

    For enterprises building agent applications with cloud model services—for example, model services offered by Baidu AI Cloud’s Qianfan platform—the same principle applies: skill orchestration, knowledge injection, and tool mounting should all follow the principle of “load on demand, trigger precisely,” rather than stuffing every capability into the system prompt. Context windows are growing larger, but effective information density is the key variable that determines reasoning quality.

    Subtracting from project documentation and skill configuration is not about lowering engineering rigor. It is about acknowledging that models have evolved to the stage where they can independently decide when they need what information. Regularly cleaning your skill library and convention files, like regularly refactoring code, should become a routine maintenance practice in the AI era.