Agent skill

Refactor

by greenfield-inc in greenfield-inc/Pane

Post-PR refactor pass. An agent skill from greenfield-inc/Pane.

Custom licenceAuto-check passedDevelopment

Install Refactor

skills CLI
$ npx skills add greenfield-inc/Pane --skill refactor -a claude-code

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

GitHub CLI
$ gh skill install greenfield-inc/Pane refactor --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/greenfield-inc/Pane.git skills-src && mkdir -p .claude/skills && cp -r skills-src/main/src/services/paneChatBundle/skills/refactor .claude/skills/refactor && 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
GitHub stars
519
Token cost
~2.3k tokens
SKILL.md length
1,296 words
Files
2 (incl. references)
Skills in repo
35
Repo updated
First seen
Licence
Custom licence

At a glance

Post-PR refactor pass. An agent skill from greenfield-inc/Pane.

  • Works in 5 steps: Size the change → Fan out, independently → Merge once → …
  • Asks to refactor
  • SKILL.md covers Why the analyses run blind, Process and Rules
  • Calls git

What it does

Refactor is an agent skill from greenfield-inc/Pane. Post-PR refactor pass. Sizes the diff against the remote default branch, fans out refactor-simple (and refactor-deep on large changes) as fresh subagents that run blind to each other, merges their plans once with max-severity rules, shows the merged report, and hands it to refactor-apply on the user's word. Use after a PR is open, or whenever the user asks to refactor or clean up the branch.

