codex

codex is a skill for Claude Code, Codex from alessiomarcone/agent-fieldbook. It costs 72 tokens per session (482 once invoked), scanned A, original, MIT.

A guide to planning and operating Codex, an AI coding agent, across its desktop app, command line, editor, cloud, scheduled tasks, and software-development kit. It covers choosing where work should run and defining the context and checks it needs.

In plain words
What is it for?
Use it to choose a Codex surface, set up repository instructions, decide whether to add skills or custom agents, limit permissions, and require tests and review.
Why use it?
It helps prevent coding tasks from running with the wrong files, permissions, tools, or completion criteria. It also separates durable repository instructions from one-off requests and specialist extensions.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present. Also seen: mentions subagents; mentions AGENTS.md; mentions Codex.

Part of the knowledge-pack plugin — 10 skills 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/alessiomarcone/agent-fieldbook/codex
Any agent
npx skills add alessiomarcone/agent-fieldbook --skill codex
Clone the repo
git clone --depth 1 https://github.com/alessiomarcone/agent-fieldbook

Made for: Claude Code, Codex.

Or install knowledge-pack, the plugin that ships this one along with the rest of its 10 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/alessiomarcone/agent-fieldbook/codex.svg)](https://agentmods.dev/skills/alessiomarcone/agent-fieldbook/codex)
Your own site
<a href="https://agentmods.dev/skills/alessiomarcone/agent-fieldbook/codex"><img src="https://agentmods.dev/badge/skills/alessiomarcone/agent-fieldbook/codex.svg" alt="Measured on agentmods" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 482 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.1 $0.00072 $0.00482
Opus 5 $0.00036 $0.00241
Sonnet 5 $0.00014 $0.00096
Haiku 4.5 $0.00007 $0.00048

Measured 6d ago against content hash b97b72c0f7da, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 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.

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/knowledge-pack/skills/codex/SKILL.md · 43 lines

What it actually says

Codex

Turn an objective into a reviewable Codex task with the right context, authority, and completion checks.

References

  • Always read references/knowledge-base.md for the operating model.
  • Read references/sources.md before making a time-sensitive product claim.
  • For specialist authoring, route to prompt, subagent, skill, or plugin.

Procedure

  1. Resolve the outcome, repository or folder context, surface, risk, and definition of done.
  2. Choose the surface: app for parallel local work and artifact workflows, CLI/IDE for interactive engineering, cloud for configured remote work, scheduled tasks for clock-driven recurring execution, or SDK/non-interactive mode for programmatic execution.
  3. Put durable repository commands, conventions, boundaries, and verification in the nearest applicable AGENTS.md.
  4. Add a focused skill for a repeated workflow and a custom agent only when isolation or a distinct configuration is valuable.
  5. Use the least authority that can complete the task; make external and irreversible actions explicit.
  6. Require relevant tests, review, and a concise final report of changes and remaining uncertainty.
  7. Check current official documentation for commands, fields, models, plans, and feature availability.

Output contract

Return:

  1. Surface and mechanism — one primary choice and why.
  2. Context setup — files, instructions, tools, and permissions.
  3. Ready task — a complete Codex prompt or configuration.
  4. Done when — observable checks.
  5. Reuse — what belongs in AGENTS.md, a skill, custom agent, or plugin.

Boundaries

  • Do not invent current commands, configuration, or availability.
  • Do not absorb prompt, subagent, skill, or plugin authoring when a narrower skill matches.
  • Do not request broader permissions than the task needs.
  • Do not transfer Claude-only configuration into Codex.
  • Answer in the user's language.
Files

What ships with it

3 files 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.

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. 6d ago First seen · 43 lines · 72 tokens per session scan A b97b72c0f7da

Subscribe to this mod's changes

codex is a skill published in the GitHub repository alessiomarcone/agent-fieldbook (5 stars, last pushed 5d ago), licensed MIT. It adds 72 tokens to every session and 482 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-31.

Related

Other skills, from other repositories

acontext-installer

Install Acontext, Login & Init Acontext Project, Add Skill Memory to Agent.

memodb-io/Acontext · 22 tokens

lore-lint

Use when the user runs /lore:lore-lint — health-check the lore for index drift, ungrouped pages, group hygiene, dead wikilinks, duplicate titles, unresolved contradictions, schema violations, missing footnote attribution, missing concept pages and cross-references, knowledge gaps, and discard candidates. Fix…

barakgut/lore · 76 tokens

lore-ingest

Use when the user runs /lore:lore-ingest — find files in the lore's raw/ inbox that are new or changed since their last ledger entry, distill or surgically update wiki pages by content type, update log.md, regenerate the index, and commit.

barakgut/lore · 61 tokens

forge-writing

文献锚定型学术写作(IMRD 完整四段),三阶深挖 → 创新锚定 → 叙事线走通 → 逐段交互起草 → 综合审校。支持单章写作、全文编排、润色模式。当用户需要写论文段落、起草 Introduction/Discussion/Methods/Results/Abstract/Conclusion、润色已有草稿、讨论论文大纲或写作思路时触发——即使用户没有明确说"写作",只要涉及论文内容产出("帮我写一段引言""这个讨论怎么写""润色一下这段""帮我看看这个大纲")都应使用此 skill。材料科学领域优化,深度整合 SciCrucible 知识库文献。.

Xinyang-Li666/SciCrucible · 176 tokens

forge-extract

通用实验数据提取框架 — 首次 Q&A 配置向导 → 小规模试点验证 → 全量检索提取入库。跨领域通用:材料科学、化学、物理等任意实验数据。当用户想从文献中构建实验数据集、提取结构化数据、建 ML 训练数据库时触发,即使用户没有说 /extract。.

Xinyang-Li666/SciCrucible · 86 tokens

forge-ingest

文献摄入 — 读取 PDF/文本,编译为结构化 wiki 页面(文献笔记 + 概念页 + 方法页),增量更新索引。当用户放入新PDF、说"摄入这篇论文"、"处理文献"、需要将PDF转为结构化知识时触发.

Xinyang-Li666/SciCrucible · 70 tokens