Borrowing it
Nothing to install: this file belongs to echennells/sparkbtcbot. 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/echennells/sparkbtcbot/main/CLAUDE.mdgit clone --depth 1 https://github.com/echennells/sparkbtcbotWrote 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/instructions/echennells/sparkbtcbot/claude-md)<a href="https://agentmods.dev/instructions/echennells/sparkbtcbot/claude-md"><img src="https://agentmods.dev/badge/instructions/echennells/sparkbtcbot/claude-md/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/instructions/echennells/sparkbtcbot/claude-md"><img src="https://agentmods.dev/badge/instructions/echennells/sparkbtcbot/claude-md.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.01996 | $0.01996 |
| Opus 5.5 | $0.00798 | $0.00798 |
| Sonnet 5.5 | $0.00399 | $0.00399 |
| Haiku 4.5 | $0.00200 | $0.00200 |
Grade A, and why
sparkbtcbot CLAUDE.md 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 today.
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 — 110 lines — stays where its author put it; the contents beside it link to each section on GitHub.
sparkbtcbot
Claude Code skill for setting up Spark Bitcoin L2 wallet capabilities for AI agents.
Installation: the plugin marketplace, or clone anywhere (e.g. ~/sparkbtcbot) and symlink the nested skill: ln -s ~/sparkbtcbot/skills/sparkbtcbot ~/.claude/skills/sparkbtcbot. Never clone directly into ~/.claude/skills/ — the skill nests at skills/sparkbtcbot/, so a direct clone buries SKILL.md too deep to be discovered (README → Local clone).
What This Skill Does
Teaches Claude Code how to give AI agents Bitcoin capabilities using the Spark L2:
- Initialize Wallet — Create or import a BIP39 mnemonic-based wallet
- Check Balance — Query BTC and token balances
- Receive Deposits — Generate L1 Bitcoin deposit addresses
- Transfer BTC — Instant, zero-fee Spark-to-Spark transfers
- Lightning Invoices — Create and pay BOLT11 invoices (Lightning Network interop)
- Spark Invoices — Native Spark invoices payable in sats or tokens
- Token Operations — Transfer BTKN/LRC20 tokens natively
- Withdraw to L1 — Cooperative exit back to on-chain Bitcoin
- Message Signing — Sign and verify messages for identity proof
- Merchant Purchases — Buy real-world goods/services with sats (Bitrefill, nadanada) under a shared payment policy (
references/merchant-spending.md): invoice-vs-quote guard, confirm-before-buy, PII consent, bearer-secret deliverables - Unilateral-Exit Backup — Continuously-fresh
spark.unilateral-exit-bundle.v1recovery bundle (the "leaf-vault"), consumed by Blink's spark-unilateral-exit tool if the operators ever vanish
Structure
lib/
atomic-file.js # the one atomic writer (temp+fsync+link/rename+dir-fsync)
encrypted-seed.js # scrypt + AES-256-GCM seed file helper
leaf-vault.js # SDK-free recovery-bundle persistence + shape validation
fee-guards.js # fee/amount ceilings for sends, claims, withdrawals
l402-token.js # SDK-free: read the expiry a server signed into an L402 token (fetchL402 refuses dead ones)
payment-outcome.js # PaymentCommittedError + the SDK's pre-send error list (pinned to the installed SDK)
fiat-rate.js # BTC price from mempool.space + Coinbase, cross-checked (the number behind "$100")
spend-ledger.js # rolling-window cumulative budget (bounds send LOOPS)
transfer-ids.js # persisted per-invoice Lightning dedup transferId (safe retries)
wallet-privacy.js # SDK-free: turn the operators' per-wallet privacy setting on (wallets are public by default)
recipients-allowlist.js # opt-in outbound allowlist guardrail
wallet-options.js # sparkWalletOptions: every wallet opens with the SDK's fee ladders OFF (default ON since 0.13)
index.js / index.d.ts # npm entry (also exports ./leaf-vault subpaths)
skills/
sparkbtcbot/
SKILL.md # Always-loaded skill body (security, setup, navigator)
references/ # Detail loaded on demand (SDK API, agent class, L402, etc.)
encrypted-seed.md # Threat model, setup modes, recovery
unilateral-exit.md # The leaf-vault backup + Blink's exit tool
first-spend.md # The product path: fiat invoice for a newbie → country-aware gift card sized under the balance
supply-chain.md # When/how to offer npm hardening (moved out of SKILL.md for the size ratchet)
recovery-scenarios.md # Recovery properties (staleness, justice, economics)
scripts/ # Runnable example scripts
cli.js # `sparkbtcbot <command>` — the single published bin (dispatcher)
setup-encrypted-seed.js # `npm run setup` — one-time bootstrap
leaf-vault.js # snapshotLeafVault / verifyVault / enableLeafVault (library)
leaf-vault-cli.js # `npm run leaf-vault [-- verify]` — snapshot/verify CLI
viewer-key.js # `sparkbtcbot viewer` — read-only access to a private wallet: status/grant(y/N)/revoke/pubkey/balance
balance-and-deposits.js
payment-flow.js
token-operations.js
spark-agent.js
l402-paywalls.js
evals/ # Skill-quality evals (does the skill make Claude produce correct/safe code?)
evals.json # Output evals: SDK-correctness + security-behavior + user-story (graded on the reply), with checkable assertions
trigger-eval.json # Description-triggering queries (see eval-notes/NOTES.md: not measurable via claude -p here)
eval-notes/ # Eval run notes, kept out of the package: how to run + every run's results
NOTES.md # How to run (subagent output evals, with-skill vs baseline) + results, newest at the bottom
findings-*.md / rerun-*.md # Per-run reports
tests/ # vitest suite for the LIBRARY code (unit, integration, funded tiers)
.env.example # Environment variable template
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.
- today Changed · +6 lines · +159 tokens per session 1002dd911afc
- 1mo ago Changed · +8 lines · +254 tokens per session 82c1eb5cca15
- 1mo ago Changed · +86 tokens per session 390efcb316d8
- 1mo ago First seen · 96 lines · 1,497 tokens per session scan A b47a0a2d5680
sparkbtcbot CLAUDE.md is an instructions file published in the GitHub repository echennells/sparkbtcbot (5 stars, last pushed yesterday), licensed MIT. It adds 1,996 tokens to every session, about $0.0080 per session on Opus 5.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.
Other instructions, from other repositories
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
vscode copilot-instructions.md
Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).
vscode model-prompts.instructions.md
Model-specific prompt authoring and registry guidelines.