Borrowing it
Nothing to install: this file belongs to cachet-jp/ln-agent-poc-v2. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/cachet-jp/ln-agent-poc-v2/main/.claude/commands/bitrefill-purchase.mdgit clone --depth 1 https://github.com/cachet-jp/ln-agent-poc-v2Wrote 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.
[](https://agentmods.dev/commands/cachet-jp/ln-agent-poc-v2/bitrefill-purchase)<a href="https://agentmods.dev/commands/cachet-jp/ln-agent-poc-v2/bitrefill-purchase"><img src="https://agentmods.dev/badge/commands/cachet-jp/ln-agent-poc-v2/bitrefill-purchase/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.
<a href="https://agentmods.dev/commands/cachet-jp/ln-agent-poc-v2/bitrefill-purchase"><img src="https://agentmods.dev/badge/commands/cachet-jp/ln-agent-poc-v2/bitrefill-purchase.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.01308 |
| Opus 5 | $0.00000 | $0.00654 |
| Sonnet 5 | $0.00000 | $0.00262 |
| Haiku 4.5 | $0.00000 | $0.00131 |
Grade A, and why
bitrefill-purchase 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.
How it starts
The opening of the file, as written. The whole thing — 132 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/bitrefill-purchase - Bitrefill でギフトカード・eSIM・トップアップを購入
Bitrefill の世界170カ国以上の商品を Bitcoin Lightning (Cashu ecash / Ark) で購入します。
Instructions
Step 1: ユーザーに説明
以下を簡潔に表示し、何を購入したいか確認してください:
Bitrefill 購入フロー
Bitrefill では世界中のギフトカード・eSIM・モバイルトップアップを BTC で購入できます。
- ギフトカード: Amazon, Google Play, Netflix, Steam, App Store, Uber 等
- eSIM: 170カ国以上のデータプラン
- モバイルトップアップ: 世界中のキャリアに対応
- 支払い: Cashu ecash / Ark ウォレットの BTC で Lightning 支払い
何を購入しますか?(商品名、カテゴリ、国など)
Step 2: 商品検索
bitrefill_searchで商品を検索- 日本の商品:
country: "JP" - 全商品ブラウズ:
query: "*"
- 日本の商品:
- 検索結果を一覧表示(名前、カテゴリ、価格帯)
- ユーザーに商品を選択してもらう
Step 3: 商品詳細確認
bitrefill_product_detailで詳細を取得- 以下を表示:
- 商品名・説明
- 利用可能な金額/パッケージ
- 引き換え方法
- ユーザーに金額・数量を選択してもらう
Step 4: 残高確認
cashu_get_balanceで Cashu ecash 残高を確認- 残高が不足している場合:
- Cashu トークンを受け取る(
cashu_receive_tokens) - または Ark 残高から補充(
cashu_mint_tokens)
- Cashu トークンを受け取る(
- 両方不足なら入金方法を案内
Step 5: 購入確認
購入前にユーザーに確認:
購入内容:
商品: [商品名]
金額: [金額] [通貨]
数量: [数量]
Cashu 残高: XX,XXX sats
続行しますか? (はい / いいえ)
Step 6: 購入実行
ユーザーが「はい」と答えたら bitrefill_buy を呼び出す:
productId: 選択した商品IDvalue: 金額(variable-price の場合)packageId: パッケージID(fixed-denomination の場合)quantity: 数量email: メール(必要な場合)
Step 7: 結果表示
=== Bitrefill 購入完了 ===
商品: [商品名]
コード: [redemption code]
PIN: [PIN(該当する場合)]
BTC 支払額: XX,XXX sats
支払方法: Cashu / Ark
注文ID: [orderId]
Cashu 残高(購入後): XX,XXX sats
引き換え方法がある場合はそれも表示してください。
エラー時の対応
- API 認証エラー: BITREFILL_API_ID / BITREFILL_API_SECRET の設定を確認するよう案内
- Cashu 残高不足: トークン受取 or Ark からチャージを提案
- 商品が見つからない: 検索クエリを変えて再検索を提案
- 支払いタイムアウト: 注文ステータスを
bitrefill_order_statusで確認 - コード取得失敗: 注文ID を控えて Bitrefill サポートに連絡を案内
利用可能なツール
カスタム purchasing-agent ツール(Cashu/Ark 支払い対応)
bitrefill_search— 商品検索bitrefill_product_detail— 商品詳細bitrefill_categories— カテゴリ一覧bitrefill_buy— 購入実行(Lightning 支払い → コード取得)bitrefill_order_status— 注文状況確認bitrefill_account_balance— Bitrefill アカウント残高
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.
- 9d ago First seen · 132 lines · 0 tokens per session scan A f168cde9eec0
bitrefill-purchase is a command published in the GitHub repository cachet-jp/ln-agent-poc-v2 (4 stars, last pushed 5d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,308 tokens. 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.
Other commands, from other repositories
CLAUDE
Command "CLAUDE" from Calhooon/bsv-wallet-cli, covering commands, files, decisions, gotchas and related.
verify-e2e-flow
Verify that the E2E scripts for the specified chain follow the documented transaction flow.
keygen-wallet
Keygen Wallet operates offline as a cold wallet. It generates keys, creates multisig addresses, and provides the first signature for multisig transactions.
watch-wallet
Watch Wallet operates online and manages public keys only. It creates unsigned transactions, sends signed transactions, and monitors transaction status.
fix-btc-e2e-p11
Fix errors in BTC E2E test (Pattern 11: P2TR Tapscript M-of-N).
fix-bch-e2e-p3
Fix errors in BCH E2E test (Pattern 3: P2SH 3-of-3 Multisig).