Borrowing it
Nothing to install: this file belongs to zuharz/ccode-to-codex. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/zuharz/ccode-to-codex/main/.codex/skills/migrate-agents-to-codex/SKILL.mdgit clone --depth 1 https://github.com/zuharz/ccode-to-codexWrote 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/zuharz/ccode-to-codex/migrate-agents-to-codex)<a href="https://agentmods.dev/skills/zuharz/ccode-to-codex/migrate-agents-to-codex"><img src="https://agentmods.dev/badge/skills/zuharz/ccode-to-codex/migrate-agents-to-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/zuharz/ccode-to-codex/migrate-agents-to-codex"><img src="https://agentmods.dev/badge/skills/zuharz/ccode-to-codex/migrate-agents-to-codex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 11 findings, 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 Agent Snooping · line 194 Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.Fix: Remove all code or instructions that access agent configuration directories (.claude/, .codex/, .gemini/). If configuration values are needed, pass them explicitly as parameters or environment variabl
- high Agent Snooping · line 386 Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.Fix: Remove all code or instructions that access agent configuration directories (.claude/, .codex/, .gemini/). If configuration values are needed, pass them explicitly as parameters or environment variabl
- high Agent Snooping · line 398 Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.Fix: Remove all code or instructions that access agent configuration directories (.claude/, .codex/, .gemini/). If configuration values are needed, pass them explicitly as parameters or environment variabl
- high Agent Snooping · line 407 Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.Fix: Remove all code or instructions that access agent configuration directories (.claude/, .codex/, .gemini/). If configuration values are needed, pass them explicitly as parameters or environment variabl
- high Agent Snooping · line 415 Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.Fix: Remove all code or instructions that access agent configuration directories (.claude/, .codex/, .gemini/). If configuration values are needed, pass them explicitly as parameters or environment variabl
- medium Agent Snooping · line 197 Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
- medium Agent Snooping · line 755 Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
- medium Agent Snooping · line 205 Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
- medium Agent Snooping · line 206 Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
- medium Agent Snooping · line 207 Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
- medium Agent Snooping · line 431 Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
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.00120 | $0.07984 |
| Opus 5.5 | $0.00048 | $0.03194 |
| Sonnet 5.5 | $0.00024 | $0.01597 |
| Haiku 4.5 | $0.00012 | $0.00798 |
Grade B, and why
migrate-agents-to-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 2mo 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.
Enumerates other installed skillsmediumAgent snooping
Other skills' SKILL.md files reveal prompts, capabilities and secrets that should be invisible to peers.
ls .codex/skills/ How it starts
The opening of the file, as written. The whole thing — 775 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Migrate Agents to Codex
Purpose
Migrates Claude agent definitions from .claude/agents/*.md (YAML frontmatter
- markdown body) to Codex-compatible outputs under
.codex/agents/.
Preferred output: standalone TOML custom-agent files. Backward-compatible output only: pure-markdown behavioral specifications.
The migration strips frontmatter, maps fields to native Codex contracts,
preserves runtime hints such as model, effort, reasoning_effort, and
model_reasoning_effort, normalizes MCP namespaces, and extracts large domain
content into companion reference files.
After migration, a native Codex compliance audit (GPT-5.4 inline sub-agent) validates every migrated file passes as a native Codex sub-agent — not a ported Claude artifact. Mechanical output is never final on write alone: every mechanically generated agent requires a recorded manual nativeness review before it may be treated as native. Findings are auto-addressed and a convergence check confirms no regressions were introduced by the fixes.
Pipeline position: CODE → VERIFY (runs during implementation phase). Covers 2 stages: CODE (migration) + VERIFY (adversarial review loop).
Canonical conversation wrapper:
.codex/skills/migrate-agents-to-codex/scripts/run_agent_migration_workflow.py
Deterministic engine:
.codex/skills/migrate-agents-to-codex/scripts/migrate_claude_agents_to_codex.py
Conversation-First Entry
Bare requests should start with a user-facing action menu, not a wall of CLI
flags. Follow the shared contract in
../migrate-to-codex/references/conversational-migration-contract.md.
Default menu for underspecified requests:
- Assess one agent
- Preview one agent as TOML
- Migrate one agent live
- Batch preflight all agents
- Review one migrated agent for nativeness
- Explain MCP or skill blockers
Routing rules:
- If the user already says
preview example-agent-e,migrate example-agent-c, orreview example-agent-e, route directly. - In Plan mode, use
request_user_inputonly for the action choice. - Outside Plan mode, render the same action set as a numbered text menu.
- If the action still needs an agent name, ask for it in plain text.
- Require explicit confirmation before any live write into
.codex/agents/or any--forceoverwrite.
What ships with it
11 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.
- references/agent-complexity-classifier.md 2.8 KB
- references/agent-field-mapping.md 14 KB
- references/architectural-patterns.md 3.1 KB
- references/codebase-verification-prompt.md 2.0 KB
- references/codex-agent-template.md 6.1 KB
- references/legacy-subagent-roi.md 5.4 KB
- references/primitive-mapping.md 7.2 KB
- references/subagent-migration-guide.md 12 KB
- scripts/migrate_claude_agents_to_codex.py 55 KB runs code
- scripts/run_agent_migration_workflow.py 20 KB runs code
- tests/test_migrate_claude_agents_to_codex.py 20 KB runs code
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.
- 2mo ago First seen · 775 lines · 120 tokens per session scan B 39d8e86fd8f1
migrate-agents-to-codex is a skill published in the GitHub repository zuharz/ccode-to-codex (76 stars, last pushed 2mo ago), licensed MIT. It adds 120 tokens to every session and 7,984 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it B with 1 finding (enumerates other installed skills). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
migrate-agents-to-codex compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| migrate-agents-to-codexzuharz/ccode-to-codex | Skill | 76 | 2mo ago | MIT | B | 120 | Codex |
| imagegenopenai/codex | Skill | 133k | yesterday | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 99k | yesterday | Apache-2.0 | A | 19 | Claude Code |
| local-ai-agentsmicrosoft/ai-agents-for-beginners | Skill | 79k | 4d ago | MIT | A | 200 | Claude Code, Codex |
| systematic-debuggingobra/superpowers | Skill | 313k | 3d ago | MIT | A | 21 | Claude Code |
| next-cache-components-adoptionvercel/next.js | Skill | 143k | today | MIT | A | 95 | Claude Code |
| next-partial-prefetching-adoptionvercel/next.js | Skill | 143k | today | MIT | A | 103 | Claude Code |