Skip to content
Development
Skill

/low-power-debug

Use when debugging embedded sleep, standby, deep sleep, wakeup, current consumption, clock gating, lost debug access, or low-power mode failures

From plugin
aix-skills
3976 skills

Claude Code

$ npx -y skills add easyzoom/aix-skills --skill low-power-debug --agent claude-code

SKILL.md

low-power-debug.SKILL.md
name: low-power-debug
description: Use when debugging embedded sleep, standby, deep sleep, wakeup, current consumption, clock gating, lost debug access, or low-power mode failures

Low Power Debug

Overview

Use this skill to debug low-power behavior by measuring current and wake sources before changing sleep configuration. Low-power bugs often involve board leakage, clocks, wake flags, debug settings, peripheral state, and firmware sequencing.

When To Use

Use this skill when:

  • Current consumption is too high or unexpectedly low.
  • The device fails to enter sleep, cannot wake, wakes immediately, or loses debug access.
  • The task involves sleep, stop, standby, deep sleep, retention RAM, wake pins, RTC, watchdog, clock gating, or PMIC sequencing.

Do not use this skill when the board cannot boot at all; establish basic boot first.

First Questions

Ask for:

  • Chip/board and intended low-power mode.
  • Measured current, expected current, and measurement setup.
  • Wake sources and whether wake flags are available.
  • Debug probe attached or detached during measurement.
  • Peripherals left enabled before sleep.
  • Power rails, external devices, pull-ups, and board revision.

Workflow

1. Confirm measurement validity. Check meter range, sampling rate, burden voltage, shunt placement, rails included, and whether debugger/USB is attached.

1. Separate firmware from board leakage. Measure baseline board state, external devices, pull-ups, LEDs, regulators, and sensors.

1. Confirm intended sleep mode. Verify the actual mode entered, not just the API called.

1. Capture wake reason. Read wake flags immediately after wake before clearing them.

1. Disable peripherals methodically. Clocks, UART, ADC, timers, DMA, USB, radio, sensors, and pull configurations can dominate current.

1. Protect debug access. Warn that deep sleep may disconnect SWD/JTAG. Use timed wake, GPIO heartbeat, or connect-under-reset recovery.

Checks

  • Debugger and semihosting disabled for current measurement.
  • Unused GPIO configured to safe states.
  • External pull-ups/pull-downs not causing leakage.
  • Regulator and sensor quiescent currents accounted for.
  • Wake pins polarity and pull state correct.
  • RTC/LPTIM/watchdog clock source active if used.
  • SRAM/retention domains configured intentionally.
  • Interrupt flags cleared before sleep and read after wake.

Verification

Before claiming progress:

  • State measured current, expected current, mode, and measurement setup.
  • State whether debugger/USB was connected.
  • Report actual wake source or wake flag evidence.
  • List peripherals and rails still enabled.
  • State recovery method if debug access may be lost.

Common Failures

  • Measuring through USB while claiming battery current.
  • Leaving the debugger attached and trusting sleep current.
  • Clearing wake flags before reading them.
  • Ignoring external sensors, pull-ups, LEDs, or regulators.
  • Entering a shallower sleep mode than intended because a peripheral clock is active.

Example

User:

进入低功耗后电流还有 5mA,预期几十微安。

Agent:

1. Asks for mode, current setup, rails measured, debugger state, wake sources, and board peripherals. 1. Separates board leakage from MCU sleep current. 1. Checks enabled clocks, GPIO states, regulators, and wake flags before code changes.

Read more
@easyzoom
Ships withaix-skills

AIX Skills is a public collection of Agent Skills, templates, and references for building repeatable AI workflows.

Stars on GitHub

Momentum

stars in total
39
Star history of easyzoom/aix-skills on GitHub, a chart by star-history.com

Other skills on aix-skills.

8051-mcu-debug

8051-mcu-debug

Use when debugging 8051-compatible microcontrollers, 51 MCU firmware, STC download issues, Keil C51 projects, interrupts, timers,…

@easyzoom@easyzoomInstall Skill
avem-integration

avem-integration

Use when integrating, evaluating, configuring, or debugging Avem embedded C framework modules, event-driven components, drivers,…

@easyzoom@easyzoomInstall Skill
ble-gatt-integration

ble-gatt-integration

Use when integrating, designing, or debugging BLE GATT services, characteristics, descriptors, MTU, notifications, indications,…

@easyzoom@easyzoomInstall Skill
bootloader-debug

bootloader-debug

Use when debugging embedded bootloaders, application jumps, vector table offsets, firmware upgrade flow, OTA state, image…

@easyzoom@easyzoomInstall Skill
canbus-integration

canbus-integration

Use when integrating, porting, configuring, or debugging CAN bus libraries, CANBus-Triple, MCP2515, CAN frames, bit timing,…

@easyzoom@easyzoomInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about low-power-debug.

Which coding agents can use low-power-debug?
low-power-debug installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.