当前位置: 首页 > Skill >

predict-intelligence

predict-intelligence

predict-intelligence

AI智能体预测情报技能,生成包含概率排序预测、D3可视化及Polymarket共识的专业PDF报告...

1.0.1 2026.11.25 249
获取Skill文件查看使用说明
作 者:江言 许可证: 更新时间:2026.11.25
本文目录展开

Predict Intelligence Skill

You generate a professional PDF intelligence brief. The user should grasp the key finding in 30 seconds. You own information efficiency.

Agent Requirements

Capability What you need
Web search Search the internet for news, analysis, data
URL fetch Open a URL and read its content
File read/write Read template, write HTML report
Shell execute Run Python 3.9+ scripts

First-Time Setup

pip install playwright
playwright install chromium

No other Python packages needed (Jinja2, requests, etc. are NOT required).

How It Works

Read template → Do research → Write HTML → Convert to PDF
  1. Read SKILL_DIR/templates/report_template.html — your structural reference.
  2. Research and analyze the topic (Steps 1–8 below).
  3. Generate a NEW .html file following the template's exact structure.
  4. Convert to PDF:
    python SKILL_DIR/scripts/to_pdf.py report.html predict_report.pdf
    

The template IS the spec. It contains:

  • All CSS (copy verbatim — never modify)
  • All D3 visualization code (copy verbatim — only change data variables)
  • Example content showing exact formatting for every section
  • Extensive comments explaining what each section does and how to fill it

Step 0 — Domain Detection

Signal Domain
Countries, leaders, military, diplomacy, sanctions Geopolitical
Stocks, crypto, Fed, rates, commodities Financial
Tech releases, AI models, products Technology
M&A, acquisitions, IPO, corporate Corporate
Other Custom

Classification bar is always: ANYGEN PREDICT INTELLIGENCE ASSESSMENT with #YY-MM-DD on the right (2-digit year, e.g. #26-03-12).

The report structure and design are IDENTICAL across all domains. Only research sources and visualization choices change. See Domain Adaptation at the bottom.

Step 1 — Parse Query

Extract:

  • event: what is being predicted
  • actors: who is involved
  • regions / sectors: geographic or industry scope
  • timeframe: any dates or deadlines
  • question type: temporal ("when"), binary ("will"), or multi_outcome ("what")

Step 2 — Research

Search the web at least 8 times, covering:

  1. Breaking news (last 48 hours)
  2. Diplomatic / military / industry developments
  3. Decision-makers' public statements
  4. Historical precedent
  5. Expert / think-tank / analyst reports
  6. Regional or sector-specific media
  7. Economic / financial context
  8. Low-probability high-impact wildcards

CRITICAL: For every fact, save the exact article URL.

For geopolitical / diplomacy / military / sanctions topics, ALSO collect:

  • 3–5 key locations (cities, capitals, bases, meeting venues) with lat/lon
  • ISO alpha-2 country codes of all parties involved
  • Any diplomatic channels, proxy lines, or trade routes between locations This data is required for the V2 Regional Map in Step 7. Collect it now.
fact: "Oman hosted senior US-Iran talks on March 5"
url:  "https://reuters.com/world/middle-east/oman-hosts-rare-us-iran-talks-2026-03-06/"

Homepage URLs are forbidden. Every URL must point to a specific article.

Step 3 — Formulate Predictions

Create outcomes sorted by probability descending. All must sum to ~100%.

The verdict has five parts:

  • verdict_number: top probability as text (e.g. "34%") — displayed at 52px, the BIGGEST element
  • verdict_outcome: 3–6 word label
  • verdict_detail: 1 sentence — "Most likely path: ..."
  • verdict_bg (Context): 2–3 sentences of BACKGROUND BRIEFING — what led to the current situation, key prior events, the "前情提要" (previously on...)
  • verdict_context: 2–3 sentences of assessment reasoning with key evidence

Calibration:

Confidence Range
Near-certain 90–99%
Very likely 75–89%
Likely 60–74%
Toss-up 40–59%
Unlikely 25–39%
Very unlikely 10–24%
Remote 1–9%

Step 4 — Key Drivers (5 items, causal logic required)

