360 Secure SkillHub
360 安全技能中心

Last30Days Community Intelligence for OpenClaw

该技能是 @mvanhorn last30days 项目的 OpenClaw 适配版,用 Python 引擎从 Reddit、X、YouTube、TikTok、Instagram、Hacker News、Polymarket 与网页抓取近 30 天话题,去重、打分并生成简报;支持观察清单、定时任务与历史检索。

keylimesoda
keylimesoda
热度 84.80
最近更新 2026-05-17 13:31:25
分类:搜索依赖:代码执行 / 读写文件 / 第三方 API应用场景:研究 / 社交媒体 / 摘要总结 / 报告撰写 ...

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add last30days-openclaw
Metadata
name
last30days-openclaw
description
OpenClaw adaptation of @mvanhorn's last30days skill. Research any topic from the last 30 days across Reddit, X, YouTube, TikTok, Instagram, Hacker News, Polymarket, and web. Includes watchlists, briefing generation, and historical query mode.
license
MIT
metadata
{"upstream_author":"@mvanhorn","upstream_repo":"https://github.com/mvanhorn/last30days-skill","adaptation":"OpenClaw adaptation by Tommy"}

last30days-openclaw

Attribution: This skill is an OpenClaw adaptation of @mvanhorn's MIT-licensed project: https://github.com/mvanhorn/last30days-skill.

What is original vs adapted

Original (from @mvanhorn)

  • Core Python research engine (scripts/last30days.py + scripts/lib/*)
  • Multi-source data collection and ranking logic
  • Watchlist, briefing, and history database architecture
  • Vendored bird-search X client and source connectors

OpenClaw adaptation (this folder)

  • OpenClaw skill packaging (skill.json, this SKILL.md)
  • OpenClaw-first storage paths under ~/.openclaw/workspace
  • OpenClaw secrets file convention: ~/.openclaw/workspace/.secrets/last30days.env
  • OpenClaw cron helper: scripts/openclaw_watchlist_run.sh
  • Setup helper for secrets: scripts/setup_openclaw_env.sh

Runtime paths (OpenClaw defaults)

  • Secrets: ~/.openclaw/workspace/.secrets/last30days.env
  • DB: ~/.openclaw/workspace/data/last30days/research.db
  • Briefings: ~/.openclaw/workspace/data/last30days/briefs/
  • Output artifacts: ~/.openclaw/workspace/data/last30days/out/

Setup

cd ~/.openclaw/workspace/skills/last30days-openclaw
./scripts/setup_openclaw_env.sh
python3 scripts/last30days.py --diagnose

macOS X-cookie support (Bird)

The vendored Bird client reads browser cookies on macOS.

  • Log into x.com in Safari/Chrome/Firefox
  • Verify auth:
node scripts/lib/vendor/bird-search/bird-search.mjs --whoami

If that fails, set AUTH_TOKEN + CT0 in the secrets file.

Command routing

Use first token to route mode:

  • watch ... → watchlist management
  • briefing ... → briefing generation
  • history ... → history/FTS queries
  • anything else → one-shot research

One-shot research (default mode)

Run via OpenClaw exec:

cd ~/.openclaw/workspace/skills/last30days-openclaw
python3 scripts/openclaw_run.py "TOPIC"
# equivalent engine call:
# python3 scripts/last30days.py "TOPIC" --emit=compact --no-native-web
  • Use --quick or --deep for depth.
  • Use --store to persist findings.
  • Use --search reddit,x,youtube,tiktok,instagram,hn,polymarket,web for source subsets.

Watchlist mode

python3 scripts/watchlist.py add "TOPIC"
python3 scripts/watchlist.py list
python3 scripts/watchlist.py run-one "TOPIC"
python3 scripts/watchlist.py run-all

OpenClaw cron integration

Use this wrapper in a scheduled exec/cron job:

~/.openclaw/workspace/skills/last30days-openclaw/scripts/openclaw_watchlist_run.sh

This writes logs to: ~/.openclaw/workspace/logs/last30days-watchlist.log

Briefing mode

python3 scripts/briefing.py generate
python3 scripts/briefing.py generate --weekly
python3 scripts/briefing.py show --date YYYY-MM-DD

History mode

python3 scripts/store.py query "TOPIC" --since 7d
python3 scripts/store.py search "QUERY"
python3 scripts/store.py trending
python3 scripts/store.py stats

Notes

  • If native web keys are absent, run with --no-native-web and use OpenClaw's web_search tool for web supplementation.
  • Preserve source weighting in synthesis: Reddit/X/YouTube/TikTok/Instagram/HN/Polymarket signals first, web second.
  • Never remove attribution to @mvanhorn when republishing this adaptation.