🧩Claude Code Plugin

The BitBadges Claude Code plugin is a convenience layer on top of the BitBadges chain binary + CLI for Claude Code users specifically. It auto-wires the bitbadges-builder MCP server and ships 8 skills that teach Claude how to leverage the CLI + MCP + docs for common BitBadges workflows.

The plugin is a thin harness, not a knowledge base. Token-type-specific instructions live in the SDK and are surfaced via bb dev skills <id>, the get_skill_instructions MCP tool, and the Gitbook skill pages. The plugin's job is to teach Claude where to find them and how to compose them β€” not to ship one routing wrapper per token type.

Prerequisites

The chain binary + CLI install is the canonical entrypoint for everything BitBadges:

curl -fsSL https://install.bitbadges.io | sh
bb settings set apiKey YOUR_KEY

This installs bitbadgeschaind (aliased as bb), which includes the bitbadges-builder MCP bin. The plugin uses it β€” without it, the plugin falls back to running the MCP via npx -y -p bitbadges bitbadges-builder, which works but is slower and less reliable than a globally installed binary.

Install the plugin

After the prerequisites above:

/plugin marketplace add BitBadges/bitbadges-plugin
/plugin install bitbadges

Run /bitbadges:setup once to confirm everything's wired and /bitbadges:status whenever you want a health check.

What you get

MCP server (auto-wired)

The plugin's .mcp.json registers bitbadges-builder automatically β€” no claude mcp add step. Under the hood, the plugin runs:

npx resolves the locally installed bitbadges package from the prerequisites step above. If you skipped that install, npx falls back to fetching the package from the npm registry on first call β€” slower and less reliable, but it works.

Skills (8 total)

Each skill is a guide that routes Claude to the right CLI command, MCP tool, or docs page for one workflow. None of them duplicate token-type knowledge from the SDK.

Skill
What it teaches

build

Meta-guide for constructing any token type (smart-token, fungible, NFT, subscription, vault, claim, quest, auction, payment, crowdfund, prediction-market, …). Discovers via bb dev skills, loads canonical instructions via the get_skill_instructions MCP tool, then constructs via the per-field MCP session tools.

review

Audit a transaction file or live collection for correctness, standards compliance, foot-guns. Wraps bb check and review_collection.

simulate

Dry-run a transaction. Returns events + balance diffs. Always before broadcast. Wraps simulate_transaction.

explain

Plain-English description, audience-aware (user / developer / auditor). Wraps explain_collection and bb explain.

query

The 104+ API routes β€” discovery first via --help-json, then call.

address

All six address operations (cosmos↔EVM, IBC backing, wrapper, mint-escrow, alias).

claim

Build or audit a claim (whitelist / password / codes / open / token-gated).

broadcast

Sign + broadcast. Hard rails β€” dry-run by default, explicit confirmation for live.

For deeper instructions on any specific token type, the plugin sends Claude to the SDK / CLI / docs rather than redefining them locally.

Slash commands

Command
What it does

/bitbadges:setup

One-time prereq check + API key wiring. Reads ~/.bitbadges/config.json first (CLI config is canonical) before prompting.

/bitbadges:status

Quick health check β€” chain binary, CLI version, API connectivity, MCP reachability, network.

Subagent

bitbadges-builder β€” a focused builder loop primed to reach for MCP tools first, fall back to CLI, only touch the chain binary for live broadcasts. Use when you want isolation from the main conversation: "spawn the bitbadges-builder agent and have it build me a smart token end to end".

SessionStart pre-warm hook

The plugin pre-warms the npx cache for the bitbadges package on every session start. First MCP-tool call is fast instead of paying 5–15s of npm download.

API key

The plugin reads ~/.bitbadges/config.json if you've already configured the BitBadges CLI. Otherwise /bitbadges:setup prompts and writes via bb settings set apiKey <KEY> so both the CLI and the plugin pick it up.

Get an API key at bitbadges.io/developerarrow-up-right.

Migration from manual MCP setup

If you previously ran:

Remove the user-scope entry before installing the plugin to avoid duplicate MCP servers:

/bitbadges:setup detects duplicates and offers cleanup.

When you don't need the plugin

The plugin is for Claude Code users specifically. For other harnesses, BitBadges still has full coverage via the same MCP server and the existing skill docs:

  • Cursor / Claude Desktop / other MCP clients β†’ set up the bitbadges-builder MCP server (claude mcp add bitbadges-builder -- npx -y -p bitbadges bitbadges-builder for Claude Desktop, or the equivalent in your client). The MCP exposes get_skill_instructions(<id>) for on-demand loading β€” same path the plugin uses.

  • Generic LLMs / shell scripts / CI β†’ use the CLI directly. For skill instructions, browse the rendered skill pages or call bb dev skills <id>.

  • TypeScript/JavaScript devs β†’ npm install bitbadges and use the SDK directly.

The CLI is the universal base layer; the plugin is just a Claude-Code-specific veneer. Skill instruction content is rendered in one place β€” x-tokenization/examples/skills/ β€” and consumed everywhere else (plugin, MCP, CLI) by reference.

Source

Last updated