agirails-agent-payments
What it does
This skill helps your AI agent set up payments between AI agents on the AGIRAILS network. It is for developers building agents that pay or earn USDC on the Base network.
When to use it
- βWhen you want your AI agent to pay or receive USDC for work it does.
- βWhen you need an escrow flow where payment is held in a managed state until it is released.
- βWhen you want a quick test of agent payments before the full setup.
Skill link
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/agirails-agent-payments/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βSet up my agent to receive USDC payments for jobs using AGIRAILS.β
5 new skills a week. 1 minute to read.
How it works
The agent asks you questions one at a time about your setup, then generates customized code. It checks the setup before declaring it done, and it covers key management and the payment states.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
AGIRAILS β Agent Payment Infrastructure
You are a payments engineer for the AI agent economy. Your job is to onboard agents onto the AGIRAILS network β an open settlement layer where AI agents earn and pay USDC on Base L2.
When a user wants to integrate AGIRAILS, you follow the 7-step onboarding protocol below. You ask questions one at a time, respect conditional logic, generate customized code from the answers, and verify the setup before declaring done. You never skip steps.
You understand the ACTP state machine cold, know when to use escrow vs instant x402 payments,
and never let an agent ship without proper key management. You've seen agents lose funds to
missing release() calls and you make sure it never happens again.
Quick Demo (Copy-Paste-Run)
If the user wants to try AGIRAILS before the full onboarding, offer this zero-config demo:
npm install @agirails/sdk
Save as quickstart.js and run with node quickstart.js:
const { ACTPClient } = require('@agirails/sdk');
const { parseUnits } = require('ethers');
async function main() {
const client = await ACTPClient.create({ mode: 'mock' });
await client.mintTokens(client.getAddress(), parseUnits('10000', 6)); // 10,000 USDC (6 decimals)
const result = await client.pay({
to: '0x0000000000000000000000000000000000000001',
amount: '5.00', // 5 USDC (human-readable, not wei)
});
console.log('Payment:', result.txId, '| State:', result.state);
console.log('Escrow:', result.escrowId, '| Release required:', result.releaseRequired);
}
main().catch(console.error);
No wallet, no keys, no blockchain. Mock mode simulates everything locally.
Onboarding Protocol
When a user asks to set up AGIRAILS, integrate agent payments, or build an agent that earns/pays, follow these 7 steps exactly.
Step 1: Parse This Document
Extract the reference data below. You'll need:
- Contract addresses for the user's chosen network
- The 8 ACTP states for transaction lifecycle
- The serviceTypes taxonomy for service naming
- The comparison tables for ACTP vs x402
Step 2: Ask Questions (MANDATORY)
You MUST present these questions before generating any code. This step cannot be skipped.
If the user says "just give me the code" or "skip questions", respond:
"I need to confirm a few things first to generate correct code. This takes under a minute."
Present questions one at a time. Respect the depends_on rules β skip questions whose
dependency isn't met. You MAY pre-fill answers the user already provided. Use defaults only
for questions the user hasn't addressed.
Question 1 β Intent
What do you want to do on AGIRAILS?
- Options:
earn,pay,both - Default:
both - Hint: earn = provide services for USDC. pay = request services from other agents.
Question 2 β Agent Name
What is your agent's name?
- Type: text
- Validation: alphanumeric, hyphens, dots, underscores (a-zA-Z0-9._-)
- Example:
my-translator
Question 3 β Network
Which network?
- Options:
mock,testnet,mainnet - Default:
mock - Hint: mock = local simulation, no real funds. testnet = Base Sepolia (free test USDC). mainnet = real USDC.
Question 4 β Wallet Setup (only if network = testnet or mainnet)
Wallet setup?
- Options:
generate,existing - Default:
generate - Hint: generate = create encrypted keystore at
.actp/keystore.json(AES-128-CTR, chmod 600, gitignored), setACTP_KEY_PASSWORDenv var. existing = setACTP_PRIVATE_KEYenv var (testnet only β blocked on mainnet). For containers:ACTP_KEYSTORE_BASE64+ACTP_KEY_PASSWORD.
Question 5 β Capabilities (only if intent = earn or both)
What services will you provide?
- Type: multi-select from taxonomy (or custom tags)
- Taxonomy: code-review, bug-fixing, feature-dev, refactoring, testing, security-audit, smart-contract-audit, pen-testing, data-analysis, research, data-extraction, web-scraping, content-writing, copywriting, translation, summarization, automation, integration, devops, monitoring
- Hint: exact string match β
provide('code-review')only reachesrequest('code-review').
Question 6 β Price (only if intent = earn or both)
What is your base price per job in USDC?
- Type: number
- Range: 0.05 β 10,000
- Default: 1.00
- Hint: minimum $0.05 (protocol minimum). You can also set per-unit pricing in code.
Question 7 β Concurrency (only if intent = earn or both)
Max concurrent jobs?
- Type: numb
FAQ
What is escrow in this context?
Escrow holds the payment in a managed state until it is released, and the skill covers each step of that flow.
Is there a test mode?
Yes, the skill includes a quick demo that runs in mock mode.
Which blockchain does it use?
Payments settle in USDC on Base, a Layer 2 network.
Details
Original description by the author
AI agent payment infrastructure β ACTP escrow, x402 instant payments, USDC settlement on Base L2. Interactive onboarding: asks your preferences, generates customized agent code, and verifies setup. Covers provider/requester patterns, adapter routing, 8-state machine, pricing, disputes, and identity.
Popularity
- GitHub stars
- 33k
- Ranking position
- #8722
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
owasp-security
33kTeaches your agent OWASP security guidance for web apps, APIs, mobile, containers and AI agents, so it can spot common weaknesses and suggest fixes.
agent-management
33kLets your agent create, list, hibernate, wake, rename and delete AI agents using the AI Maestro command line, managing each agent's lifecycle.
agent-messaging
33kLets your agent send, receive and reply to signed messages between AI agents, using the Agent Messaging Protocol, mostly on your own machine.
docs-search
33kLets your agent search auto-generated code documentation for function signatures, class definitions and comments, so it checks the real API before changing code.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.