mcpbeat Sign in

Oma Debug Agent Skill

Bug diagnosis and fixing specialist - analyzes errors, identifies root causes, provides fixes, and writes regression tests. Use for bug, debug, error, crash, traceback, exception, and regression work.

12k tokens
context cost
the whole folder, loaded on every use
7
files
instructions only
0
copies elsewhere
how many repositories repackaged it
1201
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/first-fluke/oh-my-agent --skill oma-debug

The instruction itself

26 sections, as written by the author

Debug Agent - Bug Fixing Specialist

Scheduling

Goal

Reproduce, diagnose, minimally fix, and regression-test bugs while preserving scope discipline and documenting root cause.

Intent signature

  • User reports a bug, crash, traceback, exception, error message, performance issue, intermittent failure, or regression.
  • User needs root cause analysis plus a minimal code fix and regression test.

When to use

  • User reports a bug with error messages
  • Something is broken and needs fixing
  • Performance issues or slowdowns
  • Intermittent failures or race conditions
  • Regression bugs

When NOT to use

  • Building new features -> use Frontend/Backend/Mobile agents
  • General code review -> use QA Agent

Expected inputs

  • Error message, failing behavior, reproduction steps, logs, test failure, or affected code path
  • Existing tests, stack traces, environment notes, and suspected regression boundary

Expected outputs

  • Root cause explanation
  • Minimal fix scoped to the failing behavior
  • Regression test or explicit reason it cannot be added
  • Bug documentation under .agents/results/bugs/ when appropriate

Dependencies

  • resources/execution-protocol.md, examples, checklist, common patterns, and debugging checklist
  • Local codebase search and symbol/reference tools
  • Project test, lint, typecheck, and runtime commands

Control-flow features

  • Branches by reproduction success, error class, suspected layer, and verification outcome
  • Reads logs/code/tests and writes code/tests/docs
  • Must search for similar patterns after fixing

Structural Flow

Entry

  • Capture the reported symptom and suspected scope.
  • Reproduce or establish the closest reliable failing signal.
  • Identify affected files, tests, and related patterns.

Scenes

  • PREPARE: Gather symptoms, logs, reproduction path, and verification command.
  • ACQUIRE: Read failing code, tests, references, and similar patterns.
  • REASON: Isolate root cause and reject unsupported hypotheses.
  • ACT: Apply minimal fix and regression test.
  • VERIFY: Re-run failing and related checks.
  • FINALIZE: Document root cause, fix, test, and residual risk.

Transitions

  • If reproduction fails, use logs/tests to establish a weaker but explicit diagnostic signal.
  • If the first fix fails verification, return to root-cause analysis.
  • If similar patterns exist, inspect and patch only affected cases.
  • If the request is actually feature work, route to the relevant implementation skill.

Failure and recovery

  • If environment is missing, document the blocker and provide the closest static diagnosis.
  • If no regression test is feasible, explain why and include manual verification.
  • If fix scope grows, stop and call out the broader design issue.

Exit

  • Success: bug is fixed, regression coverage exists, and checks pass.
  • Partial success: root cause or verification blocker is explicit.

Logical Operations

Actions

| Action | SSL primitive | Evidence |

|--------|---------------|----------|

| Reproduce failure | CALL_TOOL | Test/runtime/log command |

| Search affected code | READ | Code, tests, symbols, references |

| Compare similar patterns | COMPARE | Pattern search |

| Infer root cause | INFER | Diagnostic reasoning |

| Write minimal fix | WRITE | Code patch |

| Write regression test | WRITE | Test patch |

| Verify behavior | VALIDATE | Tests/checks |

| Report result | NOTIFY | Root-cause summary |

Tools and instruments

  • Project test, lint, typecheck, runtime, and logging commands
  • Serena MCP symbol/reference/pattern search when available
  • Debugging checklist and bug report template

Canonical workflow path

rg "<error-message-or-symbol>"
rg --files

Then run the smallest reproduction command first, add a regression test, and re-run the failing check plus related tests.

Resource scope

| Scope | Resource target |

|-------|-----------------|

| CODEBASE | Failing source, tests, and related patterns |

| LOCAL_FS | Bug reports and result artifacts |

| PROCESS | Reproduction and verification commands |

| MEMORY | Hypotheses, root-cause notes, verification evidence |

Preconditions

  • A bug signal, symptom, or failing behavior is available.
  • Relevant code and verification path can be inspected or the blocker is stated.

Effects and side effects

  • Mutates source/tests only as needed for the fix.
  • May create bug documentation under .agents/results/bugs/.

Guardrails

  • Reproduce first, then diagnose - never guess at fixes
  • Identify root cause, not just symptoms
  • Minimal fix: change only what's necessary
  • Every fix gets a regression test
  • Search for similar patterns elsewhere after fixing
  • Document in .agents/results/bugs/

Serena MCP

  • find_symbol("functionName"): Locate the function
  • find_referencing_symbols("Component"): Find all usages
  • search_for_pattern("error pattern"): Find similar issues

References

Follow resources/execution-protocol.md step by step.

Before submitting, run resources/checklist.md.

Vendor-specific execution protocols are injected automatically by oma agent:spawn.

Source files live under ../_shared/runtime/execution-protocols/{vendor}.md.

  • Execution steps: resources/execution-protocol.md
  • Checklist (pre-submit self-verification): resources/checklist.md
  • Error recovery: resources/error-playbook.md
  • Bug report template: resources/bug-report-template.md
  • Common patterns: resources/common-patterns.md
  • Debugging checklist (investigation guide, used during Steps 1-2): resources/debugging-checklist.md
  • Context loading: ../_shared/core/context-loading.md
  • Context budget: ../_shared/core/context-budget.md
  • Lessons learned: ../_shared/core/lessons-learned.md
  • Observability handoff: ../oma-observability/SKILL.md §Integrations — traces/logs by trace_id, 6-dim forensics

Other skills for the same job

different authors, same section of the catalogue
Finishing A Development Branch
by ZhanlinCui
×7

Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup

1k tokens
Github Release Management
by ComeOnOliver
×3

Comprehensive GitHub release orchestration with AI swarm coordination for automated versioning, testing, deployment, and rollback management

10k tokens
Migrate To Shoehorn
by mxyhi
×2

Migrate test files from `as` type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace `as` in tests, or needs partial test data.

965 tokens
Bun Development
by ComeOnOliver
×2

Modern JavaScript/TypeScript development with Bun runtime. Covers package management, bundling, testing, and migration from Node.js. Use when working with Bun, optimizing JS/TS development speed, or migrating from Node.js to Bun.

8k tokens
Framework Migration Deps Upgrade
by ComeOnOliver
×2

You are a dependency management expert specializing in safe, incremental upgrades of project dependencies. Plan and execute dependency updates with minimal risk, proper testing, and clear migration pa

8k tokens
Debugging Strategies
by ComeOnOliver
×2

Master systematic debugging techniques, profiling tools, and root cause analysis to efficiently track down bugs across any codebase or technology stack. Use when investigating bugs, performance issues, or unexpected behavior.

6k tokens
Backend Dev Guidelines
by ComeOnOliver
×2

Opinionated backend development standards for Node.js + Express + TypeScript microservices. Covers layered architecture, BaseController pattern, dependency injection, Prisma repositories, Zod validation, unifiedConfig, Sentry error tracking, async safety, and testing discipline.

36k tokens
Javascript Typescript Jest
by github
vendor ×1

Best practices for writing JavaScript/TypeScript tests using Jest, including mocking strategies, test structure, and common patterns.

558 tokens

How to use it

Copy the folder

Take first-fluke/oma-debug from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.