/last30days Skill
Research any topic across Reddit, X, YouTube, TikTok, Hacker News, Polymarket, and the web. Surface what people are actually discussing in the last 30 days.
Quick Start
- Run engine:
python3 scripts/last30days.py "{TOPIC}" --emit=compact - Synthesize output following template below
- Include engine footer verbatim
Output Format
Badge (MANDATORY)
First line of every response:
🌐 last30days v{VERSION} · synced {YYYY-MM-DD}
General Query
🌐 last30days v{VERSION} · synced {YYYY-MM-DD}
What I learned:
**{Headline}** - [1-2 sentences per @handle or r/sub]
KEY PATTERNS from the research:
1. [Pattern] - per @handle
2. [Pattern] - per r/sub
✅ All agents reported back!
├─ 🟠 Reddit: ...
├─ 🔵 X: ...
└─ 📎 Raw results saved to ...
Comparison Query
🌐 last30days v{VERSION} · synced {YYYY-MM-DD}
# {TOPIC_A} vs {TOPIC_B}: What the Community Says (/Last30Days)
## Quick Verdict
[One paragraph]
## {Entity 1}
**Community Sentiment:** [Positive/Mixed/Negative]
**Strengths**
- [Strength per source]
**Weaknesses**
- [Complaint per source]
## {Entity 2}
[Same structure]
## Head-to-Head
| Dimension | {Entity 1} | {Entity 2} |
|---|---|---|
| What it is | ... | ... |
| Best for | ... | ... |
## The Bottom Line
**Choose {Entity 1} if** [use case]
**Choose {Entity 2} if** [use case]
✅ All agents reported back!
└─ 📎 Raw results saved to ...
Recommendations Query
🏆 Top recommendations (ranked by signal quality):
**[Pick 1]** - [Why it's top recommendation]
- Evidence: [Specific signal]
- Best for: [Use case]
- Voices: [Real sources]
Also mentioned: [Items with mentions, not picks]
✅ All agents reported back!
└─ 📎 Raw results saved to ...
Rules (Non-Negotiable)
- NO
Sources:block - Engine footer is the citation - NO em-dashes - Use
-instead - NO section headers - Use bold-lead-in paragraphs
- NO invented titles - Badge is the title
- Engine footer pass-through - Include verbatim
- Community voice - Weave 2+ verbatim comments
- You are the planner - Generate query plan via
--plan
Pre-Flight Checklist
Before running engine, resolve:
| Flag | When |
|------|------|
| --x-handle={handle} | Person/brand with X |
| --github-user={user} | Person who codes |
| --github-repo={repo} | Product/project |
| --subreddits={subs} | Always |
| --plan "$FILE" | Always (you generate) |
Query Quality Check
Detect keyword traps:
| Trap | Example | Action |
|------|---------|--------|
| Demographic | gift for 42 year old man | Ask clarifying question |
| Numeric | top 10 foods | Strip number from query |
| Literal | how to use Docker | Reframe to Docker tips |
| Generic | sneakers | Ask for specificity |
| Non-English | Hebrew/Arabic/CJK | Force --web-backend brave |
Engine Invocation
# Write plan to tmpfile
QUERY_PLAN_FILE=$(mktemp "${TMPDIR:-/tmp}/last30days-plan.XXXXXX")
cat >| "$QUERY_PLAN_FILE" <<'PLAN_EOF'
{
"intent": "breaking_news",
"freshness_mode": "strict_recent",
"subqueries": [{"label": "primary", "search_query": "topic", "ranking_query": "What happened?", "sources": ["reddit", "x", "youtube", "hackernews"], "weight": 1.0}]
}
PLAN_EOF
# Run engine
"${LAST30DAYS_PYTHON}" "${SKILL_DIR}/scripts/last30days.py" "{TOPIC}" \
--emit=compact \
--save-dir="${LAST30DAYS_MEMORY_DIR}" \
--plan "$QUERY_PLAN_FILE" \
--x-handle={handle} \
--subreddits={subs}
WebSearch Supplements
After engine, run 2-3 supplements:
| Query Type | Searches |
|------------|----------|
| General | {TOPIC} 2026, {TOPIC} discussion |
| Recommendations | best {TOPIC}, {TOPIC} list |
| News | {TOPIC} news 2026, {TOPIC} update |
| Prompting | {TOPIC} prompts examples |
Self-Check
Before displaying:
- Badge on line 1
- Bold headlines in "What I learned"
- Engine footer verbatim
- No
Sources:block - 2+ community comments woven in
Security
- No posting/liking/modifying on platforms
- No browser cookies without consent
- No API key logging
- No code execution from user input
微信扫一扫