ask-codex

A skill for asking OpenAI Codex one focused question about the current code repository and receiving a second opinion. It is intended for one-off questions rather than multi-step work.

In plain words
What is it for?
Use it to ask for a likely bug cause, a design judgment, or a concise review of named files.
Why use it?
It provides an independent review of a design choice, bug, or unfamiliar code area without starting a longer delegated task.

Skill for Claude CodeCodex

Part of the codex-bridge plugin — 6 skills, 5 agents shipped together

Install

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.

agentmods
npx agentmods add skills/sateezg/codex-bridge/ask-codex
Any agent
npx skills add Sateezg/codex-bridge --skill ask-codex
Clone the repo
git clone --depth 1 https://github.com/Sateezg/codex-bridge

Made for: Claude Code, Codex.

Or install codex-bridge, the plugin that ships this one along with the rest of its 6 skills, 5 agents.

Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 655 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00080 $0.00655
Opus 5 $0.00040 $0.00328
Sonnet 5 $0.00016 $0.00131
Haiku 4.5 $0.00008 $0.00065

Measured 3d ago against content hash e0388d3de1e8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ask-codex scanned grade A with 0 findings 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 3d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ask-codex/SKILL.md · 60 lines

How it starts

The opening of the file, as written. The whole thing — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Ask Codex a question

For a single question with a single answer. Anything multi-step or long-running belongs to a subagent (codex-second-opinion, codex-reviewer, codex-debugger).

codex-run -C <repo-dir> "<self-contained question>"

codex-run prints only Codex's final answer on stdout (it captures the final message via codex exec -o rather than dumping the whole event log). It defaults to a read-only sandbox, so Codex can read the repo but cannot change anything.

Writing the question

Codex has zero knowledge of this conversation. Every question must stand alone:

  • Name the files or directories it should look at.
  • State what you already know or already tried.
  • Say what shape of answer you want ("name the single most likely cause and the line to look at", "answer yes/no then justify in three sentences").
codex-run -C /path/to/repo \
  "In src/auth/session.ts, refreshToken() occasionally returns a token that fails validation immediately. I suspect a clock-skew issue in the exp comparison. Read that file plus src/auth/jwt.ts and tell me the single most likely root cause and the exact line. Be concise."

Useful options

-s workspace-write   let Codex modify files (only when the user asked for that)
-m gpt-5-codex       model override
-r                   continue the previous codex session (follow-up question)
--timeout 1800       raise the 900s default for a big repo sweep
--raw                also print Codex's full event log to stderr, for debugging

Use -r for a genuine follow-up — it keeps Codex's own context and avoids paying to re-read the repo:

codex-run -C /path/to/repo -r "Now show me the minimal patch for that."

Rules

  1. Bash timeout ≥ 600000 ms (10 min) — Codex explores the repo before answering.
  2. Report its answer as Codex's, not as your own conclusion. Quote it, then add your own take separately if you disagree — the value here is having two independent opinions, and blending them destroys that.
  3. Sanity-check it. Codex can confidently cite files or lines that don't exist. Verify any specific claim against the repo before acting on it.
  4. Read-only unless told otherwise. Don't pass -s workspace-write on your own initiative.
  5. Each call spends the user's ChatGPT plan quota. One question, one call.

Read the full file on GitHub · 60 lines

Changes

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.

  1. 3d ago First seen · 60 lines · 80 tokens per session scan A e0388d3de1e8

Subscribe to this mod's changes

ask-codex is a skill published in the GitHub repository Sateezg/codex-bridge (252 stars, last pushed 23d ago), licensed MIT. It adds 80 tokens to every session and 655 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

gpt-image-2-style-library

Choose GPT-Image2 / gpt-image-2 visual styles and industrial prompt templates from the awesome-gpt-image-2 style library. Use when an agent needs to create, rewrite, classify, or improve image-generation prompts with repository-backed templates, categories, style tags, scene tags, pitfalls, and example cases.

freestylefly/awesome-gpt-image-2 · 72 tokens

beautiful-article

把用户提供的素材(网页 URL / PDF / DOCX / Markdown / 纯文本 / 截图 / 粘贴材料)编辑、设计成一篇美丽的、可离线打开和分享的单文件 HTML 网页文章。基于 reacticle 组件协议:不手写裸 HTML/CSS,而用语义组件 + 受主题约束的 Raw 自由层;按 source→规划→双确认→生成→终审→修复的小型 harness 流程推进,默认 100% 信息保留的长文。触发场景:把 URL/PDF/DOCX/文章做成网页文章 / 长文 / briefing / 解释文 / 视觉文章 / 教程 / 审阅复盘 / 方案分析,'render this as a beautiful web…

ConardLi/garden-skills · 226 tokens

web-design-engineer

Build or redesign polished browser-rendered visual artifacts with HTML/CSS/JavaScript/React: pages, dashboards, prototypes, slide decks, animations, UI mockups, and data visualizations. Use for visual front-end creation, design-system exploration, design critique, or explicit browser acceptance / QA of a web artifact.…

ConardLi/garden-skills · 96 tokens

gpt-image-2

面向 GPT Image 2 的图像生成 / 编辑技能。可在 3 种环境下使用:(A) Garden 本地模式,通过 OpenAI 兼容接口直接出图并落盘;(B) Host-Native 模式,把本 Skill 当作提示词工程指引,把渲染好的 prompt 交给宿主 Agent 自带的图像工具出图;(C) Advisor 模式,宿主无任何图像工具时退化为高质量 prompt 顾问。涵盖 18 大类、80+ 个结构化模板,覆盖海报 / UI / 产品 / 信息图 / 学术图 / 技术架构图 / 漫画 / 头像 / 流程板 / 电影分镜 / IP 周边 / 编辑工作流等场景。.

ConardLi/garden-skills · 177 tokens

kb-retriever

面向本地知识库目录的检索和问答助手。核心流程:(1)分层索引导航 (2)遇到PDF/Excel时必须先读取references学习处理方法 (3)处理文件后再检索。按文件类型组合使用 grep、Read、pdfplumber、pandas 进行渐进式检索,避免整文件加载。用户问题涉及"从知识库目录回答问题/检索信息/查资料"时使用。.

ConardLi/garden-skills · 105 tokens

codex-ppt

Generate visually unified image-based PPT/PPTX decks from articles, reports, papers, notes, or outlines.

ningzimu/codex-ppt-skill · 27 tokens