genlayer-intelligent-contracts
하는 일
이 스킬은 GenLayer 기반 AI 검토를 설계하는 데 쓰입니다. 이 검토에서 컨트랙트는 에이전트의 행동이 소유자의 지시와 맞는지 판단합니다. 규칙, 수집할 증거, 결정 형식을 다루며, 실제 코딩 작업은 공식 GenLayer 스킬이 맡습니다.
사용하는 경우
- ✓다른 에이전트가 지시를 따랐는지 확인하는 AI 심판을 원할 때.
- ✓에이전트 성과 검토를 위한 채점 규칙과 증거를 정해야 할 때.
- ✓결과가 권한 시스템에 전달될 검토를 준비할 때.
스킬 링크
https://github.com/internet-court/internet-court-skill/blob/main/integrations/genlayer-intelligent-contracts/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 에이전트가 지시와 영수증의 범위 안에서 행동했는지 확인하는 AI 심판을 만들어 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 검토 컨트랙트가 무엇을 봐야 하는지 정하도록 돕습니다. 예를 들어 소유자의 위임 범위, 에이전트의 행동 기록, 거래 영수증, 결과물이 있습니다. 가능한 결정은 계속, 경고, 제한, 취소, 상위 보고이며, 구축 작업은 GenLayer의 공식 도구를 가리킵니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
- Extract the review target:
- Objective, allowed authority, prohibited behavior, expected outputs, review cadence, evidence sources, and revocation triggers.
- Draft a rubric:
- Include relevance, mandate compliance, transaction safety, budget discipline, artifact quality, evidence completeness, and user-value criteria.
- Define evidence schema:
- Use structured action receipts, transaction hashes, deployed addresses, agent rationales, output artifacts, costs, and prior warnings.
- Define decisions:
continue,warn,constrain,revoke, and optionallyescalate.
- Define effect path:
- For ERC-7710, load
../genlayer-erc7710-connector/SKILL.mdto specify how arevokeorconstraindecision reaches the EVM revocation controller or delegation manager.
- For ERC-7710, load
- 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
자주 묻는 질문
Intelligent Oracle 스킬과 같은 것인가요?
아니요. Intelligent Oracle은 공개 웹 증거를 바탕으로 예 또는 아니요에 답하는 것이고, 이 스킬은 행동에 대한 열린 형식의 검토를 위한 것입니다.
이 스킬로 GenLayer 컨트랙트를 배포할 수 있나요?
아니요. 컨트랙트가 무엇을 확인해야 하는지 설명하며, 구축과 배포에는 공식 GenLayer 스킬을 사용하라고 말합니다.
검토는 어떤 결정을 내릴 수 있나요?
증거가 무엇을 보여 주는지에 따라 계속, 경고, 제한, 취소 또는 상위 보고 중 하나를 반환할 수 있습니다.
상세 정보
작성자의 원본 설명
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/.
인기도
- GitHub 스타
- 7.0k
- 순위
- #13599
- 라이선스
- —
- 업데이트
- 2026. 10. 26.
댓글
- …
이 저장소의 다른 스킬
internet-court
7.0k에이전트가 다른 AI 에이전트나 유료 서비스와 안전하게 결제하거나 거래하도록 돕고, 적합한 전문 가이드를 알려 줍니다.
genlayer-erc7710-connector
7.0k에이전트가 GenLayer 검토 결과를 권한 시스템에 연결하도록 돕습니다. 나쁜 검토는 에이전트의 권한을 제한하거나 취소할 수 있습니다.
x402-erc7710
7.0k에이전트가 웹 서비스 요금을 요청 한 건마다 결제하고, 권한 예산 안에서 지속적인 지출을 설정하도록 돕습니다.
0g-compute
7.0k에이전트가 0G 탈중앙 GPU 네트워크에서 챗봇, 이미지 도구, 음성 기능을 검증된 코드 패턴으로 만들도록 가르칩니다.
비슷한 스킬
add-model-provider
394k에이전트가 안전한 설정 명령으로 새 AI 모델 제공자를 OpenClaw에 연결하고, API 키를 평문으로 두지 않으며, 실시간 테스트를 실행하도록 돕습니다.
acp-router
394k에이전트가 OpenClaw를 통해 Claude Code나 Cursor 같은 코딩 도우미에 작업을 전달해, 작업이 그 도구에서 실행되도록 돕습니다.
browser-automation
394k에이전트가 로그인, 탭, 페이지 응답이 멈췄을 때의 복구를 포함해 웹 페이지를 단계별로 조작하도록 가르칩니다.