agirails-agent-payments
Qué hace
Esta skill ayuda a tu IA a configurar pagos entre agentes de IA en la red de AGIRAILS. Está pensada para desarrolladores que crean agentes que pagan o ganan USDC en la red Base.
Cuándo usarla
- ✓Cuando quieres que tu agente de IA pague o reciba USDC por el trabajo que realiza.
- ✓Cuando necesitas un flujo de depósito en garantía, en el que el pago se retiene de forma gestionada hasta que se libera.
- ✓Cuando quieres hacer una prueba rápida de pagos entre agentes antes de la configuración completa.
Link de la skill
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/agirails-agent-payments/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Configura mi agente para recibir pagos en USDC por los trabajos con AGIRAILS.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente te hace preguntas sobre tu configuración, una a una, y después genera código personalizado. Comprueba la configuración antes de darla por terminada, y cubre la gestión de claves y los estados del pago.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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
Preguntas frecuentes
¿Qué es el depósito en garantía en este contexto?
El depósito en garantía retiene el pago en un estado gestionado hasta que se libera, y la skill cubre cada paso de ese flujo.
¿Hay un modo de prueba?
Sí. La skill incluye una demostración rápida que funciona en modo simulado.
¿Qué blockchain usa?
Los pagos se liquidan en USDC en Base, una red de capa 2.
Detalles
Descripción original del autor
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.
Popularidad
- Estrellas en GitHub
- 33 mil
- Posición en el ranking
- #8722
- Licencia
- MIT
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
owasp-security
33 milEnseña a tu agente la guía de seguridad OWASP para webs, APIs, móviles, contenedores y agentes de IA, para detectar debilidades comunes y sugerir correcciones.
agent-management
33 milPermite que tu agente cree, liste, hiberne, despierte, renombre y elimine agentes de IA con la CLI de AI Maestro, gestionando su ciclo de vida.
agent-messaging
33 milPermite que tu agente envíe, reciba y responda mensajes firmados entre agentes de IA con el Protocolo de Mensajería de Agentes, sobre todo en tu equipo.
docs-search
33 milBusca en la documentación generada del código las firmas de funciones, clases y comentarios, para revisar la API real antes de cambiar nada.
Skills parecidas
add-model-provider
394 milPermite que tu agente conecte un nuevo proveedor de modelos de IA a OpenClaw con comandos de configuración seguros, mantenga las claves API fuera del texto plano y haga una prueba en vivo.
acp-router
394 milAyuda a tu agente a enviar una tarea a un asistente de programación como Claude Code o Cursor a través de OpenClaw, para que el trabajo se ejecute en esa herramienta.
browser-automation
394 milEnseña a tu agente a controlar páginas web paso a paso, incluidos los inicios de sesión, las pestañas y la recuperación cuando una página deja de responder.