Its SKILL.md is about 2.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/specialist-review.md`).

It sits in Development, covering Refactoring and Subagents. The repository describes itself as: Terminal-first, open-source AI agent manager for any CLI agent (agent agnostic), any OS (mac, windows, linux). The Open-Source Agentic Development Environment for running…

When your agent uses it

  • Asks to refactor
  • Clean up the branch

Example prompts

  • “/refactor”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Size the change
  2. Fan out, independently
  3. Merge once
  4. Stop for the user
  5. Apply, then prove it

What it can do on your machine

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

    • git

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

  • Network

    No URLs in SKILL.md. Its commands use git, 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 loads about 2.3k tokens when it runs, and up to ~3k if it reads all its reference files. Until then it costs about 101 tokens; SKILL.md has 1,296 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~101
When it runs · the whole SKILL.md, loaded when a task matches
~2.3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3k

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

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 1,296 words (~2,306 tokens).

“One command for the post-PR quality pass. It sizes the change, runs the right analyses independently, merges once, stops for the user, then applies. It is a manual post-PR quality pass. It changes the head, so run it before QA…”

— opening of SKILL.md by greenfield-inc, Custom licence
name
refactor
argument-hint
[--size=small|large] [--plan-only]

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file (references) in main/src/services/paneChatBundle/skills/refactor of greenfield-inc/Pane.

  • SKILL.md
  • references/specialist-review.md

Open the folder on GitHubat commit b08541d

Compare with similar skills

Refactor 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 compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Refactor this skillgreenfield-inc/Pane519—~2.3kAutomated safety check: PassCustom licence
Auto DevflowHuangPuStar/FenixAgent552—~3kAutomated safety check: PassApache-2.0
Qwen Code ClawQwenLM/qwen-code28k—~2kAutomated safety check: PassApache-2.0
Workflowbrianlovin/agent-config3761 repos~687Automated safety check: PassNone
Review And Simplify ChangesDimillian/Skills4k—~2kAutomated safety check: PassMIT
Code SimplifierOpenHands/extensions158—~1.3kAutomated safety check: PassMIT

Similar skills

  • Auto Devflow

    HuangPuStar/FenixAgent

    A skill your agent uses when starting an issue, bugfix, feature, or refactor that should be driven by multiple coordinated subagents: explore → plan → code → review, with the main agent acting as…

    552 GitHub stars~3k tokensUpdated today
    DevelopmentAuto-check passed
  • Qwen Code Claw

    QwenLM/qwen-code

    Hands coding work such as codebase questions, bug fixes, refactors and PR reviews to the Qwen Code CLI, driven through acpx instead of scraped terminal sessions.

    28k GitHub stars~2k tokensUpdated today
    DevelopmentAuto-check passed
  • Workflow

    brianlovin/agent-config

    Workflow orchestration for complex coding tasks. An agent skill from brianlovin/agent-config.

    376 GitHub starsUsed in 1 repo~687 tokens
    DevelopmentAuto-check passed
  • Review a git diff or explicit file scope for reuse, code quality, efficiency, clarity, and standards issues, then optionally apply safe Codex-driven fixes.

    4k GitHub stars~2k tokensUpdated 6 mo ago
    DevelopmentAuto-check passed
  • Code Simplifier

    OpenHands/extensions

    Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality.

    158 GitHub stars~1.3k tokensUpdated today
    DevelopmentAuto-check passed
  • Simplify All

    tobihagemann/turbo

    Run the code and documentation simplification passes together over one scope, launching every review sub-agent concurrently before applying a single round of fixes.

    407 GitHub stars~357 tokensUpdated yesterday
    DevelopmentAuto-check passed

More from greenfield-inc/Pane

All 35 skills in this repo
  • Page

    greenfield-inc/Pane

    House standard for any HTML page written for a person. An agent skill from greenfield-inc/Pane.

    519 GitHub stars~759 tokensUpdated today
    Auto-check passed
  • Session Trace

    greenfield-inc/Pane

    Publish an agent session as a readable trace page in Grain, with the story, key moments, every request and step on a timeline, subagents, and the pull requests it opened.

    519 GitHub stars~836 tokensUpdated today
    Auto-check passed
  • Discussion

    greenfield-inc/Pane

    Have an interactive discussion about a topic, approach, feature, or bug without making code changes.

    519 GitHub stars~666 tokensUpdated today
    Auto-check passed
  • Excalidraw PR Diagrams

    greenfield-inc/Pane

    Create Excalidraw diagram JSON files and PR visual overviews that make visual arguments.

    519 GitHub stars~9.4k tokensUpdated today
    Auto-check passed
  • HTML Explainer

    greenfield-inc/Pane

    The house standard for any skill that renders an HTML page for a person to read, covering design tokens, typography, components, diagrams, and quality gates so every generated page shares one calm…

    519 GitHub stars~1.6k tokensUpdated today
    Auto-check: notes
  • Pane Work

    greenfield-inc/Pane

    Answer questions about the user's own work in Pane, read-only.

    519 GitHub stars~1.8k tokensUpdated today
    Auto-check passed

Categories

Questions about Refactor

What does Refactor do?

Post-PR refactor pass. An agent skill from greenfield-inc/Pane. Refactor is an agent skill from greenfield-inc/Pane. Post-PR refactor pass.

When should I use Refactor?

Refactor fits situations like: asks to refactor; clean up the branch.

How do I install Refactor in Claude Code?

Run `npx skills add greenfield-inc/Pane --skill refactor -a claude-code`. Or copy the skill folder (main/src/services/paneChatBundle/skills/refactor in greenfield-inc/Pane) into .claude/skills/refactor in your project. Claude Code loads it when a task matches its description.

How do I install Refactor in Codex?

Run `npx skills add greenfield-inc/Pane --skill refactor -a codex`. Or copy the skill folder (main/src/services/paneChatBundle/skills/refactor in greenfield-inc/Pane) into .agents/skills/refactor in your project. Codex loads it when a task matches its description.

Can I use Refactor 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 greenfield-inc/Pane --skill refactor -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, .gemini/skills/refactor, .github/skills/refactor and .opencode/skills/refactor in your project.

What does Refactor need to run?

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

Does Refactor access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Refactor 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 use?

Refactor has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Refactor use?

About 2.3k tokens (SKILL.md is roughly 9.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 697 tokens, read only when the agent opens those files.

What are the alternatives to Refactor?

Skills that share tags, products or a category with Refactor: Auto Devflow (HuangPuStar/FenixAgent, 552 stars), Qwen Code Claw (QwenLM/qwen-code, 28k stars), Workflow (brianlovin/agent-config, 376 stars) and Review And Simplify Changes (Dimillian/Skills, 4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Refactor?

greenfield-inc (a GitHub organization) maintains it in greenfield-inc/Pane, which has 519 GitHub stars. The repository holds 35 skills in this directory. The repository was last updated on October 7, 2026.

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