Individual skill
evo-matpower-parser
Parses MATPOWER JSON files into structured Python data with bus mapping, network matrix construction (A, Bbranch, Bbus, PTDF), branch modification, and generator cost parsing.
tasks-evolved/energy-market-pricing/environment/skills/evo-matpower-parser/SKILL.md
Source commit 84ca182da055fafb6453dcec4a6defdbbfd987c1
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Local scripts
- Last checked
- Nov 6, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 97
- Repository last updated
- Sep 10, 2026
- License
- Apache-2.0
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- agent-skills Repository topic
- ai-agents Repository topic
- llm-agents Repository topic
- open-world Repository topic
- self-evolving-agents Repository topic
- data Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 1,913 bytesSKILL.mdcore · 1,913 bytesscripts/utils.pyruns · 5,733 bytes
Read excerpt
# evo-matpower-parser
Parses MATPOWER JSON network files and builds all data structures needed for DC-OPF.
## Key Functions
- `load_matpower_json(filepath)` - Load JSON file, returns dict
- `create_bus_mappings(bus_data)` - Returns (ext2int, int2ext) dicts
- `find_slack_bus(bus_data)` - Returns external bus ID of slack (type 3)
- `parse_generators(gen_data, ext2int)` - Returns dict with ng, gen_bus_int, pmax, pmin, status
- `parse_branches(branch_data, ext2int)` - Returns dict with nl, f/t_bus_int/ext, x, rate_a, status
- `parse_gencost(gencost_data)` - Returns dict with c2, c1, c0 arrays
- `compute_network_matrices(bus_data, branches, ext2int, slack_ext)` - Returns dict with PTDF, Bbus, etc.
- `modify_branch_rate(data, f_bus, t_bus, multiplier)` - Deep copies data, scales RATE_A