power-get

power-get is a command for Claude Code from muji-j/jp-power-tools. It costs 37 tokens per session (1,449 once invoked), scanned A, original, MIT.

A command-line tool for downloading public Japanese electricity-market data as CSV files, which can be opened in spreadsheet programs. The data includes spot and intraday prices, reserve margins, and selected regional supply-and-demand results.

In plain words
What is it for?
Use it to retrieve supported JEPX and OCCTO datasets for a chosen period and area, preview the request, and save the results as UTF-8 CSV.
Why use it?
It reduces the manual work of choosing a dataset, date, area, and output file while making the selected parameters clear before downloading.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the jp-power plugin — 5 skills, 7 commands shipped together

Good fit Use it to retrieve supported JEPX and OCCTO datasets for a chosen period and area, preview the request, and save the results as UTF-8 CSV.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add muji-j/jp-power-tools
Claude Code
/plugin install jp-power

Made for: Claude Code.

Or install jp-power, the plugin that ships this one along with the rest of its 5 skills, 7 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for power-get

README.md
[![agentmods](https://agentmods.dev/badge/commands/muji-j/jp-power-tools/power-get/github.svg)](https://agentmods.dev/commands/muji-j/jp-power-tools/power-get)
Your own site
<a href="https://agentmods.dev/commands/muji-j/jp-power-tools/power-get"><img src="https://agentmods.dev/badge/commands/muji-j/jp-power-tools/power-get/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for power-get

Your own site · 80×15
<a href="https://agentmods.dev/commands/muji-j/jp-power-tools/power-get"><img src="https://agentmods.dev/badge/commands/muji-j/jp-power-tools/power-get.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,449 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.01449
Opus 5 $0.00018 $0.00724
Sonnet 5 $0.00007 $0.00290
Haiku 4.5 $0.00004 $0.00145

Measured 9d ago against content hash fd4f8447a5cc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

power-get scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

jp-power/commands/power-get.md · 39 lines

How it starts

The opening of the file, as written. The whole thing — 39 lines — stays where its author put it; the contents beside it link to each section on GitHub.

公開一次ソースのデータを取得して CSV(Excel 互換 UTF-8 BOM) で保存する。取得ロジックは scripts/power_data.py、実行は scripts/power_get.py

ライトパス(既定)

一つずつ問い詰めず、提案して確認する流れにする。

  1. 発話から dataset・期間・エリアを抜き出す(例:「東京のスポット、昨日分」→ dataset=spot, area=東京, date=昨日)。dataset が読み取れない/曖昧なら python power_get.py datasets(ネットワーク不要のpeek)で一覧を見せ、選んでもらう。
  2. 未指定項目は既定値を推論して提案する(黙って決め打ちしない。提案した上で確認を取る):
    • 日付未指定の既定: spot/intraday=昨日(スポットは前日10時台に翌日分の約定結果として公表されるため、当日時点で確実に取れるのは前日分)/reserve=翌日(広域予備率は翌日の見通しを見る用途が主)/area-actual=先月(月次・四半期公表が多いため)。
    • エリア未指定 → まず power_profile の常用エリア(/power-setup で登録可)を参照。無ければ質問する(推測で決めない)。
    • area-actual を要求されたら、対応は東京/九州/北海道のみである旨を先に伝える。他エリアの需給を見たいなら reserve(広域予備率)を代替案として提示する。
  3. python power_get.py --dataset <..> ... --dry-run を実行し、解決済みパラメータと保存予定ファイル名を提示する(ネットワーク未接続・ファイル未生成)。--year を使う場合は**年度(4月始まり。例: 2026-07-13は2026年度、2026-03-31は2025年度)**である点を明示する。日付(--date)だけ渡せば年度・期間形式は自動導出されるので、ライトユーザーには基本 --date を勧める。
  4. 「このパラメータで実行してよいか」を1回確認し、OKなら --dry-run を外して実行する。
  5. 完了後、保存パス + 先頭数行 + 行数 + 出典(sites.md) を報告。エラー時は原因と次の一手。

インバランス単価はこのライトパス(CLI)非対応。MCPの power_imbalance_prices(read-only)経由での確認を案内する。

精密パス

  1. 引数があれば使う。無ければ一つずつ尋ねる。
  2. どのデータ? — spot(スポット) / intraday(時間前) / reserve(予備率) / area-actual(エリア需給実績)。python power_get.py datasets でネットワーク不要のpeek(必須/任意パラメータ・対応エリア)を確認できる。 (インバランス単価はこのCLI未対応。HTML1件のみで実CSV取得が未実装のため。MCPのpower_imbalance_pricesは別途利用可)
  3. 選んだデータに必要なパラメータだけ尋ねる:
    • spot/intraday: --year(年度。4月始まり)(必須。--date のみでも自動導出), 任意で --date(その日で行フィルタ)
    • reserve: --from·--to(必須。--date のみなら from=to=date として自動導出), 任意 --area(エリア絞り込み), --granularity koma|daily(既定 koma=jhSybt02)
    • area-actual: --area(東京/九州/北海道 のみ実装), 東京=--yyyymm / 九州=--yyyymmdd / 北海道=--from·--to(YYYYMM、内部でHEPCO形式 YYYYMM-MM に正規化)。--date のみでも各形式へ自動導出される。エリア表記ゆれ(東京電力/TEPCO/tokyo 等)は正式名に自動正規化される。
  4. 保存先は既定 ~/Downloads(変更は --out <ディレクトリ>)、--format json も可。--dry-run で解決済みパラメータ・保存予定ファイル名のみ確認できる(ネットワーク未接続)。
  5. 実行: python "${CLAUDE_PLUGIN_ROOT}/scripts/power_get.py" --dataset <..> ...
  6. 完了後、保存パス + 先頭数行 + 行数 + 出典(sites.md) を報告。エラー時は原因と次の一手。

Read the full file on GitHub · 39 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 39 lines · 37 tokens per session scan A fd4f8447a5cc

Subscribe to this mod's changes

power-get is a command published in the GitHub repository muji-j/jp-power-tools (1 stars, last pushed 1mo ago), licensed MIT. It adds 37 tokens to every session and 1,449 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.