egret

egret is a skill for Claude Code from Power-Agent/PowerSkills. It costs 107 tokens per session (439 once invoked), scanned A, original, MIT.

A workflow for Egret, a Python toolkit for optimizing electricity-market schedules and grid operations. It guides studies such as DC or AC optimal power flow and unit commitment.

In plain words
What is it for?
Use it to find low-cost generator dispatch, decide which units should run, check transmission congestion, and test whether an operating schedule is feasible.
Why use it?
It turns plain requests about cost, congestion, or feasibility into a structured Egret study. This reduces the work of preparing and checking market or operating models.

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 find low-cost generator dispatch, decide which units should run, check transmission congestion, and test whether an operating schedule is feasible.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/power-agent/powerskills/egret
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 egret
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 egret

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/power-agent/powerskills/egret"><img src="https://agentmods.dev/badge/skills/power-agent/powerskills/egret.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 439 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.00107 $0.00439
Opus 5.5 $0.00043 $0.00176
Sonnet 5.5 $0.00021 $0.00088
Haiku 4.5 $0.00011 $0.00044

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

Security

Grade A, and why

egret 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.

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/egret/SKILL.md · 34 lines

What it actually says

Egret workflow

Start with the cheapest model that can answer the question. Do not jump into unit commitment when a single-snapshot OPF will do.

Default tool ladder

  1. solve_dc_opf(case_file, solver, return_results) for fast feasibility and congestion screening.
  2. solve_ac_opf(case_file, solver, return_results) when voltage or reactive realism matters.
  3. solve_unit_commitment_problem(case_file, solver, mipgap, timelimit) only after the horizon, reserve logic, and commitment assumptions are clear.

Working rules

  • Confirm the case file format, solver, and time horizon before solving.
  • Use DC OPF first unless the question explicitly depends on AC feasibility.
  • Treat UC as a higher-cost study that needs a clear operational objective.
  • Validate promising dispatch fixes in an AC tool when voltage limits matter.

Escalation triggers

Quote the binding constraint or infeasibility cause rather than saying "it failed".

Observation Escalate to
OPF or UC infeasible, reserve-short, or implausibly expensive operations-planning-mitigation
AC-OPF bus voltage outside [0.95, 1.05] pu voltage-violation-mitigation
A branch limit binds persistently across the horizon thermal-overload-mitigation

Deliver

  • The case, solver, and study type.
  • The limiting constraints or binding tradeoffs.
  • Whether the next step is AC validation, UC escalation, or mitigation.
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 · 34 lines · 107 tokens per session scan A 9cf09b076179

Subscribe to this mod's changes

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

egret compared with skills from other repositories

egret next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
egretPower-Agent/PowerSkillsSkill881mo agoMITA107Claude Code
monte-carloPlanExeOrg/PlanExeSkill4053d agoMITA71Claude Code
neqsim-integrated-production-and-lifecycleequinor/neqsimSkill177todayApache-2.0A98Claude Code, Codex
neqsim-utility-designequinor/neqsimSkill177todayApache-2.0A114Claude Code, Codex
fin-paper-figurecsmar432/finai-researchSkill112yesterdayMITA58Claude Code, Codex
fin-paper-writingcsmar432/finai-researchSkill112yesterdayMITA65Claude Code
fin-viz-launchcsmar432/finai-researchSkill112yesterdayMITA45Claude Code, Codex