device-operations
Skill1 starsChanged 7 days agoMITView on GitHub
Debug and operate a connected MicroTech ESP32-S3 or ESP32-P4 board with mt.py device. Use for serial logs, boot identity, panic/coredump triage, explicit flashing, and hardware smoke checks; not for simulator work or multi-device ownership.
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- aesthetic-reviewSkill
- app-developmentSkill
- codesizeSkill
- design-contractSkill
- esp32Skill
- lvgl-integrationSkill
- lvgl-ui-layoutSkill
- motion-interactionSkill
- ui-reviewSkill
- ux-heuristicsSkill
- visual-designSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill for a single locally connected board.
- Very specific: line 34
Use device status first. It reads the local build identity without touching the board.
- Very specific: line 42
If the boot banner reports a crash reset, run device crash.
- Distinctive: line 44
Check heap headroom, task WDT, and partition/boot placement in that order.
- Very specific: line 45
Only after the cause is understood, consider an explicit device flash.
- Very specific: line 57
Never run erase-flash, erase NVS, or format the SD card as part of a debugging loop unless the user separately asks.
- Distinctive: line 66
Do not add device ownership, takeover, multi-project leases, OTA, or a network gateway for this single-board workflow.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
Device Operations
Use this skill for a single locally connected board. The repository owns the build and verification contracts; this skill only describes the device loop.
Sources of Truth
doc/verification.mdowns the verification tiers and device-fault order.README.mdowns the build/flash command and board selection.mt.py build idf --coredumpappliessdkconfig.coredump.defaultslocally and writes its generated config tobuild/sdkconfig.coredump; the committedpartitions_16m_single_app_res_data.csvowns the partition.esp-idf-monitor,esp-coredump, andesptoolbehavior comes from the installed ESP-IDF tools;mt.py doctorreports their availability.
Commands
python3 tools/agent/mt.py build idf --coredump
python3 tools/agent/mt.py device status [--port P] [--probe] [--json]
python3 tools/agent/mt.py device logs --snapshot --seconds 5 [--port P] [--reset]
python3 tools/agent/mt.py device logs --follow [--port P]
python3 tools/agent/mt.py device monitor --expect 'boot id=' --timeout 20 [--port P] [--reset]
python3 tools/agent/mt.py device crash [--port P] [--save-core PATH]
python3 tools/agent/mt.py device flash --port P --yes [--monitor]
python3 tools/agent/mt.py device smoke [--port P]Use device status first. It reads the local build identity without touching
the board. --probe is explicit because esptool resets the chip to read the
MAC/chip ID. If several serial ports exist, pass --port; do not guess.
Triage Order
device status: target, product, app version, ELF SHA-256, coredump partition.device logs --snapshot --reset: boot id, reset reason, panic backtrace.- If the boot banner reports a crash reset, run
device crash; do not reflash before the coredump has been read. - Check heap headroom, task WDT, and partition/boot placement in that order.
- Only after the cause is understood, consider an explicit
device flash.
The boot line contains boot id=<hex> reason=<reason> version=<version>
elf=<sha256 prefix> partition=<label>. The elf= value is the configured
short SHA-256 prefix, so compare it as a prefix of the full ELF file SHA256
from device status. A new boot id is expected after a reset; the same boot id
with no new log line means the monitor was attached after boot.
Flashing Safety
- Flash only when the user explicitly asks.
device flashis locked behind--yes. - Never run
erase-flash, erase NVS, or format the SD card as part of a debugging loop unless the user separately asks. - The command compares the pre/post MAC when
--probesucceeds; a changed MAC is a failure, not a normal board swap. device smokeresets the board and checks for the boot banner; it does not write flash.
Boundaries
- Do not add device ownership, takeover, multi-project leases, OTA, or a network gateway for this single-board workflow.
- The simulator is the right tool for layout and interaction iteration;
deviceis only for hardware-specific behavior (radio, audio, display timing, PMIC/RTC, real coredumps). - For a P4 board, remember the hosted C6 radio image is a separate build; the host app can boot and degrade to offline UI when that link is unavailable.
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.

