worldmonitor
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "worldmonitor" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-40f0ef454fba34ee447caef9fa9ac7dce6b06939930f19860ceca4dfcea9cd06. Verify the upstream source and version against https://github.com/TerminalSkills/skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Build real-time intelligence dashboards that use AI to aggregate news, geopolitical events, and infrastructure data. Suitable for developing news aggregation systems, global event monitoring, and situational awareness dashboards.
Introduction source: third_party · TerminalSkills · 1.0.0 Reference
SkillPi interpretation
- Testing
- Not tested
Browse files
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 dashboardCurrent listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供完整的实时情报仪表板构建方案,涵盖新闻聚合、地缘政治事件监控和基础设施数据整合
- 适用于多种实际场景:行业新闻监控、竞争对手跟踪、市场变化监测等
- 具备端到端的实现示例,从数据获取到AI分析再到实时推送的完整流程
Highlights
- 触发词精准覆盖多种变体:news aggregation systems, monitoring global events, situational awareness dashboards
- 边界清晰,明确区分了不同使用场景和适用领域
- 提供了具体的使用案例和场景说明,便于用户理解何时使用
Highlights
- 结构清晰,包含Overview、Instructions、Examples、Guidelines等完整章节
- 提供了完整的端到端示例,包括Python和Node.js的实现代码
- frontmatter完整,包含name、description、license、compatibility等必要信息
Highlights
- 工具来源明确,使用了标准的Python和Node.js库
- 代码示例完整,包含错误处理(return_exceptions=True)
- 提供了依赖安装说明和运行指南
- 实现了WebSocket实时推送机制,确保数据及时更新
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 239, 240 -
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 65, 69
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- feeds.arstechnica.com
- hooks.slack.com
- localhost
- newsapi.org
- techcrunch.com
- www.theverge.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.