battery-arbitrage

battery-arbitrage is a skill for Claude Code from FernanMoreno/DomoAI. It costs 22 tokens per session (604 once invoked), scanned A, original, MPL-2.0.

A procedure for planning when a battery should charge or discharge using prices, solar power, limits, and a target state of charge. State of charge means how full the battery is; actions remain proposals until the equipment and feedback are verified.

In plain words
What is it for?
It helps inspect a battery, compare charging and discharging scenarios, validate a bounded dispatch plan, and schedule or apply it after approval.
Why use it?
It prevents battery actions based on unknown controls, stale readings, or missing power limits. It also requires approval before applying or scheduling a plan.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit It helps inspect a battery, compare charging and discharging scenarios, validate a bounded dispatch plan, and schedule or apply it after approval.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fernanmoreno/domoai/battery-arbitrage
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 FernanMoreno/DomoAI --skill battery-arbitrage
Clone the repo
git clone --depth 1 https://github.com/FernanMoreno/DomoAI

Made for: Claude Code.

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 battery-arbitrage

README.md
[![agentmods](https://agentmods.dev/badge/skills/fernanmoreno/domoai/battery-arbitrage/github.svg)](https://agentmods.dev/skills/fernanmoreno/domoai/battery-arbitrage)
Your own site
<a href="https://agentmods.dev/skills/fernanmoreno/domoai/battery-arbitrage"><img src="https://agentmods.dev/badge/skills/fernanmoreno/domoai/battery-arbitrage/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 battery-arbitrage

Your own site · 80×15
<a href="https://agentmods.dev/skills/fernanmoreno/domoai/battery-arbitrage"><img src="https://agentmods.dev/badge/skills/fernanmoreno/domoai/battery-arbitrage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 604 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.00022 $0.00604
Opus 5 $0.00011 $0.00302
Sonnet 5 $0.00004 $0.00121
Haiku 4.5 $0.00002 $0.00060

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

Security

Grade A, and why

battery-arbitrage 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 4d 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/core/battery-arbitrage/SKILL.md · 59 lines

How it starts

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

Battery arbitrage

This procedure keeps battery optimization proposal-only until the runtime has qualified actuator bindings, limits and readable power feedback.

Declared operations

  • discover_devices
  • get_state
  • get_energy_context
  • optimize_scenario
  • validate_plan
  • explain_solution
  • operator_approval
  • commit_or_schedule_bundle

Operation bindings

  • discover_devicesmcp.discover_devices (read)
  • get_statemcp.get_state (read)
  • get_energy_contextmcp.get_energy_context (read)
  • optimize_scenariomcp.optimize_scenario (proposal)
  • validate_planmcp.validate_plan (validation)
  • explain_solutionmcp.explain_solution (read)
  • operator_approvaloperator.request_approval (approval)
  • commit_or_schedule_bundlemcp.commit_or_schedule_bundle (mutation)

Procedure

  1. discover_devices — identify a qualified battery and canonical charge/discharge/stop routes.
  2. get_state — read SOC, availability and numeric power feedback; stop when stale or unavailable.
  3. get_energy_context — read tariffs, solar and terminal SOC policy for the horizon.
  4. optimize_scenario — produce a bounded dispatch proposal only.
  5. validate_plan — require actuator qualification, feedback postconditions and current dependencies.
  6. explain_solution — show SOC limits, terminal reserve and forecast assumptions.
  7. operator_approval — request approval for the exact bundle if physical mutation is allowed.
  8. commit_or_schedule_bundle — delegate to admission, fencing and readback.

Safety rules

  • Non-zero battery dispatch without explicit actuator binding is analysis-only.
  • Missing/stale/invalid/mismatching power feedback confirms neither success nor failure; use UNKNOWN.
  • Never cross SOC, power, thermal or terminal-reserve limits.
  • A forecast or SOC value is not authority and cannot replace commissioning.
  • Do not retry after an unknown inverter write without reconciliation evidence.

Read the full file on GitHub · 59 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. 4d ago First seen · 59 lines · 22 tokens per session scan A 1e32e122770e

Subscribe to this mod's changes

battery-arbitrage is a skill published in the GitHub repository FernanMoreno/DomoAI (0 stars, last pushed 5d ago), licensed MPL-2.0. It adds 22 tokens to every session and 604 once invoked, about $0.0001 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-09-08.

Related

Other skills, from other repositories

augur-serenity

Serenity AI — AI/semiconductor supply chain bottlenecks, chokepoint assets.

BruceLanLan/augur · 23 tokens

electric-truck-readiness

Use when a carrier asks about electric trucks — Tesla Semi, Freightliner eCascadia, Volvo VNR Electric, Peterbilt 579EV, range, charging, total cost of ownership, regulatory pushes (CARB ACT, ACF), incentives, infrastructure, depot vs en-route charging, and which routes/applications are EV-ready today.

x3allamerican/skills · 78 tokens

downtime-cost-calculator

Calculate and analyze the true cost of equipment downtime, enabling farmers to make informed decisions about repair, replacement, and preventive maintenance investments.

farmfriend-labs/agent-skills-farming · 0 tokens

recurring-revenue

Designs the recurring revenue layer for hardware companies: software license, maintenance and support, consumables, professional services, and data/insights tiers. Models LTV, defines the Year-1 bundling strategy, and builds the commoditization defense. A hardware company that sells only hardware has a lumpy…

0xF4ng/aether-growth-fieldwork · 81 tokens

sector-rotation

An analysis framework for comparing industries in the Chinese A-share stock market, using business conditions, price momentum, valuation, and money flows. It produces rankings and higher- or lower-allocation suggestions.

HKUDS/Vibe-Trading · 39 tokens

jetson-diagnostic

Read-only Jetson health snapshot for identity, memory, GPU, thermal, power, storage, services, and top processes.

NVIDIA/skills · 30 tokens