affaan-m avatar

Orch Refine Code Skill

Installs
7.3k
Repo stars
316k
Repo updated
Dec 1, 2026

TL;DR

orch-refine-code is a Claude Code skill that orchestrates a behavior-preserving refactor, keeping tests green while restructuring, then review and gated commit as refactor:.

Install if

Improving structure (extract modules, remove duplication, kill dead code) without changing behavior.

Skip if

Any change where behavior is meant to change (orch-change-feature or orch-fix-defect).

npx skills add https://github.com/affaan-m/ECC --skill orch-refine-code
On this page
  1. What orch-refine-code covers
  2. orch-refine-code by the numbers
  3. What does the Orch Refine Code skill produce?
  4. What files ship with orch-refine-code?
  5. Which skills are related to orch-refine-code?
  6. What are the Orch Refine Code skill forks?
  7. Orch Refine Code skill FAQ
  8. More in this repo

What orch-refine-code covers

  • Orchestrates a behavior-preserving refactor while keeping the test suite green throughout
  • Confirms tests are green (or adds characterization tests) before restructuring in small steps
  • Delegates dead-code and duplication sweeps to the refactor-cleaner agent and commits as refactor:

orch-refine-code by the numbers

All-time installs7,292skills.sh registry
Repo stars★ 316kGitHub
Repo last updatedDecember 1, 2026GitHub
Repositoryaffaan-m/ECC ↗

Data as of Dec 4, 2026 (Skillselion catalog sync)

  • Phase mask 0-2-4-5-6
  • 2 human gates

What can the orch-refine-code skill do in Claude Code?

Capabilities
agent orchestration · refactoring · dead code removal · code review
Works with
github
Use cases
orchestration · refactoring · code review
From the docs

What orch-refine-code says it does

Orchestrate a behavior-preserving refactor — confirm tests are green, restructure without changing behavior, keep tests green, review, and gated commit.
SKILL.md
Same behavior, **better structure**: extract modules, remove duplication, kill dead code, reduce nesting, rename for clarity.
SKILL.md
Commit as `refactor:` — the diff must be behavior-neutral.
SKILL.md

What does the Orch Refine Code skill produce?

A behavior-neutral restructure with tests green throughout, reviewed and committed as a refactor: commit.

  • Restructure plan
  • Behavior-neutral refactor with tests green
  • Reviewed refactor: commit

What files ship with orch-refine-code?

SKILL.mdMarkdownGitHub ↗

orch-refine-code

Actor · action · target: orch · refine · code. Thin wrapper over the shared engine in `orch-pipeline`.

When to Use

  • Same behavior, better structure: extract modules, remove duplication, kill dead code, reduce nesting, rename for clarity.
  • Distinguish from siblings: if behavior is meant to change at all, this is the wrong skill (orch-change-feature / orch-fix-defect).

Operation settings

  • Default size floor: standard — restructures touch multiple files.
  • Phase mask: 0 → 2 (plan the restructure) → 4 (keep green) → 5 → 6. No new behavior tests are written — the existing suite is the safety net.
  • First move (phase 4): confirm the relevant tests exist and are green before touching code; if coverage is thin, add characterization tests first. Then restructure in small steps, re-running tests after each.

How It Works

  1. Run the orch-pipeline engine with the settings above.
  2. For dead-code / duplication sweeps, delegate to the refactor-cleaner agent (it runs knip / depcheck / ts-prune and removes safely).
  3. Stop at Gate 1 (restructure plan) and Gate 2 (pre-commit).
  4. Commit as refactor: — the diff must be behavior-neutral.

Example

orch-refine-code: extract the NWS HTTP client out of poller.py
→ confirm tests green → plan extraction  [GATE 1: approve]
→ move in small steps, tests green throughout → code-review
→ commit refactor:  [GATE 2: confirm]

Which skills are related to orch-refine-code?

What are the Orch Refine Code skill forks?

Orch Refine Code has 1 known copy in the catalog totaling 1.1k installs. They canonicalize to this original listing.

Orch Refine Code skill FAQ

Who is the Orch Refine Code skill for?

Improving structure (extract modules, remove duplication, kill dead code) without changing behavior. Skip if: Any change where behavior is meant to change (orch-change-feature or orch-fix-defect).

When should I use orch-refine-code?

You want the same behavior with better structure: extract modules, remove duplication, kill dead code, reduce nesting, or rename for clarity.

What is the first move?

Confirm the relevant tests exist and are green before touching code, adding characterization tests first if coverage is thin.

How does the diff look?

It commits as refactor: and the diff must be behavior-neutral.

Add a orch-refine-code badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Get the embed code
AI & Agent Buildingagentsautomation

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.