本文へ移動
cccskills
無料GitHub で公開

omh-native-debugging

[omh] Native program crashes or corrupts memory: prepare hypothesis-driven debugging of native binaries and instruct the executor to drive a DAP debugger instead of printf. Use when the user says: native-debugging, native debugging, native binary, segfault, segmentation fault, core dump, stack corruption, memory corruption.

インストール方法を見る

含まれるファイル(2)

  • SKILL.md9.1 KB
  • references/native-debug-loop.md5.0 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Native Debugging

This is a Hermes-native native-debugging workflow skill.

Why This Exists

native-debugging closes OMH's zero-coverage low-level domain by preparing a hypothesis-driven, DAP-first debugging plan for native binaries, while OMH itself continues to execute nothing.

Do Not Use When

  • The failure is a build or CI failure rather than a runtime fault in a binary; use build-failure-triage.
  • The subject is an agent or workflow misbehaving rather than a native binary; use agent-debug.
  • The wrong result, flaky test, or lost update is in application code such as a Python or TypeScript service and needs its root cause reproduced; use app-debugging.
  • The change is Rust source work whose risk is unsafe or UB discipline; use rust.
  • The request is to judge whether a fix is verified rather than to find the fault; use verification-gate.

Examples

Good example:

  • Prompt: This binary segfaults on the third request; help me debug it.
  • Expected behavior: Prepare native_fault_statement/v1, three competing hypotheses with distinguishing observations, and a debugger_session_plan/v1 naming the DAP adapter, breakpoints, and values to read.
  • Why: The request is a runtime fault in a native binary where the plan, not the guess, is what OMH can prepare.

Bad example:

  • Prompt: Add some printfs and tell me it is fixed once the crash stops.
  • Expected behavior: Name the DAP-driven observation plan, and keep reproduction, root cause, and fix as separate not_observed states.
  • Why: A disappearing symptom is not a root cause, and printf-via-rebuild is the fallback rather than the method.

Completion Checklist

  • The fault is stated as an observed symptom with a reproduction command, separate from any assumed cause.
  • At least three hypotheses span distinct axes and each carries its refuting observation.
  • The debugger session plan names the DAP adapter, breakpoints, watchpoints, threads, frames, and values to read.
  • The handoff says the executor drives the debugger and OMH executes nothing.
  • Reproduction, debugger output, root cause, and fix are reported as separate observed or not_observed states.

Recovery Notes

  • If the fault does not reproduce, make reproduction the first hypothesis and plan the observation that would establish it, rather than debugging a fault no one can trigger.
  • If no debug adapter or symbols are available, say so, plan the coarser evidence path, and keep root cause unclaimed instead of upgrading a guess.

Workflow Lane

  • Current lane: Coding handoff (idea-to-deploy, llm-app-dev, cto-loop, deploy-and-monitor, code-review, build-failure-triage, verification-gate, security-safety-review, +28 more) - coding owners, handoffs, review, CI, and merge evidence.
  • If intent belongs to another lane, hand back to oh-my-hermes or name the adjacent workflow.
  • Shared product, routing, compatibility, and evidence rules: omh-routing/references/skill-common-rail.md.

Use When

Use when Hermes should prepare low-level debugging of a native binary, crash, or memory fault: competing hypotheses, the distinguishing observation for each, and a DAP-driven evidence plan for the executor.

Strong routing signals: `native-debugging`, `native debugging`, `native binary`, `segfault`, `segmentation fault`, `core dump`, `stack corruption`, `memory corruption`, `heap corruption`, `use after free`, `null pointer dereference`, `stripped binary`, `disassembly`, `lldb`, `gdb`, `dap debugger`, `breakpoint`, `watchpoint`, `backtrace`, `セグメンテーション違反`, `コアダンプ`, `メモリ破壊`, `ヒープ破壊`, `解放後使用`, `逆アセンブル`, `네이티브 디버깅`, `세그폴트`, `코어 덤프`, `메모리 손상`, `역어셈블`, `중단점`, `段错误`, `核心转储`, `内存破坏`, `释放后使用`, `反汇编`

Catalog Metadata

Category: verification Phase: native-debugging Hermes role: reviewer Quality tier: native-debug-evidence-gated Reasoning demand: standard

Quality bar:

  • State the fault as an observed symptom with its reproduction command before naming any cause.
  • Load references/native-debug-loop.md and follow its hypothesis, observation, and escalation order rather than improvising a search.
  • Write at least three hypotheses on distinct axes, each with the single observation that would refute it and the exact place to read that observation.
  • Plan the debugger session concretely: adapter, breakpoints, watchpoints, threads, frames, and the values read at each stop — the executor should not have to invent the session.
  • Prefer debugger-observed state over added print statements; a rebuild-and-print loop is the fallback, not the method.
  • Keep reproduction, debugger output, root cause, and fix as separate observed states.

Handoff policy:

Keep the fault statement, hypothesis set, distinguishing observations, and the debugger plan in Hermes. Record every breakpoint hit, register or memory read, backtrace, and reproduction only from executor or wrapper observed evidence.

Required inputs:

  • the binary, crash signature, or fault symptom
  • whether source and debug symbols are available
  • platform, architecture, and the reproduction command
  • how reliably the fault reproduces
  • existing crash logs, core dumps, or sanitizer output
  • observed debugger evidence for any resolution claim

Expected outputs:

  • native_fault_statement/v1
  • hypothesis_set/v1 with at least three competing hypotheses
  • distinguishing_observation_plan/v1
  • debugger_session_plan/v1
  • native_debug_handoff/v1
  • observed_debugger_evidence/v1 when observed

