lastXdays

Researches any given topic across Reddit, X (Twitter), and the broader web within a custom, configurable time window, synthesizing findings and generating expert-level prompts.

17 stars
Complexity: medium

About this skill

The `lastXdays` skill is designed for rapid, time-sensitive research. It allows users to specify a topic and a number of days (from 1 to 365) to look back, gathering information from popular social platforms like Reddit and X, alongside general web searches. This capability is crucial for staying updated on trends, current events, or recent developments in any field. Upon execution, the skill parses the input for the desired number of days and topic, then orchestrates targeted searches across the specified sources. It then synthesizes the gathered information, including engagement metrics where available, to provide a concise overview. Finally, it generates highly relevant, copy-pasteable prompts tailored to the user's target AI tool, making it easy to leverage the research for further content creation or analysis. Users can customize the research intensity with `--quick` for faster, fewer sources or `--deep` for comprehensive analysis. Output formats can also be adjusted, and specific sources (Reddit, X, or both) can be prioritized, offering flexibility for various research needs.

Best use case

This skill is primarily used for market research, trend analysis, competitive intelligence, and staying abreast of recent news or developments. Marketing professionals, content creators, researchers, and strategists benefit most by quickly identifying emerging discussions, popular sentiment, and key insights within a specific timeframe without sifting through vast amounts of irrelevant data.

Researches any given topic across Reddit, X (Twitter), and the broader web within a custom, configurable time window, synthesizing findings and generating expert-level prompts.

Users should expect a synthesized report featuring engagement metrics, key insights from Reddit, X, and the web, and ready-to-use prompts based on the research, all focused on the specified recent time period.

Practical example

Example input

lastXdays 7 "AI in healthcare"

Example output

Synthesized findings on 'AI in healthcare' from the last 7 days across Reddit, X, and the web:

**Key Trends & Engagement:**
*   Discussion on new diagnostic tools: High engagement on Reddit, moderate on X.
*   Ethical concerns in AI-driven patient care: Surging mentions on X, some debate on specific subreddits.

**Top Prompts:**
*   `Describe the latest breakthroughs in AI for early disease detection, citing examples from the past week.`
*   `Draft a social media post for X discussing the ethical implications of AI in healthcare, focusing on recent debates.`

When to use this skill

  • To quickly understand recent trends or public sentiment on a specific topic.
  • For competitive analysis, to see what competitors or related products are being discussed recently.
  • When brainstorming content ideas or prompts based on current discussions and engagement.
  • To catch up on breaking news or significant developments from the past few days or weeks.

When not to use this skill

  • For historical research that requires data older than 365 days.
  • When conducting deep academic research requiring peer-reviewed articles or highly specific databases.
  • To analyze internal company data or proprietary information.
  • When only local news or events from a very specific geographic area are needed.

How lastXdays Compares

Feature / AgentlastXdaysStandard Approach
Platform SupportClaudeLimited / Varies
Context Awareness High Baseline
Installation ComplexitymediumN/A

Frequently Asked Questions

What does this skill do?

Researches any given topic across Reddit, X (Twitter), and the broader web within a custom, configurable time window, synthesizing findings and generating expert-level prompts.

Which AI agents support this skill?

This skill is designed for Claude.

How difficult is it to install?

The installation complexity is rated as medium. You can find the installation instructions above.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# lastXdays: Research Any Topic from a Custom Time Range

Research ANY topic across Reddit, X, and the web with a **configurable time window**. Specify how many days back to search.

## Usage

```
lastXdays 7 "AI tools"           # Last 7 days
lastXdays 14 "Claude Code"       # Last 2 weeks
lastXdays 3 "breaking news"      # Last 3 days
lastXdays "best prompts"         # Defaults to 30 days
```

## Time Range

- **Minimum:** 1 day
- **Maximum:** 365 days
- **Default:** 30 days (if no number specified)

## How It Works

1. Parse the first argument as number of days (or use default 30)
2. Research Reddit, X, and web for content from that time window
3. Synthesize findings with engagement metrics
4. Deliver expert-level prompts based on research

