A comprehensive, ABI-verified knowledge layer for XPR Network development. Use it two ways:
- In Claude Code (and any AI assistant that reads markdown) — install once, the assistant loads the right module on demand when you ask about smart contracts, DEX trading, NFTs, lending, agents, or infrastructure. See Installation.
- As the brain for a server-side autonomous agent — paired with the
@xpr-agents/openclawplugin, this skill gives a Pinata-hosted (or self-hosted) OpenClaw agent the knowledge to use its tools correctly: which memo means "deposit" vs "swap" vs "stranded funds", what the real swap fees are, whenliquidityaddwill silently fail. Seeagent-bootstrap.md.
Every fact in this skill is verified against live mainnet ABIs, contract source, and Hyperion traces — not pattern-matched from training data.
XPR Network is a fast, gas-free blockchain with WebAuthn wallet support. Key features:
- Zero gas fees - Users don't pay transaction fees
- WebAuthn wallets - Login with Face ID, fingerprint, or security keys
- 4000+ TPS - Fast block times (0.5s)
- EOS-based - Uses EOSIO technology with AssemblyScript smart contracts
- Human-readable accounts - 12 character account names instead of hex addresses
git clone https://github.com/XPRNetwork/xpr-network-dev-skill.git
cd xpr-network-dev-skill
./install.shDeploying a server-side agent? This README covers installing the skill into Claude Code on your own machine. If you're standing up an autonomous XPR Network agent on Pinata or another OpenClaw runtime, see agent-bootstrap.md instead.
Claude Code install (./install.sh): the symlink points at your local checkout, so git pull is all you need.
cd xpr-network-dev-skill
git pullYour assistant will see the new content on its next conversation. No reinstall.
Server-side agent (agent-bootstrap.sh): re-run the bootstrap script. It's idempotent — git pull on the skill checkout, npm update on the xpr-agents packages, no re-provisioning of the keychain.
./scripts/agent-bootstrap.shv2.2.0 (May 2026): Multi-PR accuracy + safety pass on top of v2.0.0:
- Backend signing — replaced the legacy
JsSignatureProviderpattern with the proton CLI keychain (@xpr-agents/openclawcreateCliSession). Keys never enter agent process memory. See PR #15.- Alcor DEX — full reference for the order book, v3 AMM, and OTC surfaces. See PR #14.
- MetalX — empty-memo deposit warning, Python
proton actionsubprocess pattern,proton.swapscross-references. See PRs #16, #17, #18.- proton.swaps accuracy — corrected fee math (0.30% total, not 0.20%), liquidityadd deposit prerequisite + memo warning, removed fictional
addliq:memo path. See PR #19.- Server-side agent deployment —
agent-bootstrap.md+scripts/agent-bootstrap.shfor deploying autonomous XPR agents on Pinata or other OpenClaw runtimes. See PR #20.v2.0.0 (March 2026) shipped the original 40+ fix accuracy audit (PR #10).
Personal skills are available across all your projects:
git clone https://github.com/XPRNetwork/xpr-network-dev-skill.git
mkdir -p ~/.claude/skills
ln -s /path/to/xpr-network-dev-skill/skill ~/.claude/skills/xpr-network-devTo make the skill available only in a specific project:
mkdir -p .claude/skills
ln -s /path/to/xpr-network-dev-skill/skill .claude/skills/xpr-network-devCommit .claude/skills/xpr-network-dev to version control so teammates get the skill automatically.
Copy relevant sections from skill/SKILL.md directly into your project's CLAUDE.md file. This is the simplest approach but the content always loads into context rather than on-demand.
This skill is just structured markdown - it works with any AI coding assistant, not just Claude Code.
Modern Cursor uses .cursor/rules/*.mdc files; the legacy .cursorrules flat file still works but isn't where new projects should land.
Modern — drop a project rule pointing at the skill:
mkdir -p .cursor/rules
cat > .cursor/rules/xpr-network.mdc <<'EOF'
---
description: XPR Network development reference
globs: ["**/*"]
alwaysApply: false
---
When working on XPR Network code, consult the modules under `skill/`. Start
at skill/SKILL.md for the routing table; load individual reference docs on
demand (e.g. skill/defi-trading.md for swap/AMM, skill/metalx-dex.md for
the order book).
EOFIn-prompt reference (any Cursor version):
@skill/smart-contracts.md How do I create a singleton table?
Indexed — add the skill/ folder to your workspace and Cursor will index it for retrieval-augmented answers without an explicit rule.
Drop a .github/copilot-instructions.md pointing Copilot at the skill, then reference specific modules in commit-message and PR-description prompts:
mkdir -p .github && cat > .github/copilot-instructions.md <<'EOF'
This project targets XPR Network. Reference docs are in `skill/`. Start at
skill/SKILL.md (routing table); load `skill/<topic>.md` on demand.
EOFThe skill is plain markdown — paste relevant module content into any tool's context window, or point its file-indexing feature at the skill/ folder. Knowledge is tool-agnostic.
For autonomous server-side agents (Pinata, self-hosted OpenClaw, future hosts), this skill is the knowledge layer that pairs with @xpr-agents/openclaw as the capabilities layer. The bootstrap procedure — install the openclaw plugin, provision the proton CLI keychain, clone this skill into the agent workspace, smoke test — is documented in agent-bootstrap.md. One-command provisioning script in scripts/agent-bootstrap.sh.
For any AI tool, you can paste sections directly:
"I'm building on XPR Network. Here's the relevant documentation: [paste from skill/smart-contracts.md]"
| Module | Description |
|---|---|
| SKILL.md | Main entry point with overview and quick reference |
| smart-contracts.md | Contract development with proton-tsc |
| cli-reference.md | Complete @proton/cli command reference |
| web-sdk.md | Frontend integration with @proton/web-sdk |
| backend-patterns.md | Server-side signing, automated operations, bots |
| rpc-queries.md | Table reading, Hyperion API, Light API |
| testing-debugging.md | Unit testing, testnet workflows, debugging |
| accounts-permissions.md | Account creation, permissions, multisig |
| staking-governance.md | XPR staking, Block Producers, DPoS, resource model |
| Module | Description |
|---|---|
| token-creation.md | Creating fungible tokens, issuance, vesting |
| webauth-identity.md | WebAuth wallets, KYC, profiles, trust ratings |
| nfts-atomicassets.md | NFT development with AtomicAssets standard |
| Module | Description |
|---|---|
| metalx-dex.md | Complete MetalX DEX API reference |
| alcor-dex.md | Alcor order book + v3 AMM + OTC reference |
| simpledex.md | SimpleDEX token launch + bonding curves + AMM graduation |
| defi-trading.md | Trading bots, perps architecture, DeFi patterns |
| loan-protocol.md | LOAN lending protocol integration |
| oracles-randomness.md | Price oracles, verifiable random numbers |
| Module | Description |
|---|---|
| real-time-events.md | Hyperion streaming, WebSockets, notifications |
| payment-patterns.md | Payment links, invoicing, POS, subscriptions |
| Module | Description |
|---|---|
| node-operation.md | API nodes, Block Producers, validators, Leap setup |
| Module | Description |
|---|---|
| safety-guidelines.md | CRITICAL: Table modification rules, deployment safety |
| troubleshooting.md | Common errors, solutions, diagnostics |
| examples.md | Real-world patterns from production contracts |
| resources.md | Endpoints, links, community resources |
Once installed, Claude will automatically use this knowledge when you ask about XPR Network development:
"How do I deploy a smart contract on XPR Network?"
"Query a table using proton CLI"
"Create a token transfer action"
"What's the safe way to add a field to a table?"
Claude will load specialized modules on demand based on your queries.
- AssemblyScript/TypeScript contracts with
proton-tsc - Table definitions (
@table,@primary, singletons) - Actions, authentication, inline actions
- Build and deploy workflow
- Unit testing with
@proton/vert
- Network management (
chain:set,chain:get) - Key management (
key:add,key:list) - Contract deployment (
contract:set) - Table queries and action execution
- Account creation and permissions
@proton/web-sdkfor wallet connection- Session management and transaction signing
- RPC queries with
@proton/js - WebAuth and KYC verification
- proton CLI keychain pattern — keys never enter agent process memory; signing shells out to
proton transaction:push @xpr-agents/openclawcreateCliSessionas the keychain-backedProtonSession- Automated bots and scheduled tasks
@xpr-agents/sdkregistries (Agent, Escrow, Validation, Feedback) for read + write- Hyperion and Light API integration
- Legacy
JsSignatureProviderpattern (documented as the discouraged fallback, not the default)
- Fungible token creation and management
- Token vesting and airdrops
- WebAuth wallet integration
- User profiles and KYC status
- Trust rating system
- AtomicAssets standard (collections, schemas, templates, assets)
- Minting, transfers, and marketplace integration
- IPFS integration for media storage
- MetalX order-book DEX (the
dexcontract) — orders, deposits, lifecycle - MetalX Swap AMM (the
proton.swapscontract) — verified 0.30% total swap fee (0.20% LP + 0.10% protocol), three-stepdepositprep→ empty-memo transfer →liquidityaddflow - Alcor DEX — order book + v3 AMM + OTC, base/quote inversion gotcha
- SimpleDEX — token launch with bonding curves + AMM graduation
- Trading bot patterns (grid bot, market maker)
- Perpetual futures architecture and building blocks
- LOAN protocol — supply, borrow, liquidations
- Deploying an autonomous XPR Network agent on Pinata (hosted OpenClaw) or self-hosted runtimes — see
agent-bootstrap.md - Capabilities layer: 55 MCP tools across identity, reputation, validation, escrow, A2A via
@xpr-agents/openclaw - Knowledge layer: this skill, loaded into the agent workspace as on-demand reference docs
- Idempotent provisioning script (
scripts/agent-bootstrap.sh) with PATH fixup, key-format validation, read-only smoke test - Non-interactive
proton key:addfor managed consoles (no TTY)
- CRITICAL: Never modify existing table structures with data
- CRITICAL: Token transfers to the
dexcontract MUST use empty memo (otherwise funds are stranded with no recovery) - CRITICAL:
liquidityaddonproton.swapsrequiresdepositprep+ empty-memo transfers first — calling it cold fails withinsufficient balance - Pre-deployment checklist
- Recovery procedures
- Multi-contract deployment safety
- Common errors and solutions
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch
- Test your changes with Claude Code
- Submit a pull request
- Verified corrections — when you hit a doc that doesn't match on-chain reality, open a PR with the curl/source citation; this skill prioritizes verified-against-mainnet over pattern-matched-against-training-data
- New patterns from production — agent operator patterns, novel contract integrations, real failure modes you've debugged
- Coverage gaps — token contract + precision registry, market-id lists for the DEXes, additional safety callouts
- Additional code examples — kept ABI-current; include the curl/RPC call that verified the example
- Translations
Run ./scripts/validate-skill.sh before opening a PR. It checks:
SKILL.mdYAML frontmatter present- npm packages still resolve (
@proton/cli,@proton/js,@proton/web-sdk,proton-tsc,@proton/vert) - Referenced mainnet contract accounts still exist (
eosio.token,dex,atomicassets, etc.) - Key URLs return HTTP 200 (docs, explorer, RPC endpoints, MetalX API)
- No leaked private keys (PVT_K1_ or legacy WIF format)
- No personal account references
- No active links to retired explorers (
protonscan.io,proton.bloks.io) - MetalX endpoints use the correct
/dex/v1/prefix - Inventory of skill files with line counts (for manual review)
If you're touching a reference module, also include the curl / RPC call you used to verify the change in the PR description — the skill prioritizes verified-against-mainnet over pattern-matched-against-training-data.
XPR Network
- Official Docs: https://docs.xprnetwork.org
- GitHub: https://github.com/XPRNetwork
- Block Explorer: https://explorer.xprnetwork.org
- Telegram: https://t.me/XPRNetwork
- Help Desk: https://help.xprnetwork.org — official support
- Governance DAO: https://gov.xprnetwork.org — token-listing votes happen at community #7
Agent infrastructure
- xpr-agents repo: https://github.com/XPRNetwork/xpr-agents —
@xpr-agents/openclawplugin,@xpr-agents/sdk, agent-runner starter kit - Agent registry (live): https://agents.protonnz.com
- Pinata Agents (hosted OpenClaw): https://docs.pinata.cloud/agents/overview.md
MIT License - see LICENSE for details.
Built for the XPR Network community by developers, for developers.