
from lastxdays-skill20
Research a topic across Reddit, X, and the web for a configurable number of recent days and synthesize findings with engagement metrics and ready-to-use prompts
lastXdays performs focused research across Reddit, X (Twitter), and the wider web for a user-specified recent time window (1–365 days). It collects posts and links, measures engagement metrics, synthesizes findings, and emits prompts and summaries tailored to downstream tools.
Use lastXdays when you need a rapid pulse on recent discussions or trends (e.g., last 3 days of breaking news, last 7 days of tool chatter, or last 30 days for market signals). It's useful for content ideation, competitive monitoring, trend spotting, and prompt generation.
scripts/lastXdays.py) in examples; repo snapshot had has_scripts=false but the README shows concrete execution patterns.lastXdays <days> "topic"), option flags (--quick, --deep, --emit=MODE, --sources=MODE) and expected outputs (compact/json/md/context/path). It explains defaults, limits, and how results are synthesized with engagement metrics.Built for Claude Code / agent frameworks that can run web searches and external scripts, and for agents configured with WebSearch/Bash/Read/Write tool access.
lastXdays is a configurable time-window research skill that searches Reddit (via OpenAI) and X (via xAI) in parallel, then normalizes, scores, deduplicates and renders results. The code is well-structured with proper error handling, parallel execution, and retry logic. However, the script depends on a local `lib/` package (14 modules) that is not bundled with the skill, making it completely non-functional without cloning the full repo. No security concerns — all API calls go to legitimate endpoints (OpenAI, xAI) with keys read from environment variables.
lib (custom local module — not bundled with skill, includes dates, dedupe, env, http, models, normalize, openai_reddit, reddit_enrich, render, schema, score, ui, websearch, xai_x)Clean from a security standpoint. The main issue is operational: the skill as shipped in the DB is missing the entire lib/ directory, so the script crashes immediately on import. The SKILL.md frontmatter is minimal (missing version/author). The 'context: fork' and 'agent: Explore' directives suggest it was designed for Claude Code's skill system, not a generic agent skill. Could be genuinely useful for social listening / trend research if the dependency issue were resolved.