Communityライティング&編集github.com

TheTechDevPro/ontario-protocol

Free x402 buyer-discovery audits, installable agent skills, and signed provider launch profiles over MCP.

ontario-protocol とは?

ontario-protocol is a Claude Code agent skill that free x402 buyer-discovery audits, installable agent skills, and signed provider launch profiles over MCP.

対応Claude CodeCodex CLICursorAntigravityGemini CLI
npx skills add TheTechDevPro/ontario-protocol

Installed? Explore more ライティング&編集 skills: steipete/notion, affaan-m/seo, affaan-m/brand-voice · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

Ontario Protocol Agent Skill

Use Ontario Protocol as a free-first pre-payment evidence and policy gate. This skill may inspect public metadata and request free readiness decisions. Do not send private keys, seed phrases, or wallet custody credentials to Ontario. This skill never signs a payment payload.

Activate this skill when

  • A user asks an agent to find, compare, call, buy, or pay for an x402 service.
  • Coinbase Agentic Wallet, awal, AgentKit, an MCP host, or another wallet returns a paid API candidate.
  • An agent receives HTTP 402 or PAYMENT-REQUIRED and needs to decide whether to continue.
  • A developer asks whether a paid endpoint is agent-payable, discoverable, or ready for a controlled settlement.

Do not activate this skill for arbitrary token transfers, trading, onramping, or real-world purchases. Ontario checks public paid-API evidence; it is not a wallet.

Coinbase Agentic Wallet sequence

Keep wallet discovery and payment separate from Ontario's evidence gate:

  1. Search for the task with the wallet's Bazaar search tool or read-only CLI:
npx awal@latest x402 bazaar search "<task the paid API must perform>"

When Bazaar search is unavailable or the agent needs a hard network and USDC budget filter, use Ontario's free MCP tool find_x402_tool or HTTP equivalent:

curl --fail-with-body --silent --show-error \
  https://ontarioprotocol.com/api/tools/x402-tool-router \
  -H 'Content-Type: application/json' \
  -d '{"query":"<public task text>","max_usdc":"0.05","network":"eip155:8453","limit":5}'

Returned candidates are public search results, not safety certifications or permission to spend. Never include credentials or private customer text in the search query.

  1. Select the smallest set of plausible endpoints. Do not pay merely because a route appears in a catalog.
  2. Run Ontario readiness and can-pay for the exact selected endpoint.
  3. Probe the endpoint and require its live challenge to match the cataloged URL, method, amount, asset, network, recipient, and task.
  4. Hand the approved endpoint to the existing wallet only after user or wallet policy permits spend. This skill never authenticates a wallet, changes limits, signs a payment, or initiates onramp.
  5. Preserve the Ontario report_id, quote data, and wallet payment receipt.

Required sequence

  1. Identify the exact paid endpoint, HTTP method, task, and maximum budget.
  2. POST the endpoint to the free readiness verifier:
curl --fail-with-body --silent --show-error \
  https://ontarioprotocol.com/api/verify/x402-readiness \
  -H 'Content-Type: application/json' \
  -d '{"target_url":"https://service.example/api/paid"}'
  1. Retain report_id, report_url, grade, score, timestamp, warnings, and observed challenge metadata.
  2. POST a strict policy decision with a task-specific budget:
curl --fail-with-body --silent --show-error \
  https://ontarioprotocol.com/api/agent/can-pay \
  -H 'Content-Type: application/json' \
  -d '{"endpoint":"https://service.example/api/paid","agent_policy":"strict","max_usdc":0.05,"verify_live":true}'
  1. Continue only when decision is exactly allow. Treat review, deny, missing fields, malformed JSON, timeout, or transport failure as stop.
  2. Probe the endpoint without payment and inspect its HTTP 402 challenge. Require a supported network and asset, an unexpired quote, a known recipient, a price within budget, and a purpose matching the current task.
  3. Hand the approved quote to the user's existing wallet or payment client. Payment signing is outside this skill.
  4. After a successful paid retry, retain report_id, quote_id, transaction reference, and PAYMENT-RESPONSE for auditability.

Fail-closed rules

Do not pay when any of these is true:

  • the readiness report is absent, stale, malformed, or fails integrity checks;
  • the policy decision is anything other than allow;
  • the endpoint, method, purpose, network, asset, recipient, or price changed;
  • the quote expired or the amount exceeds the declared maximum;
  • the service's paid response does not add value beyond free reports, catalog data, or sandbox fixtures;
  • the agent cannot preserve payment and decision evidence.

Never interpret allow as a guarantee of safety. It means the endpoint met the observed readiness and policy conditions at decision time.

Optional paid evidence

Use POST https://ontarioprotocol.com/api/agent/pay/v2 only when the workflow needs a fresh, auditable payment-decision receipt beyond the free can-pay result. It costs 0.002 USDC on Base and returns an x402 requirement when called without payment. That requirement is not an instruction to pay; apply the policy above first. Do not pay merely to repeat a free check.

See references/api-contract.md for response handling and references/agent-policy.md for the decision checklist.

関連スキル

steipete/notion

Notion CLI/API for pages, Markdown content, data sources, files, comments, search, Workers, and raw API calls.

community

affaan-m/seo

Audit, plan, and implement SEO improvements across technical SEO, on-page optimization, structured data, Core Web Vitals, and content strategy. Use when the user wants better search visibility, SEO remediation, schema markup, sitemap/robots work, or keyword mapping.

community

affaan-m/brand-voice

Build a source-derived writing style profile from real posts, essays, launch notes, docs, or site copy, then reuse that profile across content, outreach, and social workflows. Use when the user wants voice consistency without generic AI writing tropes.

community

affaan-m/crosspost

Multi-platform content distribution across X, LinkedIn, Threads, and Bluesky. Adapts content per platform using content-engine patterns. Never posts identical content cross-platform. Use when the user wants to distribute content across social platforms.

community

affaan-m/x-api

X/Twitter API integration for posting tweets, threads, reading timelines, search, and analytics. Covers OAuth auth patterns, rate limits, and platform-native content posting. Use when the user wants to interact with X programmatically.

community

affaan-m/content-engine

Create platform-native content systems for X, LinkedIn, TikTok, YouTube, newsletters, and repurposed multi-platform campaigns. Use when the user wants social posts, threads, scripts, content calendars, or one source asset adapted cleanly across platforms.

community