raxol-payments
Skill1 starsChanged 2 months agoMITView on GitHub
Agentic commerce for Raxol agents in Elixir: the raxol_payments + raxol_earn packages (Xochi/Riddler/MPP/Permit2/x402 protocols, agent wallets, spend limits, stealth + privacy tiers, ZKSAR trust scores, and the ACP job lifecycle). TRIGGER when: mix.exs lists :raxol_payments or :raxol_earn; code imports Raxol.Payments.* or Raxol.Earn.*; user asks about agent wallets, HTTP 402 auto-pay, Xochi/Riddler cross-chain transfers, stealth addresses / privacy tiers, ZKSAR attestations, spend gating, or the ACP (Agent Commerce Protocol) job state machine / offerings. DO NOT TRIGGER when: writing or auditing Solidity contracts (use solidity-auditor skill); general Ethereum tooling / RPC / explorer questions (use ethskills skill); ZK circuit design in Noir (use noir skill); the core Raxol agent/TUI framework (use raxol skill); the Symphony orchestrator (use raxol-symphony skill).
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 40
Test patterns with the Mock provider adapter (no real chain calls)
- Very specific: line 71
Every spend goes through SpendGate.authorize/3 -> reserve -> sign -> release/ release_by_intent.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Raxol Payments + ACP Skill
Agentic commerce layer for Raxol agents. raxol_payments (v0.2) gives an agent a
wallet, a ledger with spend limits, HTTP 402 auto-pay, and the cross-chain settlement
protocols (Xochi/Riddler/MPP/Permit2/x402) plus stealth/privacy. raxol_earn (v0.2)
implements the Agent Commerce Protocol: a per-job state machine, service offerings, and
on-chain writes via ERC-4337 smart accounts or EOAs.
This is the Elixir client layer. It signs and calls; the contracts themselves are out
of scope (see solidity-auditor). Riddler is the payments protocol/module here
(Raxol.Payments.Protocols.Riddler), now delegating to Xochi.
What You Get
- Protocol map: Xochi (default cross-chain), MPP, Permit2, x402, Riddler
- Agent wallets (env key, 1Password, ERC-4337 SCA, EOA nonce server)
- Ledger spend limits, SpendGate authorization, mandates, checkpoint idempotency
- Privacy: stealth (ERC-5564/6538), Glass Cube tiers, ZKSAR trust scores, PXE bridge
- ACP job lifecycle state machine, Offering DSL, HookClient + provider adapters
- Test patterns with the Mock provider adapter (no real chain calls)
Two package split
| Concern | Package | Entry modules |
| Pay for a resource / cross-chain move | raxol_payments | Protocols.Xochi, Ledger, SpendGate |
| Sell/deliver a job on-chain (ACP) | raxol_earn | JobSession, Offering, HookClient |
See also
raxol-- core agent/TUI framework (agents, directives, MCP, workflow)raxol-symphony-- coding-agent orchestrator (uses ACP for paused-run resume)solidity-auditor-- the on-chain contracts these clients callethskills-- Ethereum tooling, RPC, standards (ERC-4337, ERC-5564, ERC-3009)noir-- ZK circuits behind ZKSAR / shielded settlement
Reading Guide
| Task | File |
| Move funds / pay a 402 (protocols) | payments/protocols.md |
| Stealth, privacy tiers, ZKSAR trust | payments/privacy.md |
| Wallets, ledger, spend gate, checkpoints | payments/wallets-ledger.md |
| Sell a service via ACP (job lifecycle) | acp/job-lifecycle.md |
| Test without real chain calls | testing.md |
Key Conventions
- Amounts are atomic units as strings (
"1000000"= 1 USDC), aggregated asDecimalin the ledger. Never pass floats. - Every spend goes through
SpendGate.authorize/3-> reserve -> sign ->release/release_by_intent. Reservations expire (TTL) and are swept. - Wallets implement
Raxol.Payments.Wallet(address/0,sign_message/1,sign_typed_data/3,sign_hash/1). Pick env/op/SCA/EOA per deployment. - Idempotency: derive a
Checkpointkey from canonical intent fields and check it before re-submitting an in-flight intent.
Common Pitfalls
- Floats for money -- use atomic-unit strings +
Decimal; floats lose precision. - Signing before gating -- authorize/reserve budget first, or a failed send leaks
the reservation. Always pair
authorizewithrelease/release_by_intent. - Re-submitting on retry -- without a
Checkpoint, a retry double-spends; derive the key from intent fields and short-circuit on a hit. - Real RPC in tests -- use
Raxol.Earn.ProviderAdapter.Mock; never a live bundler.
In this repository61 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- adversarial-reviewerSkill
- agent-designerSkill
- architectSkill
- autoresearchSkill
- blockscoutSkill
- ci-cd-pipeline-builderSkill
- claude-apiSkill
- codebase-onboardingSkill
- code-reviewSkill
- coingeckoSkill
- database-designerSkill
- dependency-auditorSkill
- design-uxSkill
- digestSkill
- droo-stackSkill
- env-secrets-managerSkill
- ethskillsSkill
- ffmpeg-asmSkill
- focused-fixSkill
- frontend-slop-auditSkill
- git-guardrailsSkill
- git-worktree-managerSkill
- humanizerSkill
- interface-designerSkill
- llm-cost-optimizerSkill
- local-browser-inspectorSkill
- mcp-server-builderSkill
- native-codeSkill
- nixSkill
- noirSkill
- observability-designerSkill
- patchbotSkill
- performance-profilerSkill
- playwrightSkill
- polymathSkill
- prd-to-planSkill
- prepperSkill
- property-testingSkill
- qaSkill
- rag-architectSkill
- raxolSkill
- raxol-symphonySkill
- recallSkill
- refactoring-strategySkill
- regenSkill
- releaseSkill
- security-auditorSkill
- self-improving-agentSkill
- sentinelSkill
- signozSkill
- skill-creatorSkill
- solidity-auditorSkill
- tddSkill
- tech-debt-trackerSkill
- ubiquitous-languageSkill
- watchdogSkill
- web-asset-generatorSkill
- writing-voiceSkill
- The first 60 shown.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

