/powerskills-tool:surgefrom powerskills-tool
Runs AC/DC power flow, OPF, contingency analysis, and PTDF sensitivities for transmission power systems. Builds and edits networks from IEEE cases or MATPOWER/PSS/E files.
Ships in powerskills-tool. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
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.
load_builtin_case(name) (e.g. case118), load_network(file_path, format?), or create_empty_network(...).get_network_info() for counts, totals, areas, zones, voltage levels. get_topology(...) / get_islands() / find_path(...) for connectivity reasoning.run_ac_power_flow(...) for the base operating point. run_dc_power_flow(...) only when a linearized study is explicitly requested.compute_ptdf, compute_lodf, compute_otdf for screening and transfer analysis.run_n1_branch_contingency / run_n1_generator_contingency / run_n2_branch_contingency once the base case solves.run_dc_opf → run_ac_opf → run_scopf for optimization. Pass explicit lp_solver / nlp_solver only when the deployment requires it.run_sced (single-period) and run_scuc (multi-period commitment). Call get_dispatch_request_schema() before constructing the request dict.compute_nerc_atc / compute_ac_atc for transfer capability. Build source/sink bus lists from list_buses output.export_tables(output_dir) to hand CSVs back to the user.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.
create_empty_network, add_bus, add_generator, add_load, add_line, add_transformer, add_storage.set_branch_rating, set_branch_in_service (outages), set_generator_limits, set_generator_in_service.scale_loads(factor, area?), scale_generators(factor, area?).remove_bus, remove_branch, remove_generator, remove_load.format="summary". Use "sparse" or "full" only when CSR or dense output is actually needed."default"); pass "highs" / "ipopt" for open-source runs, "gurobi" for large MIPs. See references/SOLVER_GUIDE.md.get_dispatch_request_schema() before building a run_sced / run_scuc request dict.Map observed violations to the mitigation skill that handles them. If multiple triggers fire, escalate voltage → thermal → contingency.
| Observation | Escalate to |
|---|---|
Any bus vm_pu < 0.95 or > 1.05 | voltage-violation-mitigation |
Any branch loading > 100% of rate_a_mva | thermal-overload-mitigation |
run_n1_* returns ≥ 1 binding contingency | contingency-mitigation |
get_islands() returns > 1 island after a contingency | contingency-mitigation |
| SCED / SCUC infeasible, reserve shortage, or LMP volatility | operations-planning-mitigation |
run_ac_power_flow fails to converge on the base case | convergence-failure-mitigation |
| The study is a new generator, storage, or large-load connection at a POI | interconnection-impact-mitigation |
Report the specific numbers that triggered the escalation (bus + vm_pu, branch + loading %, contingency label). Do not say "violations exist" without values.
scripts/network_analysis.py — inspection and base PF review.scripts/sensitivity_analysis.py — PTDF, LODF drill-down.scripts/contingency_analysis.py — N-1 / N-2 summaries.scripts/contingency_ranking.py — N-1 → severity rank → CSV → mitigation-skill mapping. python contingency_ranking.py <case> <out_dir>.scripts/opf_analysis.py — DC / AC / SCOPF with solver-selection examples.scripts/dispatch_analysis.py — SCED / SCUC.scripts/transfer_capability.py — NERC ATC and AC ATC path setup.scripts/test_scripts.py — end-to-end smoke test on a built-in case.references/API_REFERENCE.md — 44-tool catalog.references/SOLVER_GUIDE.md — HiGHS / Gurobi / Ipopt selection.references/EXAMPLES.md — multi-tool workflows.references/DISPATCH_REQUEST_SCHEMA.json — JSON schema for run_sced / run_scuc request. Also served by get_dispatch_request_schema().get_network_info.evals/evals.json (opens in a new tab)evals/mcp_config.example.json (opens in a new tab)evals/run_eval_with_mcp.py (opens in a new tab)references/API_REFERENCE.md (opens in a new tab)references/DISPATCH_REQUEST_SCHEMA.json (opens in a new tab)references/EXAMPLES.md (opens in a new tab)references/SOLVER_GUIDE.md (opens in a new tab)requirements.txt (opens in a new tab)scripts/contingency_analysis.py (opens in a new tab)scripts/contingency_ranking.py (opens in a new tab)scripts/dispatch_analysis.py (opens in a new tab)scripts/network_analysis.py (opens in a new tab)scripts/opf_analysis.py (opens in a new tab)scripts/sensitivity_analysis.py (opens in a new tab)scripts/test_scripts.py (opens in a new tab)scripts/transfer_capability.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub power-agent/powerskills --plugin powerskills-tool11 skills in this plugin
/andesProgressive-disclosure workflow for ANDES dynamic studies. Use whenever the user wants to run ANDES through PowerMCP for power flow, small-signal / eigenvalue analysis, or time-domain simulation — even when they just say "check the damping", "is this stable", "run a fault", or "look at the oscillation modes". Exposes a solved base case before eigenvalue screening and time-domain runs. Reach for this instead of answering ANDES dynamics questions unaided./egretProgressive-disclosure workflow for Egret market and operations optimization. Use whenever the user wants to run DC-OPF, AC-OPF, or unit commitment through PowerMCP — even when they just say "what's the cheapest dispatch", "commit the units", "check for congestion", or "is this schedule feasible". Exposes the simplest credible optimization (DC-OPF) before escalating to AC-OPF or full unit commitment. Reach for this instead of answering Egret optimization questions unaided./ltspiceOther plugins' skills for the same job