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
- Nashova/LLM-Dev-Frameworktheir own version, first seen Nov 1, 2026
- nfeuer/project-foundation-kittheir own version, first seen Jul 5, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- Nashova/LLM-Dev-Framework★ 0same name
- 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.
- AGENTS.mdAGENTS.md
- embedded-bringupSkill
- firmware-debugSkill
- hardware-testSkill
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
- Very specific: line 8
Treat the current device state as evidence.
- Very specific: line 13
If the project supplies .embedded/toolchain-lock.json, validate it with the installed toolkit's component_lock.py inspect, pass it to …
- Very specific: line 19
When a different lock is proposed, run component_lock.py compare first and surface every changed path, version, and hash before selecting …
- Very specific: line 21
Do not install or upgrade components while preserving an incident scene.
- Distinctive: line 32
Prefer observations that do not change target state: existing logs, bounded zero-transmit serial monitoring, read-only BLE capture, saved …
- Very specific: line 35
If a new target snapshot is essential, describe the perturbation first.
- Distinctive: line 53
When the scene already includes saved load measurements, read load evidence.
- Distinctive: line 75
Keep raw structured component outputs and include a small index containing:
- Distinctive: line 81
every state-changing effect and authorization boundary.
- Very specific: line 84
If the incident bundle spans multiple interfaces, optional board-registry may adapt and resolve only the already saved discovery files.
≈ “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.
Files
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
- Record the symptom, host time, user action, exact known identities, firmware artifact hashes, tool versions, and what was already attempted.
- Determine whether the core is known running, halted, reset, disconnected, or indeterminate. Do not infer state from a silent serial port alone.
- 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.
- 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.
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
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.

