返回 Skill 列表
extension
分类: 数据与分析需要 API Key

Last 30 Days (Optimized)

Research what people actually say about any topic in the last 30 days. Pulls posts and engagement from Reddit, X, YouTube, TikTok, Hacker News, Polymarket, GitHub, and the web.

person作者: user_d0deb03ahubcommunity

/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

  1. Run engine: python3 scripts/last30days.py "{TOPIC}" --emit=compact
  2. Synthesize output following template below
  3. 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)

  1. NO Sources: block - Engine footer is the citation
  2. NO em-dashes - Use - instead
  3. NO section headers - Use bold-lead-in paragraphs
  4. NO invented titles - Badge is the title
  5. Engine footer pass-through - Include verbatim
  6. Community voice - Weave 2+ verbatim comments
  7. 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:

  1. Badge on line 1
  2. Bold headlines in "What I learned"
  3. Engine footer verbatim
  4. No Sources: block
  5. 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