Using skills does not find the script it needs in the skills directory

Resolved 💬 2 comments Opened Dec 20, 2025 by bornio Closed Jan 24, 2026
💡 Likely answer: A maintainer (etraut-openai, contributor) responded on this thread — see the highlighted reply below.

What version of Codex is running?

codex-cli 0.76.0

What subscription do you have?

Pro

Which model were you using?

_No response_

What platform is your computer?

_No response_

What issue are you seeing?

Using gh-address-comments will sometimes find the the script it needs in the right folder and sometimes return:

I couldn’t find scripts/fetch_comments.py in this repo, so I pulled PR comments directly with gh api.

What steps can reproduce the bug?

Uploaded thread: 019b3c0d-9898-7380-a91b-34f319f26967

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

2 Comments

dacarey · 7 months ago

I have found the same issue; codex does not seem to honour the File References section of the Agent Skills specification; see:- https://agentskills.io/specification#file-references

For example:-

I have a simple skill to start a new piece of work in a branch based off a JIRA ticket.

This includes this snippet in the SKILL.md file

## Prerequisites

Run automated check:
scripts/check-prerequisites.sh

When triggering the skill via a prompt in a codex session, I see the following misfire; it reports the reference skill file as not found
However, the same skill works perfectly well in both Claude Code and the OpenCode CLI

❯ codex
╭─────────────────────────────────────────────╮
│ >_ OpenAI Codex (v0.77.0)                   │
│                                             │
│ model:     gpt-5.2-codex   /model to change │
│ directory: ~/devtest                        │
╰─────────────────────────────────────────────╯

› start tracked work


• Explored
  └ List ls
    Read SKILL.md
    Search rg --files -g git-basics.md
    Read git-basics.md

• Ran scripts/check-prerequisites.sh
  `└ zsh:1: no such file or directory: scripts/check-prerequisites.sh
``
etraut-openai contributor · 7 months ago

Thanks for the bug report. This is a duplicate of #9226, and we're working on a fix.