## Research Execution

Run the research script:
```bash
python3 ~/.claude/skills/lastXdays/scripts/lastXdays.py <days> "$TOPIC" --emit=compact 2>&1
```

Examples:
```bash
python3 ~/.claude/skills/lastXdays/scripts/lastXdays.py 7 "AI tools" --emit=compact
python3 ~/.claude/skills/lastXdays/scripts/lastXdays.py 14 "best practices" --quick
python3 ~/.claude/skills/lastXdays/scripts/lastXdays.py 3 "breaking news" --deep
```

## Options

- `--quick` — Faster, fewer sources (8-12 each)
- `--deep` — Comprehensive (50-70 Reddit, 40-60 X)
- `--emit=MODE` — Output: compact|json|md|context|path
- `--sources=MODE` — Source: auto|reddit|x|both
- `--debug` — Verbose logging

## Output

Same format as last30days — engagement metrics, synthesis, and copy-paste prompts tailored to the user's target tool.

---

*Based on last30days skill with configurable time range parameter.*

Related Skills

dcf

425
from daloopa/investing

Discounted cash flow valuation with sensitivity analysis

Data & ResearchClaude

notebooklm-research

162
from claude-world/notebooklm-skill

Full-autopilot AI research agent powered by Google NotebookLM (notebooklm-py v0.3.4). Ingests sources (URL, text, PDF, DOCX, YouTube, Google Drive), runs deep web research, asks cited questions, and generates 10 native artifact types (audio podcast, video, cinematic video, slide deck, report, quiz, flashcards, mind map, infographic, data table, study guide). Produces original content drafts via Claude, with optional publishing to social platforms via threads-viral-agent integration. Use this skill when the user mentions: NotebookLM, research with sources, create notebook, generate podcast from articles, turn research into content, trending topic research, research pipeline, source-based analysis, cited research answers, generate slides, generate quiz, make flashcards, deep web research, create infographic, compare sources, research report, study guide, source analysis, or knowledge synthesis.

Data & ResearchClaude

Skill: History

154
from ai-analyst-lab/ai-analyst

## Purpose

Data & ResearchClaude

Skill: Explore Data

154
from ai-analyst-lab/ai-analyst

## Purpose

Data & ResearchClaude

RLM (Recursive Language Model) Skill

44
from richardwhiteii/rlm

The RLM (Recursive Language Model) Skill enables AI agents to process extremely large contexts (10M+ tokens) by recursively chunking, processing, and aggregating results, effectively overcoming context window limitations.

Data & ResearchClaude

q

36
from DavidROliverBA/ArchitectKB

Fast SQLite-based vault search using FTS5 full-text search index

Data & ResearchClaude

nblm

26
from magicseek/nblm

This skill allows AI agents, particularly Claude Code, to directly query and manage your Google NotebookLM notebooks, providing source-grounded and citation-backed answers from Gemini.

Data & ResearchClaude

tavily-search

3891
from openclaw/skills

Use Tavily API for real-time web search and content extraction. Use when: user needs real-time web search results, research, or current information from the web. Requires Tavily API key.

Data & Research

baidu-search

3891
from openclaw/skills

Search the web using Baidu AI Search Engine (BDSE). Use for live information, documentation, or research topics.

Data & Research

notebooklm

3891
from openclaw/skills

Google NotebookLM 非官方 Python API 的 OpenClaw Skill。支持内容生成(播客、视频、幻灯片、测验、思维导图等)、文档管理和研究自动化。当用户需要使用 NotebookLM 生成音频概述、视频、学习材料或管理知识库时触发。

Data & Research

openclaw-search

3891
from openclaw/skills

Intelligent search for agents. Multi-source retrieval with confidence scoring - web, academic, and Tavily in one unified API.

Data & Research

aisa-tavily

3891
from openclaw/skills

AI-optimized web search via AIsa's Tavily API proxy. Returns concise, relevant results for AI agents through AIsa's unified API gateway.

Data & Research