Aller au contenu
Skillpedia
API et serveurs (backend)7.0k · #13638

kleros-ipfs-upload

Ce qu’il fait

Ce skill téléverse sur IPFS les fichiers utilisés dans l'écosystème Kleros, comme les preuves de litige, les politiques et les métadonnées Curate. Chaque téléversement est une requête payante de 0,01 USDC sur le réseau principal Base, via la passerelle Kleros, pour les personnes qui ont besoin d'un identifiant de contenu qu'un contrat peut référencer.

Quand l’utiliser

  • ✓Quand vous devez téléverser une preuve de litige ou un fichier de politique pour un tribunal ou un arbitre Kleros.
  • ✓Quand vous avez des métadonnées d'élément Curate ou des motivations de jurés à stocker sur IPFS.
  • ✓Quand un contrat Kleros a besoin d'un fichier que vous pouvez référencer par son identifiant de contenu IPFS.

Lien du skill

https://github.com/internet-court/internet-court-skill/blob/main/vendored/kleros/kleros-ipfs-upload/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/internet-court/internet-court-skill/blob/main/vendored/kleros/kleros-ipfs-upload/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Je dois téléverser mon document de preuve de litige sur IPFS pour que le contrat Kleros puisse le référencer.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'agent envoie un fichier par requête payante à la passerelle de téléversement Kleros et reçoit un identifiant de contenu IPFS. Cet identifiant peut être ouvert via n'importe quelle passerelle IPFS. Chaque téléversement est payé en USDC sur le réseau principal Base, via le système de paiement x402.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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.dev etc.) 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 plain POST /upload-to-ipfs behind a standard x402 paywall, nothing Kleros-specific in the payment flow.
  • Otherwise, run the bundled scripts/pay-and-upload.ts end-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

Questions fréquentes

Combien coûte un téléversement ?

Un centime d'USDC, soit 0,01 $, par fichier, sur le réseau principal Base.

Le skill peut-il téléverser des fichiers sans rapport ?

Le skill est destiné aux contenus liés à Kleros. Il avertit que la passerelle n'est pas un service d'épinglage général pour des fichiers sans rapport.

Pourquoi le fichier reçoit-il un identifiant de contenu IPFS ?

L'identifiant de contenu permet aux contrats et aux sous-graphes Kleros de référencer le fichier exact.

Détails

Description originale de l’auteur

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

repo: internet-court/internet-court-skill

Popularité

Étoiles GitHub
7.0k
Position au classement
#13638
Licence
—
Mis à jour
26/10/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires