Agent skill

Refactor Pass for Simplicity

by star-history in star-history/star-history

“Perform a refactor pass focused on simplicity after recent changes. Use when the user asks for a refactor/cleanup pass, simplification, or dead-code removal and expects…”

— description from SKILL.md by star-history
MITAuto-check passedDevelopment

Install Refactor Pass for Simplicity

skills CLI
$ npx skills add star-history/star-history --skill refactor-pass -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install star-history/star-history refactor-pass --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/star-history/star-history.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/refactor-pass .claude/skills/refactor-pass && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
refactor-pass
GitHub stars
9.6k
Used in
1 other repo
Token cost
~168 tokens
SKILL.md length
57 words
Files
1
Skills in repo
1
Repo updated
First seen
Licence
MIT

At a glance

  • Works in 2 steps: Review the changes just made and… → Apply refactors to
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

About this skill

“Perform a refactor pass focused on simplicity after recent changes. Use when the user asks for a refactor/cleanup pass, simplification, or dead-code removal and expects build/tests to verify behavior.”

— description from SKILL.md by star-history

Refactor Pass for Simplicity is a skill in star-history/star-history (9.6k stars). Its SKILL.md is about 168 tokens, and copies of it appear in 1 other owners' repositories. Licence: MIT.

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. Review the changes just made and identify simplification opportunities.
  2. Apply refactors to

What it can do on your machine

Read from SKILL.md and the folder at commit 608d0e3. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Refactor Pass for Simplicity loads about 168 tokens when it runs. Until then it costs about 54 tokens; SKILL.md has 57 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~54
When it runs · the whole SKILL.md, loaded when a task matches
~168

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from star-history/star-history at commit 608d0e3, republished under its MIT licence (© star-history). 57 words, ~168 tokens.

Download SKILL.mdSave it as .claude/skills/refactor-pass/SKILL.md (or your agent's skills folder).
name
refactor-pass
description
Perform a refactor pass focused on simplicity after recent changes. Use when the user asks for a refactor/cleanup pass, simplification, or dead-code removal and expects build/tests to verify behavior.

Refactor Pass

Workflow

  1. Review the changes just made and identify simplification opportunities.
  2. Apply refactors to:
  • Remove dead code and dead paths.
  • Straighten logic flows.
  • Remove excessive parameters.
  • Remove premature optimization.
  1. Run build/tests to verify behavior.
  2. Identify optional abstractions or reusable patterns; only suggest them if they clearly improve clarity and keep suggestions brief.

© star-history, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/refactor-pass of star-history/star-history.

Open the folder on GitHubat commit 608d0e3

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in star-history/star-history, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Refactor Pass for Simplicity next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Refactor Pass for Simplicity compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Refactor Pass for Simplicity this skillstar-history/star-history9.6k1 repos~168Automated safety check: PassMIT
PonytailDavidObando/gsharp5648 repos~1.7kAutomated safety check: PassMIT
Ponytail Lazy Developer ModeDietrichGebert/ponytail159k—~873Automated safety check: PassMIT
Code Simplification for ego-litecitrolabs/ego-lite17k—~1.2kAutomated safety check: PassMIT
RTK Rust Code Simplifierrtk-ai/rtk83k—~1.1kAutomated safety check: PassApache-2.0
Over-Engineering ReviewDietrichGebert/ponytail159k—~1.3kAutomated safety check: PassMIT

Similar skills

  • Ponytail

    DavidObando/gsharp

    Forces the laziest solution that actually works, simplest, shortest, most minimal.

    564 GitHub starsUsed in 8 repos~1.7k tokens
    DevelopmentAuto-check passed
  • Ponytail Lazy Developer Mode

    DietrichGebert/ponytail

    Makes the agent pick the laziest solution that works: skip unneeded work, reuse what exists, prefer the standard library and platform features, and keep diffs small.

    159k GitHub stars~873 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Finds and implements evidence-backed simplifications in the ego-lite repository, such as dead code, duplicated state and speculative abstractions, without hiding behavior changes.

    17k GitHub stars~1.2k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Reviews RTK's Rust code for over-engineering and verbose patterns, applying idioms like iterator chains and early returns while protecting a specific list of constraints from being simplified away.

    83k GitHub stars~1.1k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Over-Engineering Review

    DietrichGebert/ponytail

    Reviews a diff only for unnecessary complexity and lists what to delete or shrink, one numbered line per finding with the location, the cut and its replacement.

    159k GitHub stars~1.3k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Deslop

    millionco/react-doctor

    Simplify and refine recently modified code while preserving functionality.

    15k GitHub stars~1.2k tokensUpdated yesterday
    DevelopmentAuto-check passed

Categories

Questions about Refactor Pass for Simplicity

How do I install Refactor Pass for Simplicity in Claude Code?

Run `npx skills add star-history/star-history --skill refactor-pass -a claude-code`. Or copy the skill folder (.claude/skills/refactor-pass in star-history/star-history) into .claude/skills/refactor-pass in your project. Claude Code loads it when a task matches its description.

How do I install Refactor Pass for Simplicity in Codex?

Run `npx skills add star-history/star-history --skill refactor-pass -a codex`. Or copy the skill folder (.claude/skills/refactor-pass in star-history/star-history) into .agents/skills/refactor-pass in your project. Codex loads it when a task matches its description.

Can I use Refactor Pass for Simplicity in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add star-history/star-history --skill refactor-pass -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/refactor-pass, .gemini/skills/refactor-pass, .github/skills/refactor-pass and .opencode/skills/refactor-pass in your project.

What does Refactor Pass for Simplicity need to run?

SKILL.md names no scripts, command-line tools or credentials: Refactor Pass for Simplicity is instructions for the agent only.

Does Refactor Pass for Simplicity access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Refactor Pass for Simplicity safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Refactor Pass for Simplicity use?

Refactor Pass for Simplicity is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Refactor Pass for Simplicity use?

About 168 tokens (SKILL.md is roughly 672 characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Refactor Pass for Simplicity?

Skills that share tags, products or a category with Refactor Pass for Simplicity: Ponytail (DavidObando/gsharp, 564 stars), Ponytail Lazy Developer Mode (DietrichGebert/ponytail, 159k stars), Code Simplification for ego-lite (citrolabs/ego-lite, 17k stars) and RTK Rust Code Simplifier (rtk-ai/rtk, 83k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Refactor Pass for Simplicity?

star-history (a GitHub organization) maintains it in star-history/star-history, which has 9,572 GitHub stars. The repository was last updated on September 12, 2026.

Source: star-history/star-history on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.