low-power-embedded

low-power-embedded is a skill for Claude Code, Codex from mohitmishra786/low-level-dev-skills. It costs 72 tokens per session (1,065 once invoked), scanned A, original, MIT.

Guidance for reducing power use in embedded devices, such as small microcontroller-based products, by putting them to sleep and controlling their peripherals.

In plain words
What is it for?
Use it to configure sleep, stop, or standby modes; turn off unused peripheral clocks; choose wake-up sources; and measure firmware current draw on devices such as STM32 or nRF microcontrollers.
Why use it?
It helps address devices that use too much battery power, fail to wake correctly, or draw current while they should be asleep.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to configure sleep, stop, or standby modes; turn off unused peripheral clocks; choose wake-up sources; and measure firmware current draw on devices such as STM32 or nRF microcontrollers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mohitmishra786/low-level-dev-skills/low-power-embedded
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mohitmishra786/low-level-dev-skills --skill low-power-embedded
Clone the repo
git clone --depth 1 https://github.com/mohitmishra786/low-level-dev-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for low-power-embedded

README.md
[![agentmods](https://agentmods.dev/badge/skills/mohitmishra786/low-level-dev-skills/low-power-embedded/github.svg)](https://agentmods.dev/skills/mohitmishra786/low-level-dev-skills/low-power-embedded)
Your own site
<a href="https://agentmods.dev/skills/mohitmishra786/low-level-dev-skills/low-power-embedded"><img src="https://agentmods.dev/badge/skills/mohitmishra786/low-level-dev-skills/low-power-embedded/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for low-power-embedded

Your own site · 80×15
<a href="https://agentmods.dev/skills/mohitmishra786/low-level-dev-skills/low-power-embedded"><img src="https://agentmods.dev/badge/skills/mohitmishra786/low-level-dev-skills/low-power-embedded.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,065 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00072 $0.01065
Opus 5 $0.00036 $0.00532
Sonnet 5 $0.00014 $0.00213
Haiku 4.5 $0.00007 $0.00106

Measured 11d ago against content hash 4ae1f528b788, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

low-power-embedded scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/baremetal/low-power-embedded/SKILL.md · 120 lines

How it starts

The opening of the file, as written. The whole thing — 120 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Low-Power Embedded

Purpose

Guide agents through MCU low-power modes: sleep vs deep sleep (stop/standby), peripheral and bus clock gating, wake-up source configuration, and practical current measurement — with Cortex-M WFI/WFE and vendor PWR examples (STM32-focused patterns apply broadly).

When to Use

  • Battery-powered firmware missing power budget
  • Wake-up latency vs consumption tradeoffs
  • Debugging "device won't wake" or "current still mA in sleep"
  • Before shipping RTOS idle hook or bare-metal main loop sleep
  • Cross-linking with skills/baremetal/interrupts-and-exceptions-baremetal

Workflow

1. Power mode hierarchy (STM32-style)

Mode CPU Peripherals RAM Wake source Relative current
Run on on on highest
Sleep off on on any IRQ medium
Stop off most off on EXTI, RTC, UART low
Standby off off lost* WKUP pins, RTC lowest

* Standby clears most SRAM; use backup domain or external EEPROM for state.

2. Enter Sleep (WFI)

/* Cortex-M — sleep until interrupt */
__disable_irq();
/* configure wake source (e.g. EXTI, RTC alarm) */
__enable_irq();
__WFI(); /* or __WFE() for event-based wake */

Ensure pending interrupts are cleared before WFI or wake may be immediate.

3. STM32 Stop mode pattern

#include "stm32f4xx.h"

void enter_stop_mode(void)
{
    /* Gate clocks you do not need */
    RCC->AHB1ENR &= ~RCC_AHB1ENR_GPIOAEN; /* example — only if safe */

    PWR->CR |= PWR_CR_CWUF;   /* clear wake flags */
    PWR->CR |= PWR_CR_PDDS;   /* deep sleep = Stop */
    SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk;

    __WFI();

    /* After wake: re-enable HSE/PLL — clocks lost in Stop on many parts */
    SystemInit();
}

After Stop, re-init clocks and peripherals that lost their registers.

4. Clock gating checklist

Before sleep
├── Disable unused peripheral clocks (RCC xENR)
├── Disable ADC/DAC continuous modes
├── Stop DMA channels
├── Enter peripheral low-power (UART mute, SPI off)
└── Configure lowest viable regulator scale (Voltage Scale 2/3)

Read the full file on GitHub · 120 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 120 lines · 72 tokens per session scan A 4ae1f528b788

Subscribe to this mod's changes

low-power-embedded is a skill published in the GitHub repository mohitmishra786/low-level-dev-skills (201 stars, last pushed 2mo ago), licensed MIT. It adds 72 tokens to every session and 1,065 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

fusion-360

Comprehensive operational skill specification for Anthropic Claude to automate, script, troubleshoot, and optimize Autodesk Fusion (Fusion 360), Python API (adsk.fusion), Parametric Timeline, and CAM toolpaths.

alivirgo/Major-AI-Skills · 46 tokens

altium-designer

Comprehensive operational skill specification for Anthropic Claude to automate, script, troubleshoot, and optimize Altium Designer, DXP scripting engine, DRC rules, OutJob CAM generation, and high-speed PCB routing.

alivirgo/Major-AI-Skills · 47 tokens

eartrumpet

Comprehensive operational skill specification for Anthropic Claude to automate, script, troubleshoot, and optimize EarTrumpet, Windows Core Audio APIs (WASAPI), pycaw audio session automation, and per-app endpoint routing.

alivirgo/Major-AI-Skills · 49 tokens

codesys

Comprehensive operational skill specification for Anthropic Claude to automate, script, troubleshoot, and optimize CODESYS V3.5, IEC 61131-3 Structured Text (ST), ScriptEngine Python automation, EtherCAT/PROFINET, and OPC UA.

alivirgo/Major-AI-Skills · 56 tokens

pcbway

PCBWay PCB fabrication and assembly — turnkey/consigned assembly, design rules, ordering workflow. Alternative to JLCPCB for manufacturing. Use with KiCad. Use this skill when the user mentions PCBWay, needs turnkey assembly (PCBWay sources parts by MPN), has parts not available on LCSC, needs assembled boards with…

aklofas/kicad-happy · 119 tokens

unifi-protect

How to manage UniFi Protect cameras and NVR — view cameras, smart detections, Find Anything detection search, recordings, snapshots, lights, sensors, Known Faces, license plates, and the Alarm Manager. Use this skill when the user mentions UniFi cameras, security cameras, NVR, recordings, motion detection, person…

sirkirby/unifi-mcp · 112 tokens