agirails-agent-payments
하는 일
이 스킬은 AI 에이전트가 AGIRAILS 네트워크에서 에이전트 간 결제를 설정하도록 돕습니다. Base 네트워크에서 USDC를 결제하거나 받는 에이전트를 만드는 개발자를 위한 것입니다.
사용하는 경우
- ✓에이전트가 한 작업에 대해 USDC를 결제하거나 받게 하고 싶을 때.
- ✓결제를 관리되는 상태로 보관했다가 풀어야 하는 에스크로 흐름이 필요할 때.
- ✓전체 설정 전에 에이전트 결제를 빠르게 테스트하고 싶은 경우.
스킬 링크
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/agirails-agent-payments/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“작업에 대한 USDC 결제를 받도록 제 에이전트를 AGIRAILS로 설정해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 설정에 대해 한 번에 하나씩 질문한 뒤 맞춤 코드를 만듭니다. 완료를 선언하기 전에 설정을 확인하며, 키 관리와 결제 상태도 다룹니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
이 맥락에서 에스크로는 무엇인가요?
에스크로는 결제를 관리되는 상태로 보관했다가 풀어 주는 방식이며, 스킬은 그 흐름의 각 단계를 다룹니다.
테스트 모드가 있나요?
네. 모의 모드에서 실행되는 간단한 데모가 포함되어 있습니다.
어떤 블록체인을 쓰나요?
결제는 레이어 2 네트워크인 Base의 USDC로 정산됩니다.
상세 정보
작성자의 원본 설명
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.
인기도
- GitHub 스타
- 33k
- 순위
- #8722
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
owasp-security
33k웹 앱, API, 모바일, 컨테이너, AI 에이전트를 위한 OWASP 보안 지침을 따르도록 해서, 흔한 약점을 찾고 수정안을 제안하게 합니다.
agent-management
33k에이전트가 AI Maestro 명령줄을 사용해 AI 에이전트를 만들고, 나열하고, 일시 정지하고, 깨우고, 이름을 바꾸고, 삭제하도록 돕습니다.
agent-messaging
33k에이전트가 Agent Messaging Protocol로 AI 에이전트 사이에 서명된 메시지를 보내고, 받고, 답하도록 돕습니다. 대부분 내 컴퓨터에서 작동합니다.
docs-search
33k에이전트가 자동 생성된 코드 문서에서 함수 시그니처, 클래스 정의, 주석을 검색하도록 해서, 코드를 바꾸기 전에 실제 API를 확인하게 합니다.
비슷한 스킬
add-model-provider
394k에이전트가 안전한 설정 명령으로 새 AI 모델 제공자를 OpenClaw에 연결하고, API 키를 평문으로 두지 않으며, 실시간 테스트를 실행하도록 돕습니다.
acp-router
394k에이전트가 OpenClaw를 통해 Claude Code나 Cursor 같은 코딩 도우미에 작업을 전달해, 작업이 그 도구에서 실행되도록 돕습니다.
browser-automation
394k에이전트가 로그인, 탭, 페이지 응답이 멈췄을 때의 복구를 포함해 웹 페이지를 단계별로 조작하도록 가르칩니다.