agentleFS
NitmiNitmi/embedded-agent-toolkit/skills/incident-capture/SKILL.md

incident-capture

Skill2 starsChanged 2 months agoMITView on GitHub

Preserve and package evidence from an embedded crash, hang, reset, or protocol failure across target debug state, serial and RTT logs, BLE observations, firmware identity, and host environment. Trigger when an Agent must capture a failure scene before recovery or produce a reproducible evidence bundle.

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. Nashova/LLM-Dev-Framework★ 0same name
    2. nfeuer/project-foundation-kit★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository4 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 4 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

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

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

    Treat the current device state as evidence.

    line 8
  2. Very specific:

    If the project supplies .embedded/toolchain-lock.json, validate it with the installed toolkit's component_lock.py inspect, pass it to …

    line 13
  3. Very specific:

    When a different lock is proposed, run component_lock.py compare first and surface every changed path, version, and hash before selecting …

    line 19
  4. Very specific:

    Do not install or upgrade components while preserving an incident scene.

    line 21
  5. Distinctive:

    Prefer observations that do not change target state: existing logs, bounded zero-transmit serial monitoring, read-only BLE capture, saved …

    line 32
  6. Very specific:

    If a new target snapshot is essential, describe the perturbation first.

    line 35
  7. Distinctive:

    When the scene already includes saved load measurements, read load evidence.

    line 53
  8. Distinctive:

    Keep raw structured component outputs and include a small index containing:

    line 75
  9. Distinctive:

    every state-changing effect and authorization boundary.

    line 81
  10. Very specific:

    If the incident bundle spans multiple interfaces, optional board-registry may adapt and resolve only the already saved discovery files.

    line 84

≈ “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

Incident Capture

Treat the current device state as evidence. Prefer the installed $embedded-debugger, $baud, and $ble integrations; otherwise use their own CLIs with structured output. Keep every component's documented safety and identity boundaries.

If the project supplies .embedded/toolchain-lock.json, validate it with the installed toolkit's component_lock.py inspect, pass it to doctor, and use only its hash-bound component paths. Do not let environment overrides mask that lock. Otherwise use a selected workstation lock when available and record the doctor's lock source with the incident evidence; ambient PATH resolution is not a stable tool identity. When a different lock is proposed, run component_lock.py compare first and surface every changed path, version, and hash before selecting it. Do not install or upgrade components while preserving an incident scene. If a required tool is absent, record that collection gap; defer the offline component_install.py plan and any host changes to a separate recovery or setup operation.

Freeze scope before state

  1. Record the symptom, host time, user action, exact known identities, firmware artifact hashes, tool versions, and what was already attempted.
  2. Determine whether the core is known running, halted, reset, disconnected, or indeterminate. Do not infer state from a silent serial port alone.
  3. Prefer observations that do not change target state: existing logs, bounded zero-transmit serial monitoring, read-only BLE capture, saved debug results, and offline artifact inspection.
  4. If a new target snapshot is essential, describe the perturbation first. Debug attach, halt, stack unwind, memory reads, and detach may alter state or access unbound addresses. Use $embedded-debugger's narrowest current plan and confirmation flow.

Build the evidence bundle

For saved TMP103 model failures, read sensor simulation. Preserve native reports, UART, model stdout spans and failed/unknown outcomes as simulation evidence; packaging these files requires no board discovery or new emulator run.

For already saved thermal evidence, read thermal evidence. Preserve the full raw inventory, controls, telemetry, failed assertions and cleanup context. Package the original bytes without reconnecting the camera or changing FFC/gain settings; surface-temperature observations do not establish junction temperature.

When the scene already includes saved load measurements, read load evidence. Preserve the original result, plan, transcript, assertions and cleanup/error context beside the derived bundle. Packaging those files does not require reconnecting or commanding input OFF.

For RTT collection, read bounded RTT workflows first. RTT consumes the selected RAM read cursor and attachment may perturb the target. Preserve the native summary and raw JSONL, including partial evidence and cleanup failures. Treat cursor offsets as positions in one capture, not target addresses or continuity across captures. Stop/disconnect does not prove the core is running. The RTT guide's offline reader can derive a bounded preview or lossless binary export from a complete, verified capture. Keep native inputs unchanged and link derived files to their input/payload hashes. Partial failed captures are retained as failures; an integrity-rejected reader result is not an empty successful log.

For offline correlation of saved serial/RTT logs, read Embedded Trace timelines. Use its inspected environment and exact input hashes; preserve native files beside the derived timeline. Host clock domains, successful imports and matching text do not prove runtime identity, capture success or final target state. No new hardware access is needed for this optional analysis.

Keep raw structured component outputs and include a small index containing:

  • incident and operation identifiers plus timestamps;
  • exact device/interface identities and confidence source;
  • firmware, ELF, configuration, and executable hashes;
  • bounded serial/BLE observations and target snapshots;
  • every state-changing effect and authorization boundary;
  • cleanup results, final known state, unknowns, and failed collection steps.

If the incident bundle spans multiple interfaces, optional board-registry may adapt and resolve only the already saved discovery files; read offline board identity resolution. Preserve both native and adapted files, and record no_match or ambiguous without changing selectors during capture.

Redact BLE identifiers and user data when the bundle leaves the workstation, but retain stable internal correlation keys. Do not rewrite missing evidence as an empty successful observation.

Leave recovery separate

Finish capture before proposing reset, resume, reflash, power cycle, or protocol write. Recovery is a new operation with its own target identity, risks, current plan, and authorization; incident capture itself grants none of them.

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.