Skip to content
Back to skills

lastXdays

ASecurity

Research a topic from the last X days on Reddit + X + Web. Specify number of days as first argument.

  • 46 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 26, 2026
researchpythonbash

Works with

  • claude code

Security analysis

A100/100

Pro scans all 15 files and shows the line behind each finding

Scanned May 27, 2026

npx -y skills add levineam/lastXdays-skill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of lastXdays?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for lastXdays
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/levineam-lastxdays/badge)](https://www.skillsdirectory.com/skills/levineam-lastxdays)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: lastXdays
description: Research a topic from the last X days on Reddit + X + Web. Specify number of days as first argument.
argument-hint: "<days> [topic]" or "[topic]" (defaults to 30 days)
context: fork
agent: Explore
disable-model-invocation: true
allowed-tools: Bash, Read, Write, AskUserQuestion, WebSearch
---

# 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.*

Files in this skill

  • SKILL.md1.9 KB
  • SPEC.md3.1 KB
  • TASKS.md1.4 KB
  • fixtures/models_openai_sample.json745 B
  • fixtures/models_xai_sample.json385 B
  • fixtures/openai_sample.json2.2 KB
  • fixtures/reddit_thread_sample.json3.8 KB
  • fixtures/xai_sample.json2.5 KB
  • plans/feat-add-websearch-source.md14.2 KB
  • plans/fix-strict-date-filtering.md11 KB
  • scripts/lastXdays.py18.5 KB
  • tests/__init__.py19 B
  • tests/test_cache.py1.9 KB
  • tests/test_dates.py3.6 KB
  • tests/test_dedupe.py3.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.