codex

codex is a skill for Codex from yan-labs/yan-skills. It costs 0 tokens per session (4,291 once invoked), scanned B, original, MIT.

A skill that uses Codex as a background worker for generating images or handling coding tasks. It can also launch multiple workers for parallel code work.

In plain words
What is it for?
Creating images, asking a background worker to analyze or refactor code, and running several coding agents as a team.
Why use it?
It lets longer image-generation or coding jobs run in the background while control returns to you, with results checked later.

Skill for Codex

Written for Codex: runs codex exec. Also seen: reads .claude/ paths; mentions subagents; names the AskUserQuestion tool.

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/yan-labs/yan-skills/codex
Any agent
npx skills add yan-labs/yan-skills --skill codex
Clone the repo
git clone --depth 1 https://github.com/yan-labs/yan-skills

Made for: Codex.

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/yan-labs/yan-skills/codex.svg)](https://agentmods.dev/skills/yan-labs/yan-skills/codex)
Your own site
<a href="https://agentmods.dev/skills/yan-labs/yan-skills/codex"><img src="https://agentmods.dev/badge/skills/yan-labs/yan-skills/codex.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,291 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 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.00000 $0.04291
Opus 5 $0.00000 $0.02145
Sonnet 5 $0.00000 $0.00858
Haiku 4.5 $0.00000 $0.00429

Measured 6d ago against content hash 03fcfd2bd2b7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade B, and why

codex scanned grade B with 2 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

1. **Pick reasoning effort + sandbox** from context — do not interrupt the user with `AskUserQuestion` unless they explicitly ask to be prompted. **Do not pass `-m` / `--model`**; let Codex use its default model from `~/

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

subprocess.run(['sips','-Z','120', src, '--out', thumb])
codex/SKILL.md · 237 lines

How it starts

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

Codex Sub-Agent Skill

Codex runs as a background sub-agent: you launch it, immediately return control to the user, and poll or read output only when needed. This makes it usable both as a standalone background worker and as one member of a multi-agent team.

This is the most-used capability of this skill on this machine. The owner reaches for Codex primarily to generate images, so that section comes first. Everything below it — background workers, agent teams — is the same launch machinery applied to code.

Image Generation

Codex can generate images. It has a built-in OpenAI image generation tool. This is a capability of the agent, not a CLI subcommand — there is no codex image / codex gen-image command, and codex exec --image is for attaching images as input, not producing them.

Do not go looking through codex --help for an image flag, conclude "Codex has no image generation," and tell the user so. That conclusion is wrong. Treat Codex as an agent: describe the images you want in the prompt and let it choose its own method.

Launch it exactly like any other Codex worker — background, prompt via stdin:

cat /tmp/codex-prompt-img.md | codex exec --skip-git-repo-check \
  --config model_reasoning_effort="medium" \
  --sandbox danger-full-access \
  -C <outdir> 2>/dev/null
  • Sandbox: needs danger-full-access (image generation hits the network). Just run it — see Error Handling; no permission prompt is required on this machine.
  • Effort: medium is plenty; this is not a reasoning-heavy task.

Writing the image prompt

Put these in the prompt file:

  1. Output directory — create it yourself first (mkdir -p) and give the absolute path.
  2. One numbered item per image, each with its exact filename and a concrete description.
  3. A shared style block so a multi-image set stays visually consistent: illustration style, background, an explicit hex palette, and aspect/size.
  4. "No text, no logos, no watermarks" — generated lettering is almost always garbled, and in a non-English UI it will be wrong.
  5. An explicit escape hatch: "if you genuinely cannot generate images, say so plainly — do not substitute placeholders, ASCII art, or images downloaded from the web."
  6. Ask it to report the absolute path of each file plus the method it actually used.

Read the full file on GitHub · 237 lines

Files

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.

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 · 237 lines · 0 tokens per session scan B 03fcfd2bd2b7

Subscribe to this mod's changes

codex is a skill published in the GitHub repository yan-labs/yan-skills (172 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 4,291 tokens. A static security scan graded it B with 2 findings (reads agent configuration directories, runs shell commands). 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

loki-yan-seo

Use when diagnosing or executing Google SEO, international/cross-border sites, AIO, or GEO. Unofficial engine distilled from Loki Yan (@lokiyanseo) public tweets. Not a generic SEO encyclopedia. Does not imitate his voice. Not affiliated or endorsed.

lynnzc/loki-yan-seo-skill · 62 tokens

youtube-comment-management

Lister, modérer et répondre aux commentaires de chaînes YouTube via l'API v3, avec maillage SEO vers vos sites WordPress.

RobinBeraud/hermes-skills · 33 tokens

agent-platform-rag-engine-management

Manage and query Agent Platform RAG Engine Corpora and retrieve grounded contexts using the Google GenAI SDK. Use when listing RAG corpora or files, inspecting a corpus, retrieving contexts, or generating content grounded in a RAG corpus. Do not use for standard database queries (use SQL/Spanner skills), Google…

google/skills · 85 tokens

gke-reliability

Improves GKE workload reliability, using PDBs, health probes, and topology spread constraints. Use when configuring GKE workload reliability, setting up PDBs, or configuring GKE health probes (liveness, readiness, startup). Don't use for disaster recovery setup or full cluster backups (use gke-backup-dr instead).

google/skills · 73 tokens

gke-workload-security

Audits, configures, and hardens workload-level security controls for Google Kubernetes Engine (GKE) applications and namespaces. Covers running cluster security audits (auditcluster.sh), configuring Workload Identity Federation (impersonation, KSA/GSA binding, and pod setup), enforcing Network Policies (default-deny…

google/skills · 181 tokens

agent-platform-model-registry

Agent Platform Model Registry Management. Use when you need to upload, list, describe, update, or delete machine learning models (and their versions) in the Agent Platform Model Registry. Don't use for model training, model deployment to endpoints, or managing non-Agent Platform models.

google/skills · 60 tokens