Each driver MUST have:

  • Title: 3–5 words
  • Direction: positive (↑ increases likelihood) or negative (↓ decreases)
  • Causal logic: 1 sentence: fact → mechanism → directional impact
  • Source URL: exact article URL

❌ Bad: "Sanctions pressure — Iran inflation at 45%" ✅ Good: "Sanctions pressure ↑ — 45% inflation pushes Tehran toward concessions for relief"

The bad one states facts. The good one explains the causal chain.

Step 5 — Watch List (5 items, forward-looking only)

Each item is a FUTURE event or trigger that could shift the predict. No past events. No source URLs (these haven't happened yet).

Each item MUST have:

  • Date or window: specific date or range (e.g. "Apr 3", "Late March")
  • Trigger: 3–6 words describing what might happen
  • Conditional impact: 1 sentence — "If [X] → [how probability shifts]"

✅ Good: "Apr 3 — UNSC sanctions vote — If passed → ceasefire probability ↑10-15%" ✅ Good: "Late Mar — FOMC meeting — Dovish tone → ↑ rate cut odds; hawkish → ↓" ❌ Bad: "Mar 5 — Secret Muscat meeting happened" (PAST event — belongs in Key Drivers)

The distinction:

  • Key Drivers = WHY the current probability is what it is (past + present evidence, with source URLs)
  • Watch List = WHAT could change the probability next (future triggers, no sources needed)

Step 6 — Polymarket Data

Run:

python SKILL_DIR/scripts/fetch_polymarket.py --query "<keywords>" --limit 10

From results:

  1. Add your probability estimate for each option
  2. Calculate delta = your_estimate − market_probability
  3. Select 3 markets with highest absolute delta
  4. Sort by delta descending (most undervalued first)

If no script available, search "polymarket [topic]" on the web. If no markets exist, skip the Polymarket section entirely.

Step 7 — Visualization (REQUIRED)

⚠ MANDATORY MAP RULE — READ THIS FIRST

If the topic involves countries, regions, borders, military, diplomacy, or sanctions → you MUST include V2 (Regional Map). Non-negotiable.

Do NOT skip V2 because:

  • "I only want one chart" → V2 IS that one chart. Add a second if needed.
  • "It needs extra dependencies" → TopoJSON is already in the template <head>. Just keep the <script> tag. Do NOT remove it.
  • "I don't have good marker data" → You researched 8+ sources in Step 2. You have city names, country names, and actor locations. Use them. Minimum: 3 markers from your research + highlight the relevant countries.

Only these domains are exempt from V2: financial, technology, corporate, budget/aid (unless they have a geographic dimension).

Choosing visualizations

Pick 1 or 2 types total. Minimum 1, maximum 2.

Domain Required Optional 2nd
War / conflict V2 (map) V3 (entity)
Sanctions / trade V2 (map) V5 (comparison) or V8 (sankey)
Military balance V2 (map) V5 (comparison bars)
Diplomacy V2 (map) V9 (gantt phases)
Election V7 (choropleth) V1 (polling trend)
Economic / monetary V1 (trend) V10 (key rate) or V5 (comparison)
Budget / aid flow V8 (sankey) V5 (comparison)
Multi-phase process V9 (gantt) V4 (timeline)

V2 data — how to fill it

From your Step 2 research, extract:

  • markers[]: 3–5 locations mentioned in your sources (capitals, cities, military bases, meeting venues). Use real lat/lon coordinates.
  • connections[]: diplomatic channels, proxy influence lines, trade routes.
  • hlCodes[]: ISO alpha-2 codes of countries involved (e.g. ["IR","IQ","OM"]).

This data comes from your research. You already have it. Do not skip.

Available types

9 pre-built types (there is NO V6). DO NOT write custom D3/SVG.

Type ID When to use
Regional Map V2 Geographic theater with markers
Metric Trend V1 Data over time — polls, rates, escalation
Entity Graph V3 Actor networks — alliances, proxies
Event Timeline V4 Complex event sequences (sparingly)
Comparison Bars V5 Ranked values — spending, strength, polls
Choropleth V7 Election maps / regional statistics
Sankey V8 Flow diagrams — funding, resources, influence
Gantt V9 Phase / timeline bars for overlapping activities
Big Number V10 1–3 key metrics as large display (see rules below)

V10 Big Number — VERY RARE, strict rules:

  • Use ONLY when a specific number is truly critical to the analytical argument
  • The number must NOT already appear in the Verdict
  • Maximum 3 number cards
  • Must include delta/change indicator (↑ or ↓ with amount)
  • ✅ "US unemployment 4.1% (↑0.3pp)" when discussing Fed rate decisions
  • ✅ "$12B reserves (↓40% YoY)" when discussing Iran sanctions threshold
  • ❌ Generic statistics, redundant percentages, or decorative numbers

Placement and rules

Section order: Visualization comes AFTER Predict → Key Drivers → Watch List, and BEFORE Polymarket.

For each type you use:

  1. Keep its <section> in the HTML body (after Watch List section)
  2. Keep its matching <script> block at the bottom
  3. Only change the data variables at the top of the script (AGENT: markers)
  4. Delete ALL unused types — both HTML <section> AND <script>
  5. <h2> title MUST describe what the chart shows

Label limits (auto-truncated, keep short anyway):

Type Limits
V2 marker labels ≤20
V1 y-label ≤20, series ≤20, max 12 x-points, max 3 lines
V3 node ≤16, edge ≤14, max 8 nodes
V4 labels ≤45, max 8 items
V5 bar labels ≤18, max 8 bars
V7 category labels ≤20
V8 node names ≤18, max 12 nodes, max 15 links
V9 task labels ≤22, max 8 tasks
V10 max 3 cards

Step 8 — Fact Check

This report may inform six-figure financial decisions.

  • Every source URL is a real article page you actually visited
  • Every Polymarket URL is a real event page on polymarket.com
  • All stated facts match their sources
  • Probabilities sum to ~100%
  • Remove any claim without a verified source URL

Step 9 — Generate HTML

Open SKILL_DIR/templates/report_template.html and read it. Then generate a new HTML file following the same structure:

  1. Copy the entire <style> block verbatim — never modify CSS.
  2. Copy D3 <script> blocks for the 1–2 viz types you chose. Only replace the data variables at the top of each script (clearly marked with AGENT: Replace comments).
  3. CDN dependencies:
    • D3: always include (needed for V1–V9)
    • TopoJSON: only for V2 (map), V7 (choropleth)
    • d3-sankey: only for V8 (sankey)
    • V10 (Big Number) needs NO scripts — pure HTML/CSS
  4. Fill in the HTML content sections following the template's structure. Section order: [A] → [B] → [E] → [F] → [G] → Visualization → [H] → [I]
  5. Delete ALL unused viz types — both <section> and matching <script>.
    • No Polymarket → delete section [H]

Save as report.html in the working directory.

Step 10 — Convert to PDF

python SKILL_DIR/scripts/to_pdf.py report.html predict_report.pdf

Step 11 — Deliver

Tell the user the PDF is ready. State the verdict in one sentence: "Report generated. 34% chance of ceasefire before April 15 — most likely via Omani-mediated direct talks."

Template Quick Reference

The template contains example content for a "US-Iran Ceasefire" report. Here's the section-by-section mapping:

Order Section What to fill
1 Classification bar [A] ANYGEN PREDICT INTELLIGENCE ASSESSMENT + #YY-MM-DD
2 Header + verdict [B] Title, date, verdict number/outcome/detail/context-bg/context
3 Predict [E] Outcome divs with probability bars
4 Key Drivers [F] 5 driver items with ↑/↓, causal logic, source URL
5 Watch List [G] 5 future triggers with date/window, trigger title, conditional impact
6 Visualization REQUIRED — pick 1–2 of 9 types (V1–V5, V7–V10). See domain rules for mandatory types.
7 Polymarket [H] Optional: 3 market blocks with option tables
8 Footer [I] Source list + disclaimer

Domain Adaptation

Research Sources by Domain

Domain Primary sources
Geopolitical Reuters, AP, Al Jazeera, CSIS, IISS, Brookings, ICG
Financial Bloomberg, FT, WSJ, Fed minutes, bank research, on-chain analytics
Technology TechCrunch, The Verge, Ars Technica, company blogs, SEC filings
Corporate SEC filings, press releases, industry analysts, FT, Bloomberg

Visualization by Domain (pick 1–2, min 1 max 2)

⚠ V2 (Regional Map) is MANDATORY for Geopolitical, Diplomacy, Military, and Sanctions topics. Do not substitute Gantt, Timeline, or any other type in place of V2. V2 must always be included; add a second chart if needed.

Domain Required viz Optional 2nd Rule
Geopolitical V2 (map) V3 (entity) V2 MANDATORY — never omit
Diplomacy V2 (map) V9 (gantt — phases) V2 MANDATORY — never omit
Military V2 (map) V5 (comparison) V2 MANDATORY — never omit
Sanctions V2 (map) V5 or V8 (sankey) V2 MANDATORY — never omit
Financial V1 (trend) V10 (key metric) or V5
Technology V1 (trend) V3 (entity — ecosystem)
Corporate V3 (entity — M&A) V8 (sankey — deal flow)
Election V7 (choropleth) V1 (polling trend) V7 MANDATORY
Budget / aid V8 (sankey — flow) V5 (comparison)

What NEVER Changes

  1. White monochrome CIA-brief aesthetic with ANYGEN classification bars
  2. 52px verdict number — the biggest element on the page
  3. Verdict block: number → outcome → detail → context background → assessment
  4. Probability-ranked outcomes with bars
  5. Key drivers with ↑/↓ direction and causal logic
  6. Watch list with forward-looking triggers and conditional impacts
  7. Polymarket delta comparison with UNDERVALUED highlight (when markets exist)
  8. Every URL must be a real article, never a homepage
  9. 30-second scannability — no filler, no academic prose

Writing Rules

Element Rule
Verdict number 52px. THE biggest element.
Verdict outcome 3–6 words
Verdict context 2–3 sentences of reasoning
Driver title 3–5 words
Driver detail 1 sentence: fact → mechanism → direction
Watch trigger 3–6 words
Watch impact 1 sentence: "If [X] → [shift]"
URLs Real article URLs. Never homepages.
Polymarket 3 markets, delta-sorted, highlight undervalued
General If a word doesn't add information, cut it

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,036
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,020
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,019
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,016
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,014
Skill 文件
  • SKILL.md
    • Predict Intelligence Skill
    • Agent Requirements
    • First-Time Setup
    • How It Works
    • Step 0 — Domain Detection
    • Step 1 — Parse Query
    • Step 2 — Research
    • Step 3 — Formulate Predictions
    • Step 4 — Key Drivers (5 items, causal logic required)
    • Step 5 — Watch List (5 items, forward-looking only)
    • Step 6 — Polymarket Data
    • Step 7 — Visualization (REQUIRED)
      • ⚠ MANDATORY MAP RULE — READ THIS FIRST
      • Choosing visualizations
      • V2 data — how to fill it
      • Available types
      • Placement and rules
    • Step 8 — Fact Check
    • Step 9 — Generate HTML
    • Step 10 — Convert to PDF
    • Step 11 — Deliver
    • Template Quick Reference
    • Domain Adaptation
      • Research Sources by Domain
      • Visualization by Domain (pick 1–2, min 1 max 2)
      • What NEVER Changes
    • Writing Rules
  • 项目或源文件

相关 Skill

更多
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表
Vibration Analysis Vibration Analysis 分析来自CMS趋势、RMS/峰值、频谱及SCADA报警的风机传动链(主轴、齿轮箱、发电机)振动数据。
Traditional Bone Tool Making Basics Traditional Bone Tool Making Basics Use when you need custom, durable, repairable tools like awls, needles, scrapers, harpoons, or fishing hooks made from local animal bones or antlers and comm...
音频混音工具 音频混音工具 名称:Sound Mixing Tool(标识 sound-mixing-tool) 短简介(≤60字):音乐/音效响度精确对齐 + 融合混音工作流:用 ffmpeg 两段式 loudnorm 把多组素材 LUFS 偏差压到 <0.10,再最小干预融合、导出可进引擎的独立分轨。 标签/关键词:音频混音 响度匹配 LUFS ffmpeg 游戏音频 音效设计 Wwise FMOD 分轨导出 后期处理 触发词:混音 · 响度匹配 · LUFS 对齐 · MIX 版本 · 音乐音效分轨 · 融合 · 不打架 · 不能盖住 适用场景 :游戏音频集成、影视短视频配乐、播客后期