orch-fix-defect
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.
Skill link
https://github.com/affaan-m/ECC/blob/main/skills/orch-fix-defect/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βFix the bug where the program crashes on an empty response.β
5 new skills a week. 1 minute to read.
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.
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.
- behavior is correct but you want it different β
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
- Run the
orch-pipelineengine with the settings above. - If the root cause is unclear, scope it with
code-explorerbefore the red test; escalate build breaks tobuild-error-resolver//build-fix. - Stop at Gate 1 (only if a plan was produced) and Gate 2 (pre-commit).
- Add
security-reviewerif 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
- #375
- License
- MIT
- Updated
- 10/15/2026
Comments
- β¦
More skills from this repository
accessibility
280kHelps your agent create interfaces that everyone can use. Ensures websites and apps work well for people with disabilities, like those who are blind or have reduced mobility.
agent-architecture-audit
280kMakes your agent check if everything is working correctly. It finds and fixes problems in AI systems, ensuring they perform as expected.
agent-eval
280kHelps your agent compare different AI coding tools. It measures which one is faster, cheaper, and more reliable for specific tasks.
agent-harness-construction
280kMakes your agent better understand how to perform tasks. It optimizes the tools and instructions the agent uses to increase its chances of success.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.