Claude Skill
AI-assisted integration for Claude Code and Claude.ai.
What This Gives You
Install the P402 skill and Claude gains deep knowledge of the routing engine, billing guard, payment flows, and A2A protocol. Ask it to generate integration code, debug routing decisions, compare model pricing, or set up agent spending controls. It knows the API surface, the TypeScript types, the error codes, and the design patterns.
Install
Clone the Repo
The skill ships with every clone. Open in Claude Code and it loads automatically.
git clone https://github.com/Z333Q/p402-router cd p402-router # Skill loads automatically # in Claude Code. Done.
Global Install
Available in every Claude Code session across all your projects.
curl -sL https://p402.io/skill/p402.zip \ -o /tmp/p402.zip unzip /tmp/p402.zip \ -d ~/.claude/skills/
Claude.ai
Download the .skill file and upload through the Claude.ai interface.
Cross-Platform
The Agent Skills standard is portable. The same skill works across multiple AI coding tools.
OpenAI Codex CLI
cp -r .claude/skills/p402 ~/.codex/skills/p402Plugin Marketplace
/plugin install p402@p402-routerContents
Core skill: routing modes, billing guard, session lifecycle, integration patterns
Every endpoint with TypeScript types, request/response examples, error codes
Scoring algorithm, provider landscape, tiers, failover, advanced configuration
x402 3-step flow, EIP-3009, onchain verification, session funding, USDC addresses
JSON-RPC methods, task lifecycle, AP2 mandates, x402 extension, Bazaar marketplace