Repo-local .agents/skills skill is not injected into session Available skills on a fresh Codex CLI session
What version of Codex CLI is running?
0.116.0
What subscription do you have?
Pro
Which model were you using?
gpt-5.4 xhigh summaries auto fast
What platform is your computer?
Linux 6.17.0-19-generic x86_64 unknown
What terminal emulator and version are you using (if applicable)?
zsh 5.9 (x86_64-ubuntu-linux-gnu)
What issue are you seeing?
Summary
A repo-local skill at <repo-root>/.agents/skills/back-scrutiny/SKILL.md is not exposed to the model in a fresh session started from the repo
root, even though the Codex skills docs say .agents/skills should be discovered and symlinked skill folders are supported.
Docs: https://developers.openai.com/codex/skills
Environment
- Codex CLI version is 0.116.0
- Session was started from the repo root
- Session source is cli
- The skill file is present and has the expected frontmatter:
- name: back-scrutiny
- description: ...
- The repo is trusted in ~/.codex/config.toml
- There is no [[skills.config]] disable section affecting this skill
What steps can reproduce the bug?
- Start a fresh Codex CLI session from <repo-root>.
- Ensure <repo-root>/.agents/skills/back-scrutiny exists and resolves to a valid SKILL.md.
- Ask Codex to use back-scrutiny.
- Inspect the session bootstrap metadata.
~/.codex/config.toml
model = "gpt-5.4"
model_reasoning_effort = "high"
personality = "pragmatic"
web_search = "live"
service_tier = "fast"
[projects."<repo-root>"]
trust_level = "trusted"
[features]
unified_exec = true
steer = true
multi_agent = true
Notes:
- No [[skills.config]] section is present.
- No skill-specific disable rule is present.
- The repo is marked trusted.
<repo-root>/.agents/skills/back-scrutiny/SKILL.md
---
name: back-scrutiny
description: Backend code scrutiny and review. Use this skill for reviewing backend code quality, identifying issues, and suggesting
improvements. Python emphasis.
---
Skill Path Metadata
<repo-root>/.agents/skills/back-scrutiny
-> <sibling-repo-root>/.agents/skills/back-scrutiny
Notes:
- The repo-local skill is exposed via symlink.
- The target directory contains SKILL.md.
- No BOM was present at the start of SKILL.md; the file begins with ---.
Minimal File Inventory
<repo-root>/
.agents/
skills/
back-scrutiny -> <sibling-repo-root>/.agents/skills/back-scrutiny
What is the expected behavior?
The skill should be included in the session’s discovered Available skills set and be invokable by name.
Additional information
- The skill appears structurally valid; I do not see missing required metadata or companion files.
- Other skills available in the same client are symlinked, so this does not look like a generic symlink failure.
- This looks like a repo-local .agents/skills discovery or prompt-injection bug, or a mismatch between the docs and CLI behavior.
4 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Please use
/feedbackto upload your logs and session details, then post the thread ID here.Alternatively, if you want to debug this yourself, you can clone the codex repo and ask codex to debug the problem itself.
My agent is where this diagnosis came from @etraut-openai - I think I found something after further experimentation - if I copy the skill (not symlink it)
~/.codex/skills/back-scrutiny <--- works
<repo>/.agent/skills/back-scrutiny <---- still does not work
Here is my thread id: 019d2b44-44e0-7c70-8c6b-0b6547b1f6f6
(and yes, the symlinks are valid - but do point to directories I don't have anywhere in my openai config, do I need to whitelist them or allow them as projects or something?)
bah. Nevermind. It was a bad nested symlink I failed to check deeper in the folder structure.