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가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
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.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 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
인기도
- GitHub 스타
- 7.0k
- 순위
- #13638
- 라이선스
- —
- 업데이트
- 2026. 10. 26.
댓글
- …
이 저장소의 다른 스킬
internet-court
7.0k에이전트가 다른 AI 에이전트나 유료 서비스와 안전하게 결제하거나 거래하도록 돕고, 적합한 전문 가이드를 알려 줍니다.
genlayer-erc7710-connector
7.0k에이전트가 GenLayer 검토 결과를 권한 시스템에 연결하도록 돕습니다. 나쁜 검토는 에이전트의 권한을 제한하거나 취소할 수 있습니다.
genlayer-intelligent-contracts
7.0k에이전트가 다른 에이전트가 위임받은 범위를 지켰는지 확인하는 AI 심판의 규칙, 증거, 결과를 정하도록 돕습니다.
x402-erc7710
7.0k에이전트가 웹 서비스 요금을 요청 한 건마다 결제하고, 권한 예산 안에서 지속적인 지출을 설정하도록 돕습니다.
비슷한 스킬
api-connector-builder
280k에이전트가 기존 패턴을 따라 새로운 API 연결을 만들도록 합니다. 새로운 방식을 도입하지 않고 연동을 하나 더 추가할 때 씁니다.
api-design
280k에이전트가 모범 사례에 따라 REST API를 설계하도록 돕습니다. API가 통신하는 방식, 오류를 보여 주는 방식, 데이터를 정리하는 방식을 정하는 데 유용합니다.
backend-patterns
280k에이전트가 서버 쪽 아키텍처 패턴과 데이터베이스 최적화를 다루도록 돕습니다. 서버에서 실행되는 코드를 만들거나 검토할 때 유용합니다.