codex

codex is a skill for Claude Code, Codex from ondrej-svec/heart-of-gold-toolkit. It costs 38 tokens per session (1,691 once invoked), scanned A, original, MIT.

Instructions for using the Codex command-line tool to have OpenAI Codex analyze, refactor, or edit code automatically.

In plain words
What is it for?
Use them when running Codex from a terminal with commands such as codex exec or codex resume.
Why use it?
They define how to choose a model and reasoning level, select safe sandbox settings, and assemble commands for coding tasks.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also runs codex exec. Also seen: reads .claude/ paths; mentions subagents; names the AskUserQuestion tool.

Part of the guide plugin — 7 skills shipped together

Good fit Use them when running Codex from a terminal with commands such as codex exec or codex resume.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ondrej-svec/heart-of-gold-toolkit/codex
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.

Any agent
npx skills add ondrej-svec/heart-of-gold-toolkit --skill codex
Clone the repo
git clone --depth 1 https://github.com/ondrej-svec/heart-of-gold-toolkit

Made for: Claude Code, Codex.

Or install guide, the plugin that ships this one along with the rest of its 7 skills.

Wrote 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.

agentmods badge for codex

README.md
[![agentmods](https://agentmods.dev/badge/skills/ondrej-svec/heart-of-gold-toolkit/codex/github.svg)](https://agentmods.dev/skills/ondrej-svec/heart-of-gold-toolkit/codex)
Your own site
<a href="https://agentmods.dev/skills/ondrej-svec/heart-of-gold-toolkit/codex"><img src="https://agentmods.dev/badge/skills/ondrej-svec/heart-of-gold-toolkit/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.

agentmods 80×15 button for codex

Your own site · 80×15
<a href="https://agentmods.dev/skills/ondrej-svec/heart-of-gold-toolkit/codex"><img src="https://agentmods.dev/badge/skills/ondrej-svec/heart-of-gold-toolkit/codex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,691 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Excessive Agency · line 85
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
How audits are shown
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.1 $0.00038 $0.01691
Opus 5 $0.00019 $0.00846
Sonnet 5 $0.00008 $0.00338
Haiku 4.5 $0.00004 $0.00169

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

Security

Grade A, and why

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 12d 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.

plugins/guide/skills/codex/SKILL.md · 94 lines

How it starts

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

Codex CLI Skill Guide

Available Models

Model Best for
gpt-5.5 Flagship (released 2026-04-23) — complex coding, computer use, knowledge work, research workflows. ChatGPT sign-in only — not available with API-key auth. Fall back to gpt-5.4 if not in the user's model picker yet.
gpt-5.4 Professional coding with strong reasoning + tool use. Default fallback when gpt-5.5 is unavailable.
gpt-5.4-mini Faster/cheaper for lighter coding tasks and subagents
gpt-5.3-codex Complex software engineering with industry-leading coding capabilities
gpt-5.3-codex-spark Near-instant real-time coding iteration (ChatGPT Pro research preview)

Default recommendation: gpt-5.5 for complex tasks (with gpt-5.4 fallback), gpt-5.4-mini for speed.

Running a Task

  1. Ask the user (via AskUserQuestion) which model to use (default: gpt-5.5, fallback gpt-5.4) AND which reasoning effort (xhigh, high, medium, or low) in a single prompt with two questions.
  2. Select the sandbox mode required for the task; default to --sandbox read-only unless edits or network access are necessary.
  3. Assemble the command with the appropriate options:
    • -m, --model <MODEL>
    • --config model_reasoning_effort="<xhigh|high|medium|low>"
    • --sandbox <read-only|workspace-write|danger-full-access>
    • --full-auto
    • -C, --cd <DIR>
    • --skip-git-repo-check
    • "your prompt here" (as final positional argument)
  4. Always use --skip-git-repo-check.
  5. IMPORTANT: By default, append 2>/dev/null to all codex exec commands to suppress thinking tokens (stderr). Only show stderr if the user explicitly requests to see thinking tokens or if debugging is needed.
  6. Run the command, capture stdout/stderr (filtered as appropriate), and summarize the outcome for the user.
  7. After Codex completes, inform the user: "You can resume this Codex session at any time by saying 'codex resume' or asking me to continue."

Read the full file on GitHub · 94 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. 12d ago First seen · 94 lines · 38 tokens per session scan A 3bce8ba4446f

Subscribe to this mod's changes

codex is a skill published in the GitHub repository ondrej-svec/heart-of-gold-toolkit (19 stars, last pushed 22d ago), licensed MIT. It adds 38 tokens to every session and 1,691 once invoked, about $0.0002 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

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens