Governing Skills and Rules for Strong Instruction-Following Models
Strong instruction-following models turn vague, overly broad agent rules into real costs: bloated context, unnecessary confirmation rounds, and slowed-down work. This article explains how to audit skill files and project-level agent rules — separating persistent constraints from per-task skills and reference docs, tightening skill triggers around task verbs instead of domain nouns, replacing "read everything every time" with a routing table, resolving artificial conflicts, and running a six-step cleanup process — so each rule applies only where it truly matters.
Strong instruction following has changed the cost of rules
Early coding agents often skimmed past project conventions, so teams got into the habit of writing skill descriptions and project rules long and broad: any touch of data, models, or queries loaded an entire migration workflow; every file edit required re-reading architecture, data, and release docs. Back then, broad rules worked like insurance — occasionally reading a few extra pages bought fewer pitfalls.
Once instruction following became noticeably stronger, the same style turns from insurance into burden. The model no longer “roughly glances” — it judges seriously: does this rule cover the current action? Should it ask a human first on conflict? Can it proceed with incomplete materials? Overly broad skills get repeatedly flagged as relevant; “read before every edit” gets executed literally. The result is usually not more safety, but rapidly growing context, simple changes split into multiple confirmation rounds, slower progress, and stale constraints from long context interfering with the current task.
So skill files and project-level agent rules need a systematic cleanup. The goal is not to discard engineering discipline, but to make every rule apply only to the tasks it actually governs.
First, separate three types of context
Before cleaning, split your material into three categories instead of piling everything into one persistent instruction file.
Persistent constraints should only contain rules that hold across all tasks and are very short: language and framework versions, no committing secrets, tests must pass before done, directory boundaries. These should be stable, mutually consistent, and short enough to fit in context every time.
Task-loaded skills describe a repeatable workflow: adding a data migration, reviewing release steps, filling in an API contract, handling permission changes. Skills must have explicit entry and exit conditions. Entry conditions answer “when does this task start”; exit conditions answer “at what point can we stop, without keeping reference material in context.”
Reference documents are sources of truth, not rituals to perform every round. Architecture notes, data dictionaries, and release checklists should be read when the task type matches — then extract the conclusions relevant to the current change, rather than repeatedly stuffing the full text into later turns.
Skill triggers: from domain nouns to task verbs
Overly broad triggers share one trait: they use domain nouns instead of tasks. For example, “use this skill when handling data storage, queries, models, or persistence.” Those words cover most everyday changes: fixing a field mapping, adjusting a query condition, tweaking validation logic — all can be judged “persistence-related.” Once a skill fires, migration steps, checklists, and long references all enter context, and everything downstream reasons on top of them.
A safer trigger is written as an observable task, not a union of technical nouns. A migration skill could be limited to: adding or modifying migration scripts, or reviewing a migration’s rollout order and rollback. Ordinary query fixes, adding unit tests, or copy changes should not match. A permissions skill could be limited to: adding auth rules, adjusting role matrices, or reviewing privilege escalation paths. Simply renaming a function should not match.
Use a four-question self-check when writing triggers.
First, would a small change that is topically adjacent but has a different goal be falsely triggered? If yes, the condition is still too broad.
Second, can humans and models verify the condition with the same standard — e.g., “the changeset contains a migration file” or “the user explicitly asked to review rollout steps” — rather than vague-feeling words like “involves data”?
Third, does everything loaded after a match serve this task? Unrelated historical incidents and generic best practices should be moved out of the skill body into optional link-style references, read only when needed.
Fourth, could multiple skills match simultaneously? If so, you must write priority rules or mutual-exclusion notes, otherwise a strongly-following model will stop and ask, or even refuse to continue.
Project rules: turn “read every time” into a routing table
“Before every edit, read the architecture doc, data doc, and release doc” was common in the weak-following era, because agents wouldn’t proactively look up documents. In the strong-following era, that rule gets executed as a mechanical loop: editing one string means a full re-read; a second edit means another. Tokens and time go into repeated reading, the context window fills with multiple copies of the same document, and the real differences and constraints become harder to notice.
Instead, route by task type rather than forcing by point in time.
When changing service boundaries, module responsibilities, or call relationships, read the corresponding section of the architecture notes.
When changing table structure, field semantics, or migration compatibility strategy, read the corresponding section of the data notes.
When preparing a release, rollback, or change window, read the release notes.
When fixing copy, adding comments, or adjusting pure presentation logic, do not load the above documents — unless the user names them or code comments indicate cross-module constraints.
This table is simple context routing: the current task decides which material to load, which section, and what conclusions to keep. Rules should specify “reading scope” and “retained output.” For example: read only the boundary definitions relevant to this service; keep three to five constraints directly related to the change; do not paste the entire document into subsequent replies. This preserves “read it when you should” while avoiding “read everything every time.”
Conflicts, over-breadth, and pausing
Another effect of strong following: when rules slightly conflict or conditions are ambiguous, the model pauses early to ask the user. This isn’t necessarily a defect. For irreversible operations, pausing is correct. The problem is that the rules themselves manufacture many false conflicts.
Common false conflicts include: one rule says “complete small changes directly by default,” while another says “output a full plan and wait for confirmation before any edit”; one says “prefer reusing existing abstractions,” another says “never modify shared modules.” The model can’t satisfy both, so it blocks.
During cleanup, split rules into hard gates and preferences. Hard gates should be few and checkable: no committing secrets, no deleting migration history, a rollback step must exist before release. Preferences should be phrased as “in the absence of evidence to the contrary,” and may be overridden by the task description. Keep exactly one authoritative source per topic. If releases are governed by the release doc, the skill shouldn’t copy a slightly different version of the steps — just write “release tasks follow the current version of the release doc.”
For genuinely dangerous actions, keep explicit confirmation, but narrow the confirmation points: deleting data, changing production configuration, expanding permissions, skipping tests. Don’t make “every edit” a confirmation point.
An actionable cleanup process
Step one, inventory. List persistent rules, every skill’s trigger sentence, and all named documents. Flag sentences containing “every time,” “any,” “all,” “when relevant,” “etc.” — these words are hotspots for over-broad triggers.
Step two, deduplicate. When the same constraint appears in both persistent rules and skills, keep one copy and turn the other into a reference. Duplication wastes space and creates conflicts once the two copies drift apart.
Step three, rewrite triggers. Replace each skill’s list of domain nouns with a single task description, and add explicit non-goals, e.g., “does not apply to changes that only touch query conditions or display copy.”
Step four, route your documents. For each reference document, specify the applicable tasks, recommended reading granularity, and the type of conclusions to retain after reading. Ban “read everything before editing.”
Step five, regression-test with three sample types. Small changes (string or comment edits) should trigger almost no skills and no re-reading of long documents. Boundary tasks (changing a query without touching the schema) should match only a query or code skill, not a migration skill. Real migration or release tasks should match the corresponding skill and load only relevant sections. If small changes still trigger long workflows, tighten conditions further.
Step six, control volume. Skill bodies should keep steps, checklists, and failure/stop behavior; backstory, outdated comparisons, and large sample blocks move to reference documents. Persistent rules should be short enough for a human to read in one pass. When context grows, suspect the rules first, rather than appending meta-instructions like “be sure to follow everything above.”
Practical phrasings for writing rules
Trigger sentences should use “enable if and only if.” For example: Enable the migration skill if and only if the changeset adds or modifies migrations, or the user asks to review the migration’s rollout and rollback.
State non-goals as their own sentence: Do not enable this skill when only query, validation, or mapping implementations change and neither table structure nor migration files are touched.
Reading sentences use “in order to…, read the … of …”: For example, to confirm service boundaries, read the service’s responsibilities and dependencies section in the architecture notes, and keep only entries that conflict with this interface change.
Stop sentences should be explicit: After the steps complete and checks pass, do not reload this skill’s reference material, unless a later change again satisfies the trigger condition.
The common thread in these phrasings is decidability. The model doesn’t need to guess the author’s mood; it only needs to compare the changeset and the user’s request.
Notes on team collaboration
Rule cleanup is governance of engineering assets, not personal prompt preferences. Put persistent rules, skills, and reference documents through the same review process: trigger condition changes must state the false-trigger scenarios; new “must do every time” sentences are rejected by default, unless the reviewer can show that skipping them causes irreversible loss.
Avoid the opposite extreme too: deleting so much that the agent loses project facts and starts coding from generic habits. The routing table’s purpose is to supply facts on demand, not to eliminate facts. Small tasks load less; high-risk tasks load fully — both behaviors should show up in your samples.
If your team uses cloud-based development assistants or knowledge bases, the same principles apply: knowledge base entries need task-type tags, retrieval scope narrows with the task, and you shouldn’t attach the full policy corpus to every conversation by default. Specific product capabilities depend on your actual environment — don’t enable full-context injection just because it “feels safer.”
Conclusion
The more faithfully a model executes instructions, the more expensive vague and over-broad instructions become. Skills should be triggered by tasks, not domain nouns; project rules should use routing tables instead of “read everything every time”; conflicts should be reduced until only genuine hard gates remain. After this cleanup, simple changes move faster, migrations and releases still follow clear procedures, and context is no longer filled with duplicated documents. This isn’t writing less documentation — it’s putting each document back into the one task where it belongs.
