Oma debug

From first-fluke/oh-my-agent · View interactive version

Oma debug is an AI agent skill from the GitHub repository first-fluke/oh-my-agent. Diagnose a reproducible failure, fix its cause, and verify the regression. Use for crashes, incorrect behavior, and failing tests.

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

Structural Flow

Transitions

Failure and recovery

Exit

Logical Operations

Canonical workflow path

  1. Capture the reported symptom, logs, suspected scope, reproduction path, and verification command.
  2. Run the smallest reproduction command first (a test, runtime, or log command), or establish the closest reliable failing signal.
  3. Locate files and inspect symbols or content with the configured code-intelligence provider. For Serena, use find_file, search_for_pattern, get_symbols_overview, and find_symbol. Native search is limited to the provider exclusions and non-code paths permitted by the project's search policy.
  4. Read the failing code, affected tests, references, and similar patterns.
  5. Establish the causal mechanism: isolate the root cause and reject unsupported hypotheses. Follow resources/execution-protocol.md for the diagnosis record when an OMA workflow is active.
  6. Add the regression test, apply the minimal fix, and re-run the regression test with the original failing check (RED before the fix, GREEN after). Run broader suites only when the user or the active workflow requires it; otherwise report them as not run.
  7. Document the root cause, fix, test, and residual risk.

Resource scope and effects

Reads logs, the failing source, tests, and related patterns; edits source and tests only as needed for the fix. Runs reproduction and verification commands. May create bug reports and result artifacts under .agents/results/bugs/.

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/

Code intelligence

Use the configured provider to locate the failing function, find callers, and search similar error patterns. Native search and scoped reads are supported fallbacks; see the shared capability contract.

References

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.