
Orch Refine Code
A behavior-preserving refactor orchestrator that won't let you slip in feature changes by accident. It confirms your tests are green before touching anything, plans the restructure at a gate, then walks through extraction or cleanup in small steps while re-running tests after each move. The phase mask skips new behavior tests entirely because the existing suite is your safety net. Good for pulling modules apart, killing dead code, or flattening nested logic when you need the diff to stay neutral. Commits land as `refactor:` and you get two manual gates to catch yourself before things drift.
- skills.sh installs
- 4.8K
- GitHub stars
- 300.3K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add affaan-m/ecc --skill orch-refine-code --agent claude-codeInstalls into .claude/skills of the current project.
Files
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
Sponsors
Details
- Repository
- github.com/affaan-m/ecc
- Categories
- Git & Pull Requests, Code Review & Quality, Automation & Workflows
- First seen
- Jul 14, 2026
More from affaan-m/ecc
All 263- Orch Fix Defect4.8K
- Orch Change Feature4.8K
- Literature Review3.9K
- Everything Claude Code3.6K
- Scholar Evaluation3.4K
- Pubmed Database3.3K
- Gget3.2K
- Uspto Database3.2K
- Motion Ui2.8K
- Everything Claude Code Conventions1.6K
- Ito Market Intelligence1.5K
- Ito Trade Planner1.5K
- Ito Basket Compare1.5K
- Ito Data Atlas Agent1.5K
- Agent Harness Construction1.1K
- Autonomous Agent Harness1.1K
- Continuous Learning V21.1K
- Video Editing8.6K
- Docker Patterns7.7K
- Security Review7.6K
- Rust Testing7.4K
- Backend Patterns7.2K
- Frontend Patterns7.1K
- Coding Standards7K