Fix Skills Not Loading in Codex and Claude
When skills not loading, the cause is usually structural rather than model behavior. Check the folder path, then the SKILL.md frontmatter, then the description that drives matching. Restarting the client is the last step, not the first, because it hides path mistakes without fixing them.
Skills Not Loading? Check the Folder Path First
Codex scans .agents/skills in the current working directory, its parent, and the repository root, plus $HOME/.agents/skills and /etc/codex/skills. Claude Code scans ~/.claude/skills/<skill-name>/, .claude/skills/<skill-name>/, nested .claude/skills/ directories under the files you are editing, and plugin skill folders.
A skill placed one level too deep is the most common miss. ~/.claude/skills/my-skill.md is not a skill; ~/.claude/skills/my-skill/SKILL.md is. The same applies in Codex: the client expects a directory containing SKILL.md, not a bare Markdown file.
Use an absolute path when you check, because a relative path depends on where you launched the client. Codex scans from the current working directory upward, so launching from a subfolder can change which repository skills are visible.
Check the folder name against the frontmatter. The Agent Skills specification requires name to match the parent directory name, to use lowercase letters, numbers and hyphens, and to avoid leading, trailing or consecutive hyphens. A folder called My_Skill with name: my-skill fails validation even if the instructions are perfect.
Frontmatter Errors That Block Discovery
Codex requires both name and description in SKILL.md; a missing description removes the main signal Codex uses for implicit matching. Claude Code treats description as recommended rather than required, and falls back to the first paragraph of the markdown body when it is absent, which usually produces a worse trigger.
YAML syntax is the second trap. An unquoted colon inside a description, a tab character used for indentation, or a missing closing --- can make the whole block unreadable. Validate before debugging the model:
skills-ref validate ./my-skill
That command checks frontmatter validity and naming rules, so it catches most of the errors that otherwise look like the client ignoring the skill.
A third trap is a duplicate name. Codex does not merge two skills with the same name; both can appear in the selector, which makes it look like the wrong one is loading. Claude Code resolves duplicates by precedence, with enterprise over personal and personal over project, so the copy you edited may be shadowed by a higher-level one.
Restart Rules Differ Between Codex and Claude
Codex detects skill changes automatically in most cases, but its documentation explicitly recommends a restart after installing a skill and after editing ~/.codex/config.toml. If a new skill does not appear, restart before changing files.
Claude Code watches ~/.claude/skills/, the project .claude/skills/, and .claude/skills/ inside any --add-dir directory. Edits, additions and deletions there apply within the current session. The exception is a top-level skills directory that did not exist when the session started; create it, then restart Claude Code so the directory can be watched.
If you changed ~/.codex/config.toml to disable a skill and then re-enabled it, the restart requirement applies to that change too. A config edit without a restart leaves the old state active.
Claude Code's live detection only covers directories it already watches. If you moved a skill into a new parent folder, the watcher has nothing to observe until the session restarts.
When Descriptions Never Match the Task
Codex keeps the skill name, description and path in context and matches implicitly against the description. Its initial list is capped at roughly 2 percent of the context window or 8,000 characters, and descriptions are shortened first when many skills are installed. If your trigger words sit at the end of a long description, they may be cut before matching happens.
Claude Code truncates the combined description and when_to_use text at 1,536 characters in the skill listing. Put the task and the trigger situations in the first sentence, then use when_to_use for extra phrases rather than a second essay.
Test with two prompts: one that should match and one that should not. If both match, the description is too broad. If neither matches, it is too abstract or the skill is not enabled for automatic invocation. In Claude Code, check disable-model-invocation and user-invocable; in Codex, check policy.allow_implicit_invocation in agents/openai.yaml, which can be set to false and still allow explicit $skill-name calls.
A practical test is to read only the first 120 characters of the description. If that fragment does not name the task and the object, the rest is unlikely to save the match.
Isolate the Failure with a Minimal Skill
Strip the skill to two fields and see whether it loads:
---
name: minimal-check
description: Answers questions about the word pomegranate. Use when the user mentions pomegranate.
---
Reply with one sentence about pomegranates.
Place it in the correct skills directory, restart if required, and invoke it directly with /minimal-check in Claude Code or a $ mention in Codex. If the minimal skill loads, the problem is in the original skill's frontmatter, length or description. If it does not, the problem is the path or the client's skill loading.
Add the body back in sections, then the scripts and references. This narrows the failure to a specific change instead of rewriting the whole skill.
Keep the minimal skill around as a smoke test after client upgrades; it separates a broken client from a broken skill in one step. Delete it only after the original skill loads reliably in a fresh session.
For a working folder layout, see build a skill from the official repos; for the enablement flags that can silently suppress a skill, see control which skills load.
FAQ
The folder is usually outside a scanned location or the SKILL.md name does not match the directory. Confirm the path, then restart Codex or create a new Claude Code session when a new top-level directory was added.
Yes. Codex documents that SKILL.md must include name and description, and it uses the description for implicit matching when you do not mention the skill explicitly.
The description may never match the task, the skill may be disabled with user-invocable: false or disable-model-invocation: true, or the combined description text may be cut at the 1,536-character listing limit.
Create a folder with only a SKILL.md containing name and description, then invoke it directly with /skill-name in Claude Code or a $ mention in Codex before adding scripts or references.
Related Terms
- Frontmatter
- The YAML block between --- markers at the top of SKILL.md that declares metadata such as name and description.— Agent Skills specification
- Implicit invocation
- A client choosing a skill because the user's request matches the skill description, without an explicit slash command or mention.— OpenAI Codex documentation
- User-invocable
- A Claude Code frontmatter flag; when false, the skill is hidden from the slash menu but can still be loaded by Claude.— Anthropic Claude Code documentation
Sources
- Agent Skills in Codex· OpenAI
- Extend Claude with skills· Anthropic
- Agent Skills specification· Agent Skills
- openai/skills README· OpenAI