/powerskills-tool:pypsafrom powerskills-tool
Progressive-disclosure workflow for PyPSA studies: load networks, inspect components, run power flow, and solve operational or investment optimization. Use for power system modeling with PyPSA.
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 creating or loading a named network handle. Use network inspection before optimization, and use operational optimization before investment optimization.
load_network(file_path) or create_network(...) to create the active network handle.get_network_info(network_name) and get_component_details(...) to understand topology, assets, and time series.run_power_flow(network_name, linear=False) for feasibility checks.optimize_network(network_name, ...) for dispatch or operational studies.optimize_investment(network_name, ...) for expansion questions.import_from_csv_folder(...) or export_to_csv_folder(...) once the network state is worth moving.Using the case39.nc network shipped with this skill:
load_network("case39.nc") -> network "case39" active, 39 buses
get_network_info("case39") -> 10 generators, 46 branches, 19 loads
run_power_flow("case39", linear=False) -> converged, max branch loading 87%
optimize_network("case39", solver_name="highs") -> feasible dispatch, hourly cost reported
Feasibility first, then dispatch. Only move to optimize_investment once a dispatch
study cannot answer the question.
Quote the numbers that tripped each row (bus + v_mag_pu, element + loading, infeasibility cause) rather than saying "it failed".
| Observation | Escalate to |
|---|---|
Bus v_mag_pu < 0.95 or > 1.05 on an AC power flow | voltage-violation-mitigation |
Line or transformer loaded > 100% of s_nom | thermal-overload-mitigation |
run_contingency_analysis N-1 overload or post-outage islanding | contingency-mitigation |
optimize_network / optimize_investment infeasible, reserve-short, or heavily curtailed | operations-planning-mitigation |
run_power_flow fails to converge | convergence-failure-mitigation |
case39.nc — a ready test network.scripts/network_analysis.py — inspection.scripts/optimization_analysis.py — OPF result review.scripts/expansion_analysis.py — capacity-expansion studies.scripts/contingency_analysis.py — local N-1 screening outside PowerMCP.case39.nc (opens in a new tab)references/API_REFERENCE.md (opens in a new tab)references/EXAMPLES.md (opens in a new tab)requirements.txt (opens in a new tab)scripts/build_case39.py (opens in a new tab)scripts/contingency_analysis.py (opens in a new tab)scripts/expansion_analysis.py (opens in a new tab)scripts/network_analysis.py (opens in a new tab)scripts/optimization_analysis.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
pypsa, power-system-analysis, network-optimization, power-flow, opf
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./ltspiceProgressive-disclosure workflow for LTSpice / PyLTSpice circuit simulation. Use whenever the user wants to create a netlist, run a SPICE transient or AC simulation, inspect traces, or debug LTSpice convergence through PowerMCP — even when they just say "simulate this circuit", "why won't this converge", or "plot the output". Exposes session creation and batch simulation before plotting or GUI steps. Reach for this instead of answering LTSpice questions unaided./opendssProgressive-disclosure workflow for OpenDSS distribution-feeder studies. Use whenever the user wants to compile a DSS model, solve a distribution circuit, inspect feeder bus voltages or power, sweep load multipliers, or run daily / harmonic studies through PowerMCP — even when they just say "solve this feeder", "check the voltages", or "run a daily profile". Exposes a solved base feeder before advanced scenarios. Reach for this instead of answering OpenDSS feeder questions unaided./pandapowerProgressive-disclosure workflow for pandapower power-system studies. Use whenever the user wants to load, build, or inspect a pandapower network, run AC power flow, check bus voltages or line and transformer loading, or screen N-1 contingencies — even when they just say "run a load flow", "check this case", "is anything overloaded", or name a case file like case39.json. Exposes a clean base-case solve before advanced outage studies. Reach for this instead of answering pandapower grid questions unaided./potpourriProgressive-disclosure workflow for potpourri (opf-potpourri) AC/DC and multi-period optimal power flow on pandapower distribution networks, including storage and flexible resources. Use whenever the user wants to optimise rather than just simulate a pandapower or SimBench grid — curtail or redispatch PV, minimise voltage deviation, losses, reactive power or grid import, run a DC screening OPF, build a multi-period or 96-step OPF with batteries, study hosting capacity, or diagnose an infeasible OPF — even when they just say "optimise this feeder", "minimise losses", "schedule the batteries", or "why is my OPF infeasible". Reach for this instead of answering potpourri or Pyomo OPF questions unaided. For a plain load flow with no optimisation, use the pandapower skill instead.Other plugins' skills for the same job