intelligent-oracle
ما الذي تفعله
تتيح هذه المهارة للوكيل بناء سوق توقعات بنتيجة نعم أو لا على GenLayer، يسوّي فيه المُدقِّقون بالذكاء الاصطناعي النتيجة اعتمادًا على أدلة من الويب العام. تغطي كتابة إعدادات السوق ونشره عبر عقد مصنع عام، والتحقق من حالته.
متى تستخدمها
- ✓عندما تريد إنشاء سوق توقعات بنتيجة نعم أو لا يُسوّى من مصادر ويب عامة.
- ✓عندما تريد أن ينشر الوكيل السوق دون فتح تطبيق الويب.
- ✓عندما تحتاج إلى معرفة ما إذا كان السوق قد حُسم أو فشل.
رابط المهارة
https://github.com/internet-court/internet-court-skill/blob/main/vendored/intelligent-oracle/intelligent-oracle/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“أريد سوق توقعات بنتيجة نعم أو لا يُسوّى حسب نتيجة موقع إلكتروني عام.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يحوّل الوكيل فكرتك إلى نتيجتين وقاعدة أو أكثر للتسوية، ثم يتحقق من الإعدادات وفق صيغة صارمة. ينشر السوق عبر عقد مصنع عام، ويقرأ العقد الجديد ليتأكد أن التفاصيل مطابقة لما أرسله، ويراقب حالته حتى يُحسم أو يظهر خطأ. والشبكة الافتراضية هي 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
- 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
الأسئلة الشائعة
هل يكلّف النشر مالًا؟
تقول المهارة إن الشبكة الافتراضية، GenLayer Studio، مجانية ولا تحتاج إلى مفاتيح مموّلة.
كيف يتأكد الوكيل من أن السوق أُعدّ بشكل صحيح؟
يقرأ العقد الجديد ويقارن العنوان والنتائج وتاريخ الحسم مع ما أرسله.
على ماذا يُسوّى السوق؟
يُسوّى على أدلة عامة من الويب يتحقق منها المُدقِّقون بالذكاء الاصطناعي حتى يصلوا إلى إجماع.
التفاصيل
الوصف الأصلي من المؤلف
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.
الشعبية
- نجوم GitHub
- 7.0k
- الترتيب
- #13632
- الترخيص
- —
- آخر تحديث
- 26/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
internet-court
7.0kيساعد وكيلك على الدفع لوكيل ذكاء اصطناعي آخر أو لخدمة مدفوعة، أو التعامل معهما بأمان، ويوجهه إلى الدليل المتخصص المناسب.
genlayer-erc7710-connector
7.0kيساعد وكيلك على ربط نتيجة مراجعة الذكاء الاصطناعي بنظام الصلاحيات، بحيث يمكن لمراجعة سيئة أن تقيّد صلاحيات الوكيل أو تلغيها.
genlayer-intelligent-contracts
7.0kيساعد وكيلك على تحديد قواعد وأدلة ومخرجات قاضٍ بالذكاء الاصطناعي يتحقق مما إذا كان وكيل آخر التزم بتفويضه.
x402-erc7710
7.0kيساعد وكيلك على الدفع مقابل خدمات الويب طلبًا تلو الآخر، وعلى إعداد إنفاق مستمر يبقى ضمن ميزانية الصلاحيات.
مهارات مشابهة
api-connector-builder
280kيبني وكيلك اتصالات API جديدة على النمط الموجود، ويفيد عندما تحتاج إلى تكامل إضافي دون ابتكار طريقة جديدة للعمل.
api-design
280kيساعد وكيلك على تصميم واجهات REST API وفق أفضل الممارسات، ويوضح كيف تتواصل وكيف تُعرض الأخطاء وكيف تُنظَّم البيانات.
backend-patterns
280kيساعد وكيلك على أنماط بنية الخادم وتحسين قاعدة البيانات، ويفيد في بناء الشيفرة التي تعمل على الخادم أو مراجعتها.