Skip to content
Skillpedia
Deploy & cloud (DevOps)280k · #250

orch-fix-defect

Makes your agent fix bugs in software. It reproduces the problem, fixes the code, and ensures the bug doesn't reappear.

What it does

This tool helps fix bugs in computer programs. It ensures the bug is reproduced as a failing test, then fixes it, and finally reviews and saves the fix.

When to use it

  • ✓When a program isn't working as expected (errors, crashes, wrong output).
  • ✓When a previously working behavior stops functioning.
  • ✓When you need to ensure a specific bug doesn't happen again.

Example of what to ask your AI

“Fix the bug where the program crashes on an empty response.”

Want more? Open the sections below.

How to use

The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.

Skill link

https://github.com/affaan-m/ECC/blob/main/skills/orch-fix-defect/SKILL.md

Ready-to-paste message

Use this skill to help me: https://github.com/affaan-m/ECC/blob/main/skills/orch-fix-defect/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
How it works

The tool first creates a test that demonstrates the bug. Then, it corrects the code until the test passes. Finally, the fix is reviewed and saved.

Installation

Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.

In the terminal (Claude Code, Codex, Cursor), in your project folder:

npx skills add affaan-m/ECC --skill orch-fix-defect

Or download just the file:

curl -L https://raw.githubusercontent.com/affaan-m/ECC/main/skills/orch-fix-defect/SKILL.md -o SKILL.md
Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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

orch-fix-defect: poller crashes on empty NWS response
→ write failing test reproducing the crash → fix to green
→ code-review → commit  [GATE 2: confirm]   (commit: fix:)
FAQ

What's the difference between fixing a bug and changing a feature?

Fixing a bug is correcting something that is broken. Changing a feature is altering something that already works but you want it to behave differently.

What if the cause of the bug isn't clear?

The tool can help investigate the cause before attempting to fix the bug.

When is the fix saved?

The fix is only saved after a review and confirmation, ensuring the problem is resolved correctly.

Details

Original description by the author

Orchestrate fixing a bug — reproduce it as a failing regression test, fix to green, review, and gated commit — by delegating each phase to the matching ECC agent. Use when existing behavior is broken or wrong.

repo: affaan-m/ECC

Popularity

GitHub stars
280k
Ranking position
#250
License
MIT
Updated
10/15/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills