kleros-docs

Answers developer questions about integrating K2 V2 dispute resolution into smart contracts.

1|Updated Jan 20, 2026
One-click install
npx skills add https://github.com/kleros/docs --skill kleros-docs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kleros-docs
Source: https://github.com/kleros/docs/tree/main
Command: npx skills add https://github.com/kleros/docs --skill kleros-docs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This AI Context skill helps developers quickly answer questions about integrating Kleros V2 dispute resolution into smart contracts.

Core Features & Use Cases

  • Supports IArbitrableV2 and IArbitratorV2 integration guidance, including extraData encoding, dispute templates, data mappings, and KlerosCore addresses on Arbitrum One.
  • Covers Curate V2, Escrow V2, Proof of Humanity V2, Reality V2, Vea cross-chain bridge, and the @kleros/kleros-sdk to support end-to-end integration scenarios.
  • Delivers contextual answers drawn from the official docs to assist coding tasks and architecture decisions.

Quick Start

Ask the AI to explain how to encode extraData for a General Court dispute (courtID 1) with 3 min jurors using abi.encodePacked.

Frequently Asked Questions about kleros-docs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate Kleros V2 dispute resolution into my smart contracts?

Encoding extraData for a Kleros V2 General Court dispute uses abi.encodePacked to concatenate the courtID, minJurors, and other dispute parameters into a single bytes payload. For example, encoding courtID 1 with 3 min jurors requires packing these values for the IArbitratorV2 createDispute function.

What is the difference between IArbitrableV2 and IArbitratorV2 interfaces?

IArbitrableV2 is implemented by smart contracts that can receive dispute rulings, while IArbitratorV2 is implemented by the KlerosCore arbitration protocol to create disputes and manage jurors. The AI context explains how these interfaces interact during the dispute resolution lifecycle.

Does Kleros V2 support cross-chain dispute resolution?

Yes, Kleros V2 supports cross-chain dispute resolution through the Vea bridge, allowing disputes originating on other chains to be arbitrated on Arbitrum One where the KlerosCore contract is deployed. The AI context covers how to configure this cross-chain architecture.

Can I use the Kleros SDK to interact with Curate V2 and Escrow V2?

Yes, the @kleros/kleros-sdk provides programmatic access to interact with Curate V2 for item curation and Escrow V2 for secure transactions. The AI context delivers guidance on using the SDK for these end-to-end integration scenarios.

What are dispute templates in Kleros V2 and how do I configure them?

Dispute templates in Kleros V2 define the structured metadata and question format presented to jurors during arbitration. You configure them within the extraData encoding when calling the createDispute function through the IArbitratorV2 interface.

Why do I need to map data when integrating Proof of Humanity V2 with my contract?

Data mappings are required when integrating Proof of Humanity V2 to correctly route dispute identifiers and registry states between your IArbitrableV2 contract and the KlerosCore arbitrator. The AI context explains how to maintain these mappings for accurate dispute tracking.