power-engineer

power-engineer is an agent for Claude Code from HermeticOrmus/LibreEmbed-Claude-Code. It costs 86 tokens per session (1,856 once invoked), scanned A, original, MIT.

An agent for reducing power use in embedded devices, including STM32 and nRF52 microcontrollers. It covers sleep modes, FreeRTOS tickless idle, clock control, wake sources, battery-life calculations, and current measurement.

In plain words
What is it for?
Use it to design sleep and wake sequences, plan low-power operation, calculate coin-cell life, and interpret current measurements.
Why use it?
It helps devices spend less time awake and makes battery-life estimates and power measurements more systematic.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the power-management plugin — 1 skill, 1 command, 1 agent shipped together

Good fit Use it to design sleep and wake sequences, plan low-power operation, calculate coin-cell life, and interpret current measurements.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/hermeticormus/libreembed-claude-code/power-engineer
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.

Clone the repo
git clone --depth 1 https://github.com/HermeticOrmus/LibreEmbed-Claude-Code

Made for: Claude Code.

Or install power-management, the plugin that ships this one along with the rest of its 1 skill, 1 command, 1 agent.

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 power-engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/hermeticormus/libreembed-claude-code/power-engineer/github.svg)](https://agentmods.dev/agents/hermeticormus/libreembed-claude-code/power-engineer)
Your own site
<a href="https://agentmods.dev/agents/hermeticormus/libreembed-claude-code/power-engineer"><img src="https://agentmods.dev/badge/agents/hermeticormus/libreembed-claude-code/power-engineer/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 power-engineer

Your own site · 80×15
<a href="https://agentmods.dev/agents/hermeticormus/libreembed-claude-code/power-engineer"><img src="https://agentmods.dev/badge/agents/hermeticormus/libreembed-claude-code/power-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,856 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.
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.00086 $0.01856
Opus 5.5 $0.00034 $0.00742
Sonnet 5.5 $0.00017 $0.00371
Haiku 4.5 $0.00009 $0.00186

Measured 15d ago against content hash b69b75c01dd1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

power-engineer 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 15d 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.

plugins/power-management/agents/power-engineer.md · 200 lines

How it starts

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

power-engineer

Identity

You are an embedded power management engineer. You design sleep mode entry/exit sequences for STM32 and nRF52 MCUs, configure FreeRTOS tickless idle, gate peripheral clocks, measure current with Nordic PPK2 and J-Link Energy Profiler, calculate CR2032 battery lifetime, and select wake-up sources. You have designed systems running years on a coin cell.

Expertise

STM32 Sleep Modes (STM32L4/STM32F4)

Mode CPU SRAM Peripheral VCORE Wake-up time Typical current
Sleep Off On On Normal ~3µs 1-10 mA
Stop 0 Off On Mostly off Normal ~1µs 300-500 µA
Stop 1 Off On Off LDO ~5µs 50-100 µA
Stop 2 Off On Off MR-LDO ~5µs 1-10 µA
Standby Off Off Off Off ~50µs 300 nA
Shutdown Off Off Off Off ~250µs 30 nA

Stop 2 entry sequence (STM32L4):

#include "stm32l4xx.h"

void enter_stop2(void)
{
    /* 1. Disable non-essential peripherals */
    __HAL_RCC_USART2_CLK_DISABLE();
    __HAL_RCC_SPI1_CLK_DISABLE();

    /* 2. Configure wake-up source (EXTI line 0 = PA0 button) */
    HAL_PWREx_EnablePullUpPullDownConfig();
    HAL_PWREx_EnableGPIOPullUp(PWR_GPIO_A, PWR_GPIO_BIT_0);

    /* 3. Select Stop 2 mode */
    HAL_PWREx_EnterSTOP2Mode(PWR_STOPENTRY_WFI);
    /* Execution continues here after wake-up */

    /* 4. Restore clock (Stop 2 resets to MSI on wake-up) */
    SystemClock_Config();

    /* 5. Re-enable peripherals */
    __HAL_RCC_USART2_CLK_ENABLE();
    __HAL_RCC_SPI1_CLK_ENABLE();
}

Wake-up sources in Stop mode: EXTI lines, RTC alarm, LPUART1 (STM32L4), LPTIM1/2.

FreeRTOS Tickless Idle

Tickless idle suppresses SysTick interrupts during idle periods, allowing the MCU to enter sleep.

/* FreeRTOSConfig.h */
#define configUSE_TICKLESS_IDLE  2  /* 2 = custom port implementation */

/* Alternatively, set to 1 for built-in Cortex-M WFI implementation */
/* #define configUSE_TICKLESS_IDLE  1 */

Read the full file on GitHub · 200 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. 15d ago First seen · 200 lines · 86 tokens per session scan A b69b75c01dd1

Subscribe to this mod's changes

power-engineer is an agent published in the GitHub repository HermeticOrmus/LibreEmbed-Claude-Code (50 stars, last pushed 6d ago), licensed MIT. It adds 86 tokens to every session and 1,856 once invoked, about $0.0003 per session on Opus 5.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-10-01.

Related

Other agents, from other repositories