/bsv-dev:bsv-devfrom BSV Dev
End-to-end playbook for building BSV applications: wallet connection (BRC-100, BSV Desktop, BSV Browser via Wallet Relay), BRC-29 payments, Rúnar contracts, 1Color tokens, testnet-to-mainnet deployment, and BSV error troubleshooting.
Ships in BSV Dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
A playbook for building BSV applications end to end: who holds the keys, how the user's wallet connects, how money moves, how a transaction's state is read, and how the app reaches mainnet. Testnet first, always.
Use it when the user wants to:
internalizeAction and AtomicBEEF;@bsv/simple or @bsv/wallet-toolbox on a server;WERR_INVALID_PARAMETER, FEE_TOO_HIGH, BSV Broadcaster 476, WhatsOnChain 429, Invalid isAuthenticated result.It is not a general BSV encyclopedia. For history, protocol background or "what is X" questions, use the BSV docs MCP (search_docs, get_doc) instead.
Apply these unless the user explicitly decides otherwise; say so when they do.
WalletClient, and a phone wallet (BSV Browser) paired by QR code through Wallet Relay (@bsv/wallet-relay). A locked wallet is waited for, never treated as missing; the app backend decrypts relay traffic, so the app must disclose that. Read references/wallet-brc100.md.references/custody-shapes.md./v1/tx, the SDK ARC class). The app submits to its own BSV Broadcaster client and gates on its own GET /tx/{txid}. Read references/broadcaster-0conf.md.SEEN_ON_NETWORK or later with no competingTxs. A 2xx from POST /tx is provisional; ACCEPTED_BY_NETWORK is not enough; never gate on MINED and never add a block wait. Read references/broadcaster-0conf.md (and references/threat-model.md for why).runar-sdk 0.4.x package, which is stale and unsafe. Read references/stack.md.references/facts.md (section "1Color tokens").@bsv/sdk 3.x WalletClient('auto', originator) for every wallet call in app code. Read references/wallet-brc100.md.@bsv/simple only where it fits: payments, data, messaging or certificates in Next or Express, where shape B is acceptable with its current limits. Read references/simple-routing.md.BSV_NETWORK=mainnet; that one variable switches the app's network, BSV Broadcaster and wallet check. Read references/testnet-to-mainnet.md.GET /policy on your BSV Broadcaster), never from a guessed size. Read references/facts.md (section "Fee rates and measured costs").references/payment-channels.md before proposing one.BSV_MCP_ALLOW_MAINNET_BROADCAST=1 is set. Never set that variable yourself.Check which of these are available before you start.
bsv-mcp (@bsv/mcp, stdio):
| Tool | Use it to |
|---|---|
broadcaster_status | read GET /tx/{txid} with a verdict and isFinalForApp; a 404 means that instance never saw the txid (no verdict, not a rejection) |
broadcaster_submit | broadcast during development: raw or EF hex only (it refuses BEEF), re-reads the status after a 2xx; on mainnet it needs BSV_MCP_ALLOW_MAINNET_BROADCAST=1 |
broadcaster_policy, broadcaster_health | read the fee rate (satPerKb) and the instance's version and height |
check_guardrails | check a project against guardrails G-01..G-38; pass an ABSOLUTE project path (a relative one is rejected) and optionally shape |
brc_lookup | read a BRC as Markdown (29, BRC-29) |
docs_url | resolve a docs id from bsv://docs/index to a live page |
versions_check | compare the pinned stack with npm, the Rúnar head and live BSV Broadcaster versions |
Resources: bsv://facts/* (dated facts), bsv://guardrails and bsv://guardrails#G-xx, bsv://custody-shapes, bsv://threat-model, bsv://docs/index.
The MCP's broadcaster_* tools are for development. App code does not call them: the app has its own BSV Broadcaster client, submits to it and gates on its own GET /tx/{txid}.
bsv-docs (the BSV docs MCP at https://bsv.writedocs.io/mcp, http): list_docs, search_docs, get_doc.
If either server is missing, print the install commands from assets/install-commands.md for the user to run, for example in Claude Code:
claude mcp add bsv-mcp -e BSV_NETWORK=testnet -- npx -y @bsv/mcp
claude mcp add --transport http bsv-docs https://bsv.writedocs.io/mcp
Then carry on without them: read status with scripts/broadcaster-check.sh <txid> [broadcasterUrl] and use the bundled references. Never modify the user's agent configuration yourself; print the commands and let the user run them.
Prefer looked-up facts over memory: get_doc, brc_lookup and bsv://facts/* (or references/facts.md) first. Every fact carries a verified: date; when it matters and the date is old, run versions_check or read the live source.
Assets: start public/manifest.json from assets/manifest.template.json and the app's .env from assets/env.example. Offer the user assets/CLAUDE.md.snippet, assets/AGENTS.md.snippet or assets/bsv.mdc (Cursor) as project rules; never write them into their agent configuration yourself.
references/custody-shapes.md); payments only, contract, or token; browser, server, or both.bsv://facts/* or references/facts.md, not memory.references/stack.md, on testnet: wallet login and permission manifest, getNetwork() check before every money path, BSV Broadcaster client with a BSV_BROADCASTER_URL setting, write-ahead records in shape B.check_guardrails with the project's absolute path and fix every error; then walk the manual checklist it returns. Without the MCP, walk references/guardrails.md by hand.@bsv/sdk Spend (G-28), not mocks.SEEN_ON_NETWORK with no competing transaction, miner collusion not modelled); what the server can and cannot do with users' money.references/testnet-to-mainnet.md.| task | file |
|---|---|
| Choose who holds the keys; shape B operating rules | references/custody-shapes.md |
Connect a BRC-100 wallet, login (desktop and Wallet Relay), permission manifest, getNetwork() | references/wallet-brc100.md |
Send or receive a payment; BRC-29, internalizeAction, AtomicBEEF | references/payments-brc29.md |
| Many small payments or a jointly signed state between two parties: when a channel pays off, open, update, close, timeouts, backups | references/payment-channels.md |
| Broadcast, read status, decide finality, classify BSV Broadcaster errors | references/broadcaster-0conf.md |
Decide whether @bsv/simple fits, and how to use it | references/simple-routing.md |
| Testnet setup, faucet, switching to mainnet | references/testnet-to-mainnet.md |
| What the app defends against and what it must tell users | references/threat-model.md |
| An error message or symptom | references/common-errors.md |
| Dated facts: BSV Broadcaster, networks, WhatsOnChain, fees, wallet limits, Rúnar, 1Color, payment channels | references/facts.md (generated) |
Every guardrail G-01..G-38, for review | references/guardrails.md (generated) |
| Pinned package versions, Rúnar commit, BSV Broadcaster hosts | references/stack.md (generated) |
Contracts, multi-party funding, adversarial review and 1Color references arrive in phase 2; the covenant form of a payment channel (construction C in references/payment-channels.md) and any two-wallet opening need them. Until then, answer token questions from references/facts.md (section "1Color tokens") and contract questions from its "Rúnar contracts" section plus guardrails G-25 to G-30.
assets/AGENTS.md.snippet (opens in a new tab)assets/CLAUDE.md.snippet (opens in a new tab)assets/bsv.mdc (opens in a new tab)assets/env.example (opens in a new tab)assets/install-commands.md (opens in a new tab)assets/manifest.template.json (opens in a new tab)references/broadcaster-0conf.md (opens in a new tab)references/common-errors.md (opens in a new tab)references/custody-shapes.md (opens in a new tab)references/facts.md (opens in a new tab)references/guardrails.md (opens in a new tab)references/payment-channels.md (opens in a new tab)references/payments-brc29.md (opens in a new tab)references/simple-routing.md (opens in a new tab)references/stack.md (opens in a new tab)references/testnet-to-mainnet.md (opens in a new tab)references/threat-model.md (opens in a new tab)references/wallet-brc100.md (opens in a new tab)scripts/broadcaster-check.sh (opens in a new tab)scripts/network-guard.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
bsv, bitcoin-sv, brc-100, runar, wallet-relay, bsv-broadcaster
npx claudepluginhub bsv-blockchain/bsv-ai-toolkit --plugin bsv-devOther plugins' skills for the same job