본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)7.0k · #13638

kleros-ipfs-upload

하는 일

이 스킬은 분쟁 증거, 정책, Curate 메타데이터처럼 Kleros 생태계에서 쓰는 파일을 IPFS에 업로드합니다. 업로드 한 건마다 Kleros 게이트웨이를 통해 Base 메인넷에서 0.01 USDC의 유료 요청이 발생하며, 계약이 참조할 수 있는 콘텐츠 ID가 필요한 사람을 위한 스킬입니다.

사용하는 경우

  • ✓Kleros 법원이나 중재자를 위해 분쟁 증거나 정책 파일을 업로드해야 할 때.
  • ✓IPFS에 저장해야 할 Curate 항목 메타데이터나 배심원 판단 근거가 있을 때.
  • ✓Kleros 컨트랙트가 IPFS 콘텐츠 ID로 참조할 파일이 필요할 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/internet-court/internet-court-skill/blob/main/vendored/kleros/kleros-ipfs-upload/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“Kleros 컨트랙트가 참조할 수 있도록 제 분쟁 증거 문서를 IPFS에 업로드해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 유료 요청 한 건마다 파일 하나를 Kleros 업로드 게이트웨이로 보내고, IPFS 콘텐츠 ID를 받습니다. 이 ID는 아무 IPFS 게이트웨이로나 열 수 있습니다. 각 업로드는 x402 결제 시스템을 통해 Base 메인넷에서 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.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

자주 묻는 질문

업로드 비용은 얼마인가요?

파일당 USDC 1센트, 즉 0.01달러이며, Base 메인넷 기준입니다.

스킬로 관련 없는 파일도 업로드할 수 있나요?

스킬은 Kleros 관련 콘텐츠용이며, 이 게이트웨이는 관련 없는 파일을 위한 범용 고정(pinning) 서비스가 아니라고 경고합니다.

파일은 왜 IPFS 콘텐츠 ID를 받나요?

콘텐츠 ID 덕분에 Kleros 컨트랙트와 서브그래프가 정확한 파일을 참조할 수 있습니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
7.0k
순위
#13638
라이선스
—
업데이트
2026. 10. 26.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