Langsung ke konten
Skillpedia
Agen7.0k · #13599

genlayer-intelligent-contracts

Fungsinya

Skill ini ditujukan untuk merencanakan tinjauan AI yang dibangun di atas GenLayer, di mana sebuah kontrak menilai apakah tindakan agent sesuai dengan instruksi pemiliknya. Skill ini mencakup aturan, bukti yang harus dikumpulkan, dan format keputusan, sementara skill resmi GenLayer menangani pekerjaan pengodean.

Kapan dipakai

  • ✓Saat Anda menginginkan hakim AI yang memeriksa apakah agent lain mengikuti instruksinya.
  • ✓Ketika Anda perlu menentukan aturan penilaian dan bukti untuk tinjauan performa agent.
  • ✓Ketika Anda menyiapkan tinjauan yang hasilnya akan masuk ke sistem izin.

Link skill

https://github.com/internet-court/internet-court-skill/blob/main/integrations/genlayer-intelligent-contracts/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/internet-court/internet-court-skill/blob/main/integrations/genlayer-intelligent-contracts/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit →

Contoh permintaan ke AI

“Saya menginginkan hakim AI yang memeriksa apakah agent saya tetap berada dalam instruksi dan bukti transaksinya.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill ini membantu menentukan apa yang harus diperiksa kontrak tinjauan, seperti mandat pemilik, log tindakan agent, bukti transaksi, dan keluarannya. Skill ini menetapkan kemungkinan keputusan, yaitu lanjut, peringatan, batasi, cabut, atau eskalasi, dan mengarahkan ke alat resmi GenLayer untuk pekerjaan pembangunannya.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

GenLayer Intelligent Contracts

Use this adapter when GenLayer is the judgment layer for agent behavior. It should define what the supervisor contract must review and emit: the user's mandate, the agent's action log, transaction receipts, rationales, artifacts, outputs, and the decision about whether authority should continue, be warned, be constrained, or be revoked.

This skill is not the Intelligent Oracle skill. Intelligent Oracle is for binary public web evidence markets. Use this skill for open-ended review of performance, relevance, quality, safety, and mandate compliance.

This skill is also not the GenLayer deployment skill. For writing, deploying, testing, and interacting with GenLayer Intelligent Contracts, use the official GenLayer skills at https://skills.genlayer.com/ or the GenLayer docs. If those skills are available in the environment, load them for implementation. If not, tell the user to install/enable them and keep this skill focused on Internet Court interfaces.

Core Model

Mandate + rubric + evidence
  -> Agent executes transactions
  -> Receipts and outputs are submitted
  -> GenLayer Intelligent Contract reviews behavior
  -> Decision: continue, warn, constrain, revoke, or escalate
  -> Internet Court / revocation controller executes the workflow result

GenLayer can judge qualitative criteria. It does not automatically revoke an EVM delegation unless the system includes a concrete cross-chain message, relayer, controller, or account module that consumes the GenLayer decision.

Workflow

  1. Extract the review target:
    • Objective, allowed authority, prohibited behavior, expected outputs, review cadence, evidence sources, and revocation triggers.
  2. Draft a rubric:
    • Include relevance, mandate compliance, transaction safety, budget discipline, artifact quality, evidence completeness, and user-value criteria.
  3. Define evidence schema:
    • Use structured action receipts, transaction hashes, deployed addresses, agent rationales, output artifacts, costs, and prior warnings.
  4. Define decisions:
    • continue, warn, constrain, revoke, and optionally escalate.
  5. Define effect path:
    • For ERC-7710, load ../genlayer-erc7710-connector/SKILL.md to specify how a revoke or constrain decision reaches the EVM revocation controller or delegation manager.
  6. Add auditability:
    • Store the reviewed action ids, score, reasoning summary, decision timestamp, and next review requirements.

Review Input

Use this as the default review request shape:

type AgentPerformanceReviewInput = {
  mandateId: string;
  objective: string;
  authoritySummary: string;
  prohibitedActions: string[];
  rubric: string[];
  reviewWindow: {
    startsAt: string;
    endsAt: string;
  };
  actionReceipts: AgentActionReceipt[];
  outputs: Array<{
    artifactId: string;
    uri: string;
    summary: string;
  }>;
  costs: {
    txCount: number;
    nativeGasSpent: string;
    tokenSpent?: string;
  };
  priorDecisions: AgentReviewDecision[];
};

For wallet-spend supervision, include an on-chain spend snapshot in each review window:

type WalletSpendSnapshot = {
  mandateId: string;
  permissionHash: `0x${string}`;
  sourceChainId: 84532;
  spendReporter: `0x${string}`;
  actionType: `0x${string}`;
  policyHash: `0x${string}`;
  resourceHash: `0x${string}`;
  delegator: `0x${string}`;
  delegate: `0x${string}`;
  asset: `0x${string}`;
  payTo: `0x${string}`;
  spent: bigint;
  maxTotalSpend: bigint;
  maxPerRequest: bigint;
  requestCount: bigint;
  validAfter: number;
  validUntil: number;
  controllerNonce: bigint;
  reviewWindowId: `0x${string}`;
  evidenceBundleHash: `0x${string}`;
  observedAt: number;
};

On Base Sepolia demos, prefer a reporter contract that reads spend state directly from a permission/accounting manager and sends this snapshot through the GenLayer Studio bridge boilerplate. x402 is one source; contract-call, deployment, compute-credit, or subscription managers can expose the same shape.

Decision Output

type AgentReviewDecision = {
  mandateId: string;
  decision: "continue" | "warn" | "constrain" | "revoke" | "escalate";
  score: number;
  reasoning: string;
  violations: string[];
  constraints?: {
    maxTxsPerPeriod?: number;
    maxGasPerTx?: string;
    requireHumanApprovalFor?: string[];
    disabledActions?: string[];
  };
  reviewedActionIds: string[];
  issuedAt: string;
};

Use constrain when the agent is useful

Pertanyaan umum

Apakah ini sama dengan skill Intelligent Oracle?

Tidak. Intelligent Oracle untuk pertanyaan ya atau tidak berdasarkan bukti web publik. Skill ini untuk tinjauan terbuka atas perilaku.

Bisakah skill ini men-deploy kontrak GenLayer?

Tidak. Skill ini menjelaskan apa yang harus diperiksa kontrak, dan menyatakan agar memakai skill resmi GenLayer untuk membangun dan men-deploy.

Keputusan apa yang bisa dikembalikan tinjauan?

Tinjauan bisa mengembalikan lanjut, peringatan, batasi, cabut, atau eskalasi, tergantung pada apa yang ditunjukkan buktinya.

Detail

Deskripsi asli dari pembuat

Internet Court adapter for GenLayer Intelligent Contract supervision. Use to specify agent-performance rubrics, evidence schemas, decision outputs, and ERC-7710 connector expectations, while delegating actual GenLayer contract writing, linting, testing, deployment, and CLI interaction to the official GenLayer skills at https://skills.genlayer.com/.

repo: internet-court/internet-court-skill

Popularitas

Bintang GitHub
7.0k
Peringkat
#13599
Lisensi
—
Diperbarui
26/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa