power-flow-data

Parse MATPOWER network data to extract bus, generator, and branch topology.

4|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/GeneralReasoning/env-skillsbench --skill power-flow-data-generalreasoning
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: power-flow-data
Source: https://github.com/GeneralReasoning/env-skillsbench/tree/main/grid-dispatch-operator/environment/skills/power-flow-data
Command: npx skills add https://github.com/GeneralReasoning/env-skillsbench --skill power-flow-data-generalreasoning

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

MATPOWER-network data files can be large and complex to parse, validate, and analyze for reliable power-flow studies; this Skill provides guidance to load, interpret, and summarize such data.

Core Features & Use Cases

  • Understanding MATPOWER data structures (baseMVA, bus, gen, branch)
  • Loading and summarizing network data in Python with safe parsing
  • Mapping bus numbers, identifying connections, and interpreting bus types and branches
  • Computing quick topology metrics (counts of buses, generators, branches)

Quick Start

Load a MATPOWER-formatted network file and print a quick summary of buses, generators, and branches.

Frequently Asked Questions about power-flow-data

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I parse MATPOWER network data for power-flow analysis?

To parse MATPOWER network data for power-flow analysis, use Python's JSON parser to load bus, generator, and branch structures, then extract topology information and compute quick metrics for validation.

What is the structure of MATPOWER data for bus and branch interpretation?

MATPOWER data structures consist of baseMVA, bus, gen, and branch matrices. Interpreting them involves mapping bus numbers, identifying connections, and applying per-unit conversions for accurate power-flow analysis.

Can I summarize power system topology metrics using Python?

Yes, you can summarize power system topology metrics using Python by safely parsing the network file to compute quick counts of buses, generators, and branches for large-scale electrical grid analysis.

How do I handle bus numbering and type mapping in large network files?

Handling bus numbering and type mapping in large network files requires interpreting the MATPOWER bus matrix structure to correctly identify bus types and map connection points for topology summarization.

What is the best way to validate large power grid network data?

The best way to validate large power grid network data is to parse the MATPOWER-formatted file using Python and perform quick validation checks by summarizing topology metrics and verifying bus, generator, and branch counts.