power-bid

power-bid is a command for Claude Code from muji-j/jp-power-tools. It costs 36 tokens per session (2,735 once invoked), scanned A, original, MIT.

A command that creates a draft CSV for bids in Japan’s balancing market, using a time range, price, and offered amount. A CSV is a plain text table that other software can read.

In plain words
What is it for?
Use it to prepare and review a draft bid for a selected area, date, product, time period, price, and quantity before writing the CSV file.
Why use it?
It helps structure a bid while leaving money-related values for the user to enter and confirm, reducing accidental assumptions.

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 prepare and review a draft bid for a selected area, date, product, time period, price, and quantity before writing the CSV file.

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-bid

README.md
[![agentmods](https://agentmods.dev/badge/commands/muji-j/jp-power-tools/power-bid/github.svg)](https://agentmods.dev/commands/muji-j/jp-power-tools/power-bid)
Your own site
<a href="https://agentmods.dev/commands/muji-j/jp-power-tools/power-bid"><img src="https://agentmods.dev/badge/commands/muji-j/jp-power-tools/power-bid/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-bid

Your own site · 80×15
<a href="https://agentmods.dev/commands/muji-j/jp-power-tools/power-bid"><img src="https://agentmods.dev/badge/commands/muji-j/jp-power-tools/power-bid.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,735 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.00036 $0.02735
Opus 5 $0.00018 $0.01367
Sonnet 5 $0.00007 $0.00547
Haiku 4.5 $0.00004 $0.00274

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

Security

Grade A, and why

power-bid 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-bid.md · 72 lines

How it starts

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

需給調整市場の応札CSVの下書きを生成する。対象: $ARGUMENTS(不足する項目は確認する)。

単価(--price)と入札量(--qty)は金額に直結するため、いかなる場合も自動補完しない。必ずユーザー本人が明示入力すること。

ライトパス(既定)

  1. 発話から エリア・日付・商品・時間帯・単価・入札量 を抜き出す(例:「明日の東京、三次②を16時〜20時」→ 日付=翌日、エリア=東京、商品=三次調整力②、時間帯=16:00-20:00。単価・入札量は発話に無ければ未確定のまま次へ)。
  2. python power_bid.py --info --product <商品>(ネットワーク不要)で、その商品の ΔkW上限価格・単位・最低入札量・応動時間を取得し、ユーザーに提示する。商品が未指定なら --info(引数なし)で全商品一覧を見せ、選んでもらう。
  3. 不足項目を補う。推測で埋めない項目は必ず質問する:
    • 日付未指定 → 「翌日でよいか」を提案し確認(応札は前日締切のため、既定は翌日が自然)。
    • エリア未指定 → まず power_profile の常用エリアを参照(/power-setup で登録済みなら自動解決)。無ければ9エリア(北海道/東北/東京/中部/北陸/関西/中国/四国/九州、沖縄は需給調整市場の対象外)を提示して質問する。
    • 商品未指定 → 候補一覧(一次調整力/二次調整力①/二次調整力②/三次調整力①/三次調整力②/複合)を提示して選んでもらう。推測で決め打ちしない。略称(三次②/RR2/FRR等)は power_bid.py 側で正式名に解決される。
    • 時間帯未指定 → 16:00-20:00 のような時刻形式(30分単位)、またはコマ番号 33-40 形式で聞く。
  4. 単価・入札量は自動補完しない。 手順2で得た上限価格・単位・最低入札量(1,000kW=1MW、刻み1kW)をユーザーに見せたうえで、単価(円/ΔkW·30分)と入札量(kW)を本人に入力してもらう。上限超過は拒否されず精算時に上限価格で頭打ちになる旨、複合商品は単独約定でも複合の上限価格が適用される旨を、該当する場合は先に伝える。
  5. 確定した値で python power_bid.py ... --dry-run を実行し、要約(受渡日・エリア・商品・コマ数・単価・入札量・上限判定)と先頭3行を提示する(ファイルは未生成)。内容をユーザーに確認してもらい、OKが出たら --out <ファイル> を付けて再実行し下書きCSVを書き出す。

精密パス

  1. jp-power スキルを読み込み、references/markets.md の需給調整市場(商品・応動時間・ΔkW上限価格・単位)を確認する。
  2. 入力(受渡日・エリア・商品・コマ範囲・単価・入札量、任意で上げ/下げ・価格範囲)を整理する。
  3. ${CLAUDE_PLUGIN_ROOT}/scripts/power_bid.py(無ければ jp-power/scripts/power_bid.py)を実行して下書きCSVを生成する。
    python power_bid.py --date <YYYY-MM-DD> --area <エリア> --product <商品> \
      --komas <33-40 / 16:00-20:00> --price <単価> --qty <入札量> [--updown 上げ|下げ] \
      [--price-max <上限> --price-step <刻み>]
    
    補助フラグ: --info [--product <商品>](上限価格・単位・最低入札量・応動時間の確認、ネットワーク不要)、--dry-run(ファイル未生成で要約確認)、--hours--komas の別名(時刻表記向け)、--date 省略時は翌日、--area 省略時は power_profile の常用エリアを参照。
  4. 生成したCSVを提示し、次を明示する:
    • ΔkW上限価格の超過があれば警告する(下表参照。円/ΔkW·30分)。上限超過は応札・約定を拒否されないが、精算手続で上限価格が適用され頭打ちになる(マルチプライス=pay-as-bidのため超過分は実損)。
    • 列名・区切り・単位・ファイル名は実システムのテンプレートに合わせて要マッピングであること(本ツールは汎用スキーマの下書き)。
    • 下げ区分を指定された場合は「需給調整市場は現行、上げ区分のみ調達(下げは余力活用契約等で対応)」と注意喚起する。

Read the full file on GitHub · 72 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 · 72 lines · 36 tokens per session scan A fe1eab6ac3ae

Subscribe to this mod's changes

power-bid is a command published in the GitHub repository muji-j/jp-power-tools (1 stars, last pushed 1mo ago), licensed MIT. It adds 36 tokens to every session and 2,735 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.