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-codeTry it first through the Skillselion MCP - nothing to install, nothing on disk.
1. Add the remote connector:
claude mcp add --transport http skillselion https://mcp.skillselion.com/mcp2. Ask your agent:
Use Skillselion load_skill to load skill:affaan-m/ecc#orch-refine-code (Orch Refine Code) and follow it.Try it first through the Skillselion MCP - nothing to install, nothing on disk.
1. Add this URL as a custom connector (Claude.ai, ChatGPT or Cursor):
https://mcp.skillselion.com/mcp2. Ask your agent:
Use Skillselion load_skill to load skill:affaan-m/ecc#orch-refine-code (Orch Refine Code) and follow it.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 installs | 7,292 | skills.sh registry |
|---|---|---|
| Repo stars | ★ 316k | GitHub |
| Repo last updated | December 1, 2026 | GitHub |
| Repository | affaan-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
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.
Same behavior, **better structure**: extract modules, remove duplication, kill dead code, reduce nesting, rename for clarity.
Commit as `refactor:` — the diff must be behavior-neutral.
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?
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
- Run the
orch-pipelineengine with the settings above. - For dead-code / duplication sweeps, delegate to the
refactor-cleaneragent (it runs knip / depcheck / ts-prune and removes safely). - Stop at Gate 1 (restructure plan) and Gate 2 (pre-commit).
- 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.
- affaan-m - 1.1k installs
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.