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.

OpenAI-compatible drop-in migration
Session-budgeted agent architecture
x402 payment settlement integration
A2A agent-to-agent communication
Cost intelligence dashboards
Semantic cache configuration
Billing Guard constraint design
Multi-provider failover patterns

Install

Recommended

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.
Any Project

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/
Web / Mobile

Claude.ai

Download the .skill file and upload through the Claude.ai interface.

1Download p402.skill below
2Settings > Capabilities > Skills
3Upload the file

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/p402

Plugin Marketplace

/plugin install p402@p402-router

Contents