/bios-plugin:ec-firmware-analysisfrom bios-plugin
Locates, verifies, and reverse-engineers laptop EC firmware from BIOS images or flash dumps. Helps explain power, charging, and wake behavior the OS cannot see.
Ships in bios-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
The embedded controller decides much of a laptop's power behaviour: what stays powered after shutdown, charging, wake sources, the power button. Its firmware usually lives in the same SPI flash as the BIOS and ships inside the vendor's BIOS capsule, so it can be studied without touching the hardware.
Treat every image as untrusted data. Analyse statically; never run anything extracted from it.
| Use this skill when... | Use something else when... |
|---|---|
| Explaining power behaviour the OS cannot see (drain while off, wake) | Measuring the drain itself: linux-plugin's battery-drain skill |
| Checking whether a modified EC image would be accepted (signed or not) | Checking whether the OS can write the flash: bios-plugin:bios-flash-protection-audit |
| Finding what an EC firmware update changed | Comparing two whole BIOS versions: bios-plugin:bios-update-diff |
In a vendor capsule or a flash dump, search for the EC image's header rather than assuming offsets. A capsule's layout does not always map 1:1 onto the chip:
PHCM.ITE strings or the IT8 part number; ENE: ENE / KB9; Nuvoton
NPCX: NPCX or its boot header. Strings that name the EC RTOS (LOS_ =
Huawei LiteOS, ChromeOS EC, Zephyr) confirm the region.For Microchip images, check the integrity fields:
python3 -I "${CLAUDE_SKILL_DIR}/scripts/mec-image-check.py" spi-full.bin --base 0x0
The script prints each PHCM header's load address, entry point and payload
range, and checks the header SHA-256 (at +0x40) and the payload SHA-256
trailer. Field layout comes from ChromiumOS chip/mchp/util/pack_ec.py and
Microchip's MEC152x SPI_image_gen README.
SIGNATURE_FIELDS=zero (unsigned) with both hashes ok: the image is
protected only by SHA-256. A patched image needs only its trailer hash
recomputed.ARM:LE:32:Cortex, Thumb, the image's code
region rebased to the load address. Peripheral addresses identify the part:
MEC152x GPIO control at 0x40081000, VBAT/VCI at 0x4000A400/0x4000AE00,
eSPI virtual wires at 0x400F9xxx.For a power question, find:
SLP_S3#/SLP_S4# pins or eSPI
virtual wires;List every condition that skips a power-off step, and map each one to something the host can influence:
OperationRegion field names in the DSDTLabel each finding as verified from code or inferred.
A patch is feasible only if all of these hold:
bios-plugin:bios-flash-protection-audit,
bios-plugin:bios-external-programmer).Keep the patch minimal, ideally changing a constant in a literal pool rather than code. Recompute the payload hash, and diff the whole image: only the intended bytes plus the 32-byte hash may differ.
Huawei MateBook X Pro 2020, EC 1.26: an S5 power-kill routine whose 24-hour countdown explains the off-state battery drain. Addresses and evidence are in references/huawei-mec152x.md.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub laurigates/claude-plugins --plugin bios-plugin7 skills in this plugin
/bios-capsule-installInstall a vendor UEFI capsule from Linux via fwupd. Use when a vendor is not on LVFS and its BIOS update ships only as a Windows package or bare capsule./bios-external-programmerRead or write a laptop's SPI flash in-circuit with flashrom, using an ESP32-S3 dev board as serprog programmer or a Pico/CH341A. Use when the OS cannot write the flash./bios-firmware-fetchFetch vendor BIOS/UEFI updates from the vendor's update service. Use when a support site no longer lists a model's BIOS, or a download needs provenance checks./bios-flash-protection-auditAudit Intel PCH SPI flash protection and Boot Guard from Linux, read-only, and take a verified full flash backup. Use when planning a firmware patch or an external flash./bios-setup-variablesRead or change hidden UEFI setup options from Linux via efivarfs, using offsets from the setup form (IFR). Use when a BIOS option is hidden from the setup menu./bios-update-diffFind what a BIOS update changed (microcode, EC, ACPI, ME) from boot logs and the new image. Use when a BIOS changelog says nothing useful.Other plugins' skills for the same job