worker-refactorer

worker-refactorer is a skill for Claude Code, Codex from igovet/codex-cortex-orchestrator. It costs 25 tokens per session (2,291 once invoked), scanned C, a copy of worker-accessibility-auditor, MIT.

A refactoring specialist for changing code structure while preserving its observable behavior and public contracts.

In plain words
What is it for?
Use it for behavior-preserving structural improvements backed by regression checks.
Why use it?
It helps reduce maintenance costs without turning cleanup into an unplanned feature or behavior change.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Good fit Use it for behavior-preserving structural improvements backed by regression checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/igovet/codex-cortex-orchestrator/worker-refactorer
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 igovet/codex-cortex-orchestrator --skill worker-refactorer
Clone the repo
git clone --depth 1 https://github.com/igovet/codex-cortex-orchestrator

Made for: Claude Code, 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 worker-refactorer

README.md
[![agentmods](https://agentmods.dev/badge/skills/igovet/codex-cortex-orchestrator/worker-refactorer/github.svg)](https://agentmods.dev/skills/igovet/codex-cortex-orchestrator/worker-refactorer)
Your own site
<a href="https://agentmods.dev/skills/igovet/codex-cortex-orchestrator/worker-refactorer"><img src="https://agentmods.dev/badge/skills/igovet/codex-cortex-orchestrator/worker-refactorer/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 worker-refactorer

Your own site · 80×15
<a href="https://agentmods.dev/skills/igovet/codex-cortex-orchestrator/worker-refactorer"><img src="https://agentmods.dev/badge/skills/igovet/codex-cortex-orchestrator/worker-refactorer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,291 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 88% copy Near-identical to another mod 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.00025 $0.02291
Opus 5.5 $0.00010 $0.00916
Sonnet 5.5 $0.00005 $0.00458
Haiku 4.5 $0.00003 $0.00229

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

Security

Grade C, and why

worker-refactorer scanned grade C 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 1mo 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

Checks `PYTHONDONTWRITEBYTECODE=1` for Python. Never use `rm -rf`,
Origin

This is a copy

88% identical to worker-accessibility-auditor — 60 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/cortex/skills/worker-refactorer/SKILL.md · 223 lines

How it starts

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

Refactorer

Think and communicate only in English as a worker: reasoning, visible summaries, tool explanations, questions, updates, reports and handoffs, including after recovery. Only the coordinator adapts to the user. Quotes and localized artifacts retain their language; your narration stays English. Correct drift without restarting.

In code mode, forward the complete command result so its receipt is available:

const result = await tools.exec_command({...});
text(result);

For discovery, emit catalogue names only:

text(ALL_TOOLS.filter(x => /cortex/i.test(x.name)).map(x => x.name));

Then emit the complete declaration for the exact needed name:

text(ALL_TOOLS.find(x => x.name === "mcp__cortex__create_draft").description);

Names are not contracts: supply every required declared field; defaults apply only to optional fields. Never use empty trial calls. Reuse attached declarations and reload needed ones after compaction; discover project tools separately.

Role and responsibility

Reduce a named structural maintenance cost while preserving observable behavior and contracts. Mutation authority covers assigned paths and behavior-neutral transformation only; refuse features, migrations, output changes, or contract changes disguised as cleanup.

When to use this profile

  • Select: The explicit goal is behavior-preserving structural improvement with regression proof.
  • Choose another specialist: New behavior, unresolved defects, or architecture decisions dominate the task.

Assignment contract

Work only on the bounded assignment: outcome, constraints, acceptance checks, revision, evidence, and owned resources remain mandatory. Ask about missing or invalid conditions; do not infer scope, scan unrelated records, or finish early.

Send progress, blockers, and verification only to the native parent. Never discover, call or request approval for codex_app.send_message_to_thread or app messaging; never wrap either route. Report an unavailable native route natively; final handoffs are automatic.

Read the full file on GitHub · 223 lines

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. 1mo ago Changed · -6 lines 3d489e5a1b50
  2. 1mo ago Changed · +8 lines scan A → C 5cc7967124d2
  3. 1mo ago Changed · +8 lines 15931f335a62
  4. 1mo ago Changed 8571ad4f74b2
  5. 1mo ago First seen · 213 lines · 25 tokens per session scan A 10dfff352c50

Subscribe to this mod's changes

worker-refactorer is a skill published in the GitHub repository igovet/codex-cortex-orchestrator (2 stars, last pushed 3d ago), licensed MIT. It adds 25 tokens to every session and 2,291 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). It is 88% identical to worker-accessibility-auditor, differing in 60 lines, and is treated as a copy.

Related

Other skills, from other repositories

using-ao

Catalog of the AO (Agent Orchestrator) ao CLI: spawning workers, managing sessions and projects, creating reusable Cues, sending messages, controlling the shared browser, previewing pages, and daemon control. Use when using the ao CLI, creating Cues, spawning workers, or managing AO sessions in an AO workspace.

Untrivial-ai/agent-orchestrator · 71 tokens

model-router

A model-selection workflow that assigns different coding tasks to different AI models based on their abilities, cost, and the task’s risk or complexity.

rexleimo/aios · 60 tokens

code-that-fits-in-your-head

Software-engineering heuristics based on Mark Seemann's Code That Fits in Your Head (2021), updated for agent-driven development. Use when writing or reviewing code, refactoring accidental complexity or a Big Ball of Mud, controlling technical or architectural debt in generated code, designing APIs and invariants…

CodeAlive-AI/ai-driven-development · 169 tokens

code-remediate

Collect and resolve selected findings in one pass, then verify; bare PR targets use online items, while PR +review authorizes matching review evidence and any needed review step.

Borda/AI-Rig · 39 tokens

apex-review

Cross-cutting review of recent work — catches gaps between specialists. Use when asked to "review what we built", "check the work", "pre-launch review", or after completing a significant chunk of work.

tonone-ai/tonone · 46 tokens

git-pr-review

A read-only reviewer for GitHub pull requests, which are proposed code changes submitted for review. It produces an evidence-based report about whether a pull request should be merged.

huangwb8/skills · 76 tokens