Skip to content
cccskills
FreePublished on GitHubEnglish overview

refactor

Guides code cleanup and restructuring by mapping dependencies, assessing test coverage, and planning small changes. Supports tasks such as extracting functions or renaming symbols, with checks after each step and recovery when verification fails.

OriginalShow the original description

Guides a refactor, cleanup, or restructure with the right decomposition. Use when the user asks to refactor, simplify, extract, or modernize code.

code-yeongyu/oh-my-openagent71,231 stars(GitHub 71,231 + cccskills 0)

Run score Not tested

See how to install

Good for

  • Extracting validation logic into a separate module
  • Renaming symbols across related files
  • Simplifying conditionals and repeated patterns
  • Planning a migration away from deprecated APIs

Overview

What it does

refactor helps extract functions, rename code, remove duplication, and reorganize modules while preserving behavior. It investigates the target's definitions, usages, dependencies, and existing design conventions, then summarizes the affected areas and available tests. Based on those findings, it divides the work into small changes and runs tests and type checks at each stage. If verification fails, it reverts the change and investigates the cause.

When it helps

Use it to organize logic spread across several files or simplify code while following the project's established approach. By specifying the scope and change strategy, you can plan anything from cautious cleanup to broader structural changes.

Example requests

  • “Extract input validation from the authentication logic into a separate module.”
  • “Find uses of deprecated APIs and plan their replacement.”

Notes

The workflow uses LSP to inspect definitions and references, AST-Grep for syntax-based searches and replacements, and agents for exploration and planning. The target project also needs working tests and type checks. If test coverage is insufficient or a change would break a public API, work pauses to confirm the approach.

This overview was written by AI (OpenAI Codex) from the public SKILL.md. Check the original below for the exact behavior.

Document check

AI checked the SKILL.md for operations that need care and for setup requirements. The score comes only from actually running the skill (hands-on test).

SafetyAre sending data, deleting files, and running commands disclosed?
AGoodIt requires confirming the target and scope before changes, previewing structural replacements, and testing each change.
Easy setupDoes it need few tools or API keys, and are they documented?
BPartly lackingIt requires LSP, AST-Grep, and exploration agents, but the supplied excerpt does not provide installation instructions.

Not counted in the score. Rated by AI (OpenAI Codex) as of Oct 23, 2026. Treat it as a guide and read the original before installing.

Disagree? Request a re-evaluation

Tell us which point is wrong and why. No login needed. We will check it against the SKILL.md, redo the evaluation, and show the result here.

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

Files included (1)

  • SKILL.md24.6 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

ast-grep

FreeSummary

Finds and rewrites code by its syntax structure across 25 languages. Use it to locate matching calls or declarations, preview bulk changes, and run reusable YAML rules that check code or apply fixes.

  • Finding calls or functions with a specific structure
  • Previewing and applying bulk code changes
  • Checking code with reusable YAML rules
code-yeongyu/oh-my-openagent71.2KUpdated Nov 11, 2026

browser

FreeSummary

Automate forms, clicks, screenshots, and website checks in a browser where you are already signed in. A separately launched browser also supports scraping and network capture, while login or verification steps can be handed to a person.

  • Fill forms on websites where you are already signed in
  • Capture screenshots and check website behavior
  • Record network traffic in a separately launched browser
code-yeongyu/oh-my-openagent71.2KUpdated Dec 1, 2026

codex-qa

FreeSummary

Test omo Codex Light edition in an isolated environment using real Codex and a local mock model. Verify installation, plugin hooks, and terminal startup, with captured evidence and no calls to a real model API.

  • Verify installation and config.toml changes in isolation
  • Confirm plugin hooks run during a real Codex turn
  • Check terminal interface startup
code-yeongyu/oh-my-openagent71.2KUpdated Nov 12, 2026

Search local session histories across Codex, Claude Code, OpenCode, and other coding agents. Find earlier requests, inspect transcripts and child sessions, and reconstruct past work using recorded evidence, with filters for dates, projects, platforms, and models.

  • Finding work done a few days ago
  • Checking whether a migration was already completed
  • Reviewing tasks delegated to child agents
code-yeongyu/oh-my-openagent71.2KUpdated Nov 30, 2026

comment-checker

FreeSummary

Help Codex respond to automatic warnings about comments after code edits. It explains when the checker runs and directs Codex to fix the flagged comment or explain it before continuing with other work.

  • Understand a comment warning after an edit
  • Fix a comment flagged by the checker
  • Explain a flagged comment before continuing
code-yeongyu/oh-my-openagent71.2KUpdated Oct 31, 2026

data-scientist

FreeSummary

Analyze CSV, Parquet, and JSON files to answer questions through grouping, joins, cleaning, time series, and charts. Chooses DuckDB or Polars and a suitable processing location based on the task and available memory.

  • Summarizing and joining data files
  • Exploring trends and distributions
  • Cleaning data before analysis
code-yeongyu/oh-my-openagent71.2KUpdated Nov 18, 2026

See all skills by code-yeongyu

Report a problem with this skill