whatisgithub

What is pypsa-skills-kit?

nimabahrami/pypsa-skills-kit — explained in plain English

Analysis updated 2026-05-18

13PythonAudience · researcherComplexity · 2/5LicenseSetup · easy

In one sentence

Nine Markdown skill files that teach AI coding assistants the domain expertise needed to correctly build PyPSA energy system models.

Mindmap

mindmap
  root((PyPSA Skills Kit))
    What it does
      Domain skill files
      AI assistant knowledge
      Nine skills
    Tech stack
      Python
      PyPSA
      Markdown
    Use cases
      Debug failing models
      Check plausibility
      Spot foresight bias
    Audience
      Energy researchers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Load domain-specific skill files so an AI coding assistant gives correct PyPSA modeling advice.

USE CASE 2

Debug a PyPSA energy model that fails to solve using the diagnostic skill files.

USE CASE 3

Check a solved energy model for foresight bias that inflates storage revenue estimates.

What is it built with?

PythonPyPSAMarkdown

How does it compare?

nimabahrami/pypsa-skills-kit1lystore/awaekactashui/sjtu-ppt-template-skill
Stars131313
LanguagePythonPythonPython
Setup difficultyeasymoderatemoderate
Complexity2/52/52/5
Audienceresearchervibe coderresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Copy the Markdown skill files into your AI tool's skills folder, compatible with PyPSA 1.0.7 and the HiGHS solver.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

So what is it?

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.

Copy-paste prompts

Prompt 1
Install the PyPSA Skills Kit into Claude Code so it understands PyPSA energy modeling.
Prompt 2
Use the debugging skill from this kit to help me figure out why my PyPSA network won't solve.
Prompt 3
Explain the nodal versus zonal pricing skill from PyPSA Skills Kit in plain terms.

Frequently asked questions

What is pypsa-skills-kit?

Nine Markdown skill files that teach AI coding assistants the domain expertise needed to correctly build PyPSA energy system models.

What language is pypsa-skills-kit written in?

Mainly Python. The stack also includes Python, PyPSA, Markdown.

What license does pypsa-skills-kit use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is pypsa-skills-kit to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is pypsa-skills-kit for?

Mainly researcher.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.