Housekeeping for Skills and Agent Documentation in the Strong Instruction-Following Era
As models become better at strictly following instructions, overly broad skill triggers and mandatory "always read everything" documentation rules turn from safeguards into liabilities. This article explains why strong instruction-following amplifies vague, duplicated, and outdated agent rules, and provides a practical framework for cleaning up skill descriptions and project documentation: tightening trigger conditions, replacing forced reads with task-based context routing, and establishing single-source-of-truth governance. It includes BAD-to-GOOD examples, a context routing table, and a five-step audit and remediation workflow.
Context Housekeeping for Skills and Agent Documentation in the Strong Instruction-Following Era
Why Old Rules Become a Burden
In early agent engineering, many teams equipped their agents with extensive skill descriptions, project documentation, mandatory read rules, and checklists. This had historical reasons: early models were poor at proactively exploring project structure and often failed to look up architecture docs, database specs, or deployment guides on their own. Developers compensated with hard rules like “you must read these documents before every edit.” The more and stricter the rules, the safer things seemed in the short term.
But as models entered the strong instruction-following stage, the calculus changed. The more faithfully a model executes instructions, the more it amplifies vague, duplicated, or overly broad rules. Rules that used to be “written but not necessarily enforced” now become “written and strictly enforced.” If those rules are poorly designed, the result is not higher reliability but over-triggered skills, repeatedly loaded documents, rapidly ballooning context, and even agents pausing prematurely, repeatedly asking users questions, or blocking tasks.
So “cleaning up skills and agent documentation” is not a rejection of skill libraries or docs. It’s an upgrade from “piling up rules” to a context governance system that is routable, maintainable, and verifiable.
Three Types of Rules That Most Need Cleaning
1. Skill Descriptions with Overly Broad Triggers
The typical problem is skill descriptions that use domain-level buzzwords instead of concrete task actions. For example, “applies to tasks related to databases, queries, models, and persistence” covers far too much. A developer might just tweak a field mapping in an ordinary data model or fix a single query condition, yet the model judges the migration skill as relevant and loads migration specs, checklists, and reference material into context.
This over-triggering has two consequences: irrelevant context crowds the window and increases token consumption, and irrelevant rules can interfere with the current task, causing the model to run unnecessary checks. A better approach is to tighten trigger conditions to specific tasks, such as “use only when creating or modifying database migration scripts, or reviewing a migration rollout plan.” The skill then describes a task boundary, not a broad domain.
2. Duplicated Mandatory Document-Reading Rules
Another common pattern is “read the architecture doc, database doc, and deployment doc before every edit.” In the early days, forced reading compensated for weak model initiative. With strong instruction-following models, the model really will do it every time. Even changing a single string may trigger full reads of multiple documents, and the second edit reads them again. Beyond wasting tokens and slowing progress, this rapidly inflates context and increases hallucination risk.
The better approach is to replace “read everything, every time” with “read the document matching the task,” using a simple context routing table. For example: read the architecture doc when service boundaries change; read the database doc when table structures change; read the deployment doc when preparing a release or rollback. The emphasis shifts from “forced reading” to “precise routing.”
3. Conflicting, Vague, and Outdated Rules
When multiple documents contain competing “must,” “must not,” and “prefer” instructions, strong models may detect the conflict and pause to ask. Some confirmation is healthy, but large volumes of avoidable conflicts erode automation efficiency. Outdated rules are equally dangerous: the old process has been retired, but the documentation still requires it, and the model dutifully complies. Cleanup is therefore not just deletion—it means establishing a single source of truth and version governance.
Cleanup Principles: From Rule Piling to Context Routing
First, make trigger conditions concrete. A skill description should answer “under which task actions should this be used,” not “for which domains does this apply.” Second, load on demand. Keep only global constraints resident in context; load domain specs and checklists per task. Third, single source of truth. Define each rule in exactly one place and reference it elsewhere instead of copying. Fourth, verifiability. Every rule should be testable against example tasks to confirm its trigger boundary, avoiding rules that “look reasonable but over-trigger in practice.”
A simple routing table:
| Task Action | Trigger Condition | Load | Do Not Load by Default |
|---|---|---|---|
| Service boundary adjustment | Module split, interface boundary change | Architecture doc | Deployment doc |
| Table structure change | Creating or modifying migration scripts | Database doc, rollback checklist | Architecture doc (unless cross-service) |
| Release preparation | Release, rollback, gradual rollout | Deployment doc, monitoring checks | Database doc (unless it includes a migration) |
Example: From BAD to GOOD
Skill description, before and after:
# BAD: too broad, easy to over-triggername: database-migration-assistantdescription: Applies to tasks related to databases, queries, models, and persistence
# GOOD: bound to specific task actionsname: database-migration-assistantdescription: Use only when creating or modifying database migration scripts, or reviewing a migration rollout planactivation:include:- create migration script- modify migration script- review migration rollout planexclude:- modifying ordinary data model field mappings only- fixing a query condition onlyresources:- database change specification- rollback checklist
Documentation rule, before and after:
# BAD: force-read all documents before every editBefore every edit, read the architecture doc, database doc, and deployment doc.
# GOOD: context routingWhen changing service boundaries or splitting modules, consult the architecture doc.When creating or modifying table structure migrations, consult the database doc.When preparing a release or rollback, consult the deployment doc.
The improved rules no longer demand indiscriminate full reads. Instead, they map task actions to context. The model loads only the material relevant to the current task—preserving the constraints while avoiding repeated reads and context bloat.
Rollout Workflow: Audit, Tier, Rewrite, Verify, Govern
Step one: inventory existing skills and documentation. List each skill’s trigger words, loaded resources, and resident rules, plus any forced-read clauses in the docs. Step two: tier by risk. Separate global safety constraints, domain specs, and reference material into layers, deciding what must stay resident, what loads on demand, and what can be deleted. Step three: rewrite trigger conditions. Replace domain words with task-action words, add exclusion conditions, and reduce vague phrasing. Step four: run regression verification against typical tasks. Use scenarios like “change a field mapping only,” “fix a query condition only,” “add a migration,” and “release and rollback” to observe whether skills trigger correctly and whether documents load only when necessary. Step five: continuous governance. Treat skills and documentation as code assets in code review and version control, and regularly prune outdated rules to prevent re-accumulation.
Engineering Practices: Fold Context Governance into the Dev Workflow
Teams can add a “context change check” to code reviews: does a new skill state its trigger boundary? Does it include exclusion scenarios? Does it reference a single source of truth? Do documentation files contain high-risk words like “every time,” “all,” or “always”? Can forced-read rules be replaced by the routing table? For cloud-based development, teams can also combine capabilities such as container platforms, logging services, and monitoring/alerting to track agent task duration, context load volume, and abnormal pause rates, using engineering metrics to validate the cleanup.
Conclusion
Strong instruction-following models reward precision, not volume. Skill descriptions should shift from broad domains to concrete task actions; documentation should shift from forced full reads to context routing; conflicts and stale rules should be pruned promptly. A systematic cleanup is fundamentally about drawing clearer context boundaries: letting the model load the right information at the right moment, reducing wasted tokens, lowering context bloat and hallucination risk, and improving the stability and maintainability of agent tasks.
