Last 30 Days – Claude Code Skill Setup Guide
Free & Open Source

Set Up Last 30 Days
in Claude Code

Research any topic in 30 seconds. Scans Reddit, X, and the entire web — then builds you a ready-to-use prompt packed with real-time insights.

View on GitHub →

What Does This Skill Do?

Last 30 Days is a Claude Code skill that researches any topic across the web, Reddit, and X (Twitter) in real time. It compiles everything into a structured prompt you can immediately use — pricing rumours, user sentiment, competitor moves, trending opinions — all in about 30 seconds.

Step 01

Clone the Repository

Open your terminal and clone the Last 30 Days skill into your Claude Code configuration directory.

Terminal
# Navigate to your Claude Code skills directory
cd ~/.claude/skills

# Clone the Last 30 Days skill
git clone https://github.com/mvanhorn/last30days-skill.git
If your ~/.claude/skills directory doesn't exist yet, create it first with mkdir -p ~/.claude/skills
Step 02

Configure Your API Keys

Create a config folder inside the cloned repo and add your API keys. These power the Reddit and X search capabilities.

Terminal
# Move into the skill directory
cd last30days-skill

# Create the config directory
mkdir config

# Create and edit the config file
nano config/keys.json
config/keys.json
{
  "openai_api_key": "sk-your-openai-key-here",
  "xai_api_key": "xai-your-xai-key-here"
}
Service Purpose Status
OpenAI API Powers Reddit search & analysis Recommended
xAI API Powers X (Twitter) search Recommended
Web Search Built-in web scanning Included by Default
Both API keys are optional — the skill works with just web search. But for full coverage across Reddit, X, and the web, I highly recommend adding both keys.
Step 03

Run Your First Research

That's it for setup. Now open Claude Code and use the slash command to research any topic.

Claude Code
# Basic syntax
/last30days [your topic]

# Examples
/last30days ChatGPT Ads
/last30days Claude Code vs Cursor
/last30days AI marketing automation trends
/last30days GoHighLevel new features
Example Output — "ChatGPT Ads"
Researching across web, Reddit, and X...
 
Pricing rumours: CPM-based model, $5-15 range
Ad formats: Sponsored responses, banner placements
Marketer sentiment: Mixed — high intent but low volume
User complaints: Intrusive placement, relevance issues
Competitor reactions: Google & Meta watching closely
 
✓ Ready-to-use prompt generated
After the initial research, you can follow up with additional prompts to dig deeper into any specific angle — Claude already has the full context loaded.

Setup via OpenClaw

If you're running OpenClaw, the setup is even simpler — just give it the GitHub link and it handles the rest.

One-Command Setup

OpenClaw reads the repo, detects the skill structure, and installs everything automatically — config directory, dependencies, and command registration.

OpenClaw
# Just paste the GitHub URL into OpenClaw
https://github.com/mvanhorn/last30days-skill

# OpenClaw will automatically:
#   → Clone the repository
#   → Detect the skill structure
#   → Set up the config directory
#   → Register the /last30days command
#   → Prompt you for API keys
OpenClaw reads the repo structure and figures out the installation itself. You'll still be prompted to enter your OpenAI and xAI API keys during setup.
Quick Reference

Commands At a Glance

Cheat Sheet
# ── INSTALL ──────────────────────────────────
cd ~/.claude/skills
git clone https://github.com/mvanhorn/last30days-skill.git
cd last30days-skill && mkdir config

# ── CONFIGURE ────────────────────────────────
# Add keys to config/keys.json:
# {
#   "openai_api_key": "sk-...",
#   "xai_api_key": "xai-..."
# }

# ── USE ──────────────────────────────────────
/last30days your topic here

# ── OPENCLAW ─────────────────────────────────
# Paste: https://github.com/mvanhorn/last30days-skill