Skip to content
affaan-m avatar

Orch Fix Defect

Structured bug-fixing workflow that reproduces the defect as a failing regression test before fixing it.

CCM score
69 of 100
skills.sh installs
6.8K
GitHub stars
312.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the defect-fix flow: scope root cause if unclear, failing regression test, fix to green, review, and commit
  • Delegates each phase to matching ECC agents, including code-explorer, build-error-resolver, code-review, and security-reviewer
  • Enforces a reproduce-first rule so the bug is proven by a new failing test before any code change
  • Stops at Gate 1 when a plan was produced and at Gate 2 before commit for user confirmation

Install

$ npx -y skills add affaan-m/ecc --skill orch-fix-defect -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

orch-fix-defect

Actor · action · target: orch · fix · defect. Thin wrapper over the shared engine in orch-pipeline.

When to Use

  • Something is broken: wrong output, an error, a crash, a regression.
  • Distinguish from siblings:
    • behavior is correct but you want it different → orch-change-feature.
    • the capability does not exist yet → orch-add-feature.

Operation settings

  • Default size floor: small (often trivial).
  • Phase mask: 0 → (light 2 only if root cause is non-obvious or standard+) → 4 → 5 → 6. Research (1) is usually skipped.
  • First move (phase 4): reproduce the bug as a new failing test (regression test), then fix until it goes green. Proving the bug exists first is what separates a fix from a tweak.

How It Works

  1. Run the orch-pipeline engine with the settings above.
  2. If the root cause is unclear, scope it with code-explorer before the red test; escalate build breaks to build-error-resolver / /build-fix.
  3. Stop at Gate 1 (only if a plan was produced) and Gate 2 (pre-commit).
  4. Add security-reviewer if the defect sits in a security-sensitive path.

Example

Details

Repository
github.com/affaan-m/ecc
Categories
Debugging, Testing & QA, Agent Workflow & Planning
First seen
Jul 14, 2026

Questions

What does the orch-fix-defect skill do?

It orchestrates fixing a bug by first reproducing it as a new failing regression test, then fixing the code until that test passes. Each phase is delegated to the matching ECC agent, ending with a review and a gated commit. It is meant for cases where existing behavior is broken or wrong.

How do I install the orch-fix-defect skill?

Run npx -y skills add affaan-m/ecc --skill orch-fix-defect -y in your project. Once installed, the agent can take a broken behavior, write a failing test that reproduces it, and fix it to green. It can also escalate build breaks to the build-error-resolver agent.

When should I use orch-fix-defect instead of orch-change-feature or orch-add-feature?

Use it when something is broken, such as wrong output, an error, a crash, or a regression. If the behavior is correct but you want it different, use orch-change-feature. If the capability does not exist yet, use orch-add-feature.

Where does orch-fix-defect rank among debugging skills?

It is in the Debugging category on Claude Marketplaces and ranks in the top 50 there. Other skills in the category include diagnosing-bugs, safe-debug, and systematic-debugging. This skill stands out by writing a failing regression test before any fix.

More from affaan-m/ecc

All 257

Similar to Orch Fix Defect

More Debugging