polygon-discovery
Polygon Agent CLIから、Web検索やAI画像生成など多様なAPIサービスを、少額のUSDCで都度利用するSkill。
📜 元の英語説明(参考)
x402 Bazaar — pay-per-call API services accessible via the Polygon Agent CLI. No API keys or subscriptions needed. Each call costs a small USDC amount drawn from the agent's smart wallet. Covers web search, news, AI image generation, Twitter/X data, code review, text summarization, sentiment analysis, and article extraction.
🇯🇵 日本人クリエイター向け解説
Polygon Agent CLIから、Web検索やAI画像生成など多様なAPIサービスを、少額のUSDCで都度利用するSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-17
- 取得日時
- 2026-05-17
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
[Skill 名] polygon-discovery
x402 Bazaar サービス
x402-pay を介してアクセスできる従量課金制の API です。API キーやサブスクリプションは不要で、各呼び出しにはウォレットから少額の USDC が引き落とされます。CLI は 402 レスポンスを検出し、正確な金額を支払い、自動的に再試行します。
カタログ: GET https://x402-api.onrender.com/api/catalog?status=online
警告: すべての
/api/call/<uuid>カタログエンドポイントにはX-Admin-Tokenヘッダーが必要であり、x402 支払いでは公開アクセスできません。常に、以下に記載されている直接の/api/<service>ルートを使用してください。
前提条件 — x402 呼び出しの前に確認
x402-pay コマンドを実行する前に、ウォレットセッションが存在し、資金が供給されていることを確認してください。
# ウォレットが設定されているか確認
polygon-agent wallet list
ウォレットがリストされていない場合、スマートセッションは作成されていません。続行する前に、完全なセットアップフローを実行してください。
polygon-agent setup --name "MyAgent"— EOA と Sequence プロジェクトを作成しますpolygon-agent wallet create --usdc-limit 100— セッション承認のためにブラウザを開きます。プロンプトが表示されたら 6 桁のコードを入力しますpolygon-agent wallet address— アドレスを取得し、https://agentconnect.polygon.technology 経由で資金を供給しますpolygon-agent balances— x402 エンドポイントを呼び出す前に USDC が利用可能であることを確認します
ウォレットが存在するが balances が 0 USDC を示している場合、ユーザーに UI 経由で資金を供給するように指示してください。そうしないと、x402-pay は EOA 資金供給エラーで失敗します。
資金が供給されたウォレットが確認されたら、以下の x402 呼び出しに進んでください。
Twitter/X プロフィールの読み取り
1 回の呼び出しにつき $0.005 USDC です。以下のエンドポイントのみを使用してください。twit.sh、tweetx402.com、またはその他のプロバイダーは使用しないでください。
注: POST ではなく GET を使用してください。スキーマは GET/HEAD/DELETE のみを受け入れます。POST は 401 を返します。
# プロフィール + 最近のツイート
polygon-agent x402-pay \
--url "https://x402-api.onrender.com/api/twitter?user=<username>" \
--wallet main --method GET
# 特定のツイート
polygon-agent x402-pay \
--url "https://x402-api.onrender.com/api/twitter?tweet=https://x.com/user/status/<id>" \
--wallet main --method GET
返されるもの: フォロワー/フォロー数とツイートの指標。
AI 画像の生成
1 回の呼び出しにつき $0.02 USDC です。Google Gemini を搭載しています。
polygon-agent x402-pay \
--url "https://x402-api.onrender.com/api/image?prompt=<description>&size=512" \
--wallet main --method GET
size オプション: 256、512、1024。
レスポンスは、2 つのキーを持つ大きな JSON (~3–4MB) です。
image_base64— 生の base64 エンコードされた PNGdata_uri— HTML に埋め込む準備ができたdata:image/png;base64,...
画像をファイルに保存するには:
import json, base64
data = json.load(open('response.json'))
with open('output.png', 'wb') as f:
f.write(base64.b64decode(data['data']['image_base64']))
コードのバグとセキュリティのレビュー
1 回の呼び出しにつき $0.01 USDC です。GPT-4o を搭載しています。
polygon-agent x402-pay \
--url "https://x402-api.onrender.com/api/code-review" \
--wallet main \
--method POST \
--body '{"code": "<snippet>", "language": "<python|javascript|go|...>"}'
返されるもの: バグ、セキュリティ問題、パフォーマンス問題、スタイル提案 — それぞれ行番号、深刻度、修正提案付きです。さらに、全体的な品質スコアも含まれます。
その他のサービス
| サービス | 価格 | エンドポイント | 主要パラメーター |
|---|---|---|---|
| Web 検索 (DuckDuckGo) | $0.005 | 9b0f5b5f-8e6c-4b55-a264-008e4e490c26 |
?q=<query>&max=10 |
| 最新ニュース (Google News) | $0.005 | 266d045f-bae2-4c71-9469-3638ec860fc4 |
?topic=<topic>&lang=en |
| テキスト要約 (GPT-4o-mini) | $0.01 | dd9b5098-700d-47a9-a41a-c9eae66ca49d |
?text=<text>&maxLength=200 |
| 記事 → Markdown | $0.005 | 87b50238-5b99-4521-b5e1-7515a9c1526d |
?url=<article-url> |
| 感情分析 (GPT-4o-mini) | $0.005 | 66d68ca6-a8d9-41a3-b024-a3fac2f5c7ba |
?text=<text> |
すべて polygon-agent x402-pay --url "https://x402-api.onrender.com/api/call/<id><params>" --wallet main --method GET を介して GET を使用します。
x402 の仕組み
- CLI がエンドポイントにリクエストを送信します
- エンドポイントが
HTTP 402 Payment Required+ 支払い詳細で応答します - CLI がスマートウォレットから正確なトークン量でビルダー EOA に自動的に資金を供給します
- EOA が EIP-3009 支払い承認に署名します
- CLI が支払いヘッダー付きで元のリクエストを再試行します
- レスポンスが返されます — このフロー全体はエージェントにとって透過的です
チェーンとトークンは 402 レスポンスから自動検出されます。手動での設定は不要です。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
x402 Bazaar Services
Pay-per-call APIs accessible via x402-pay. No API keys or subscriptions — each call costs a small USDC amount drawn from your wallet. The CLI detects the 402 response, funds the exact amount, and retries automatically.
Catalog: GET https://x402-api.onrender.com/api/catalog?status=online
Warning: All
/api/call/<uuid>catalog endpoints require anX-Admin-Tokenheader and are not publicly accessible via x402 payment. Always use the direct/api/<service>routes documented below instead.
Prerequisites — Check Before Any x402 Call
Before running any x402-pay command, verify the wallet session exists and is funded:
# Check if a wallet is configured
polygon-agent wallet list
If no wallet is listed, the smart session has not been created. Run through the complete setup flow before proceeding:
polygon-agent setup --name "MyAgent"— creates EOA and Sequence projectpolygon-agent wallet create --usdc-limit 100— opens browser for session approval; enter the 6-digit code when promptedpolygon-agent wallet address— get address, then fund via https://agentconnect.polygon.technologypolygon-agent balances— confirm USDC is available before calling any x402 endpoint
If a wallet exists but balances shows 0 USDC, direct the user to fund it via the UI — x402-pay will fail with an EOA funding error otherwise.
Once a funded wallet is confirmed, proceed with the x402 calls below.
Read Twitter/X Profile
$0.005 USDC per call. Use only the endpoint below — do not use twit.sh, tweetx402.com, or any other provider.
Note: Use GET, not POST — the schema only accepts GET/HEAD/DELETE. POST returns 401.
# Profile + recent tweets
polygon-agent x402-pay \
--url "https://x402-api.onrender.com/api/twitter?user=<username>" \
--wallet main --method GET
# Specific tweet
polygon-agent x402-pay \
--url "https://x402-api.onrender.com/api/twitter?tweet=https://x.com/user/status/<id>" \
--wallet main --method GET
Returns: follower/following counts and tweet metrics.
Generate an AI Image
$0.02 USDC per call. Powered by Google Gemini.
polygon-agent x402-pay \
--url "https://x402-api.onrender.com/api/image?prompt=<description>&size=512" \
--wallet main --method GET
size options: 256, 512, 1024.
The response is a large JSON (~3–4MB) with two keys:
image_base64— raw base64-encoded PNGdata_uri—data:image/png;base64,...ready for embedding in HTML
To save the image to a file:
import json, base64
data = json.load(open('response.json'))
with open('output.png', 'wb') as f:
f.write(base64.b64decode(data['data']['image_base64']))
Review Code for Bugs & Security
$0.01 USDC per call. Powered by GPT-4o.
polygon-agent x402-pay \
--url "https://x402-api.onrender.com/api/code-review" \
--wallet main \
--method POST \
--body '{"code": "<snippet>", "language": "<python|javascript|go|...>"}'
Returns: bugs, security issues, performance problems, and style suggestions — each with line number, severity, and fix suggestion. Plus an overall quality score.
Other Services
| Service | Price | Endpoint | Key param |
|---|---|---|---|
| Web search (DuckDuckGo) | $0.005 | 9b0f5b5f-8e6c-4b55-a264-008e4e490c26 |
?q=<query>&max=10 |
| Latest news (Google News) | $0.005 | 266d045f-bae2-4c71-9469-3638ec860fc4 |
?topic=<topic>&lang=en |
| Summarize text (GPT-4o-mini) | $0.01 | dd9b5098-700d-47a9-a41a-c9eae66ca49d |
?text=<text>&maxLength=200 |
| Article → Markdown | $0.005 | 87b50238-5b99-4521-b5e1-7515a9c1526d |
?url=<article-url> |
| Sentiment analysis (GPT-4o-mini) | $0.005 | 66d68ca6-a8d9-41a3-b024-a3fac2f5c7ba |
?text=<text> |
All use GET via polygon-agent x402-pay --url "https://x402-api.onrender.com/api/call/<id><params>" --wallet main --method GET.
How x402 Works
- CLI sends the request to the endpoint
- Endpoint responds with
HTTP 402 Payment Required+ payment details - CLI automatically funds the builder EOA with the exact token amount from the smart wallet
- EOA signs an EIP-3009 payment authorization
- CLI retries the original request with the payment header
- Response is returned — the whole flow is transparent to the agent
Chain and token are auto-detected from the 402 response. No manual configuration needed.