Oma debug

From gracefullight/krds · View interactive version

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

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

Use the configured code-intelligence provider to locate files and inspect symbols

or content. 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.

Then run the smallest reproduction command first, establish the causal mechanism, and follow resources/execution-protocol.md for the diagnosis record when an OMA workflow is active. Add the 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/

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.