Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add xdg/xdg-claude --skill ask-codexgit clone --depth 1 https://github.com/xdg/xdg-claudeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/xdg/xdg-claude/ask-codex)<a href="https://agentmods.dev/skills/xdg/xdg-claude/ask-codex"><img src="https://agentmods.dev/badge/skills/xdg/xdg-claude/ask-codex/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/xdg/xdg-claude/ask-codex"><img src="https://agentmods.dev/badge/skills/xdg/xdg-claude/ask-codex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00084 | $0.01612 |
| Opus 5.5 | $0.00034 | $0.00645 |
| Sonnet 5.5 | $0.00017 | $0.00322 |
| Haiku 4.5 | $0.00008 | $0.00161 |
Grade B, and why
ask-codex scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
`high`) override the user's codex config (`~/.codex/config.toml`). Omit How it starts
The opening of the file, as written. The whole thing — 143 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Ask Codex
Ask a different model to critique an artifact, then report where it and you agree, disagree, and what changed your mind. The value is independence: codex has none of this conversation's context, so it catches assumptions you and the user share without noticing.
This skill handles the codex invocation details (closed stdin, read-only sandbox, timeout) that otherwise hang or misbehave.
Do NOT use for generic requests for a second opinion, outside review, sanity check, or another model; handle those yourself or ask which reviewer they want.
Invocation
Always go through the bundled script; never call codex exec directly.
scripts/ask-codex.sh [-m MODEL] [-e EFFORT] [-t SECONDS] [-C DIR] PROMPT_FILE
(scripts/ is relative to this skill's directory.)
The script exists because headless codex has sharp edges:
codex execreads stdin until EOF whenever stdin is not a TTY. From an agent's Bash tool that means it blocks forever. The script redirects</dev/null; codex prints "Reading additional input from stdin...", sees EOF, and proceeds.- stdout mixes the answer with a banner (version, workdir, model). The
script uses
-o FILEto capture only the final message and discards the rest; stderr is shown only on failure. - Codex can run shell commands. The script pins
-s read-onlyso a reviewer can read the repo but cannot modify it, and--ephemeralso no session file is left behind. - No
timeouton macOS. The script bounds the run withperl alarm(default 600s). Set the Bash tool's own timeout at least as high.
Write the prompt to a file in the scratchpad directory and pass the path. A long prompt on the command line is fragile (quoting, ARG_MAX).
-C DIR sets codex's working root; default is the current directory. Codex
resolves relative paths in the prompt against it and can read any file
under it, so point it at the repo root when the artifact references
other files.
-m MODEL and -e EFFORT (reasoning effort, e.g. low, medium,
high) override the user's codex config (~/.codex/config.toml). Omit
both unless the user asks for a specific model or effort; their configured
defaults are deliberate.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 6d ago First seen · 143 lines · 84 tokens per session scan B 6416690a82d6
ask-codex is a skill published in the GitHub repository xdg/xdg-claude (20 stars, last pushed 6d ago), licensed Apache-2.0. It adds 84 tokens to every session and 1,612 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-01.
ask-codex compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ask-codexxdg/xdg-claude | Skill | 20 | 6d ago | Apache-2.0 | B | 84 | Claude Code |
| autoreviewopenclaw/clawhub | Skill | 9.5k | yesterday | MIT | A | 17 | Claude Code, Codex |
| agent-teams-simplify-and-hardenLeoYeAI/openclaw-master-skills | Skill | 2.2k | 6d ago | MIT | A | 115 | Claude Code, Codex |
| omh-code-reviewrlaope/oh-my-hermes | Skill | 5.2k | yesterday | MIT | A | 48 | Claude Code, Codex |
| revdiff-planumputun/revdiff | Skill | 945 | yesterday | MIT | A | 84 | Claude Code |
| explore-unknownsdzhng/skills | Skill | 1.4k | 2d ago | MIT | A | 162 | Claude Code, Codex |
| re0-mergeLilMGenius/paperthin | Skill | 1.4k | 4d ago | MIT | A | 70 | Claude Code |