nimabahrami/pypsa-skills-kit — explained in plain English
Analysis updated 2026-05-18
Load domain-specific skill files so an AI coding assistant gives correct PyPSA modeling advice.
Debug a PyPSA energy model that fails to solve using the diagnostic skill files.
Check a solved energy model for foresight bias that inflates storage revenue estimates.
| nimabahrami/pypsa-skills-kit | 1lystore/awaek | actashui/sjtu-ppt-template-skill | |
|---|---|---|---|
| Stars | 13 | 13 | 13 |
| Language | Python | Python | Python |
| Setup difficulty | easy | moderate | moderate |
| Complexity | 2/5 | 2/5 | 2/5 |
| Audience | researcher | vibe coder | researcher |
Figures from each repo's GitHub metadata at analysis time.
Copy the Markdown skill files into your AI tool's skills folder, compatible with PyPSA 1.0.7 and the HiGHS solver.
PyPSA Skills Kit is a collection of nine knowledge files that teach AI coding assistants how to work with PyPSA, an open-source Python library for modeling and optimizing energy systems (power grids, batteries, hydrogen networks, and similar infrastructure). When engineers use tools like Claude Code or Windsurf to build energy models, the AI knows the programming API but not the domain expertise: which modeling choice avoids a subtle error, why a particular revenue estimate will be too optimistic before a lender ever sees it, or what a suspicious shadow price actually signals. These skill files encode that judgment in a form the AI can load and apply. The kit contains nine skills, each answering a different class of question. Some are diagnostic: one helps debug a model that refuses to solve, another checks whether a solved result is physically plausible. Some are design-focused: one covers how to represent heat, hydrogen, transport, and industrial loads in a single model, another explains market design choices like nodal versus zonal pricing and how congestion revenue works. Two address economics: one flags foresight bias that makes storage revenue look artificially high, another handles the practical question of where to get realistic input data for fuel prices, technology costs, and weather. The skill files are plain Markdown. Installation means copying them into the folder your AI tool watches for skills or rules files. Once installed, the right skill loads automatically when you describe a problem, or you can call one explicitly by name. The full kit is about 23,000 tokens of content, but a typical session loads only around 2,600 tokens because most skills stay on disk until needed. The author ran every code example in the files against actual solved networks before publishing, which caught at least two errors (a sign inversion and an arbitrage trap) that would otherwise have quietly produced wrong answers. A smoke test script compiles all scripts, solves a synthetic network, and runs the validator, so the test suite exercises real computation rather than just checking that the files parse. The kit is compatible with PyPSA 1.0.7, the HiGHS solver, and the linopy constraint language. It also supports workflow frameworks built on top of PyPSA, including PyPSA-Eur and PyPSA-Earth. The license is MIT.
Nine Markdown skill files that teach AI coding assistants the domain expertise needed to correctly build PyPSA energy system models.
Mainly Python. The stack also includes Python, PyPSA, Markdown.
Use freely for any purpose, including commercial use, as long as you keep the copyright notice.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly researcher.
This repo across BitVibe Labs
Verify against the repo before relying on details.