Artifact expectations:

  • native_fault_statement/v1 separates the observed symptom from the assumed cause and names the reproduction command
  • hypothesis_set/v1 spans distinct axes — caller-side misuse, callee invariant, memory lifetime, concurrency, build/runtime mismatch — not three phrasings of one guess
  • distinguishing_observation_plan/v1 pairs each hypothesis with the one observation that refutes it, and where to read it
  • debugger_session_plan/v1 names the adapter (lldb or gdb via DAP), the breakpoints and watchpoints, the frames and threads to inspect, and the values to read at each stop
  • native_debug_handoff/v1 states that the executor drives the debugger and OMH executes nothing
  • breakpoint hits, memory and register reads, backtraces, and confirmed reproductions only when observed

Safety rules:

  • Do not claim a reproduction, a breakpoint hit, a read value, a root cause, or a fix from a prepared debugging plan.
  • Instruct the executor to drive a DAP debug adapter — lldb-dap, codelldb, or a gdb adapter — with breakpoints, stepping, and thread and frame inspection, and to reach for print-and-rebuild only when no adapter is available.
  • Require at least three hypotheses on distinct axes before any observation is planned; a single hypothesis makes every reading confirmatory.
  • Never treat a symptom's disappearance as a root cause; an unexplained fix is an open fault.
  • Treat attaching to, patching, or bypassing protections on a binary the user does not own or operate as out of scope.
  • Do not execute binaries, debuggers, or any command from OMH core.

Runtime Evidence

Preferred harness for this skill: coding-handling.

omh runtime record --skill native-debugging --harness coding-handling --status started

Record observed delegation results; otherwise return not_available or not_observed. Prepared OMH routing is not execution, review, CI, merge-readiness, or merge evidence.

  • Treat wrapper memory/context summaries as advisory local context, not proof of opaque Hermes memory reads or changes. Preserve workflow intent and stop conditions; verify before claiming completion. Reply in the user's own words and the host's own voice: its SOUL.md persona owns reply language, tone, speech level, and sentence endings, progress updates included (where it sets no language, use the one the user wrote in), and OMH shapes structure and content only; OMH's record terms (surface, lane, wrapper, handoff, evidence boundary, not_observed) stay in records and tool calls, never in the sentence the user reads unless they ask about one; and when a stop condition or a decision the user owns ends the turn, offer the next action as a question rather than declaring what will not be done.

Use Hermes-native subagent/delegation features when available: native subagents -> Hermes delegation when available, otherwise sequential lanes.

Shared product, compatibility, topology, memory, harness, and execution rules: omh-routing/references/skill-common-rail.md. Load it when applicable; otherwise name an unavailable capability.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Onboard a new model generation or sibling into oh-my-hermes: probe router recognition, research the official contract, write trait-to-counter calibration, place routing in both lanes, price from documented list only, gate machine config on a served route, prove with the gates, close with a benchmark pair. Use when a model family ships a new generation (for example "Fable 5.1 is out", "GLM 5.4 shipped", "onboard new model", "add model to chains").

日本語の概要は準備中です。原文の説明を表示しています。

rlaope/oh-my-hermes3,3282026年10月12日 更新

[omh] Screen-reader or keyboard accessibility gaps: prepare WCAG, keyboard, focus, screen-reader, target-size, and reflow evidence gates for UI surfaces. Use when the user says: accessibility-audit, accessibility audit, a11y audit, a11y architect, wcag audit, wcag 2.2, wcag 2.2 aa, accessibility pass.

日本語の概要は準備中です。原文の説明を表示しています。

rlaope/oh-my-hermes3,3282026年10月12日 更新

[omh] Hermes badges unlocked and achievement progress: achievements observation: summarize hermes-achievements badges, tiers, recent unlocks, and progress from local plugin artifacts. Use when the user says: achievements, achievement, badges, badge, my badges, show achievements, achievement summary, unlocked badges.

日本語の概要は準備中です。原文の説明を表示しています。

rlaope/oh-my-hermes3,3282026年10月12日 更新

[omh] Technical proposal facing adversarial scrutiny: independent perspectives attack a proposal, then distill into a bundle a separate planner consumes. Use when the user says: adversarial-consensus, adversarial planning, adversarial plan review, red team this plan, red-team this plan, red team the proposal, multi-perspective review, multiple perspectives.

日本語の概要は準備中です。原文の説明を表示しています。

rlaope/oh-my-hermes3,3282026年10月12日 更新

[omh] Coordinating several agents or profiles: coordinate multiple Hermes profiles or agents with task, handoff, heartbeat, blocker, and completion states. Use when the user says: agent-board, agent board, kanban, multi-agent, multi agent, multi agent board, multiple hermes agents, multiple hermes profiles.

日本語の概要は準備中です。原文の説明を表示しています。

rlaope/oh-my-hermes3,3282026年10月12日 更新

[omh] Agent is stuck, looping, or drifting: capture a stuck, looping, drifting, or repeatedly failing agent run, diagnose the likely failure pattern, and prepare the smallest safe recovery action. Use when the user says: agent-debug, agent debug, agent debugging, agent introspection, agent self-debug, self-debug, self debugging, looping agent.

日本語の概要は準備中です。原文の説明を表示しています。

rlaope/oh-my-hermes3,3282026年10月12日 更新

rlaope のスキルをすべて見る

このスキルの問題を報告する