One Trigger, One Job? What Codex's Own Skill Creator and Skill Catalogue Code Actually Say
One Trigger, One Job? What Codex’s Own Skill Creator and Skill Catalogue Code Actually Say
“One job, one trigger per skill” is good advice, and it is repeated everywhere. It is also not quite what Codex’s own bundled skills do, and it is not what the skill-writing guide shipped inside Codex says. This article reads the Codex source at commit 9ba0cea (24 November 2026)1 to separate the part of the rule that the client enforces, the part it recommends, and the part that is folklore.
A note on sourcing. The backlog idea came from a YouTube talk on writing skills as reusable procedures.2 No transcript was available, so nothing below relies on it. Every claim is from the Codex source, or from the sample skills bundled in it. Where the original framing does not survive contact with the code, the article says so.
What the Client Does With a Skill’s Description
A skill is a folder with a SKILL.md. Before any task starts, Codex does not read the body. It renders a catalogue: one line per skill, with the name, the description and a path.3 The prompt wrapped around that list tells the model how to behave. Four sentences from it carry most of the design:
- “If the user names a skill (with
$SkillNameor plain text) OR the task clearly matches a skill’s description shown above, you must use that skill for that turn.” - “Do not carry skills across turns unless re-mentioned.”
- “If multiple skills apply, choose the minimal set that covers the request and state the order you’ll use them.”
- “If you skip an obvious skill, say why.”3
Two consequences follow, and neither is about the number of jobs in a skill.
The description is the trigger. Routing is a judgement by the model, comparing the request to a short piece of text. There is no keyword table. A description that overlaps another skill’s description is a routing bug, because “clearly matches” will be true of both.
A skill’s lifetime is one turn. Because skills are not carried over, a long procedure cannot lean on “the skill is still loaded from earlier”. Each turn re-selects.
flowchart TD
A[Session starts] --> B[Catalogue rendered:<br/>name + description + path per skill]
B --> C{User request}
C -->|names a skill, or<br/>clearly matches a description| D[Model reads SKILL.md in full]
C -->|no match| E[Work without a skill]
D --> F[Read only the references<br/>SKILL.md points to]
F --> G[Do the task]
G --> H[Next turn: select again]
The Catalogue Has a Budget, and Descriptions Pay for It
If every description were free, a single precise trigger would be easy to afford. They are not free. In the skills extension, the catalogue is held to a budget:4
| Limit | Value |
|---|---|
| Share of the model’s context window | 2% (SKILL_METADATA_CONTEXT_WINDOW_PERCENT) |
| Cap when a token budget is configured | 10,000 tokens |
| Fallback when the window size is unknown | 8,000 characters |
| Longest single description shown | 1,024 characters, cut to end in “…” |
| Longest skill name | 64 characters (MAX_NAME_LEN) |
When the full list fits, everything is shown. When it does not, the code first checks whether the names alone fit. If they do, the remaining space is shared out one character at a time, round-robin, “so no skill monopolizes the remaining budget”.4 Every description is shortened, and nobody’s is dropped first. If even the bare names do not fit, later skills are left off, with a line saying “N additional skills omitted from this bounded skills list” and a warning to the user.4
In the core-compatible rendering, skills are ordered system, admin, repo, then user, and by name within each scope.4 So when the budget runs out, the entries cut first are the ones at the end of that order. In practice that means your own user-level skills are the first to lose their descriptions or their place. An earlier article in this knowledge base covers the budget in more depth.5
The practical reading is that a description is shared real estate. A skill that lists everything it can do spends the same budget as ten skills with tight descriptions, and under pressure it is the shortened tail that the model sees. A long description is not wrong, but the long tail of it may not arrive.
What the Bundled skill-creator Says
Codex ships a skill whose job is to write skills. Its SKILL.md is the closest thing to a house style, and it is more nuanced than “one job”.6 These are its core principles, quoted:
- “Assume Codex is already capable. Include only information that changes its decisions or improves its work.”
- “Match specificity to the risk. Give the model room to choose an appropriate approach when multiple approaches are reasonable. Use detailed steps, deterministic scripts, or absolute language only when correctness, safety, permissions, or a genuinely fragile workflow requires them.”
- “Keep discovery cheap and precise. Skill names and descriptions are available before a skill is loaded. Describe the actual capability and when it applies, adding exclusions only when they prevent likely misrouting. Avoid exhaustive capability lists and catchalls that attract unrelated requests.”
- “Disclose detail progressively.” with three stages: name and description, then the
SKILL.mdbody, then supporting resources “only when the current task actually needs them”.6
Read against the one-job rule, this agrees about the cost of breadth and disagrees about the cure. The guide does not say “split until each skill does one thing”. It says that discovery text must be discriminating, that detail belongs in references loaded on demand, and that skills should not expand the task. One of its lines is blunt on the point: “A simple self-contained skill does not need a router or extra files.”6
Two other lines cut against over-splitting. The guide says to keep skills “self-contained; refer to another skill or tool only when the requested workflow genuinely requires it”. And it says specialised review or audit workflows “should apply when requested or genuinely needed, not merely because ordinary work touches the same subject”.6 A swarm of tiny skills that must each be invoked in sequence leans the other way, because each depends on the others being present.
What the Bundled Skills Do
The sample skills in the same directory are the best test of the rule, because they were written by the same team.7
| Skill | Description length | What it covers |
|---|---|---|
create-statusline |
144 chars | One task: build a footer provider |
review-agent |
230 chars | One task: a read-only, defect-first review |
imagegen |
573 chars | Generate or edit images; a bitmap-versus-code decision tree; two top-level modes |
openai-docs |
625 chars | Answer questions about Codex and ChatGPT Work behaviour; send API first-timers elsewhere |
The first two fit “one job” without argument. The other two do not, and they are the ones with the most careful descriptions.
imagegen states in its body that it “has exactly two top-level modes”, a built-in tool path and a fallback CLI path. Its description packs three verbs (create, transform, derive variants) into one capability, and then ends with a clause about when not to fire: the task is better handled by SVG, vector or code-native assets, or “building the visual directly in HTML/CSS/canvas”.7 Its SKILL.md has “When to use” and “When not to use” sections and a decision tree.
openai-docs is the clearest case. Half of its description is exclusions: skip it if the user already has an API integration, and skip “action requests, such as scheduling an automation”.7
So the pattern in Codex’s own skills is not a single job. It is a single discriminable territory with a stated border: broad enough to be worth a catalogue line, narrow enough that a request either clearly belongs to it or clearly does not, and with the border written into the description where the routing decision is made.
This is also what the skill-creator guide means by “adding exclusions only when they prevent likely misrouting”.6 Both bundled skills with exclusions sit next to something that could capture their requests: an SVG or HTML task, or a general API question.
A Caution About Skill Size
One more limit appears in the source, and it applies to the body rather than the description. When the extension injects a selected skill, it passes the body through truncate_main_prompt_contents, which cuts at 8,000 bytes (MAX_SKILL_PROMPT_BYTES) and emits the warning “Skill <name> exceeded the main prompt context limit and was truncated.”8
I have not run this, so treat the next observation as a question rather than a finding. At this commit the bundled imagegen SKILL.md is 19,201 bytes and skill-creator is 15,311 bytes, both well above 8,000.7 If this extension path is the one serving your session, those bodies would be cut. Whether it is, and which client settings select it, the source reading above does not settle. The safe habit does not depend on the answer: put the essential constraints first, and move mode-specific detail into references/ files, exactly as the guide recommends.
What to Take From This
The folk rule says one trigger and one job. A fairer version, built from what the client does and what its authors wrote:
- One territory per description. A request should clearly be inside it or clearly outside it. Test this by writing two requests that are close to the border and checking that exactly one skill claims each.
- Write the border into the description. Exclusions belong there, not only in the body, because the description is all the model reads at routing time.36
- Keep descriptions short. They share a budget of roughly 2 per cent of the window, and the longest shown is 1,024 characters.4
- Split by mode inside a skill, not by skill. If the work has distinct modes, a short
SKILL.mdthat routes toreferences/files keeps the catalogue small and loads only what a request needs.6 - Split into separate skills when the triggers differ, not when the steps differ. A request that would never mention both procedures together is two skills. A procedure with three steps is one.
- Keep the body short, with the constraints first. Whatever the truncation story turns out to be for your setup, the guide is plain that a large upper bound “is not a target”.6
- An orchestrator is fine if it is explicit. The guide’s concern is a skill that attracts unrelated requests, not a skill that sequences several. If one skill genuinely needs another, say so by name.6
- Re-mentioning matters. Skills do not persist across turns, so a workflow that spans turns should name its skill again, or be written so that each turn is self-sufficient.3
What This Article Does Not Establish
- It does not measure how often routing goes wrong. The source shows how the choice is framed, not how a given model resolves close calls. Testing two overlapping descriptions is the only way to know.
- It reads one commit of the client. The skills extension is under active development, and the budget constants, the ordering and the truncation path could change.
- It does not cover how skills are discovered on disk, which roots are scanned, or how plugins contribute skills.
- The source of the “one job” framing, the video, was not available to read, so this article does not say what it argued. It tests the rule as commonly stated.
-
openai/codexat commit 9ba0cea, committed 24 November 2026. All source references are to this commit. ↩ -
Nate Herk, “How to Build Codex Skills Better than 99% of People”, YouTube, 2026-09-19, youtube.com/watch?v=9KOtMsZ9I28. Not used as a source: no transcript was available in this knowledge base. ↩
-
codex-rs/ext/skills/src/catalog_prompt.rs, the constantsSKILLS_HOW_TO_USE_WITH_HOST_ALIASESandSKILLS_HOW_TO_USE_WITH_SOURCE_LOCATORS(the “Trigger rules” and “Coordination and sequencing” bullets are identical in both) andrender_available_skills_body. ↩ ↩2 ↩3 ↩4 -
codex-rs/ext/skills/src/render.rs: constantsDEFAULT_SKILL_METADATA_CHAR_BUDGET(8,000),MAX_CONFIGURED_SKILL_METADATA_TOKEN_BUDGET(10,000),SKILL_METADATA_CONTEXT_WINDOW_PERCENT(2),MAX_CATALOG_SKILL_DESCRIPTION_CHARS(1,024); functionsskill_metadata_budget,allocate_skill_lines,allocate_description_chars(comment: “Distribute description space round-robin so no skill monopolizes the remaining budget”),omission_marker,truncate_catalog_skill_description, andorder_entriesfor theCoreCompatiblestyle. Name limit:MAX_NAME_LEN = 64incodex-rs/ext/skills/src/loader/mod.rs. ↩ ↩2 ↩3 ↩4 ↩5 -
The 2% Ceiling: How Codex CLI’s Skill Context Budget Works, Why Your Skills Get Truncated, and What v0.146 Changes. ↩
-
codex-rs/skills/src/assets/samples/skill-creator/SKILL.md, “Core Principles”, “SKILL.md”, “Progressive Disclosure in Practice” and “Write the Instructions”. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 -
Sample skills under
codex-rs/skills/src/assets/samples/: thedescriptionfrontmatter ofcreate-statusline,review-agent,imagegenandopenai-docs(lengths counted from the frontmatter text), and the “Top-level modes and rules”, “When to use” and “When not to use” sections ofimagegen/SKILL.md. File sizes fromgit show <commit>:<path> | wc -c:imagegen/SKILL.md19,201 bytes,skill-creator/SKILL.md15,311 bytes. ↩ ↩2 ↩3 ↩4 -
codex-rs/ext/skills/src/render.rs,MAX_SKILL_PROMPT_BYTESandtruncate_main_prompt_contents; andcodex-rs/ext/skills/src/extension.rs, where the result is used and the warning “exceeded the main prompt context limit and was truncated” is emitted. ↩