A2a Shib Payments logo

A2a Shib Payments

Community
modbender
a2a-shib-payments

Framework-agnostic agent-to-agent payment system with SHIB on Polygon. Provides trustless escrow, price negotiation, and reputation system. 9,416x cheaper than traditional escrow (~$0.003 gas).

Overview

Publishermodbender
Repositoryskill-library-mcp
Skill namea2a-shib-payments
Stars
21
Forks
6
Bundled files
43
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 43 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by modbender on GitHub. Read the source before you install it.

Installation

Install the A2a Shib Payments AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/modbender/skill-library-mcp/tree/main/data/a2a-shib-payments
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/modbender/skill-library-mcp.git /tmp/skill-library-mcp
mkdir -p .claude/skills
cp -r /tmp/skill-library-mcp/data/a2a-shib-payments .claude/skills/a2a-shib-payments
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable A2a Shib Payments in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads A2a Shib Payments on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so A2a Shib Payments is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

A2A SHIB Payment System - OpenClaw Skill

Framework-agnostic agent-to-agent payment infrastructure on Polygon network.

Summary

This skill enables AI agents to:

  • 💰 Send/receive SHIB payments on Polygon (~$0.003 gas)
  • 🔒 Create trustless escrow contracts
  • 💬 Negotiate prices automatically (multi-round)
  • ⭐ Build reputation through ratings
  • 🌐 Discover other agents via A2A protocol

9,416x cheaper than traditional escrow services (Escrow.com charges $28.25 per $100, this costs $0.003).

Features

Payment System

  • Direct SHIB transfers on Polygon
  • Sub-penny gas costs (~$0.003)
  • Balance checking
  • Transaction history

Escrow System

  • Time-locked trustless payments
  • Multi-party approval required
  • Delivery proof submission
  • Automatic release when conditions met
  • Dispute resolution with arbiter
  • 6-state machine: pending → funded → locked → released/refunded/disputed

Price Negotiation

  • Service quote creation
  • Multi-round counter-offers
  • Accept/reject workflow
  • Automatic escrow integration
  • Service delivery tracking

Reputation System

  • Star ratings (0-5) with reviews
  • Dynamic trust scores (0-100)
  • Trust levels: new → bronze → silver → gold → platinum
  • Achievement badges
  • Agent verification

Security Layer

  • API key authentication (64-byte keys)
  • Rate limiting (requests + payments + volume)
  • Immutable audit logging (hash-chained)
  • Per-agent permissions & limits

Installation

bash
# Via ClawHub
clawhub install a2a-shib-payments

# Or manual clone
cd ~/clawd/skills
git clone https://github.com/marcus20232023/a2a-shib-payments.git
cd a2a-shib-payments
npm install

Configuration

Create .env.local:

bash
cp .env.example .env.local
nano .env.local

