review-and-refactor

review-and-refactor is a skill for Claude Code, Codex from OKHP3/skillz. It costs 17 tokens per session (153 once invoked), scanned A, a copy of review-and-refactor, MIT.

A workflow for reviewing and improving a project's code according to its repository instructions. It checks the surrounding guidance and keeps the existing file structure intact while refactoring where needed.

In plain words
What is it for?
Use it for a repository-wide code review, cleanup, and refactoring guided by files such as coding standards and project instructions.
Why use it?
It helps bring code into line with project standards and improve maintainability. It also checks that existing tests still pass after changes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for a repository-wide code review, cleanup, and refactoring guided by files such as coding standards and project instructions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/okhp3/skillz/review-and-refactor
View source ↗ OKHP3/skillz
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 OKHP3/skillz --skill review-and-refactor
Clone the repo
git clone --depth 1 https://github.com/OKHP3/skillz

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 review-and-refactor

README.md
[![agentmods](https://agentmods.dev/badge/skills/okhp3/skillz/review-and-refactor/github.svg)](https://agentmods.dev/skills/okhp3/skillz/review-and-refactor)
Your own site
<a href="https://agentmods.dev/skills/okhp3/skillz/review-and-refactor"><img src="https://agentmods.dev/badge/skills/okhp3/skillz/review-and-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 review-and-refactor

Your own site · 80×15
<a href="https://agentmods.dev/skills/okhp3/skillz/review-and-refactor"><img src="https://agentmods.dev/badge/skills/okhp3/skillz/review-and-refactor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 153 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 100% 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.00017 $0.00153
Opus 5 $0.00009 $0.00077
Sonnet 5 $0.00003 $0.00031
Haiku 4.5 $0.00002 $0.00015

Measured 6d ago against content hash 95b48ed4b137, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

review-and-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 6d 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.

Origin

This is a copy

100% identical to review-and-refactor — 4 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.

community/review-and-refactor/SKILL.md · 16 lines

What it actually says

Role

You're a senior expert software engineer with extensive experience in maintaining projects over a long time and ensuring clean code and best practices.

Task

  1. Take a deep breath, and review all coding guidelines instructions in .github/instructions/*.md and .github/copilot-instructions.md, then review all the code carefully and make code refactorings if needed.
  2. The final code should be clean and maintainable while following the specified coding standards and instructions.
  3. Do not split up the code, keep the existing files intact.
  4. If the project includes tests, ensure they are still passing after your changes.
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. 6d ago First seen · 16 lines · 17 tokens per session scan A 95b48ed4b137

Subscribe to this mod's changes

review-and-refactor is a skill published in the GitHub repository OKHP3/skillz (3 stars, last pushed yesterday), licensed MIT. It adds 17 tokens to every session and 153 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to review-and-refactor, differing in 4 lines, and is treated as a copy.

Related

Other skills, from other repositories

ontoly-software-graph

Use Ontoly's deterministic Software Graph and MCP capabilities for architecture review, request tracing, dependency analysis, configuration lookup, and impact analysis before falling back to source-file search.

anbeime/skill · 41 tokens

kelly-pr-review

GitHub pull request review desk (Busabase App-in-Skill) using the gh CLI for real GitHub access, an AirApp review UI for human approval, and a trusted gh pr review execution step. Use when the user invokes /kelly-pr-review or $kelly-pr-review, asks to review GitHub PRs, generate a PR review batch…

mr-kelly/skills · 94 tokens

drupal-security-review

Use when auditing Drupal 11 custom modules/themes for security issues such as unsafe input handling, XSS risks, SQL injection, and access control gaps.

siva01c/claude-plugins · 35 tokens

find-verified-code-review-agent

Find a Verified Code Review Agent. Agent discovery, trust verification, and capability routing powered by Aidress — the coordination registry for autonomous AI agents. Use for software agent discovery, trust verification, and capability routing — via Aidress (https://api.aidress.ai).

Aidress-ai/aidress-skill-find-verified-code-review-agent · 61 tokens

baoyu-comic

A tool for creating original educational comics that explain knowledge or ideas through multiple illustrated panels. It supports different art styles and tones and can create several comics in one batch.

JimLiu/baoyu-skills · 61 tokens

refactor-advisor

A code review helper that finds common design and maintenance problems in a codebase and suggests ways to restructure the code.

laolaoshiren/claude-code-skills-zh · 22 tokens