Oma debug

From gracefullight/docusaurus-plugins · View interactive version

Oma debug is an AI agent skill from the GitHub repository gracefullight/docusaurus-plugins. 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.

How to use this skill

Skill file

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

When to use

When NOT to use

Expected inputs

Expected outputs

Dependencies

Control-flow features

Structural Flow

Entry

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

Scenes

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

Transitions

Failure and recovery

Exit

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

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

Effects and side effects

Guardrails

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

Serena MCP

References

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

See resources/examples.md for input/output examples.

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.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.