worldmonitor
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "worldmonitor":https://skillpi.com/zh/skills/deepskill-40f0ef454fba34ee447caef9fa9ac7dce6b06939930f19860ceca4dfcea9cd06。安装前核对上游来源和版本:https://github.com/TerminalSkills/skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
构建用于实时情报的仪表板,利用人工智能聚合新闻、地缘政治事件和基础设施数据。适用于新闻聚合系统、全球事件监控与态势感知仪表板的开发。
介绍来源: third_party · TerminalSkills · 1.0.0 参考来源
SkillPi 解读
- 实测状态
- 未测试
文件浏览
Frontmatter
name: worldmonitor
description: >-
Build real-time intelligence dashboards that aggregate news, geopolitical events, and
infrastructure data using AI. Use when: building news aggregation systems, monitoring
global events, creating situational awareness dashboards.
license: Apache-2.0
compatibility: "Node.js 18+ or Python 3.10+"
metadata:
author: terminal-skills
version: "1.0.0"
category: data-ai
tags: [intelligence, news-aggregation, geopolitical, monitoring, dashboard]
use-cases:
- "Build a real-time news monitoring dashboard for a specific industry"
- "Create an AI-powered intelligence feed that summarizes global events"
- "Monitor competitor news and market changes in real-time"
agents: [claude-code, openai-codex, gemini-cli, cursor]World Monitor
Overview
Build real-time intelligence dashboards that ingest data from multiple sources (RSS, news APIs, social media), use AI to categorize, summarize, deduplicate, and score severity, then push updates to a live dashboard. Think of it as your own AI-powered situation room.
Instructions
When a user asks to build a news monitoring system, intelligence dashboard, or event aggregation feed:
- Define scope — What topics/regions/industries to monitor?
- Select sources — RSS feeds, NewsAPI, social APIs, custom scrapers
- Set up pipeline — Ingest → Deduplicate → Classify → Summarize → Score
- Build output — API + WebSocket for real-time push, alert rules
Source Ingestion (Python)
"""Fetch from multiple source types in parallel."""
import asyncio, hashlib, feedparser, httpx
from datetime import datetime, timezone
class NewsItem:
def __init__(self, title: str, content: str, source: str, url: str, published: datetime):
self.title, self.content, self.source, self.url = title, content, source, url
self.published = published
self.id = hashlib.sha256(f"{title}{url}".encode()).hexdigest()[:16]
async def fetch_rss(feeds: list[str]) -> list[NewsItem]:
items = []
async with httpx.AsyncClient(timeout=15) as client:
responses = await asyncio.gather(*[client.get(url) for url in feeds], return_exceptions=True)
for resp in responses:
if isinstance(resp, Exception):
continue
feed = feedparser.parse(resp.text)
for entry in feed.entries[:20]:
items.append(NewsItem(
title=entry.get("title", ""), content=entry.get("summary", ""),
source=feed.feed.get("title", "RSS"), url=entry.get("link", ""),
published=datetime.now(timezone.utc),
))
return items
async def fetch_newsapi(query: str, api_key: str) -> list[NewsItem]:
async with httpx.AsyncClient() as client:
resp = await client.get("https://newsapi.org/v2/everything",
params={"q": query, "sortBy": "publishedAt", "pageSize": 50},
headers={"X-Api-Key": api_key})
data = resp.json()
return [
NewsItem(title=a["title"], content=a.get("description", ""),
source=a["source"]["name"], url=a["url"],
published=datetime.fromisoformat(a["publishedAt"].replace("Z", "+00:00")))
for a in data.get("articles", [])
]
Deduplication
from difflib import SequenceMatcher
def deduplicate(items: list[NewsItem], threshold: float = 0.75) -> list[NewsItem]:
unique, seen_titles = [], []
for item in sorted(items, key=lambda x: x.published, reverse=True):
is_dup = any(SequenceMatcher(None, item.title.lower(), s.lower()).ratio() > threshold for s in seen_titles)
if not is_dup:
unique.append(item)
seen_titles.append(item.title)
return unique
AI Classification & Summarization
import json
from openai import OpenAI
client = OpenAI()
CATEGORIES = ["geopolitics", "technology", "finance", "security", "climate", "health", "regulation", "market-move"]
def analyze_article(item: NewsItem) -> dict:
response = client.chat.completions.create(
model="gpt-4o-mini", response_format={"type": "json_object"},
messages=[
{"role": "system", "content": f"Analyze this news. Return JSON: {{category: one of {CATEGORIES}, severity: 1-10, summary: '2-3 sentences', entities: [], sentiment: 'positive|negative|neutral', actionable: bool}}"},
{"role": "user", "content": f"Title: {item.title}\n\nContent: {item.content[:2000]}"},
],
)
analysis = json.loads(response.choices[0].message.content)
return {**analysis, "id": item.id, "title": item.title, "url": item.url, "source": item.source}
Dashboard API (Node.js)
import express from "express";
import { WebSocketServer, WebSocket } from "ws";
import { createServer } from "http";
interface IntelItem {
id: string; title: string; summary: string; category: string;
severity: number; source: string; url: string; timestamp: string;
}
const app = express();
const server = createServer(app);
const wss = new WebSocketServer({ server });
let feed: IntelItem[] = [];
const clients = new Set<WebSocket>();
wss.on("connection", (ws) => {
clients.add(ws);
ws.send(JSON.stringify({ type: "init", items: feed.slice(0, 50) }));
ws.on("close", () => clients.delete(ws));
});
function broadcast(item: IntelItem) {
const msg = JSON.stringify({ type: "new", item });
clients.forEach((ws) => { if (ws.readyState === WebSocket.OPEN) ws.send(msg); });
}
app.post("/api/ingest", express.json(), (req, res) => {
const item: IntelItem = { ...req.body, timestamp: new Date().toISOString() };
feed.unshift(item);
feed = feed.slice(0, 1000);
broadcast(item);
res.json({ ok: true });
});
app.get("/api/feed", (req, res) => {
let items = feed;
const { category, minSeverity, limit } = req.query;
if (category) items = items.filter((i) => i.category === category);
if (minSeverity) items = items.filter((i) => i.severity >= Number(minSeverity));
res.json(items.slice(0, Number(limit) || 50));
});
server.listen(3000, () => console.log("Intelligence dashboard on :3000"));
Alert Rules
import httpx
ALERT_RULES = [
{"category": "security", "min_severity": 7, "channel": "slack"},
{"category": "market-move", "min_severity": 8, "channel": "email"},
{"category": "*", "min_severity": 9, "channel": "all"},
]
async def check_alerts(item: dict):
for rule in ALERT_RULES:
cat_match = rule["category"] == "*" or rule["category"] == item["category"]
if cat_match and item["severity"] >= rule["min_severity"]:
await send_alert(rule["channel"], item)
async def send_alert(channel: str, item: dict):
msg = f"[{item['category'].upper()}] Severity {item['severity']}/10\n{item['title']}\n{item['summary']}"
if channel in ("slack", "all"):
await httpx.AsyncClient().post("https://hooks.slack.com/services/YOUR/WEBHOOK", json={"text": msg})
Examples
Example 1: Tech Industry News Monitor
RSS_FEEDS = [
"https://feeds.arstechnica.com/arstechnica/index",
"https://techcrunch.com/feed/",
"https://www.theverge.com/rss/index.xml",
]
async def run_tech_monitor():
items = await fetch_rss(RSS_FEEDS)
unique = deduplicate(items)
for item in unique[:20]:
analysis = analyze_article(item)
async with httpx.AsyncClient() as c:
await c.post("http://localhost:3000/api/ingest", json=analysis)
await check_alerts(analysis)
# Output: {"category": "technology", "severity": 4, "summary": "Apple announced..."}
Example 2: Geopolitical Event Monitoring with Scheduled Polling
async def monitor_loop(interval_minutes: int = 15):
"""Run the full pipeline on a schedule."""
while True:
items = await fetch_rss(RSS_FEEDS)
newsapi_items = await fetch_newsapi("geopolitics OR sanctions", NEWSAPI_KEY)
all_items = items + newsapi_items
unique = deduplicate(all_items)
for item in unique:
analysis = analyze_article(item)
async with httpx.AsyncClient() as c:
await c.post("http://localhost:3000/api/ingest", json=analysis)
await check_alerts(analysis)
await asyncio.sleep(interval_minutes * 60)
# Runs every 15 min, deduplicates across sources, alerts on severity >= 7
Guidelines
- Dedup aggressively — The same story appears across 20+ outlets. Dedup by title similarity
- Batch AI calls — Process 10 articles per LLM call instead of 1 to save ~90% on API costs
- Severity calibration — Periodically review severity scores. LLMs tend to over-rate severity
- Source diversity — Mix mainstream, niche, and social sources for balanced coverage
- Rate limit respect — Cache RSS feeds for 15-30 min. Don't hammer free APIs
- Historical storage — Keep analyzed articles in a DB for trend analysis over time
Dependencies
pip install feedparser httpx openai # Python pipeline
npm install express ws # Node.js dashboard当前收录版本
1.0.0
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供完整的实时情报仪表板构建方案,涵盖新闻聚合、地缘政治事件监控和基础设施数据整合
- 适用于多种实际场景:行业新闻监控、竞争对手跟踪、市场变化监测等
- 具备端到端的实现示例,从数据获取到AI分析再到实时推送的完整流程
亮点
- 触发词精准覆盖多种变体:news aggregation systems, monitoring global events, situational awareness dashboards
- 边界清晰,明确区分了不同使用场景和适用领域
- 提供了具体的使用案例和场景说明,便于用户理解何时使用
亮点
- 结构清晰,包含Overview、Instructions、Examples、Guidelines等完整章节
- 提供了完整的端到端示例,包括Python和Node.js的实现代码
- frontmatter完整,包含name、description、license、compatibility等必要信息
亮点
- 工具来源明确,使用了标准的Python和Node.js库
- 代码示例完整,包含错误处理(return_exceptions=True)
- 提供了依赖安装说明和运行指南
- 实现了WebSocket实时推送机制,确保数据及时更新
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
安装或获取外部依赖
使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。
主文档提及 · 第 239, 240 行 -
账号、密钥或授权
使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。
主文档提及 · 第 65, 69 行
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- feeds.arstechnica.com
- hooks.slack.com
- localhost
- newsapi.org
- techcrunch.com
- www.theverge.com
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。