power-agent/powerskills/pypsa
Claude Code and agent skill by power-agent/powerskills
- community
Checking that the SKILL.md file is still in the repository.
Progressive-disclosure workflow for PyPSA studies. Use whenever the user wants to load or build a PyPSA network, inspect components or time series, run power flow, solve operational OPF, or run capacity-expansion / investment optimization — even when they just say "optimize the dispatch", "size the storage", "run an expansion", or hand over a netCDF/CSV network like case39.nc. Exposes network inspection and feasibility before large optimization, and operational optimization before investment. Reach for this instead of answering PyPSA questions unaided.
Install
npx vskill@latest install power-agent/powerskills/pypsaSKILL.md
The same SKILL.md was published earlier as power-agent/powerskills/pypsa.
PyPSA workflow
Start by creating or loading a named network handle. Use network inspection before optimization, and use operational optimization before investment optimization.
Default tool ladder
load_network(file_path)orcreate_network(...)to create the active network handle.get_network_info(network_name)andget_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(...)orexport_to_csv_folder(...)once the network state is worth moving.
Example sequence
Using the case39.nc network shipped with this skill:
Feasibility first, then dispatch. Only move to optimize_investment once a dispatch study cannot answer the question.
Working rules
- Do not jump straight into expansion optimization when a dispatch study can answer the question.
- Use AC or DC power flow to sanity-check a network before relying on optimization outputs.
- Treat PyPSA as a planning and scheduling engine, not the final authority on detailed reactive mitigation.
Escalation triggers
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 |
Local assets in this skill
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.
Deliver
- The network handle and study type.
- The main feasibility or cost result.
- Whether the next step is mitigation, AC validation, or a larger optimization.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpowerskills-tool/skills/pypsa/SKILL.md
Popularity
- Repository stars
- 45
- Repository forks
- 11
- 7-day trend score
- 19
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/power-agent/powerskills/pypsa)