Use this skill when the user wants to find relevant prediction markets/events for:
Use this skill when the user asks:
This skill is best for:
Not a good fit when the user wants:
This skill calls the existing Prediction Bridge backend endpoint:
POST /api/v1/search/unifiedIt returns matched events (prediction market events) and optionally matched news.
API base (defaults to production):
PREDICTION_BRIDGE_API_URLDefaults:
https://prediction-bridge.onrender.com/api/v1http://localhost:8000/api/v11) Build the query text
text unchanged. The backend will resolve it.2) Call unified search
Use exec with curl:
API_URL="${PREDICTION_BRIDGE_API_URL:-https://prediction-bridge.onrender.com/api/v1}"
curl -sS -X POST "$API_URL/search/unified" \
-H "Content-Type: application/json" \
-H "X-Request-ID: pb-$(date +%s)" \
--data-binary @- <<'JSON'
{
"text": "<USER_TEXT_OR_X_URL>",
"limit": 10,
"offset": 0,
"include_inactive": false,
"include_markets": true,
"markets_per_event": 1,
"include_translations": false
}
JSON
Notes:
markets_per_event: 1 to keep payload small but still show the leading market.markets_per_event.POST /search/unified returns JSON with this shape (fields may be omitted or null depending on data availability):
{ "source": { "type": "x" , "url": "https://x.com/.../status/...", "text": "resolved tweet text (optional)", "id": "optional" }, "events": [ { "score": 0.82, "event": { "id": 123, "title": "...", "description": "...", "source": "polymarket", "source_url": "https://polymarket.com/event/...", "status": "active", "volume_usd": 12345.67, "liquidity_usd": 2345.0, "end_date": "2026-12-31T00:00:00Z", "markets": [ { "id": 999, "question": "...", "outcomes": ["Yes", "No"], "outcome_prices": {"Yes": 0.61, "No": 0.39}, "volume": 1000.0, "active": true, "closed": false } ] } } ], "news": [ { "score": 0.74, "news": { "id": 456, "title": "...", "summary": "...", "url": "https://...", "image_url": "https://...", "source": "...", "published_at": "2026-02-01T12:34:56Z" } } ] }小蔥技能站7w4.net發現了升級外掛。
Key points:
events[] is the primary output. Each item has { score, event }.score is a relevance score; higher is better.event.markets is present when you requested include_markets: true.
markets_per_event, the backend may return only a preview subset.news[] is optional supporting context; do not let it crowd out event results.Important:
events as a clean, human-readable list.1) Validate payload shape
events is missing or not an array, treat it as empty.2) Rank and select
events by score descending (even if the backend already sorted).3) Extract a “market snapshot” per event (best-effort)
event.source_url as the click-through link.event.source_url is missing, fall back to the frontend detail page:
https://www.predictionbridge.xyz/event/<event.id>event.markets[0].outcome_prices exists:
outcome_prices.Yes or outcome_prices.Long4) Present concise output
event.source)event.source_url preferred)5) Optional: include related news
news exists, include at most 1–3 items with title + URL as extra context.6) Empty results
events is empty:
After you receive JSON:
events is empty, say no matches were found and ask for a more specific query.event.source_url when present)event.markets, if present)If news is present, optionally show 1–3 related news items as context.
PREDICTION_BRIDGE_API_URL and whether the API is reachable.這個 Skill 的文件質量較好,格式規範、內容完整,包含了使用場景說明、配置方法和使用指導,開發者文件閱讀體驗不錯。優點是場景定義清晰、錯誤處理完善、結果展示有明確指引。不足之處是僅有技術文件,缺少面向終端使用者的快速入門指南;另外沒有提供實際使用示例,初次接觸可能需要一定時間理解其工作方式。總體而言,這是一個功能定位明確、文件結構良好的搜尋類 Skill。