potpourri

potpourri is a skill for Claude Code from Power-Agent/PowerSkills. It costs 177 tokens per session (1,465 once invoked), scanned A, original, MIT.

A workflow for optimising electricity distribution networks modelled with pandapower. It supports alternating-current and direct-current optimal power flow over one or more time periods, including storage and flexible equipment.

In plain words
What is it for?
Use it to reduce renewable-power curtailment, adjust generation or loads, and optimise storage or other flexible resources in pandapower or SimBench networks.
Why use it?
It helps find better operating settings instead of only simulating what happens with settings you already chose.

Skill for Claude Code

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

Part of the powerskills-tool plugin — 11 skills shipped together

Good fit Use it to reduce renewable-power curtailment, adjust generation or loads, and optimise storage or other flexible resources in pandapower or SimBench networks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/power-agent/powerskills/potpourri
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 Power-Agent/PowerSkills --skill potpourri
Clone the repo
git clone --depth 1 https://github.com/Power-Agent/PowerSkills

Made for: Claude Code.

Or install powerskills-tool, the plugin that ships this one along with the rest of its 11 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 potpourri

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/power-agent/powerskills/potpourri"><img src="https://agentmods.dev/badge/skills/power-agent/powerskills/potpourri.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 177 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,465 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.00177 $0.01465
Opus 5.5 $0.00071 $0.00586
Sonnet 5.5 $0.00035 $0.00293
Haiku 4.5 $0.00018 $0.00146

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

Security

Grade A, and why

potpourri 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 3mo ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/inspect_case.py, scripts/solve_opf.py, scripts/test_scripts.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.

powerskills-tool/skills/potpourri/SKILL.md · 91 lines

How it starts

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

potpourri workflow

potpourri builds Pyomo AC/DC OPF models over pandapower networks. There is no PowerMCP server for it, so drive it through its Python API using the bundled scripts. Establish a credible network and base case before optimising, and a credible single period before a multi-period horizon.

Default ladder

  1. scripts/inspect_case.py --case <simbench:CODE|path.json> — load, validate, and solve the pandapower base case. Do not skip this: an OPF that fails later is usually a data problem, and this is where data problems are cheap to find.
  2. scripts/solve_opf.py --list-solvers — confirm what is installed. AC needs an NLP solver (IPOPT); DC needs an LP/MIP solver (GLPK, CBC, HiGHS).
  3. scripts/solve_opf.py --formulation dc --objective ext_grid_import — linear screening for congestion and active-power headroom.
  4. scripts/solve_opf.py --formulation ac --objective <objective> — the real answer whenever voltage, reactive power, losses, or inverter capability matters.
  5. scripts/solve_opf.py --horizon <N> --battery-penetration <pct> --seed <n> — multi-period, only once a single period is credible.

Both scripts print an engineering summary, take --json for a machine-readable payload, and exit non-zero on genuine failure (1 = solved but not optimal, 2 = bad input, 3 = no compatible solver).

Working rules

  • Never read net.res_* without checking termination. The model constructor runs pp.runpp, so net.res_* is always populated; when a solve is not optimal potpourri skips its result mapping and those tables still hold the base case. solve_opf.py reports no results at all in that situation.
  • Multi-period solve(to_net=True) writes nothing. It only logs that it did. Map each step with pyo_to_net_multi_period.pyo_sol_to_net_res(net, model, t).
  • DC gives no voltage answer. After a DC OPF net.res_bus.vm_pu is a flat 1.0 placeholder. DC feasibility never establishes AC feasibility, least of all in distribution networks where voltage and reactive power are the binding physics.
  • A local NLP optimum is not a global one. IPOPT on a nonconvex AC OPF gives a locally optimal point; say "locally optimal", and never claim global optimality without a global solver reporting it.
  • Quote numbers, units, and the limit that was configured — bus and vm_pu, element and loading_percent against its rating, MW/Mvar/MWh, and the solver's own termination condition.
  • Match the objective to the question and state its side effects: voltage- deviation minimisation puts no value on energy, so where curtailment is free it will curtail everything. Check the reported curtailment before accepting a dispatch.

Read the full file on GitHub · 91 lines

Files

What ships with it

8 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. 3mo ago First seen · 91 lines · 177 tokens per session scan A 36412269e950

Subscribe to this mod's changes

potpourri is a skill published in the GitHub repository Power-Agent/PowerSkills (88 stars, last pushed 1mo ago), licensed MIT. It adds 177 tokens to every session and 1,465 once invoked, about $0.0007 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

potpourri compared with skills from other repositories

potpourri next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
potpourriPower-Agent/PowerSkillsSkill881mo agoMITA177Claude Code
instrument-data-to-allotropeanthropics/knowledge-work-pluginsSkill37ktodayApache-2.0A123Claude Code
matlabK-Dense-AI/scientific-agent-skillsSkill59k2d agoMITA44Claude Code
exploratory-data-analysisK-Dense-AI/scientific-agent-skillsSkill59k2d agoMITA83Claude Code
phylogeneticsK-Dense-AI/scientific-agent-skillsSkill59k2d agoMITA71Claude Code, Codex
research-engineerdavila7/claude-code-templatesSkill35ktodayMITA43Claude Code, Codex
mapping-to-snomedmaziyarpanahi/openmedSkill5.9k2d agoApache-2.0A205Claude Code