How mvanhorn/last30days-skill works
last30days is an agent-led, multi-source research engine: a topic is planned into searches, source adapters gather recent evidence in parallel, and results are consolidated into a people-engagement-ranked brief. It is exposed as a Python CLI and through an MCP server that embeds and invokes the Python engine. The README documents a broad source catalog; source-family wiring and some later report stages are represented at subsystem level because their implementations were not sampled.
Main entry points: pipeline.py Search orchestration · preflight.go Preflight tool · last30days.py Research CLI · main.go MCP server
Components 19
User interfaces
- Research CLI
skills/last30days/scripts/last30days.py - MCP server
mcp/cmd/last30days-pp-mcp/main.go - Research tool
mcp/internal/tools/research.go - Preflight tool
mcp/internal/tools/preflight.go - Embedded engine cache
mcp/internal/engine/extract.go - Python engine runner
mcp/internal/engine/run.go
Research orchestration
- Query planning
skills/last30days/scripts/lib/planner.py - Query shaping
skills/last30days/scripts/lib/query.py - Search orchestration
skills/last30days/scripts/lib/pipeline.py
Evidence sources
- Platform adapters
skills/last30days/scripts/lib - Keyless web search
skills/last30days/scripts/lib/web_search_keyless.py
Analysis and reports
- Rank and cluster
skills/last30days/scripts/lib/pipeline.py - Brief rendering
skills/last30days/scripts/lib/render.py - HTML brief
skills/last30days/scripts/lib/html_render.py
Preflight and state
- Research memory
skills/last30days/scripts/store.py - Safe preflight
skills/last30days/scripts/lib/preflight.py
Other components
- Researcher / agent
- MCP client
- Social, news, research platforms
Connections 23
- Researcher / agent → Research CLI: submits topic
- Research CLI → Search orchestration: runs research
- Search orchestration → Query planning: plans queries
- Search orchestration → Query shaping: shapes searches
- Search orchestration → Platform adapters: dispatches searches
- Platform adapters → Social, news, research platforms: fetches evidence
- Search orchestration → Keyless web search: requests web results
- Keyless web search → Social, news, research platforms: searches web
- Search orchestration → Rank and cluster: ranks and clusters
- Rank and cluster → Brief rendering: provides findings
- Brief rendering → Research CLI: returns brief
- Brief rendering → HTML brief: renders HTML
- Research CLI → Research memory: persists findings
- MCP client → MCP server: calls tools
- MCP server → Research tool: registers research
- MCP server → Preflight tool: registers preflight
- Research tool → Embedded engine cache: extracts engine
- Preflight tool → Embedded engine cache: extracts engine
- Research tool → Python engine runner: invokes engine
- Preflight tool → Python engine runner: invokes preflight
- Python engine runner → Search orchestration: runs Python CLI
- Preflight tool → Safe preflight: requests diagnostics
- Researcher / agent → MCP client: requests research