Refactoring an agent skill can reduce unnecessary context use and may lower API costs, but the available official guidance does not establish a general 10x saving. Treat that figure as a target to test, not a promise. The practical approach is to make each skill easier to select, load only the instructions relevant to a task, and compare the refactored version with the original on representative work.
How do agent skills use context?
A skill is a reusable workflow package: its SKILL.md file contains the main instructions, while supporting documents, scripts, and assets can provide details when a task needs them. OpenAI’s Agent Skills documentation recommends keeping the main instructions in SKILL.md and linking to supporting files as needed.
As an Amazon Associate I earn from qualifying purchases.
That structure matters because reading skill guidance uses context. Eric Provencher’s September 11, 2026 OpenAI Developers article, “Rethinking skills and prompts for GPT-6 Astra”, warns that irrelevant guidance can be loaded along with useful instructions and that elaborate itineraries can impede capable models. A skill that is too broad or requires reading material for every task can therefore add overhead without improving the result.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
How do I make agent skills use less context?
- Inventory what each skill is for. Note its purpose, activation description, core instructions, and supporting resources. Remove duplicated advice and material unrelated to the intended workflow.
- Narrow the activation description. State what the skill does and when it applies. OpenAI’s skill guidance emphasizes both parts; avoid vague triggers such as “use whenever working with” a broad area. A precise trigger helps prevent selection for tasks where the skill is not useful.
- Make the main file a router when the skill covers multiple workflows. Keep
SKILL.mdcompact: identify the relevant workflow and link to its supporting instructions, examples, templates, or scripts. Do not load every branch of a skill when a task needs only one. - Check each instruction for scope and value. Replace blanket directions to read broad documentation or run routine checks with task-specific pointers. Reconsider model-specific recipes that impose unnecessary steps on other capable models.
- Keep repository guidance local to the task. Point agents to the particular repository document or area relevant to the change instead of requiring a complete repository map for every edit.
How should I split up a large SKILL.md?
Split the file when it contains distinct workflows or large reference material that is not needed together. Keep the always-relevant routing information in SKILL.md; move details into clearly named supporting files and link to them at the point where each becomes relevant.
#1 Best Overall
- Keep in the root: the skill’s purpose, its trigger, a short routing decision, and essential shared constraints.
- Move to supporting files: workflow-specific steps, background, extensive examples, templates, or reference material.
- Keep repeatable operations in scripts where appropriate: link to a script rather than embedding long procedural instructions when the operation can be performed reliably that way.
Do not split simply to make the root file shorter. If an instruction is needed on every task, moving it elsewhere may add navigation overhead without saving meaningful context. The aim is to avoid loading unrelated guidance, not to hide essential guidance behind extra steps.
Can refactoring agent skills cut API costs?
It can, if the change reduces billed input or other usage in the environment being measured and does not require extra work that offsets the savings. OpenAI’s article and documentation explain ways to reduce unnecessary instruction reading, but neither establishes a standard cost reduction or a measured 10x result. OpenAI’s “How OpenAI uses Codex” describes performance-optimization use cases without reporting a skill-refactoring savings figure.
Context use and API cost are related but not interchangeable measures: pricing and usage accounting depend on the chosen service and configuration. Track the usage metric available in your environment, and report the model, task mix, and measurement conditions alongside any claimed savings. A smaller instruction file alone does not prove lower total cost if the agent makes more mistakes, rereads material, or needs additional turns.
How do I know whether a skill refactor worked?
Compare the old and new versions on the same representative tasks, keeping the task mix and model conditions consistent. Include ordinary cases as well as tasks near the skill’s activation boundary, where an overbroad description might cause an incorrect selection.
Rank #3
| Measure | What to check |
|---|---|
| Activation precision | Was the skill selected when it was useful, and avoided when it was not? |
| Instructions loaded | How much guidance did an ordinary task need to read, including supporting files? |
| Usage | What input/context or billed usage did the environment report for the task? |
| Task outcome | Did the agent complete the task correctly? Track errors and rework as well as success. |
| Maintenance | Is the skill still understandable and straightforward to update? |
Record the sample size and conditions when reporting results. A large reduction on one workflow is evidence about that workflow, not a universal result. The reviewed official sources offer recommendations, not a standardized evaluation protocol or a benchmark for this refactor.
Quick Recap
Best Value
Rank #4
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




