Skip to content
MCP Servers
Skill

/crash-triage

Find out why a native Linux program crashed, from its core dump and the binary, with REA, and turn that into a root cause and a bug report. Use when the user has a core file (./core, coredumpctl, a crash artifact from CI or production) or a segfault, abort, SIGFPE, SIGBUS or

From plugin
hermes-official-plugins
73916 skills

Claude Code

$ npx -y skills add NousResearch/hermes-official-plugins --skill crash-triage --agent claude-code

SKILL.md

crash-triage.SKILL.md
name: crash-triage
description: Find out why a native Linux program crashed, from its core dump and the binary, with REA, and turn that into a root cause and a bug report. Use when the user has a core file (./core, coredumpctl, a crash artifact from CI or production) or a segfault, abort, SIGFPE, SIGBUS or SIGILL in a C, C++, Rust, Go or other native program, and asks why it died. Works on stripped binaries with no source (functions named from unwind tables, then a walk back from the crashing function to its caller). Read-only - never runs the program.
metadata:
  version: "2"

<!-- Workflow adapted for Hermes Agent from crashlens (https://github.com/mingleiw/crashlens, MIT). Uses REA's recorded-crash and binary-layout tools from this plugin. -->

Crash triage

Goal: from a core dump and the exact binary that produced it, say **where** it died (the first frame in the user's code), **why** (the crash type, with a confidence level), and **what to fix**, with every claim tied to evidence. The program is never executed: REA and gdb only read the files.

**Do not run the crashed program, even to reproduce or confirm the crash, and even when asked to "reproduce it".** Such a request is not approval of a specific command: the binary may touch production data, the network or the machine it runs on. Instead, finish the diagnosis from the core, then show the exact command, input and environment you would use and wait for the user to approve that command. Hermes does not prompt before terminal commands (and a one-shot run approves everything), so this rule is the only safeguard. In an unattended run, never run it: report the command that would reproduce the crash.

REA's tools are behind Hermes' tool search, as described in the `reverse-engineer-anything` skill: find them with `tool_search` (for example `rea recorded crash`, `rea binary layout`), load the schema with `tool_describe`, and call them with `tool_call`. If a tool is missing or a provider is unavailable, follow that skill's connection and recovery guide.

1. Collect the inputs

  • **The core.** `./core` when `/proc/sys/kernel/core_pattern` is `core`;

`coredumpctl list` then `coredumpctl dump <pid> -o core` on systemd hosts; otherwise the path the crash reporter or CI artifact gives.

  • **The exact binary that crashed.** A rebuilt binary gives wrong function

names. Step 3's helper compares the binary's GNU build ID with the one in the core's copy of its headers (`build_id.match`). On `false` it places no addresses in the binary: stop and ask for the right build. A copy saved under another name is still found, by build ID (`mapped_as`).

  • Optional: the program's log (what it was doing), the source checkout, and gdb.

`inspect_recorded_crash` and `inspect_binary_layout` need the caller-supplied pwntools Python in `REA_PWNTOOLS_PYTHON` (pwntools 4.15.0, pyelftools 0.33, Unicorn 2.1.2). REA never installs it, and neither should you without asking. Hermes passes MCP servers only a small set of environment variables, so the user sets it in the Hermes profile's `.env` (`~/.hermes/.env`), not just in a shell. If REA reports `provider_unavailable`, that is the usual cause: say so, and continue with the helper and gdb.

2. Read what the crash recorded

Call `inspect_recorded_crash` with `{"path": "<absolute core path>"}`. Note:

  • the signal, its `si_code`, and the fault address (only SIGSEGV codes 1 and 2

establish one);

  • the program counter (`rip`/`pc`), stack pointer and other registers of the

thread that received the signal (a multi-threaded core has one entry per thread);

  • the Evidence ID, to cite in the report.

3. Turn the program counter into a function

REA returns the core's NT_FILE note as raw bytes. Decode it with this skill's helper (standard library only, reads the files, runs nothing):

python3 <this skill's directory>/scripts/core_mappings.py CORE --binary BINARY --addr <pc> [--addr <return address - 1> ...]

It prints the mapped files, the build-ID check, the binary's load bias and link base, and for each address the module plus either a `linked` address (inside the binary) or a `module_offset` (inside a library). For an address in the binary it also gives the `function` that contains it, from `.eh_frame_hdr`. For a caller frame from a backtrace, pass its return address minus 1, so it lands on the call instruction rather than the one after it.

Then call `inspect_binary_layout` with the binary's path (`"detail": "summary"` for a large binary, then page its functions) and find the function whose `value <= linked < value + size`. Report it as `function+offset`, and label it computed (from the recorded pc plus the mapping), not recorded.

**Stripped binary** (no function symbols in the layout): use the helper's `function` instead. Its bounds come from the unwind tables, which survive `strip`. Name it `sub_<start>` as the helper does (`sub_11d4+0x1f`) and say the name is derived from `.eh_frame`, not a symbol.

If the pc is in a library (libc's `strlen`, `memcpy`, `free`, ...), the library is rarely at fault: the caller passed a bad pointer or freed memory twice. The frame to explain is the first one in the user's binary (step 4).

4. Get a backtrace (optional)

With gdb installed, read the core in core-file mode. This loads no init files, auto-load scripts or debuginfod, and does not run the program:

gdb -nx -batch -iex 'set auto-load off' -iex 'set debuginfod enabled off' \
  -ex 'bt' -ex 'info registers' -ex 'x/8i $pc' -- BINARY CORE

Alternatively, call `inspect_recorded_crash` with `"include_debugger_context": true` when the user has pwndbg configured for REA. Without either, there is only the faulting frame: say so in the report instead of guessing callers. With debug info (`-g`), `addr2line -f -e BINARY <linked>` gives the source file and line.

5. Classify the crash

| Evidence | Crash type | Confidence | | --- | --- | --- | | SIGSEGV, fault address below 0x1000

Read more
@nousresearch
Ships withhermes-official-plugins

☤ The official plugins for Hermes Agent, built and maintained by Nous Research: Home Assistant, Spotify, Claude Subscription DirectSDK and more, one install away from the Hermes plugin catalog.

Stars on GitHub

Momentum

stars in total
739
Star history of NousResearch/hermes-official-plugins on GitHub, a chart by star-history.com

Other skills on hermes-official-plugins.

More skills from other plugins.

gitnexus-cli

gitnexus-cli

Use when the user needs to run GitNexus CLI commands like analyze/index a repo, check status, clean the index, generate a wiki,…

@abhigyanpatwari@abhigyanpatwariInstall Skill
fastmcp-client-cli

fastmcp-client-cli

Query and invoke tools on MCP servers using fastmcp list and fastmcp call. Use when you need to discover what tools a server…

fastmcp5d29k
@prefecthq@prefecthqInstall Skill
n8n-agents

n8n-agents

Design n8n AI agents the right way. Use when building or editing any @n8n/n8n-nodes-langchain.* AI node — an AI Agent, LLM chain,…

n8n-mcp4d23k
@czlonkowski@czlonkowskiInstall Skill
post-to-xhs

post-to-xhs

小红书内容发布技能。支持两种发布模式:(1) 上传图文模式 - 图片+短文;(2) 写长文模式 - 长篇文章+排版模板。 支持两种输入方式:用户提供完整内容和图片/图片URL,直接发布;或提供网页URL,自动提取内容和图片。…

@xpzouying@xpzouyingInstall Skill

Questions about crash-triage.

Which coding agents can use crash-triage?
crash-triage installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.