Codex Refactor

Codex Refactor is a skill for Claude Code from dante01yoon/codex-mcp-bridge. It costs 32 tokens per session (266 once invoked), scanned A, original, MIT.

A code-refactoring helper that reads specified files and proposes structural improvements while preserving their behavior.

In plain words
What is it for?
Use it to remove repetition, simplify conditions, improve names, reduce nesting, and reorganize specified code.
Why use it?
It helps make code easier to read and maintain without changing what it does, while showing the proposed difference before applying it.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents; mentions Codex.

Good fit Use it to remove repetition, simplify conditions, improve names, reduce nesting, and reorganize specified code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dante01yoon/codex-mcp-bridge/codex-refactor
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 dante01yoon/codex-mcp-bridge --skill codex-refactor
Clone the repo
git clone --depth 1 https://github.com/dante01yoon/codex-mcp-bridge

Made for: Claude Code.

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 Refactor

README.md
[![agentmods](https://agentmods.dev/badge/skills/dante01yoon/codex-mcp-bridge/codex-refactor/github.svg)](https://agentmods.dev/skills/dante01yoon/codex-mcp-bridge/codex-refactor)
Your own site
<a href="https://agentmods.dev/skills/dante01yoon/codex-mcp-bridge/codex-refactor"><img src="https://agentmods.dev/badge/skills/dante01yoon/codex-mcp-bridge/codex-refactor/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 Refactor

Your own site · 80×15
<a href="https://agentmods.dev/skills/dante01yoon/codex-mcp-bridge/codex-refactor"><img src="https://agentmods.dev/badge/skills/dante01yoon/codex-mcp-bridge/codex-refactor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 266 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.
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.00032 $0.00266
Opus 5.5 $0.00013 $0.00106
Sonnet 5.5 $0.00006 $0.00053
Haiku 4.5 $0.00003 $0.00027

Measured 2mo ago against content hash 959efb3d6369, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Codex Refactor 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 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.

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.

examples/claude-skills/codex-refactor/SKILL.md · 29 lines

What it actually says

Refactor the specified code using Codex as a sub-agent.

Steps

  1. Read the target file(s) specified in the arguments.
  2. Call mcp__codex-bridge__consult_codex_with_stdin with:
    • stdin_content: the full content of the target file(s)
    • prompt: "Refactor this code to improve readability, maintainability, and structure. Preserve all existing behavior. Apply these principles: extract repeated logic, simplify conditionals, improve naming, reduce nesting. Return the complete refactored code."
    • format: "code"
    • timeout: 180
    • sandbox: "workspace-write"
  3. Show the diff between original and refactored code.
  4. Apply changes only after the user confirms the refactoring intent.

$ARGUMENTS

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. 2mo ago First seen · 29 lines · 32 tokens per session scan A 959efb3d6369

Subscribe to this mod's changes

Codex Refactor is a skill published in the GitHub repository dante01yoon/codex-mcp-bridge (1 stars, last pushed 8mo ago), licensed MIT. It adds 32 tokens to every session and 266 once invoked, about $0.0001 per session on Opus 5.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

Codex Refactor compared with skills from other repositories

Codex Refactor next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Codex Refactordante01yoon/codex-mcp-bridgeSkill18mo agoMITA32Claude Code
imagegenopenai/codexSkill135ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill100ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill394ktodayMITA36Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79k4d agoMITA200Claude Code, Codex
systematic-debuggingobra/superpowersSkill316k7d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143ktodayMITA95Claude Code