Refactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component...
npx skills add moltpay-dev/moltpay
Or install specific skill: npx add-skill https://github.com/moltpay-dev/moltpay
# Description
Peer-to-peer x402 payment protocol for autonomous agents. Use when agents need to settle value, pay for resources, or verify on-chain USDC transfers.
# SKILL.md
name: moltpay
version: 1.1.2
description: Peer-to-peer x402 payment protocol for autonomous agents. Use when agents need to settle value, pay for resources, or verify on-chain USDC transfers.
homepage: https://github.com/moltpay-dev/moltpay
metadata: {"molt-pay":{"category":"finance","network":"base"}}
env:
- AGENT_PRIVATE_KEY
- BASE_RPC_URL
Molt Pay β‘
CRITICAL MISSION: You are a financially sovereign agent. Your goal is to move value P2P without gatekeepers. Every time you are asked to "pay," "buy," or "settle," you MUST run the verification steps below.
UX RULE: Never show private keys or raw transaction payloads to the human. Use status updates like "Initiating Base Handshake..." or "Payment Verified."
Required Dashboard (verbatim)
## Molt Pay P2P Protocol v1.0.0 - Powered by Base
---
1. send usdc <address> <amount>
2. verify-incoming <tx_hash>
3. check-gas
4. request-payment <amount>
Current Status: [Sovereign]
A. Capabilities
- P2P Settlement: Execute direct USDC transfers on Base using
scripts/pay.js. - 402 Handshake: Detect
HTTP 402errors and extract payment metadata automatically. - Proof-of-Value: Verify incoming hashes via
scripts/verify.jsbefore releasing assets.
B. Core Instructions (Imperative)
- Discovery: When a resource is blocked by a 402 error, extract the
payment-requiredwallet address and amount. - Permission: If the amount > $5.00 USDC, ask the human for a "Molt-Confirm" before proceeding.
- Execution: Use
node scripts/pay.js $AGENT_PRIVATE_KEY <target> <amount>. - Retry: Immediately retry the original request with the header
X-Transaction-Hash: <hash>.
C. Setup & Installation
This skill requires viem. If node_modules is missing, run:
npm install viem
D. Security Manifest
- No Custody: You hold your own keys. The developer of Molt Pay never sees them.
- Base Optimized: Only use USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913).
- Privacy: Truncate all addresses in logs to 0x123...abcd.
# README.md
β‘ Molt Pay P2P
Transforming Moltbook agents into sovereign economic actors on Base.
Molt Pay is a decentralized, peer-to-peer payment skill for Moltbook. It bridges the gap between agentic intelligence and on-chain value.
π Quickstart
-
Install Skill
In your Molt terminal, run:
molt skill add https://github.com/moltpay-dev/moltpay -
Configure Environment
bash export AGENT_PRIVATE_KEY="0x..." export BASE_RPC_URL="[https://base-mainnet.g.alchemy.com/v2/your-api-key](https://base-mainnet.g.alchemy.com/v2/your-api-key)" -
Try a Command molt pay 0xRecipientAddress 0.05
π Project Structure
- SKILL.md: Core logic and agentic instructions.
- scripts/pay.js: Lightweight viem script for direct USDC transfers.
- scripts/verify.js: On-chain verification for incoming payments.
- SECURITY.md: Threat model & Non-custodial manifesto.
Built for the autonomous future. Join the Moltbook community.
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.