genlayer-erc7710-connector
できること
このスキルは、GenLayerのレビュー結果を、エージェントの権限を管理するスマートコントラクトにつなぐ開発者向けです。メッセージの形式、リレーやブリッジの経路、失敗時の扱い、ブロックチェーン上で権限を取り消すことが実際に何をするかを扱います。
使う場面
- ✓すでにGenLayerのレビューがあり、その結果を権限の変更に変える必要があるとき。
- ✓レビューの結果を、ブロックチェーンのコントローラーにどう送るかを決めたいとき。
- ✓レビューの結果が遅れたり失敗したりした場合の計画を立てたいとき。
スキルのリンク
https://github.com/internet-court/internet-court-skill/blob/main/integrations/genlayer-erc7710-connector/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私のエージェントを採点するGenLayerのレビューがあり、悪い点数が出たら支払いをブロックしたいです。”
毎週5つの新しいスキル。1分で読めます。
仕組み
GenLayerが判断を出し、それがリレーまたはブリッジによって、EVMブロックチェーン上のコントローラーのコントラクトに渡されます。そのコントローラーが、今後の権限の使用を制限またはブロックします。GenLayerは自分で取り消しを行わないため、コントローラーが判断に基づいて動く必要があることを強調しています。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
GenLayer ERC-7710 Connector
Use this skill after the mandate, ERC-7710 policy, and GenLayer Intelligent Contract review flow exist. This skill does not teach GenLayer contract deployment. For GenLayer build, deploy, test, and CLI operations, use the official GenLayer skills at https://skills.genlayer.com/ or the GenLayer documentation.
This skill specifies the connector:
GenLayer Intelligent Contract decision
-> decision proof / receipt / finalized result
-> relayer or bridge
-> EVM RevocationController
-> ERC-7710 Delegation Manager rejects or constrains future redemptions
Design Rule
Never say "GenLayer cancels ERC-7710" without defining the effect path. GenLayer produces a decision. An EVM-side controller, account module, caveat enforcer, or delegation manager integration must consume that decision.
Workflow
- Identify the permission:
mandateId,permissionHash, delegator, delegate, delegation manager, target EVM chain, and current policy.
- Identify the GenLayer decision source:
- supervisor contract address, method that stores/returns the decision, review window, decision enum, score, issued timestamp, and finalized transaction id.
- Choose the connector mode:
- Manual demo relay, trusted relayer, GenLayer Studio bridge relay, optimistic relay with challenge window, light-client/bridge verification, or direct EVM call if supported by the target GenLayer/EVM integration.
- Define the message:
- Include enough data for the EVM controller to revoke or constrain exactly one mandate/permission.
- Define the EVM effect:
- Revoke, constrain, pause, require human approval, or mark pending appeal.
- Define safety:
- Finality assumptions, replay protection, nonce, deadline, idempotency, emergency owner revoke, and absolute permission expiry.
- Define tests:
- Continue does nothing, revoke blocks future redemption, constrain tightens policy, stale decisions fail, duplicate messages are idempotent, forged decisions fail.
Connector Modes
Use the simplest mode that honestly matches the demo.
Manual Demo Relay
Best for hackathon/prototype demos. The UI or operator reads the GenLayer decision and calls the EVM revocation controller.
State the trust assumption: the operator is trusted to relay the decision correctly.
Trusted Relayer
Best for a realistic MVP. A service watches GenLayer review transactions, waits for finality, then submits a signed EVM transaction.
Require allowlisted relayer keys and onchain event logs. Keep the delegator emergency revoke path.
GenLayer Studio Bridge Boilerplate
Use this for Base Sepolia demos that should exercise a real cross-chain control loop without claiming mainnet-grade verification.
Flow:
1. Base reporter contract packages a spend or action snapshot.
2. Base BridgeSender.sol sends it to GenLayer through the bridge boilerplate.
3. BridgeReceiver.py dispatches process_bridge_message() on the supervisor IC.
4. Supervisor IC reviews the window and calls BridgeSender.py.
5. Base BridgeReceiver.sol dispatches processBridgeMessage() on an EVM decision receiver.
6. Decision receiver verifies bridge receiver, source chain id, and source IC.
7. Decision receiver calls RevocationController.applyGenLayerDecisionStruct().
Default Base Sepolia values from the bridge boilerplate:
- Base Sepolia chain id:
84532. - Base Sepolia LayerZero endpoint id:
40245. - GenLayer source chain id emitted by
BridgeSender.py:61998.
Required EVM contracts:
- a reporter such as
WalletSpendReporterthat sends snapshots to GenLayer; - a decision receiver such as
GenLayerDecisionReceiverthat is allowlisted as a relayer onRevocationController; - a redemption path that checks
RevocationController.isRevoked,isPaused, andgetConstraintsbefore spending.
Trust assumption: the bridge service and configured bridge contracts are trusted for the demo unless a verified proof path is added. Keep owner emergency revoke and absolute expiry.
Optimistic Relay
Best when anyone can submit a decision, but the decision can be challenged during a delay.
Use for higher-stakes demos where incorrect revocation is costly and latency is acceptable.
Verified Bridge
Best for production claims. The EVM controller verifies a GenLayer-origin proof or a trusted bridge message.
Do not choose this mode unless the proof/bridge implementation is actually available.
Message Schema
Use this as the default co
よくある質問
GenLayerが自動的に権限を取り消しますか?
いいえ。GenLayerは判断を出し、それを読んで変更を適用するのは、ブロックチェーン上の別のコントラクトです。
GenLayerのコントラクトを書くにはこのスキルが必要ですか?
いいえ。このスキルは接続だけを扱い、コントラクトの作成と展開については公式のGenLayerのスキルを案内します。
どのブロックチェーンにつながりますか?
イーサリアムを含むEVMチェーンのファミリーに対応しています。正確なチェーンはプロジェクトによります。
詳細
作者による元の説明
Connect GenLayer Intelligent Contract decisions to ERC-7710-style delegated authority. Use when an agent needs to design the interface, message schema, relayer/bridge path, EVM revocation controller, constraint updates, proof/finality assumptions, and failure handling that turn a GenLayer agent-performance review into ERC-7710 revocation or policy changes.
人気
- GitHubのスター
- 7.0k
- ランキング
- #13598
- ライセンス
- —
- 更新日
- 2026/10/26
コメント
- …
このリポジトリの他のスキル
internet-court
7.0kエージェントが、他のAIエージェントや有料サービスと安全に支払い、雇用、取引できるよう支援し、適切な専門ガイドを案内します。
genlayer-intelligent-contracts
7.0kエージェントが、別のエージェントが委任された範囲を守ったかを判定するAIの審査役について、ルール、証拠、出力を定義できるよう支援します。
x402-erc7710
7.0kエージェントが、リクエストごとにウェブサービスの支払いを行い、許可された予算の範囲内で継続的な支出を設定できるよう支援します。
0g-compute
7.0kエージェントに、テスト済みのコードパターンを使って、分散型GPUネットワーク0Gの上で、チャットボット、画像ツール、音声機能を作る方法を教えます。
似ているスキル
add-model-provider
394k安全なセットアップコマンドで新しいAIモデルプロバイダーをOpenClawに接続し、APIキーを平文で残さず、ライブテストを行うようエージェントを支援します。
acp-router
394kClaude CodeやCursorなどのコーディングアシスタントに、OpenClaw経由でタスクを渡し、その作業がそのツール内で行われるようエージェントを支援します。
browser-automation
394kログイン、タブ、応答しなくなったページからの復旧を含め、Webページを段階的に操作するようエージェントに教えます。