surge

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

A workflow for transmission power-system studies, which examine how electricity moves through high-voltage networks. It covers power flows, operating optimisation, failure scenarios, transfer limits, sensitivities, dispatch, and unit commitment.

In plain words
What is it for?
Use it to build or edit a transmission network, calculate flows, optimise dispatch, study N-1 or N-2 outages, evaluate transfer capacity, or schedule generators.
Why use it?
It brings several common transmission analyses into one workflow, including checks for what happens when one or more network elements fail.

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 build or edit a transmission network, calculate flows, optimise dispatch, study N-1 or N-2 outages, evaluate transfer capacity, or schedule generators.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/power-agent/powerskills/surge"><img src="https://agentmods.dev/badge/skills/power-agent/powerskills/surge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 266 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,523 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.00266 $0.01523
Opus 5.5 $0.00106 $0.00609
Sonnet 5.5 $0.00053 $0.00305
Haiku 4.5 $0.00027 $0.00152

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

Security

Grade A, and why

surge 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 9 executable files (evals/run_eval_with_mcp.py, scripts/contingency_analysis.py, scripts/contingency_ranking.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/surge/SKILL.md · 70 lines

How it starts

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

Surge workflow

Start by loading a network with load_builtin_case, load_network, or create_empty_network. Solve the base case before any advanced study — contingency, sensitivity, and OPF results are meaningless on a non-convergent base.

Default tool ladder

  1. load_builtin_case(name) (e.g. case118), load_network(file_path, format?), or create_empty_network(...).
  2. get_network_info() for counts, totals, areas, zones, voltage levels. get_topology(...) / get_islands() / find_path(...) for connectivity reasoning.
  3. run_ac_power_flow(...) for the base operating point. run_dc_power_flow(...) only when a linearized study is explicitly requested.
  4. Sensitivities: compute_ptdf, compute_lodf, compute_otdf for screening and transfer analysis.
  5. run_n1_branch_contingency / run_n1_generator_contingency / run_n2_branch_contingency once the base case solves.
  6. run_dc_opf → run_ac_opf → run_scopf for optimization. Pass explicit lp_solver / nlp_solver only when the deployment requires it.
  7. run_sced (single-period) and run_scuc (multi-period commitment). Call get_dispatch_request_schema() before constructing the request dict.
  8. compute_nerc_atc / compute_ac_atc for transfer capability. Build source/sink bus lists from list_buses output.
  9. export_tables(output_dir) to hand CSVs back to the user.

Network construction & editing

For synthetic cases, scenario edits (outage, dispatch change, load scaling), or mutations to a loaded case. Re-solve run_ac_power_flow after any material edit.

  • Build: create_empty_network, add_bus, add_generator, add_load, add_line, add_transformer, add_storage.
  • Edit: set_branch_rating, set_branch_in_service (outages), set_generator_limits, set_generator_in_service.
  • Scale: scale_loads(factor, area?), scale_generators(factor, area?).
  • Remove: remove_bus, remove_branch, remove_generator, remove_load.

Working rules

  • Do not read contingency or sensitivity results from a non-convergent base case.
  • Sensitivity tools default to format="summary". Use "sparse" or "full" only when CSR or dense output is actually needed.
  • Solver selection is a deployment question. Default to auto-detect ("default"); pass "highs" / "ipopt" for open-source runs, "gurobi" for large MIPs. See references/SOLVER_GUIDE.md.
  • Call get_dispatch_request_schema() before building a run_sced / run_scuc request dict.
  • Hand off RMS / transient-stability questions to ANDES, harmonic / unbalanced questions to OpenDSS.

Read the full file on GitHub · 70 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. 3mo ago First seen · 70 lines · 266 tokens per session scan A 9c6d36e31c08

Subscribe to this mod's changes

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

surge compared with skills from other repositories

surge next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
surgePower-Agent/PowerSkillsSkill881mo agoMITA266Claude 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