power-budget-calculator

power-budget-calculator is a skill for Claude Code from wedsamuel1230/arduino-skills. It costs 68 tokens per session (3,174 once invoked), scanned A, original, MIT.

A calculator for estimating an embedded project's total power use and battery runtime. It includes component current, operating modes, sleep periods, duty cycles, and battery sizing.

In plain words
What is it for?
Use it to estimate current draw, battery life, required battery capacity, sleep-mode savings, and power use across sensors and modules.
Why use it?
It helps answer whether a chosen battery can run the project for the required time and where power is being consumed.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the arduino-skills plugin — 33 skills shipped together

Good fit Use it to estimate current draw, battery life, required battery capacity, sleep-mode savings, and power use across sensors and modules.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wedsamuel1230/arduino-skills/power-budget-calculator
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 wedsamuel1230/arduino-skills --skill power-budget-calculator
Clone the repo
git clone --depth 1 https://github.com/wedsamuel1230/arduino-skills

Made for: Claude Code.

Or install arduino-skills, the plugin that ships this one along with the rest of its 33 skills.

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-budget-calculator

README.md
[![agentmods](https://agentmods.dev/badge/skills/wedsamuel1230/arduino-skills/power-budget-calculator/github.svg)](https://agentmods.dev/skills/wedsamuel1230/arduino-skills/power-budget-calculator)
Your own site
<a href="https://agentmods.dev/skills/wedsamuel1230/arduino-skills/power-budget-calculator"><img src="https://agentmods.dev/badge/skills/wedsamuel1230/arduino-skills/power-budget-calculator/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-budget-calculator

Your own site · 80×15
<a href="https://agentmods.dev/skills/wedsamuel1230/arduino-skills/power-budget-calculator"><img src="https://agentmods.dev/badge/skills/wedsamuel1230/arduino-skills/power-budget-calculator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,174 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.00068 $0.03174
Opus 5.5 $0.00027 $0.01270
Sonnet 5.5 $0.00014 $0.00635
Haiku 4.5 $0.00007 $0.00317

Measured 2mo ago against content hash 1d4c93d72eef, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

power-budget-calculator 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 2mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/calculate_power.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/power-budget-calculator/SKILL.md · 372 lines

How it starts

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

Power Budget Calculator

Estimates power consumption and battery life for embedded projects.

Resources

  • scripts/calculate_power.py - Python calculator with component database, duty cycle support, battery life estimation
  • references/component-database.md - Comprehensive current draw reference from datasheets
  • assets/example-project.json - Sample project configuration

Quick Start

Run the calculator interactively:

uv run --no-project scripts/calculate_power.py --interactive

Or calculate for a single component:

uv run --no-project scripts/calculate_power.py --component ESP32 --mode deep_sleep --duty 95

Load a project configuration:

uv run --no-project scripts/calculate_power.py --json assets/example-project.json --output report.md

List all components in database:

uv run --no-project scripts/calculate_power.py --list

When to Use

  • "How long will my battery last?"
  • "What size battery do I need?"
  • "How much current does my project draw?"
  • Planning battery-powered projects
  • Optimizing for low power

Workflow

Step 1: Gather Component List

Ask user for:

  1. Microcontroller (model and operating mode)
  2. All sensors and modules
  3. Displays
  4. Actuators (motors, LEDs, relays)
  5. Communication (WiFi, Bluetooth, LoRa)
  6. Operating profile (always on vs. duty cycle)

Step 2: Calculate Power Budget

Run scripts/calculate_power.py --interactive for guided calculation, or use this template:

# Power Budget: [Project Name]

## Operating Conditions
- Supply Voltage: [V]
- Operating Modes: [Active/Sleep cycles]
- Duty Cycle: [X% active, Y% sleep]

## Component Current Draw

### Always-On Components
| Component | Voltage | Current | Power | Notes |
|-----------|---------|---------|-------|-------|
| [name] | [V] | [mA] | [mW] | [conditions] |
| ... | ... | ... | ... | ... |
| **Subtotal** | - | **[mA]** | **[mW]** | - |

### Active Mode Only
| Component | Voltage | Current | Power | Duty % |
|-----------|---------|---------|-------|--------|
| [name] | [V] | [mA] | [mW] | [%] |
| ... | ... | ... | ... | ... |
| **Subtotal** | - | **[mA]** | **[mW]** | - |

### Peak Current Events
| Event | Current | Duration | Frequency |
|-------|---------|----------|-----------|
| [WiFi TX] | [mA] | [ms] | [per hour] |
| ... | ... | ... | ... |

## Power Calculations

### Average Current

I_avg = (I_active × t_active + I_sleep × t_sleep) / t_total I_avg = ([X]mA × [Y]s + [Z]mA × [W]s) / [T]s I_avg = [result] mA


### Battery Life Estimate

Capacity: [X] mAh Efficiency factor: 0.8 (80% usable) Effective capacity: [X × 0.8] mAh

Read the full file on GitHub · 372 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2mo ago First seen · 372 lines · 68 tokens per session scan A 1d4c93d72eef

Subscribe to this mod's changes

power-budget-calculator is a skill published in the GitHub repository wedsamuel1230/arduino-skills (24 stars, last pushed 2mo ago), licensed MIT. It adds 68 tokens to every session and 3,174 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-08-30.

Related

power-budget-calculator compared with skills from other repositories

power-budget-calculator next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
power-budget-calculatorwedsamuel1230/arduino-skillsSkill242mo agoMITA68Claude Code
cardputer-buddyanthropics/claude-plugins-officialSkill46kyesterdayApache-2.0A109Claude Code
developer-device-platform-basicsgoogle/skillsSkill22kyesterdayApache-2.0A57Claude Code, Codex
google-cloud-filestore-autoscalegoogle/skillsSkill22kyesterdayApache-2.0A102Claude Code, Codex
gke-ai-troubleshooting-tpu-dynamic-slices-monitoringgoogle/skillsSkill22kyesterdayApache-2.0A107Claude Code, Codex
gke-ai-troubleshooting-tpu-vbar-oomgoogle/skillsSkill22kyesterdayApache-2.0A125Claude Code, Codex
m5-onboardanthropics/claude-plugins-officialSkill46kyesterdayApache-2.0B94Claude Code