agirails-agent-payments
Skill này làm gì
Skill này giúp AI của bạn thiết lập thanh toán giữa các AI agent trong mạng lưới AGIRAILS. Nó dành cho lập trình viên xây dựng agent trả tiền hoặc nhận USDC trên mạng Base.
Khi nào nên dùng
- ✓Khi bạn muốn AI agent của mình trả tiền hoặc nhận USDC cho công việc nó làm.
- ✓Khi bạn cần một luồng escrow, trong đó tiền được giữ ở trạng thái được quản lý cho đến khi được giải phóng.
- ✓Khi bạn muốn thử nhanh thanh toán của agent trước khi thiết lập đầy đủ.
Liên kết skill
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/agirails-agent-payments/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Hãy thiết lập agent của tôi để nhận thanh toán USDC cho các công việc qua AGIRAILS.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent hỏi bạn từng câu một về thiết lập của bạn, rồi sinh code tùy chỉnh. Nó kiểm tra thiết lập trước khi báo hoàn tất, và có bao gồm quản lý khóa cùng các trạng thái thanh toán.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Escrow trong ngữ cảnh này là gì?
Escrow giữ khoản thanh toán ở trạng thái được quản lý cho đến khi được giải phóng, và skill bao gồm từng bước của luồng đó.
Có chế độ thử nghiệm không?
Có. Skill có một bản demo nhanh chạy ở chế độ mock.
Nó dùng blockchain nào?
Thanh toán được quyết toán bằng USDC trên Base, một mạng Layer 2.
Chi tiết
Mô tả gốc của tác giả
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.
Độ phổ biến
- Sao GitHub
- 33k
- Vị trí xếp hạng
- #8722
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
owasp-security
33kDạy agent hướng dẫn bảo mật OWASP cho ứng dụng web, API, di động, container và agent AI, để nhận ra các điểm yếu phổ biến và gợi ý cách sửa.
agent-management
33kCho phép agent của bạn tạo, liệt kê, cho ngủ đông, đánh thức, đổi tên và xóa các agent AI bằng dòng lệnh AI Maestro, quản lý vòng đời của từng agent.
agent-messaging
33kCho phép agent của bạn gửi, nhận và trả lời tin nhắn có chữ ký giữa các agent AI, dùng Agent Messaging Protocol, chủ yếu trên máy của bạn.
docs-search
33kCho phép agent của bạn tìm trong tài liệu code được tạo tự động, như chữ ký hàm, định nghĩa lớp và chú thích, để kiểm tra API thật trước khi sửa code.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.