ln-agent-poc-v2: Command for Claude Code

.claude/commands/bitrefill-purchase.md

bitrefill-purchase is a command for Claude Code from cachet-jp/ln-agent-poc-v2. It costs 0 tokens per session (1,308 once invoked), scanned A, original, MIT.

A guided command for buying gift cards, eSIMs, and mobile top-ups from Bitrefill using Bitcoin Lightning, Cashu ecash, or Ark wallets.

In plain words
What is it for?
It helps find eligible Bitrefill products, review packages or amounts, check available Bitcoin funds, and complete a confirmed purchase.
Why use it?
It organizes product search, detail checking, balance checks, confirmation, and purchase into one flow.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is cachet-jp/ln-agent-poc-v2's own configuration. It tells Claude Code how to work on ln-agent-poc-v2 itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ln-agent-poc-v2 configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/cachet-jp/ln-agent-poc-v2/main/.claude/commands/bitrefill-purchase.md
Clone the repo
git clone --depth 1 https://github.com/cachet-jp/ln-agent-poc-v2

Made for: Claude Code.

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 bitrefill-purchase

README.md
[![agentmods](https://agentmods.dev/badge/commands/cachet-jp/ln-agent-poc-v2/bitrefill-purchase/github.svg)](https://agentmods.dev/commands/cachet-jp/ln-agent-poc-v2/bitrefill-purchase)
Your own site
<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.

agentmods 80×15 button for bitrefill-purchase

Your own site · 80×15
<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>
Per session 0 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,308 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.00000 $0.01308
Opus 5 $0.00000 $0.00654
Sonnet 5 $0.00000 $0.00262
Haiku 4.5 $0.00000 $0.00131

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

Security

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.

.claude/commands/bitrefill-purchase.md · 132 lines

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: 商品検索

  1. bitrefill_search で商品を検索
    • 日本の商品: country: "JP"
    • 全商品ブラウズ: query: "*"
  2. 検索結果を一覧表示(名前、カテゴリ、価格帯)
  3. ユーザーに商品を選択してもらう

Step 3: 商品詳細確認

  1. bitrefill_product_detail で詳細を取得
  2. 以下を表示:
    • 商品名・説明
    • 利用可能な金額/パッケージ
    • 引き換え方法
  3. ユーザーに金額・数量を選択してもらう

Step 4: 残高確認

  1. cashu_get_balance で Cashu ecash 残高を確認
  2. 残高が不足している場合:
    • Cashu トークンを受け取る(cashu_receive_tokens
    • または Ark 残高から補充(cashu_mint_tokens
  3. 両方不足なら入金方法を案内

Step 5: 購入確認

購入前にユーザーに確認:

購入内容:
  商品: [商品名]
  金額: [金額] [通貨]
  数量: [数量]

Cashu 残高: XX,XXX sats

続行しますか? (はい / いいえ)

Step 6: 購入実行

ユーザーが「はい」と答えたら bitrefill_buy を呼び出す:

  • productId: 選択した商品ID
  • value: 金額(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 アカウント残高

Read the full file on GitHub · 132 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 · 132 lines · 0 tokens per session scan A f168cde9eec0

Subscribe to this mod's changes

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.