Agent skill

Refactor Pass

by bitsocialnet in bitsocialnet/5chan

Simplify code while preserving behavior when the user requests a refactor or cleanup pass.

GPL-3.0Auto-check passedDevelopment

Install Refactor Pass

skills CLI
$ npx skills add bitsocialnet/5chan --skill refactor-pass -a claude-code

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

GitHub CLI
$ gh skill install bitsocialnet/5chan 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/bitsocialnet/5chan.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/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
134
Token cost
~348 tokens
SKILL.md length
170 words
Files
1
Skills in repo
12
Repo updated
First seen
Licence
GPL-3.0

At a glance

Simplify code while preserving behavior when the user requests a refactor or cleanup pass.

  • Requests a refactor
  • Calls yarn
  • Tasks that involve Refactoring
  • Tasks that involve Code simplification

What it does

Refactor Pass is an agent skill from bitsocialnet/5chan. Simplify code while preserving behavior when the user requests a refactor or cleanup pass.

Its SKILL.md is about 350 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Refactoring and Code simplification. The repository describes itself as: A peer-to-peer 4chan alternative. The licence is GPL-3.0.

When your agent uses it

  • Requests a refactor
  • Tasks that involve Refactoring
  • Tasks that involve Code simplification

Example prompts

  • “/refactor-pass”

What it can do on your machine

Read from SKILL.md and the folder at commit a31f565. 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

    Shell commands in SKILL.md call:

    • yarn

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

  • Network

    No URLs in SKILL.md. Its commands use yarn, which can reach the network depending on how they are called.

    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 loads about 348 tokens when it runs. Until then it costs about 26 tokens; SKILL.md has 170 words of instructions outside code blocks.

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

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 bitsocialnet/5chan at commit a31f565, republished under its GPL-3.0 licence (© bitsocialnet). 170 words, ~348 tokens.

Download SKILL.mdSave it as .claude/skills/refactor-pass/SKILL.md (or your agent's skills folder).
name
refactor-pass
description
Simplify code while preserving behavior when the user requests a refactor or cleanup pass.

Refactor Pass

Identify the requested scope from the conversation and diff; include relevant staged, unstaged, and untracked work. If no scope is supplied, inspect recent task changes without expanding into unrelated code.

Prefer removing dead code, clarifying control flow, or reusing existing helpers over adding abstractions. Read surrounding source and tests before changing a boundary. Check history when the purpose of a guard, workaround, or optimization is unclear; keep it when its necessity cannot be established.

Preserve observable behavior, error contracts, accessibility, and project architecture, including the module boundaries in src/AGENTS.md (yarn boundaries when files or imports move). Remove memoization only when its purpose and impact are understood. Shared/global state belongs in Zustand; local state and straightforward prop passing remain valid. Use Bitsocial hooks for React UI protocol data and derive values during render when appropriate. Preserve intentional non-React integrations such as Electron RPC bootstrap.

Keep the diff focused and avoid new dependencies for routine cleanup. Verify the affected behavior using docs/agent-playbooks/verification.md; report what became simpler and any remaining uncertainty.

© bitsocialnet, GPL-3.0. 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 .agents/skills/refactor-pass of bitsocialnet/5chan.

Open the folder on GitHubat commit a31f565

Compare with similar skills

Refactor Pass 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 compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Refactor Pass this skillbitsocialnet/5chan134—~348Automated safety check: PassGPL-3.0
PonytailDavidObando/gsharp5648 repos~1.7kAutomated safety check: PassMIT
Code Simplification for ego-litecitrolabs/ego-lite17k—~1.2kAutomated safety check: PassMIT
Refactor Pass for Simplicitystar-history/star-history9.6k1 repos~168Automated safety check: PassMIT
RTK Rust Code Simplifierrtk-ai/rtk83k—~1.1kAutomated safety check: PassApache-2.0
Deslopmillionco/react-doctor15k—~1.2kAutomated safety check: PassCustom licence

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
  • 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 14 days ago
    DevelopmentAuto-check passed
  • Refactor Pass for Simplicity

    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…

    9.6k GitHub starsUsed in 1 repo~168 tokens
    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
  • Deslop

    millionco/react-doctor

    Simplify and refine recently modified code while preserving functionality.

    15k GitHub stars~1.2k tokensUpdated today
    DevelopmentAuto-check passed
  • Simplify Codebase

    tt-a1i/simplify-codebase

    Simplification audit or authorized codebase simplification whose stated objective is to remove accidental complexity.

    504 GitHub stars~2.2k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed

More from bitsocialnet/5chan

All 12 skills in this repo
  • Playwright CLI

    bitsocialnet/5chan

    Verify browser behavior or reproduce a web UI issue with the installed Playwright CLI.

    134 GitHub stars~1.1k tokensUpdated yesterday
    Auto-check: notes
  • Inspect Elements

    bitsocialnet/5chan

    Map a visible 5chan DOM node to its React source when file or component attribution is needed.

    134 GitHub stars~727 tokensUpdated yesterday
    Auto-check passed
  • Translate

    bitsocialnet/5chan

    Add, update, or remove 5chan i18next translations when locale changes are requested.

    134 GitHub stars~692 tokensUpdated yesterday
    Auto-check: notes
  • Review React effects and memoization when the user requests an effect audit or a change has unclear synchronization needs.

    134 GitHub stars~474 tokensUpdated yesterday
    Auto-check passed
  • Debug Agent

    bitsocialnet/5chan

    Investigate a reported bug using source, tests, or runtime evidence to establish its cause.

    134 GitHub stars~663 tokensUpdated yesterday
    Auto-check passed
  • Profile Browsing

    bitsocialnet/5chan

    Measure 5chan loading, navigation, interaction timing, and committed React updates using repeatable scenarios.

    134 GitHub stars~507 tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Refactor Pass

What does Refactor Pass do?

Simplify code while preserving behavior when the user requests a refactor or cleanup pass. Refactor Pass is an agent skill from bitsocialnet/5chan. Simplify code while preserving behavior when the user requests a refactor or cleanup pass.

When should I use Refactor Pass?

Refactor Pass fits situations like: requests a refactor; tasks that involve Refactoring; tasks that involve Code simplification.

How do I install Refactor Pass in Claude Code?

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

How do I install Refactor Pass in Codex?

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

Can I use Refactor Pass 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 bitsocialnet/5chan --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 need to run?

Going by SKILL.md and its folder, Refactor Pass needs the command-line tools its instructions call (yarn).

Does Refactor Pass 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 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 use?

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

How many tokens does Refactor Pass use?

About 348 tokens (SKILL.md is roughly 1.4k 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?

Skills that share tags, products or a category with Refactor Pass: Ponytail (DavidObando/gsharp, 564 stars), Code Simplification for ego-lite (citrolabs/ego-lite, 17k stars), Refactor Pass for Simplicity (star-history/star-history, 9.6k 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?

bitsocialnet (a GitHub organization) maintains it in bitsocialnet/5chan, which has 134 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on October 6, 2026.

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