kleros-ipfs-upload
यह क्या करती है
यह स्किल Kleros इकोसिस्टम में इस्तेमाल होने वाली फ़ाइलें, जैसे विवाद के सबूत, नीतियाँ और Curate metadata, IPFS पर अपलोड करती है। हर अपलोड Kleros gateway के ज़रिए Base mainnet पर $0.01 USDC का भुगतान अनुरोध है, उन लोगों के लिए जिन्हें ऐसी content ID चाहिए जिसे कोई contract संदर्भित कर सके।
कब इस्तेमाल करें
- ✓जब आपको Kleros अदालत या arbitrator के लिए विवाद का सबूत या नीति फ़ाइल अपलोड करनी हो।
- ✓जब आपके पास Curate आइटम का metadata या jurors की justifications IPFS पर रखने हों।
- ✓जब Kleros contract को एक ऐसी फ़ाइल चाहिए जिसे आप IPFS content ID से संदर्भित कर सकें।
Skill का लिंक
https://github.com/internet-court/internet-court-skill/blob/main/vendored/kleros/kleros-ipfs-upload/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मुझे अपना विवाद सबूत दस्तावेज़ IPFS पर अपलोड करना है, ताकि Kleros contract उसे संदर्भित कर सके।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट हर भुगतान अनुरोध में एक फ़ाइल Kleros upload gateway को भेजता है और एक IPFS content ID पाता है। वह ID किसी भी IPFS gateway से खोली जा सकती है। हर अपलोड का भुगतान Base mainnet पर x402 भुगतान सिस्टम से USDC में होता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Kleros IPFS Upload (x402)
Upload Kleros-ecosystem files to IPFS via https://kleros-ipfs-gateway.fly.dev/upload-to-ipfs, an x402-protected gateway that charges $0.01 USDC per upload on Base mainnet. The returned IPFS CID is content-addressable and dereferenceable through any IPFS gateway, and indexed by Kleros's Graph Node for subgraph discoverability.
The gateway is a thin reverse-proxy in front of a Filebase-backed pinning service operated by Kleros. Every upload is pinned to Filebase indefinitely as long as Kleros runs the gateway — a reasonable assumption for artifacts the Kleros ecosystem itself depends on (the team has a strong incentive to keep this live), but not a substitute for a general-purpose pinning provider if the content is unrelated to Kleros.
When to use this skill
Trigger this skill when the user is uploading Kleros-ecosystem content:
- Dispute evidence attachments — screenshots, documents, contracts, transcripts.
- Meta-evidence JSON — the policy/spec referenced by a court or arbitrator smart contract at dispute creation.
- Court / dispute / arbitrator policies — JSON describing rules, fees, juror counts, appeal mechanics.
- Kleros Curate item metadata — JSON for items submitted to a Curate list (e.g. tokens, badges).
- Juror / arbitrator justifications — rulings, dissents, deliberation rationale.
- Any artifact whose CID will end up in a Kleros smart contract event, transaction, or subgraph.
- The user explicitly names this gateway (
kleros-ipfs-gateway.fly.devetc.) or this skill. - The user is asking the agent to test, validate, or sanity-check this gateway or this skill itself (e.g. "smoke-test the Kleros IPFS gateway" / "verify pay-and-upload works"). A deliberate end-to-end test is a legitimate trigger even if no Kleros artifact is being uploaded for real use.
When NOT to use this skill
- Generic "store this file on IPFS" / "get me a CID for X" requests with no Kleros relevance. Use Pinata, web3.storage, Filebase directly, or any other general pinning provider. This gateway charges per upload — that's wasteful if the user only needs a CID and doesn't benefit from Kleros's pinning durability or subgraph integration.
- Anything resembling personal cloud storage, NFT metadata for non-Kleros projects, software releases, large media archives, or backup data.
- Content explicitly bound to a non-Kleros ecosystem (e.g. another DAO's snapshot, another marketplace's metadata) — even if the format happens to look like a Kleros artifact.
You are free to upload whatever the user wants (they're paying), but absent a Kleros connection there's no reason to prefer this skill over a general-purpose alternative.
Quickstart
Two paths depending on what your agent already has:
- If you already have x402 tooling (an x402 skill / SDK / a model that knows
x402-fetch): skip the bundled scripts and inline the snippet further down — the gateway is a plainPOST /upload-to-ipfsbehind a standard x402 paywall, nothing Kleros-specific in the payment flow. - Otherwise, run the bundled
scripts/pay-and-upload.tsend-to-end — it exists so x402-unaware agents don't have to rediscover the flow:
cd path/to/this-skill/scripts
npm install
EVM_PRIVATE_KEY=0xYourPayerKey npx tsx pay-and-upload.ts /path/to/file.json
npm install creates a package-lock.json and a node_modules/ in the scripts dir — both are fine to leave in place or delete after use; not committed to the skill on purpose so dep versions stay fresh.
On success the script prints every CID reported by the gateway, one per line (so you can capture the normal
single CID with $(npx tsx pay-and-upload.ts ...)). The array-shaped response is legacy API structure, not
batch-upload support. On failure the script exits non-zero and logs the gateway's error body to stderr.
Defaults: OPERATION=evidence, GATEWAY_URL=https://kleros-ipfs-gateway.fly.dev. Override OPERATION with an env var; see the "Request shape" section for valid values.
One file per paid upload; reuse identical files
Each paid request must contain exactly one multipart part named file. Never append multiple file parts or
batch different files into one request. If two files have different content, make two separate paid uploads —
one request and one payment per file. This applies even when the files belong to the same Curate or dispute
workflow.
IPFS CIDs are content-addressed. If the same byte-for-byte fi
अक्सर पूछे जाने वाले सवाल
अपलोड की लागत कितनी है?
प्रति फ़ाइल एक सेंट USDC, यानी $0.01, Base mainnet पर।
क्या स्किल असंबंधित फ़ाइलें अपलोड कर सकती है?
स्किल Kleros से जुड़े कंटेंट के लिए है। वह चेतावनी देती है कि यह gateway असंबंधित फ़ाइलों के लिए सामान्य pinning सेवा नहीं है।
फ़ाइल को IPFS content ID क्यों मिलती है?
content ID से Kleros contracts और subgraphs ठीक उसी फ़ाइल को संदर्भित कर सकते हैं।
जानकारी
लेखक का मूल विवरण
Upload one Kleros-ecosystem file per paid request to IPFS through the Kleros x402 gateway for $0.01 USDC on Base mainnet. Use for dispute evidence, MetaEvidence JSON, court/dispute/arbitrator policies, Curate item metadata, juror justifications, or any artifact a Kleros contract or subgraph will reference by CID. Trigger when the request mentions Kleros, court, arbitrator, dispute, juror, Curate, Proof of Humanity, evidence, meta-evidence, justification, explicitly names this gateway or skill, or asks to test or validate it. Do NOT use for generic IPFS/CID requests without Kleros context; reco
लोकप्रियता
- GitHub स्टार
- 7.0k
- रैंकिंग में स्थान
- #13638
- लाइसेंस
- —
- अपडेट की गई
- 26/10/2026
कमेंट
- …
इस repository की और skills
internet-court
7.0kयह आपके एजेंट को AI एजेंट या पेड सेवा से सुरक्षित तरीके से भुगतान और लेन-देन की शुरुआती दिशा देती है, और सही विशेष गाइड बताती है।
genlayer-erc7710-connector
7.0kयह आपके एजेंट को AI समीक्षा के नतीजे को अनुमति प्रणाली से जोड़ने देती है, ताकि खराब समीक्षा एजेंट की अनुमतियाँ सीमित कर सके।
genlayer-intelligent-contracts
7.0kयह आपके एजेंट को AI जज के नियम, सबूत और नतीजे तय करने में मदद करती है, जो जाँचता है कि दूसरा एजेंट अपने अधिकार के दायरे में रहा या नहीं।
x402-erc7710
7.0kयह आपके एजेंट को हर अनुरोध पर वेब सेवा का भुगतान करने और तय सीमा के भीतर लगातार खर्च करने की व्यवस्था में मदद करती है।
मिलती-जुलती skills
api-connector-builder
280kयह आपके एजेंट को मौजूदा pattern के हिसाब से नए API connections बनाने देता है। जब बिना कोई नया तरीका बनाए एक और integration जोड़ना हो, तब इसका इस्तेमाल करें।
api-design
280kयह आपके एजेंट को best practices के हिसाब से REST APIs डिज़ाइन करने में मदद करता है। यह तय करने में काम आता है कि APIs आपस में कैसे बात करें, errors कैसे दिखें, और data को कैसे व्यवस्थित करें।
backend-patterns
280kआपके एजेंट को server-side architecture patterns और database optimization में मदद करता है। server पर चलने वाला code बनाने या review करने के लिए उपयोगी है।