refactor

refactor is a skill for Codex from engindemirog/ai-native-engineering-workspace. It costs 26 tokens per session (143 once invoked), scanned A, original, MIT.

A refactoring workflow for changing code structure while keeping its behavior the same. Refactoring means reorganizing code without intentionally changing what it does.

In plain words
What is it for?
Use it to prepare tests, reorganize an implementation, enforce a no-test-edit rule, and verify the project's checks before and after the change.
Why use it?
It uses existing checks and, where needed, characterization tests to detect accidental behavior changes before the work proceeds.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions AGENTS.md.

Good fit Use it to prepare tests, reorganize an implementation, enforce a no-test-edit rule, and verify the project's checks before and after the change.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/engindemirog/ai-native-engineering-workspace/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 engindemirog/ai-native-engineering-workspace --skill refactor
Clone the repo
git clone --depth 1 https://github.com/engindemirog/ai-native-engineering-workspace

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 refactor

README.md
[![agentmods](https://agentmods.dev/badge/skills/engindemirog/ai-native-engineering-workspace/refactor/github.svg)](https://agentmods.dev/skills/engindemirog/ai-native-engineering-workspace/refactor)
Your own site
<a href="https://agentmods.dev/skills/engindemirog/ai-native-engineering-workspace/refactor"><img src="https://agentmods.dev/badge/skills/engindemirog/ai-native-engineering-workspace/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 refactor

Your own site · 80×15
<a href="https://agentmods.dev/skills/engindemirog/ai-native-engineering-workspace/refactor"><img src="https://agentmods.dev/badge/skills/engindemirog/ai-native-engineering-workspace/refactor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 143 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.00026 $0.00143
Opus 5.5 $0.00010 $0.00057
Sonnet 5.5 $0.00005 $0.00029
Haiku 4.5 $0.00003 $0.00014

Measured 9d ago against content hash f2034f0807ea, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 9d 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.

adapters/codex/skills/refactor/SKILL.md · 10 lines

What it actually says

Read AGENTS.md and workflows/refactor.md. Run the workflow for what is described after the skill name. ./scripts/check must be green before starting. If the area lacks tests, characterization tests come first. Zero test edits — a needed test edit means behavior changed: stop and tell me. The mini-spec gets the self-critique pass of prompts/spec.md; set Self-critique: done after my approval. Stop at every human gate, one decision per gate message (workflows/segments.md, Contract, Gate).

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. 9d ago Changed · +2 lines f2034f0807ea
  2. 20d ago First seen · 8 lines · 26 tokens per session scan A eab8dfbbdf41

Subscribe to this mod's changes

refactor is a skill published in the GitHub repository engindemirog/ai-native-engineering-workspace (114 stars, last pushed 4d ago), licensed MIT. It adds 26 tokens to every session and 143 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-10-20.

Related

refactor compared with skills from other repositories

refactor next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
refactorengindemirog/ai-native-engineering-workspaceSkill1144d agoMITA26Codex
testinggarrytan/gbrainSkill32ktodayMITA63Claude Code
verifyYeachan-Heo/oh-my-claudecodeSkill41ktodayMITA12Claude Code
detect-static-dependenciesdotnet/skillsSkill5.9ktodayMITA135Claude Code
testing-blocksadobe/skillsSkill321todayApache-2.0A61Claude Code
dart-downstream-fixdartsim/dartSkill1.2ktodayBSD-2-ClauseA25Claude Code
experiment-iterative-coderEvoScientist/EvoSkillsSkill48812d agoApache-2.0A145Claude Code