power-setup

power-setup is a command for Claude Code from muji-j/jp-power-tools. It costs 37 tokens per session (2,862 once invoked), scanned B, original, MIT.

A setup command that checks whether Python, the correct Python interpreter, and required libraries are available for the jp-power tools. It also checks the power-market MCP server’s environment.

In plain words
What is it for?
Use it to inspect Python versions and paths, verify dependencies, and prepare the local environment for data retrieval, bid CSV creation, and briefing tools.
Why use it?
It identifies common setup problems, especially when a computer provides python3 but not the python command, before the tools are used.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; names the AskUserQuestion tool; mentions Claude Code.

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 inspect Python versions and paths, verify dependencies, and prepare…

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/muji-j/jp-power-tools/power-setup.svg)](https://agentmods.dev/commands/muji-j/jp-power-tools/power-setup)
Your own site
<a href="https://agentmods.dev/commands/muji-j/jp-power-tools/power-setup"><img src="https://agentmods.dev/badge/commands/muji-j/jp-power-tools/power-setup.svg" alt="Measured on agentmods" 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 2,862 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.02862
Opus 5 $0.00018 $0.01431
Sonnet 5 $0.00007 $0.00572
Haiku 4.5 $0.00004 $0.00286

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

Security

Grade B, and why

power-setup scanned grade B with 1 finding 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 6d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

MCPサーバーの起動設定は**ユーザー設定がプラグイン既定を完全に上書きする**(優先順位: `settings.local.json` > `.mcp.json` > `~/.claude/settings.json` > プラグイン既定)。したがって `plugin.json` 自体は変更せず(Windows環境に影響を与えないため)、ユーザー設定側に正しいインタプリタを登録すれば解決する。
jp-power/commands/power-setup.md · 99 lines

How it starts

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

jp-power のスクリプト(データ取得・入札CSV・朝ブリーフィング)と MCPサーバー(power_mcp.py)を 動かすための実行環境を点検し、不足があればユーザーに確認してから導入する。

手順

1. Python の点検

  • python --version(無ければ python3 --version / py --version)を実行し、バージョンを確認する。
  • 見つからない場合は勝手に入れず、必ずユーザーに確認する(Python 本体の導入は管理者権限やOS設定に影響し得るため)。
    • Windows: winget install -e --id Python.Python.3.12提案し、同意を得たら実行。失敗時は https://www.python.org/downloads/ を案内。
    • macOS: brew install python を提案。Linux: ディストリのパッケージ(apt/dnf 等)を案内。
    • 導入後は新しいシェルで再点検。

2. MCPサーバーのPythonインタプリタ確認(macOS/Linux で特に重要)

power-data MCPサーバーはプラグイン既定(plugin.json)で command: "python" を使って起動する。これは Windows 向けの既定であり、macOS/Linux では python コマンドが存在せず python3 のみ、という環境が多い。その場合、既定のままだと Claude Code 起動時に MCPサーバーが自動起動しない。

  • 次を順に試し、実際に動作し、バージョン3.10以上を返すものを探す(--version の応答内容で判定すること。Windows の WindowsApps 配下の python3 は Microsoft Store への誘導スタブで実体が入っていないことがあるため、応答が正常に返るかで確認する):
    1. python --version
    2. python3 --version
    3. py -3 --version
  • 動作したインタプリタの絶対パスを取得する(例: which python3 / where python / py -3 -c "import sys; print(sys.executable)")。
  • プラグイン既定の python がそのまま動作する場合(多くの Windows 環境): 何もしなくてよい。現状のまま自動起動する旨を案内して次へ進む。
  • python が動作しない場合(多くの macOS/Linux 環境): 手順5「MCPインタプリタの上書き設定」で対処する。

3. ライブラリの点検

インストール済みか確認(python -c "import <mod>" の成否で判定):

  • 必須: requests(データ取得)
  • MCPサーバー用: mcp, anyio
  • 推奨: pandas(表を列名付きにし、朝ブリーフィング自動化の精度を上げる)

4. 不足があれば確認して導入

  • 不足パッケージを一覧で示し、「導入してよいか」をユーザーに確認(AskUserQuestion 可)。
  • 同意後: python -m pip install -r "${CLAUDE_PLUGIN_ROOT}/scripts/requirements.txt"(または不足分のみ python -m pip install requests mcp anyio pandas)を実行。
  • venv 利用を希望する場合は python -m venv .venv → 有効化 → 同 pip を案内。

5. MCPインタプリタの上書き設定(手順2で python が動作しなかった場合のみ)

MCPサーバーの起動設定はユーザー設定がプラグイン既定を完全に上書きする(優先順位: settings.local.json > .mcp.json > ~/.claude/settings.json > プラグイン既定)。したがって plugin.json 自体は変更せず(Windows環境に影響を与えないため)、ユーザー設定側に正しいインタプリタを登録すれば解決する。

重要: ~/.claude/settings.json はプラグインの外側にあるファイルのため、${CLAUDE_PLUGIN_ROOT} のようなプラグインスコープの変数はここでは展開が保証されない。展開されずリテラル文字列のまま実行されると python: can't open file '${CLAUDE_PLUGIN_ROOT}/scripts/power_mcp.py' のように MCPサーバーが静かに起動失敗する。インタプリタ・スクリプトともに、実在を確認した絶対パスのみを書き込むこと(${CLAUDE_PLUGIN_ROOT} は書かない)。

Read the full file on GitHub · 99 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. 6d ago First seen · 99 lines · 37 tokens per session scan B 702feaecd61f

Subscribe to this mod's changes

power-setup 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 2,862 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.