跳到正文
Skillpedia
通用编程5.1k · #15074

omh-app-debugging

它能做什么

它先复现问题,列出可能的原因,用成本最低的观察方式逐一验证,然后只修复已被证实的原因。适合追查给出错误数值或时常失败的缺陷的开发者。

适用场景

  • ✓当你的应用给出了错误的数值,而你不知道原因时。
  • ✓当某个测试只是偶尔失败时。
  • ✓当你需要在编写修复之前找出缺陷的根本原因时。

技能链接

https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-app-debugging/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-app-debugging/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我们的 CI 中有一个测试每五次就失败一次。请先查明原因,再改任何东西。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会先搭建复现环境,并记录结果。它会提出相互竞争的解释,逐一检查,只有在原因被证实之后,才准备修复。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

App Debugging

This is an OMH app-debugging workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).

Why This Exists

app-debugging exists because a wrong result in application code had no owner: native-debugging covers native binaries, build-failure-triage covers red builds, and agent-debug covers agent misbehaviour, so the most common debugging request dispatched straight to an execution lane that skipped the diagnosis.

First Steps

  • Ask for, or plan, the one command that shows the wrong behaviour, and record its observed output before naming a cause.
  • Refuse to prepare a fix while the reproduction reads not_observed; plan the observation that would establish it instead.

Do Not Use When

  • The fault is a crash, memory corruption, or core dump in a compiled native binary that needs a debugger session; use omh-native-debugging.
  • The build, compile, or CI job fails the same way on every run; use omh-build-failure-triage.
  • The subject is an agent or workflow run that misbehaved rather than the application code; use omh-agent-debug.
  • The cause is already demonstrated and the request is to judge whether the fix is proven; use omh-verification-gate.

Examples

Good example:

  • Prompt: a test fails one run in five in CI, how do I find out why
  • Expected behavior: Prepare reproduction_record/v1 with the loop that measures the failure rate, competing_hypotheses/v1 across ordering, shared state, timing, and environment, and the cheapest observation that splits them; no fix yet.
  • Why: The failure is intermittent, so the first deliverable is a measured reproduction rather than a patch.

Bad example:

  • Prompt: add a sleep before the assertion so the flaky test passes
  • Expected behavior: Record the sleep as a symptom mask, keep root cause open, and plan the observation that names the race.
  • Why: A timing change that hides the failure leaves the fault in place and removes the reproduction.

Completion Checklist

  • The reproduction names its command, observed output, expected output, and hit rate, and reads observed before any fix is prepared.
  • At least three hypotheses on distinct axes were written before the first observation was chosen.
  • Each observation records which hypotheses its result eliminated.
  • The root cause cites the demonstrating observation and the observation that ruled out each rival.
  • The fix handoff carries the reproduction as a regression test that fails before and passes after, or records regression_seam: none_correct with the reason, with the reproduction loop observed red before the fix and green after it.
  • An observed search for the session's probe tag returns nothing, and every throwaway harness file is deleted or listed.

Recovery Notes

  • If the fault does not reproduce, make reproduction the first hypothesis and plan the loop, seed, or ordering that would establish it; when no test reaches the fault, choose a loop from the method reference's loop table; if none can be built, the record stays not_observed with each attempt and what stopped it, and the request to the user is for an environment, a redacted capture, or permission for tagged temporary instrumentation.
  • If every hypothesis is eliminated, record that, widen the axes, and keep root cause unclaimed rather than promoting the last survivor.

When to Use

Use when application code -- a Python, TypeScript, Go, or JVM service, library, or test -- behaves wrongly and the cause is unknown: a wrong value, an intermittent or order-dependent test, a race or lost update, or a bug that moves when observed. The work is a demonstrated root cause: an observed reproduction, competing hypotheses, the cheapest observation that separates them, and only then a fix.

Strong routing signals: `app-debugging`, `app debugging`, `application debugging`, `root cause`, `root-cause`, `find the root cause`, `root cause analysis`, `flaky test`, `flaky tests`, `test is flaky`, `intermittent test failure`, `fails intermittently`, `fails one run in`, `passes locally but fails in ci`, `heisenbug`, `bug disappears`, `disappears when i add a print`, `race condition`, `lost update`, `update is lost`, `wrong return value`, `returns the wrong value`, `reproduce the bug`, `minimal reproduction`, `почини баг`, `найди баг`, `приложение падает с ошибкой`, `флаки тест`, `исправь баг`, `баг в коде`, `исправить баг`, `найди ошибку в коде`, `отладь`

Catalog Metadata

Category: `

常见问题

它会马上修复缺陷吗?

在原因被复现并得到证明之前,不会。

这是针对原生程序崩溃的吗?

不是。编译后的二进制程序崩溃由单独的原生调试技能负责。

这是针对构建失败的吗?

不是。构建失败和 CI 检查由单独的构建失败排查技能负责。

详情

作者的原始描述

[omh] Application code misbehaves -- a wrong value, a flaky test, a lost update: reproduce it first, form competing hypotheses, discriminate them with the cheapest observation, and only then fix the demonstrated root cause. Use when the user says: app-debugging, app debugging, application debugging, root cause, root-cause, find the root cause, root cause analysis, flaky test.

repo: rlaope/oh-my-hermes

热度

GitHub 星标
5.1k
排名
#15074
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能