Required environment variables:

  • WALLET_PRIVATE_KEY - Your Polygon wallet private key
  • RPC_URL - Polygon RPC endpoint (default: https://polygon-rpc.com)
  • SHIB_CONTRACT_ADDRESS - SHIB token contract (default: 0x95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce)

Usage

Start the Agent

bash
node a2a-agent-full.js

Agent runs on port 8003 by default.

OpenClaw Integration

The agent exposes A2A protocol endpoints that OpenClaw can communicate with:

Agent Card: http://localhost:8003/.well-known/agent-card.json

Example commands from OpenClaw:

javascript
// Check balance
const result = await fetch('http://localhost:8003/a2a/jsonrpc', {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({
    jsonrpc: '2.0',
    method: 'message/send',
    params: {
      message: {
        kind: 'message',
        messageId: '1',
        role: 'user',
        parts: [{kind: 'text', text: 'balance'}]
      }
    },
    id: 1
  })
});

// Send payment
// text: 'send 100 SHIB to 0x...'

// Create escrow
// text: 'escrow create 500 SHIB for data purchase payee data-agent'

// Check reputation
// text: 'reputation check data-agent'

Framework Compatibility

Works with:

  • ✅ OpenClaw - As a skill or standalone agent
  • ✅ LangChain - Via A2A tools
  • ✅ AWS Bedrock - Via agent invocation
  • ✅ AutoGen - Via A2A messaging
  • ✅ Any A2A-compatible system

See INTEGRATION-EXAMPLES.md for detailed integration guides.

Use Cases

Data Marketplace

javascript
// Research agent buys Tesla historical data
const quote = await negotiation.createQuote({
  service: 'TSLA 2020-2025 historical data',
  price: 500  // SHIB
});

// Counter-offer and accept
await negotiation.counterOffer(quote.id, 'research-agent', 400);
await negotiation.acceptCounter(quote.id, 'data-provider');
// Escrow created automatically

AI Model Training

javascript
// Create escrow for model training job
const escrow = await escrowSystem.create({
  payer: 'startup-agent',
  payee: 'ai-trainer',
  amount: 1000,
  purpose: 'Train GPT-style model',
  conditions: {requiresDelivery: true},
  timeoutMinutes: 720  // 12 hours
});

API Endpoints

A2A Protocol

  • /.well-known/agent-card.json - Agent capabilities
  • /a2a/jsonrpc - JSON-RPC messaging
  • /a2a/rest/* - REST API

Commands (via message text)

  • balance - Check SHIB balance
  • send [amount] SHIB to [address] - Send payment
  • escrow create [amount] SHIB for [purpose] payee [agent] - Create escrow
  • escrow fund [id] - Fund escrow
  • escrow release [id] - Release funds
  • quote create [service] [price] - Create price quote
  • reputation check [agentId] - Check agent reputation
  • rate [agentId] [1-5] [review] - Rate an agent

Testing

bash
# Run all tests
npm test

# Individual test suites
npm run test:security
npm run test:escrow
npm run test:reputation

Files

Core Systems:

  • a2a-agent-full.js - Full-featured agent (port 8003)
  • index.js - Payment agent core
  • escrow.js - Escrow system
  • payment-negotiation.js - Negotiation workflow
  • reputation.js - Reputation & trust

Security:

  • auth.js - API authentication
  • rate-limiter.js - Rate limiting
  • audit-logger.js - Audit logging

Documentation:

  • README.md - Project overview
  • INTEGRATION-EXAMPLES.md - Framework integration guides
  • ESCROW-NEGOTIATION-GUIDE.md - API reference
  • PRODUCTION-HARDENING.md - Security guide
  • DEPLOYMENT.md - Deployment options

Security

Implemented:

  • ✅ API key authentication
  • ✅ Rate limiting (10 req/min, 3 payments/min, 500 SHIB/min volume)
  • ✅ Immutable audit logs (hash-chained)
  • ✅ Per-agent permissions
  • ✅ Escrow time-locks
  • ✅ Multi-party approval

Recommended for Production:

  • Multi-sig wallet
  • HTTPS (Cloudflare/Let's Encrypt)
  • Firewall rules
  • Automated backups
  • Monitoring & alerting

See PRODUCTION-HARDENING.md for complete guide.

Deployment

Quick Local

bash
./deploy-local.sh

Production Options

  1. Systemd service (auto-start on boot)
  2. Cloudflare Tunnel (free HTTPS)
  3. Docker container
  4. VPS ($6/month)

See DEPLOYMENT.md for complete guide.

Cost Comparison

SystemFeeSettlementTrust
Escrow.com$28.255-7 daysCentralized
PayPal$3.201-3 daysCentralized
This System$0.003SecondsDecentralized

For a $100 transaction: 99.99% savings (9,416x cheaper)

Links

License

MIT License - Free for commercial and personal use

Version

v2.0.0 - Production Ready


Built with 🦪 for the agent economy

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the A2a Shib Payments AI skill do?

Framework-agnostic agent-to-agent payment system with SHIB on Polygon. Provides trustless escrow, price negotiation, and reputation system. 9,416x cheaper than traditional escrow (~$0.003 gas).

Why use A2a Shib Payments on TypingMind?

Because you install it once and use it with any model. A2a Shib Payments is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install A2a Shib Payments in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/modbender/skill-library-mcp/tree/main/data/a2a-shib-payments. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use A2a Shib Payments?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with A2a Shib Payments?

As many as you like. As long as a model supports skills, you can use A2a Shib Payments with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the A2a Shib Payments AI skill free?

Yes. It is published on GitHub by modbender under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