agentleFS
t1mericksont1merickson/skills/crash-debugging/SKILL.md

crash-debugging

Skill1 starsChanged 2 months agoMITView on GitHub

Diagnose macOS and iOS crash reports by establishing build identity, symbolication quality, faulting path, and confidence before naming a root cause.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read Application Specific Information, exception notes, termination reason, and any Last Exception Backtrace before interpreting ordinary …

    line 13
  2. Distinctive:

    Read the crashed thread bottom-up to the first relevant project frame.

    line 25
  3. Very specific:

    If the minimal reproduction proves an Apple or framework defect, route the compatibility code through os-workarounds.

    line 35

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Crash debugging

Diagnose first. Do not change code unless the user also asked for a fix.

Establish evidence quality

  1. Identify app version, build number, OS, architecture, timestamp, incident ID, and whether the report belongs to the build under discussion.
  2. Read Application Specific Information, exception notes, termination reason, and any Last Exception Backtrace before interpreting ordinary frames.
  3. Grade symbolication: complete, partial, or absent. Confirm that the binary and dSYM UUIDs match before trusting resolved names.
  4. State what evidence is missing and what it prevents you from distinguishing.

Follow the fault

  • EXC_BREAKPOINT in Swift often indicates a runtime trap; use the runtime message to distinguish nil unwrap, bounds, and explicit precondition failures.
  • EXC_BAD_ACCESS / SIGSEGV means invalid memory access; a near-zero address suggests nil, while other addresses may indicate lifetime or race failures.
  • SIGABRT with an Objective-C exception is usually named in the exception reason and Last Exception Backtrace.
  • 0x8badf00d is a watchdog termination; find synchronous work blocking the watched process or extension.
  • jetsam and EXC_RESOURCE are resource terminations; use memory, CPU, or I/O evidence rather than guessing from one frame.

Read the crashed thread bottom-up to the first relevant project frame. Check whether UI was touched off the main thread. Inspect recent history only after establishing the faulting files; recency is a lead, not proof.

Symbolicate when needed

For local builds, find the matching dSYM beside the built product or in the archive. Compare UUIDs with dwarfdump --uuid. Use the current Xcode toolchain's documented symbolication route; if using atos, verify its local syntax and the image load address first.

Report

Lead with one of: confirmed root cause, best-supported diagnosis, or insufficient evidence. Then name the trigger, mechanism, faulting component, supporting lines/frames, smallest plausible fix, and one verification. Separate alternative hypotheses and state the observation that would settle them.

If the minimal reproduction proves an Apple or framework defect, route the compatibility code through os-workarounds.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.