refactor

refactor is a skill for Claude Code, Codex from code-yeongyu/oh-my-openagent. It costs 29 tokens per session (6,458 once invoked), scanned A, original, no licence file.

A refactoring command for restructuring existing code without changing the job it is meant to do. Refactoring can include simplifying, extracting, cleaning up, or modernizing code.

In plain words
What is it for?
Use it when you need to refactor, clean up, restructure, extract, simplify, or modernize code.
Why use it?
It helps address code that is difficult to understand or maintain while focusing the work on structure and clarity.

Skill for Claude CodeCodex

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/code-yeongyu/oh-my-openagent/refactor
Any agent
npx skills add code-yeongyu/oh-my-openagent --skill refactor
Clone the repo
git clone --depth 1 https://github.com/code-yeongyu/oh-my-openagent

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 refactor

README.md
[![agentmods](https://agentmods.dev/badge/skills/code-yeongyu/oh-my-openagent/refactor.svg)](https://agentmods.dev/skills/code-yeongyu/oh-my-openagent/refactor)
Your own site
<a href="https://agentmods.dev/skills/code-yeongyu/oh-my-openagent/refactor"><img src="https://agentmods.dev/badge/skills/code-yeongyu/oh-my-openagent/refactor.svg" alt="Measured on agentmods" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,458 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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 $0.00029 $0.06458
Opus 5 $0.00015 $0.03229
Sonnet 5 $0.00006 $0.01292
Haiku 4.5 $0.00003 $0.00646

Measured 4d ago against content hash 31bd5c62f1b9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 4d 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.

packages/shared-skills/skills/refactor/SKILL.md · 755 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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. 4d ago First seen · 755 lines · 29 tokens per session scan A 31bd5c62f1b9

Subscribe to this mod's changes

refactor is a skill published in the GitHub repository code-yeongyu/oh-my-openagent (68,591 stars, last pushed yesterday), with no licence file. It adds 29 tokens to every session and 6,458 once invoked, about $0.0001 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-30.

Related

Other skills, from other repositories

im-adapter

Format responses for instant messaging platforms such as Lark, DingTalk, WeCom, Slack, and Telegram. Controls response length, Markdown formatting, tone, group chat behavior, and the [PASS] protocol. Also covers sending images and files via [SENDIMAGE]/[SENDFILE] markers on channels that support media (currently WeCom…

0xranx/golembot · 96 tokens

general

Handle everyday conversation, answer questions, manage files, take notes, run scripts, and maintain persistent memory across sessions. Use when the user asks a general question, requests file operations, wants to brainstorm ideas, needs to-do tracking, asks you to remember something, or requests skill search and…

0xranx/golembot · 61 tokens

message-push

Send proactive messages to IM groups or individual users via the gateway Send API. Use when the user says to send, post, notify, forward, or tell someone a message on Feishu, Slack, Telegram, Discord, DingTalk, or WeCom.

0xranx/golembot · 55 tokens

multi-bot

Coordinates responses between multiple GolemBot instances in a shared fleet. Use when the bot operates in a group chat with other bots, needs to decide whether to respond or pass, or must call a peer bot's API to fetch cross-domain data.

0xranx/golembot · 53 tokens

task-manager

Creates and manages scheduled tasks, cron jobs, recurring reminders, and timers via the Task HTTP API. Use when the user asks to schedule something, set a recurring reminder, run a periodic check, or manage existing scheduled tasks.

0xranx/golembot · 48 tokens

data-analysis

Loads CSV, Excel, and JSON data files, performs statistical analysis, and generates charts and reports. Use when the user asks to analyze a dataset, compute statistics, create visualizations, find trends, or produce a data report.

0xranx/golembot · 49 tokens