本文へスキップ
Skillpedia
APIとサーバー(バックエンド)7.0k · #13632

intelligent-oracle

できること

このスキルにより、エージェントは、AIのバリデーターが公開のウェブ上の証拠を使って結果を決済する、はいかいいえの予測市場をGenLayer上に構築できます。市場の設定を書き、公開のファクトリーコントラクトを通じて展開し、市場の状態を確認することを扱います。

使う場面

  • ✓公開のウェブサイトから決済される、はいかいいえの予測市場を作りたいとき。
  • ✓ウェブアプリを開かずに、エージェントに市場を展開させたいとき。
  • ✓市場が解決されたか、またはエラーで失敗したかを確認する必要があるとき。

スキルのリンク

https://github.com/internet-court/internet-court-skill/blob/main/vendored/intelligent-oracle/intelligent-oracle/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/internet-court/internet-court-skill/blob/main/vendored/intelligent-oracle/intelligent-oracle/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“公開のウェブサイトの結果から決済される、はいかいいえの予測市場がほしいです。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、あなたのアイデアを二つの結果と一つ以上の解決ルールに変え、設定を厳格な形式に照らして確認します。公開のファクトリーコントラクトを通じて市場を展開し、新しいコントラクトを読んで、タイトル、結果、解決日が提出したものと一致するか確認します。解決されるかエラーになるまで状態を監視します。既定ではGenLayer Studioを使います。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Intelligent Oracle

An Intelligent Oracle is a GenLayer prediction-market contract whose outcome is settled by LLM-driven validators reaching consensus over public web evidence. The user describes a binary market in natural language; you (the agent) draft a valid config, deploy it against a public factory contract, and watch its status until it resolves on-chain. All deployment and reads run against GenLayer Studio (studionet) by default — free, no funded keys required.

Workflow

  1. Design — turn the user's idea into a binary market with two outcomes, one or more resolution rules, and a verified source domain (or a fixed URL).
  2. Validate — confirm the config matches the strict schema below.
  3. Deploy — call create_new_prediction_market on the public factory contract. This is the parent transaction.
  4. Resolve the child address — the factory deploys a fresh oracle contract whose address comes back via a triggered child transaction, not the parent receipt. You must poll for the child tx.
  5. Verify — read get_dict() on the new oracle address immediately. Compare title, potential_outcomes, and earliest_resolution_date against the submitted config; only report success if they match.
  6. Monitor — read get_status() periodically. When status is "Resolved" or "Error", settlement is final.

Network and factory address

Before deploying, fetch the current network pointer from this site:

GET https://intelligentoracle.com/oracle-meta.json

Shape:

{
  "factoryAddress": "0x...",
  "rpcUrl": "https://studio.genlayer.com/api",
  "chain": "studionet",
  "updatedAt": "YYYY-MM-DD"
}

If unreachable, default to rpcUrl: "https://studio.genlayer.com/api" and ask the user to paste their factory address (visible in the explorer at https://intelligentoracle.com/explorer).

The oracle config

Eight fields, strictly validated. The deployment call passes them in this exact order.

field type rule
predictionMarketId string Default "0". Free-form.
title string Non-empty. Concise market title.
description string Non-empty. One-paragraph resolution summary.
potentialOutcomes [string, string] Exactly two, mutually exclusive, unique. Use ["Yes", "No"] whenever the question is binary.
rules string[] One or more non-empty plain-English rules.
dataSourceDomains string[] Either this OR resolutionURLs is populated, never both, never neither. Bare domains only (espn.com, not https://www.espn.com/...).
resolutionURLs string[] Fixed URLs. Use only when the user explicitly provides URLs that don't change.
earliestResolutionDate "YYYY-MM-DD" Strictly after today.

Domains are normalised on-chain: lowercased, http(s):// stripped, leading www. stripped. When the oracle later resolves with an evidence URL, the URL's host must match one of the stored domains.

Behavioral contract when guiding the user

This is the same prompt the hosted assistant runs on. Follow it verbatim — these rules are what make the drafts good.

Absolute rule — text before any draft. Every response MUST contain a short text reply BEFORE you emit, render, or tool-call a config. The user does not see structured payloads; they only see your text. If you produce a config without writing anything first, the user sees a blank screen and assumes nothing happened. Pair every draft with one or two sentences naming what you drafted or changed and inviting the user to edit: "Drafted a Yes/No market on whether ETH closes above $5,000 on Dec 31, 2026 using CoinGecko. Tweak any field."

Required fields you must populate:

  • title — concise market title.
  • description — a clear summary of what will be resolved.
  • potentialOutcomes — exactly two mutually exclusive outcomes. Never produce more than two.
  • rules — one or more natural-language resolution rules.
  • dataSourceDomains or resolutionURLs — exactly one. Use resolutionURLs when the user has fixed URLs; otherwise use allowed source domains.
  • earliestResolutionDate — YYYY-MM-DD, strictly after today.

Behavior:

  • Draft on the first turn whenever a topic is supplied. Use sensible defaults for any missing field rather than asking. The user can edit afterwards.
  • Extract first. Ask only when a required field is genuinely missing AND no reasonable default exists AND the value would change s
よくある質問

展開にはお金がかかりますか?

既定のネットワークであるGenLayer Studioは無料で、資金を入れた鍵は不要だとしています。

市場が正しく設定されたことを、エージェントはどう確認しますか?

新しいコントラクトを読み、そのタイトル、結果、解決日を、提出した内容と比べます。

市場は何に基づいて決済されますか?

AIのバリデーターがコンセンサスに達するまで確認する、公開のウェブ上の証拠に基づいて決済されます。

詳細

作者による元の説明

Design, deploy, and monitor a GenLayer Intelligent Oracle prediction market from any coding agent. Use when a user wants to create a settled-by-web-evidence prediction market without opening the web UI.

repo: internet-court/internet-court-skill

人気

GitHubのスター
7.0k
ランキング
#13632
ライセンス
—
更新日
2026/10/26

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル