Harness Notes

Skill invocation

Updated 2026-11-22,

On this page

How a skill gets used once it is installed: by the model on its own or by you, and what it brings with it. How skills are found and listed is on the Skill discovery page.

QuestionCodex CLIchecked at 0.162.1
The model choosing a skill

Yes. The model sees the skill list and is told to use a skill whenever the task clearly matches its description, or when you name the skill. The description is all it has to match on, so put the trigger words first. Set policy.allow_implicit_invocation: false in agents/openai.yaml to stop a skill being picked automatically.

Invoke a skill yourself

Type $ in the CLI or IDE composer to pick a skill, or type $skill-name in your prompt (for example $skill-creator). This also works in codex exec prompts. /skills opens a menu that lists skills and lets you enable or disable them. Plugin skills are invoked as $plugin:skill.

Common environment variable names such as $PATH and $HOME are not treated as skill mentions.

There is no CLI flag to preload a skill.

0.167.0 TUI plugin mentions, traced at 0.167.2: with features.plugins enabled, the TUI requests plugin/installed for its cwd and offers installed, enabled plugins not disabled by admin. The App Server handler combines local and remote installed summaries under its configuration/authentication gates. Mention summaries carry plugin identity/display metadata; their empty skill/tool arrays are not an inventory or absence claim about the plugin payload. This does not refresh skill scanning, standalone installer behavior, desktop UI or hosted import contracts.

Pass arguments

Partly

There is no argument syntax and no placeholder such as $ARGUMENTS. Anything else you write in the same message, like $my-skill fix the login test, is simply part of the prompt the model reads alongside the skill. The optional interface.default_prompt in agents/openai.yaml sets the prompt text used when a skill is chosen in the app UI.

What loads when a skill is used

When you invoke a skill with $, Codex injects the full SKILL.md (frontmatter and body) into the conversation inside a <skill> block that includes the skill's name and path. When the model picks a skill itself, it is told to open and read the whole SKILL.md, then open only the references/ files it needs, and to run or patch the scripts in scripts/ instead of retyping them. Scripts run through the normal shell tool and its approvals.

The listing budget doesn't apply to the loaded SKILL.md. Some plugin-provided skills are capped at 8,000 bytes when injected, with a warning if cut.

Tools, permissions and model

Not supported

No. Codex reads only name, description and metadata.short-description from SKILL.md. An allowed-tools field is ignored, and a skill can't change the model or approval settings. agents/openai.yaml can declare MCP servers the skill needs under dependencies.tools, but that doesn't grant or pre-approve tools.

The bundled skill-creator validator accepts allowed-tools in frontmatter, but the runtime doesn't act on it.

Run in its own subagent

Not supported

No. A skill always runs in the current conversation; there is no frontmatter option to fork it into a subagent. The model is told to read skill instructions itself rather than hand them to a subagent, though subagents can still do task work if the skill says to.

Notes and sources

Codex CLI, 15 sources
  • Codex does not implement Claude's disable-model-invocation SKILL.md field; the analogous policy lives in agents/openai.yaml with inverted polarity.
  • No cited first-party contract establishes a separate per-skill switch for explicit user invocation.
  • Source-observed in Codex 0.160.1 (d27764b82f7118f674371e6d6e76271d9d606edb): policy.allow_implicit_invocation: false excludes the entire skill row before initial listing budget allocation. Explicit invocation still consumes conversation context when instructions load.
  • Plugin submission identity is plugin-name:skill-name (combined length <=64; names unique within plugin). This does not establish exact typed plugin invocation syntax.
  • Local equal-name skills are not merged and both can appear in selectors; ambiguous bare-name resolution is unverified. See docs/research/plugin-skill-namespaces.md.
The model choosing a skill, 2
Invoke a skill yourself, 9
Pass arguments, 3
What loads when a skill is used, 4
Tools, permissions and model, 4
Run in its own subagent, 2