Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

pp-nepra

БесплатноБез исполняемых скриптовНе проверен

Pakistan's electricity regulator publishes the country's only plant-level power data as Excel-exported HTML that reads as empty and PDFs nobody extracts…

mvanhornот mvanhorn★ 2 170 звёзд на GitHub

Об этом скилле

NEPRA — Printing Press CLI

Prerequisites: Install the CLI

This skill drives the nepra-pp-cli binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:

  1. Install via the Printing Press installer. It defaults binaries to $HOME/.local/bin on macOS/Linux and %LOCALAPPDATA%\Programs\PrintingPress\bin on Windows:
    npx -y @mvanhorn/printing-press-library install nepra --cli-only
    
  2. Verify: nepra-pp-cli --version
  3. Ensure the reported install directory is on $PATH for the agent/runtime that will invoke this skill.

If the npx install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.6 or newer). This installs into $GOPATH/bin (default $HOME/go/bin), so add that directory to $PATH instead:

go install github.com/mvanhorn/printing-press-library/library/other/nepra/cmd/nepra-pp-cli@latest

If --version reports "command not found" after install, the runtime cannot see the binary directory on $PATH. Do not proceed with skill commands until verification succeeds.

NEPRA is the sole public source for monthly plant-by-plant generation and per-distribution-company reliability in Pakistan, and there is no API, no dataset and no package for any of it. This CLI extracts those releases live from the published documents, keeps unreported months distinct from measured zeros, follows plants across years despite renamed rows and re-sorted row numbers, and surfaces the places the regulator's own documents disagree with themselves instead of quietly picking one.

When to Use This CLI

Reach for this CLI for any question about Pakistani electricity generation at plant granularity, distribution-company reliability against regulatory targets, licensed capacity, or fuel cost adjustment history. It is strongest on questions that need a time series or a cross-entity join that no single published page answers — a plant's seven-year load factor, a listed operator's consolidated fleet, or which distribution company's loss gap widened most. It is also the right tool when you need to know whether a figure is contested, because it records where the regulator's own documents disagree.

Anti-triggers

Do not use this CLI for:

  • Do not use this to audit or recompute a household or business electricity bill — the governing consumer tariff schedules are published as scanned images with no extractable rates, so any figure would be invented.
  • Do not use this for net-metering or prosumer payback simulation; that is a modelling product and this CLI carries only published regulator data.
  • Do not use this for load-shedding schedules or outage timetables; those are distribution-company publications, not regulator data, and are not carried here.
  • Do not use this for consumer-end applicable tariff rates or fuel adjustment after the published consolidated series ends — the later determinations exist only as image-only or character-corrupted documents and the CLI refuses rather than guessing.
  • Do not use this for circular debt, national sales or consumer-count aggregates; those live only inside very large State of Industry PDFs, one of which has no text layer at all.

Unique Capabilities

These capabilities aren't available in any other tool for this API.

The panel nobody else has

  • gen — Pull every power plant's monthly generation and utilisation for a fiscal year as rows you can pipe, with unreported months kept distinct from real zeros.

    Reach for this when you need the whole fiscal year at plant granularity; it is the only machine-readable form of this table that exists.

    nepra-pp-cli gen --fy 2023-24 --agent
    
  • fleet — Follow one plant or a listed operator's whole fleet across the fiscal years the crosswalk has observed, through renames and re-sorted row numbers.

    Use this for any question spanning more than one fiscal year, and for mapping plants to listed operators. meta reports observed_fys against published_fys: the embedded crosswalk does not cover every published year, and the gap is stated rather than hidden.

    nepra-pp-cli fleet --parent HUBC --agent
    
  • capacity — Installed and dependable capacity broken out by plant status and system, so each headline megawatt figure is labelled and derivable.

    Use this when a capacity number has to reconcile; it shows which definition produces which total.

    nepra-pp-cli capacity --as-of 2024-06-30 --by status --agent
    

Trust the number or don't

  • conflicts — List every place NEPRA's own pu
Полный SKILL.md на GitHub

Установить pp-nepra в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Bash

FAQ

Что делает скилл pp-nepra?

Pakistan's electricity regulator publishes the country's only plant-level power data as Excel-exported HTML that reads as empty and PDFs nobody extracts — this turns it into a queryable panel and names every gap. Trigger phrases: `pakistan power plant generation`, `nepra generation data`, `disco t&d losses`, `saifi saidi pakistan`, `pakistan electricity capacity by fuel`, `use nepra`, `run nepra`.

Как установить скилл pp-nepra?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл pp-nepra запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить pp-nepra с