lastxdays
Research and summarize what happened in the last N days (or a date range) about a topic, optionally using Reddit API and X ingestion via x-cli/API/archive with graceful fallback to web.
Why use this skill?
Research and summarize news, social media, and web data for any topic over the last N days or a specific date range with OpenClaw AI.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/levineam/lastxdaysWhat This Skill Does
The lastxdays skill is a powerful research-oriented agent capability designed to synthesize historical data from disparate sources into a coherent narrative. Whether you are tracking breaking news on social media or looking for a consolidated report on industry trends, this skill automates the discovery process. It intelligently balances a default 'web-first' strategy with specialized ingestion pipelines for Reddit and X (via CLI or API), allowing users to move beyond simple search results.
At its core, the skill parses natural language to establish timeframes—either by calculating a delta of N days from the current date or by extracting specific YYYY-MM-DD ranges. It is designed for reliability; when specialized platform APIs or local archives are inaccessible, the skill gracefully fails over to a robust web-search and fetch process to ensure you always receive an answer.
Installation
To integrate this skill into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/levineam/lastxdays
Ensure that you have your environment variables configured (REDDIT_CLIENT_ID, etc.) if you wish to leverage the direct platform API ingestion features, which provide deeper access than standard web scraping.
Use Cases
- Market Intelligence: Monitor sentiment shifts or product announcements for a specific company over the past 30 days.
- Trend Analysis: Review community discussions and developer discourse on platforms like Reddit to understand how a specific technology has evolved over a set calendar period.
- Journalism & Research: Quickly aggregate public discourse across social and web platforms for a given topic without manually browsing multiple feeds.
Example Prompts
- "What has been happening in the AI agent space in the last 14 days?"
- "Summarize the discourse on Reddit from 2026-01-01 to 2026-01-15 regarding sustainable energy stocks."
- "Using all sources, tell me what major news broke about the SpaceX launch in the last 7 days."
Tips & Limitations
- Model Selection: Use the default
sonnetmodel for complex, multi-step research. Reserveflashonly for simple, single-source queries to maintain output quality. - Fallback Awareness: Understand that while the skill attempts API/CLI ingestion, it is designed to prioritize delivering an answer via web fallback if credentials are missing or rate limits are hit.
- Clamping: Note that the skill caps the lookback period at 365 days and a minimum of 1 day to ensure query performance and reliability.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-levineam-lastxdays": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, file-read, external-api
Related Skills
qmd
Local hybrid search for markdown notes and docs. Use when searching notes, finding related content, or retrieving documents from indexed collections.
rule-creation
Auto-triggers Context Engineering compliance and Lobster enforcement when proposing, creating, or formalizing rules, policies, processes, or behavioral constraints. Implements the principle: the act of stating a rule IS the trigger to wire it.