intelligent-oracle
Skill này làm gì
Skill này cho phép agent xây dựng một thị trường dự đoán có hoặc không trên GenLayer, nơi các validator AI quyết toán kết quả dựa trên bằng chứng web công khai. Nó bao gồm viết cài đặt thị trường, triển khai qua một contract nhà máy công khai và kiểm tra trạng thái thị trường.
Khi nào nên dùng
- ✓Khi bạn muốn tạo một thị trường dự đoán có hoặc không, được quyết toán từ các nguồn web công khai.
- ✓Khi bạn muốn agent triển khai một thị trường mà không cần mở ứng dụng web.
- ✓Khi bạn cần kiểm tra xem một thị trường đã được giải quyết hay gặp lỗi.
Liên kết skill
https://github.com/internet-court/internet-court-skill/blob/main/vendored/intelligent-oracle/intelligent-oracle/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tôi muốn một thị trường dự đoán có hoặc không, được quyết toán theo kết quả trên một website công khai.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent chuyển ý tưởng của bạn thành hai kết quả và một hoặc nhiều quy tắc giải quyết, rồi kiểm tra cài đặt theo định dạng nghiêm ngặt. Nó triển khai thị trường qua một contract nhà máy công khai, đọc contract mới để xác nhận chi tiết khớp với những gì đã gửi, và theo dõi trạng thái cho đến khi được giải quyết hoặc gặp lỗi. Mặc định nó dùng GenLayer Studio.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
- 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).
- Validate — confirm the config matches the strict schema below.
- Deploy — call
create_new_prediction_marketon the public factory contract. This is the parent transaction. - 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.
- Verify — read
get_dict()on the new oracle address immediately. Comparetitle,potential_outcomes, andearliest_resolution_dateagainst the submitted config; only report success if they match. - 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.dataSourceDomainsorresolutionURLs— exactly one. UseresolutionURLswhen 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
Câu hỏi thường gặp
Triển khai có tốn tiền không?
Skill nói mạng mặc định, GenLayer Studio, dùng miễn phí và không cần khóa được nạp tiền.
Làm sao agent xác nhận thị trường được thiết lập đúng?
Nó đọc contract mới và so sánh tiêu đề, các kết quả và ngày giải quyết với những gì đã gửi.
Thị trường quyết toán dựa trên cái gì?
Nó quyết toán dựa trên bằng chứng web công khai mà các validator AI kiểm tra cho đến khi đạt đồng thuận.
Chi tiết
Mô tả gốc của tác giả
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.
Độ phổ biến
- Sao GitHub
- 7.0k
- Vị trí xếp hạng
- #13632
- Giấy phép
- —
- Cập nhật
- 26/10/2026
Bình luận
- …
Thêm skill từ kho mã này
internet-court
7.0kGiúp agent của bạn thanh toán, thuê hoặc giao dịch an toàn với một agent AI khác hoặc dịch vụ trả phí, và chỉ đến hướng dẫn chuyên sâu phù hợp.
genlayer-erc7710-connector
7.0kGiúp agent của bạn kết nối kết quả đánh giá AI với hệ thống quyền hạn, để một đánh giá xấu có thể hạn chế hoặc hủy quyền của agent.
genlayer-intelligent-contracts
7.0kGiúp agent của bạn xác định quy tắc, bằng chứng và đầu ra của một AI judge kiểm tra xem agent khác có làm đúng nhiệm vụ được ủy quyền hay không.
x402-erc7710
7.0kGiúp agent của bạn trả tiền cho dịch vụ web theo từng yêu cầu, và thiết lập chi tiêu định kỳ nằm trong ngân sách quyền hạn.
Skill tương tự
api-connector-builder
280kGiúp agent của bạn xây dựng kết nối API mới theo đúng mẫu đã có, dùng khi bạn cần thêm một tích hợp mà không tạo cách làm mới.
api-design
280kGiúp agent của bạn thiết kế REST API theo các thực hành tốt nhất, hữu ích để định nghĩa cách API giao tiếp, hiển thị lỗi và tổ chức dữ liệu.
backend-patterns
280kGiúp agent của bạn với các mẫu kiến trúc phía máy chủ và tối ưu cơ sở dữ liệu, hữu ích khi xây dựng hoặc rà soát code chạy trên máy chủ.