unhobble-agent-context
Skill7 starsChanged 10 months agoMITView on GitHub
Audits and designs lean, coherent context across system prompts, persistent instructions, repository guidance, skills, tool descriptions, memory, and references. Use for context engineering; creating, reviewing, simplifying, or reorganizing agent context; resolving conflicting, duplicated, bloated, stale, or misplaced guidance; designing progressive disclosure; or deciding where shared information should live.
In this repository30 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- apple-cktool-jsSkill
- apple-cktoolSkill
- audit-training-experimentSkill
- awkSkill
- close-out-ml-experimentSkill
- compare-models-blindlySkill
- conventional-commitsSkill
- design-resumable-model-evaluationSkill
- gogopowermanagerSkill
- ios-design-reviewSkill
- mikrotik-routerosSkill
- obsidian-dailySkill
- orbstack-cliSkill
- package-private-ml-artifactsSkill
- prepare-training-corpusSkill
- proxmox-adminSkill
- review-ios-ui-apple-higSkill
- review-training-data-qualitySkill
- run-hugging-face-training-smokeSkill
- sedSkill
- select-and-verify-best-checkpointSkill
- send-to-minionSkill
- swift-reviewSkill
- technical-writerSkill
- tmuxinatorSkill
- topydoSkill
- validate-structured-model-outputSkill
- write-a-promptSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 12 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Put information in the narrowest durable home that reliably supplies it.
- Distinctive: line 37
Remove facts discoverable cheaply from the workspace, generic advice, stale history, repeated instructions, and rules without a concrete …
- Distinctive: line 39
Prefer one canonical home for each instruction.
- Distinctive: line 46
Use soft defaults such as “prefer” or “usually” for contextual choices.
- Distinctive: line 48
Use one term per concept and match the surrounding project's language.
- Distinctive: line 49
Add examples only when an interface or decision rule cannot remove the ambiguity.
- Distinctive: line 54
Keep operation-specific behavior beside the operation rather than repeating it in global guidance.
- Distinctive: line 55
Prefer interfaces that make invalid states difficult to express and results easy to verify.
- Distinctive: line 59
Keep the entry file as a short router plus the essential workflow.
- Distinctive: line 62
Prefer high-fidelity references such as executable tests, source code, structured specifications, mockups, and rubrics over prose that …
- Distinctive: line 66
Read all applicable layers together and check precedence, conflicts, gaps, and repetition.
- Distinctive: line 88
Before finishing, confirm that every retained line changes behavior, prevents a known failure, preserves a boundary, or helps locate …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Unhobble Agent Context
Shape persistent context so each task begins with the smallest coherent guidance it needs and can discover deeper material when relevant. Preserve local knowledge and hard boundaries; remove friction that does not change outcomes.
Workflow
Define the outcome the context must improve.
- Identify the tasks, decisions, or recurring failures in scope.
- For an audit, inspect the sources that are actually assembled together and their precedence.
- For new context, start from representative requests and the information they truly require.
Inventory each instruction by purpose and owner.
Record what it changes, when it applies, where it currently lives, whether another source already owns it, and whether the current task authorizes changing it. Do not broaden the audit to unrelated documentation.
Put information in the narrowest durable home that reliably supplies it.
Information Preferred home Immediate outcome, inputs, and task constraints Current request Product role and universal invariants Highest-scope instructions Repository-wide conventions and non-obvious gotchas Root project guidance Directory- or component-specific rules Nearest scoped guidance Reusable workflow needed only for certain tasks Skill Operation semantics, parameters, states, and errors Tool interface or description Stable preferences or facts reused across sessions Memory, subject to retention policy Detailed specifications, tests, code, mockups, or rubrics Reference loaded when relevant Simplify before adding.
- Remove facts discoverable cheaply from the workspace, generic advice, stale history, repeated instructions, and rules without a concrete failure or invariant behind them.
- Preserve local gotchas, team taste, safety boundaries, irreversible-action gates, and resource-discovery hints.
- Prefer one canonical home for each instruction. Repeat it only when independent enforcement or unavoidable loading boundaries justify the duplication, and keep copies synchronized.
- Resolve contradictions according to precedence, ownership, and edit authority. Report conflicts that cannot be resolved in scope; do not let a lower-scope preference override a higher-scope rule.
- Separate semantics-preserving cleanup from policy changes. When a proposal weakens, strengthens, or removes an explicit requirement, label it as an owner decision and preserve current behavior until it is approved.
Rewrite for judgment.
- State the desired outcome and decision criterion, then allow the approach to adapt to the task.
- Use soft defaults such as “prefer” or “usually” for contextual choices. Reserve absolute language for invariants, safety, legality, or explicit user requirements.
- Replace exhaustive branches with the distinction that should govern the choice.
- Use one term per concept and match the surrounding project's language.
- Add examples only when an interface or decision rule cannot remove the ambiguity. Keep them varied and explicitly illustrative.
Improve interfaces before writing tutorials.
- Make names, types, parameters, allowed states, defaults, and error results communicate correct use.
- Keep operation-specific behavior beside the operation rather than repeating it in global guidance.
- Prefer interfaces that make invalid states difficult to express and results easy to verify.
Design progressive disclosure.
- Keep the entry file as a short router plus the essential workflow.
- Move specialized detail out only when it is substantial and often irrelevant; do not fragment short, tightly related guidance.
- Link every optional resource directly from the entry file and state when to load it.
- Prefer high-fidelity references such as executable tests, source code, structured specifications, mockups, and rubrics over prose that restates them.
Validate the assembled context.
- Read all applicable layers together and check precedence, conflicts, gaps, and repetition.
- Apply the deletion test: if removing a sentence is unlikely to change behavior or prevent a real failure, remove it.
- Apply the retrieval test: confirm that a fresh agent can discover deeper guidance at the moment it becomes relevant.
- Confirm that simplification preserved every necessary boundary and did not widen permissions.
- For consequential or complex changes, run representative tasks using only the context a fresh agent would receive. Do not disclose the intended answer during validation.
Deliverable
Return the smallest artifact that makes the improvement reviewable:
- For an audit, provide prioritized findings with exact locations, a keep/move/delete/replace decision, and unresolved conflicts.
- For an authorized edit, provide the revised context or patch plus the checks performed.
- For new context, deliver the context itself and a brief placement rationale; avoid a separate design essay unless requested.
Typical Requests
- “Audit our repository instructions for conflicts and unnecessary rules.”
- “Decide what belongs in shared instructions, a skill, a tool description, memory, or a reference.”
- “Simplify this skill while keeping its safety guarantees and specialist knowledge discoverable.”
Quality Bar
Before finishing, confirm that every retained line changes behavior, prevents a known failure, preserves a boundary, or helps locate relevant detail; uncommon information stays discoverable without being loaded by default; and the final context is coherent without requiring its author to explain it.
Reference
Consult the source article only when deeper rationale or provenance is needed.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

