reddit-digest

抓取指定单个 Subreddit 最近 24 小时热门 Post,逐一获取详情与评论,生成摘要、核心要点、可实践建议、灵感启发及社交媒体分享文案,输出为每日精选 Markdown 文档。 当用户说"帮我抓取/总结 Reddit r/xxx"、"生成 Reddit 每日摘要"、"reddit digest"时使用。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "reddit-digest" with this command: npx skills add redisread/reddit-digest

Reddit Subreddit 每日摘要

配置

优先级:命令行参数 > 环境变量 > 默认值

参数环境变量默认值
--base-dirREDDIT_DIGEST_BASE_DIR/Users/victor/Desktop/resource/daily-info/reddit
--subredditREDDIT_DIGEST_SUBREDDITClaudeAI

输出路径:{BASE_DIR}/{YYYYMMDD}/{subreddit_name}/{subreddit_name}-{YYYYMMDD}.md 临时目录:{BASE_DIR}/{YYYYMMDD}/{subreddit_name}/temp/

依赖

  • autocli:获取热门列表和 Post 详情
  • scripts/fetch_post_details.py:批量串行获取所有 Post 详情,保存到临时目录

执行流程

Step 1: 初始化

确定 BASE_DIRSUBREDDITDATE(YYYYMMDD)变量,创建目录:

mkdir -p {BASE_DIR}/{DATE}/{SUBREDDIT}/temp

Step 2: 批量获取 Post 列表与详情

注意:以下命令必须写成一行(不含换行),在终端后台执行(is_background=true),避免3分钟超时。

SKILL_DIR="/path/to/skills/reddit-digest" && TEMP_DIR="{BASE_DIR}/{DATE}/{SUBREDDIT}/temp" && autocli reddit subreddit {SUBREDDIT} --limit 20 --sort top --time day --format json | python3 "$SKILL_DIR/scripts/fetch_post_details.py" --temp-dir "$TEMP_DIR" > /tmp/reddit_fetch_{SUBREDDIT}.log 2>&1

SKILL_DIR 通常为 {workspace}/skills/reddit-digest(本 skill 所在目录)。

脚本串行调用 autocli reddit read {url} -f json 逐条抓取(autocli 基于浏览器,并发会导致 tab 冲突,默认 workers=1),每条 Post 保存为:

{TEMP_DIR}/{rank:02d}-{sanitized_title}.json

每个文件结构:

{
  "rank": 1,
  "meta": { "author", "comments", "title", "upvotes", "url" },
  "content": [ { "author", "score", "text", "type" }, ... ],
  "error": null
}

content 字段:type=POST 为原文,type=L0 为顶层评论,type=L1 为回复。

等待完成:后台启动后,每隔 30 秒检查 ls {TEMP_DIR}/ 或读取日志 /tmp/reddit_fetch_{SUBREDDIT}.log 确认进度(共 20 条,全部出现后即完成)。

容错:抓取失败时 error 字段记录原因,仅用 meta 元数据生成简要摘要。

Step 3: 分析每个 Post

逐一读取 {TEMP_DIR}/*.json,按 rank 顺序分析,筛选并剔除低价值 Post。

输出文档结构与筛选规则见 references/output-template.md

Step 4: 汇总输出

将所有分析结果按 rank 排序合并,写入最终文档。所有内容使用简体中文撰写

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Huo15 Openclaw Enhance

火一五·克劳德·龙虾增强插件 v5.7.8 — 全面适配 openclaw 2026.4.24:peerDep ^4.24 + build/compat 同步到 4.24 + 14 处 api.on 全部去掉 as any 改成 typed hook(hookName 联合类型 + handler 自动推断 Pl...

Registry SourceRecently Updated
General

Content Trend Analyzer

Aggregates and analyzes content trends across platforms to identify hot topics, user intent, content gaps, and generates data-driven article outlines.

Registry SourceRecently Updated
General

Prompt Debugger

Debug prompts that produce unexpected AI outputs — diagnose failure modes, identify ambiguity and conflicting instructions, test variations, compare model re...

Registry SourceRecently Updated
General

Indie Maker News

独行者 Daily - 变现雷达。读对一条新闻,少走一年弯路。每天5分钟,给创业者装上商业雷达。聚焦一人公司、副业、创业变现资讯,智能分类,行动导向。用户下载即能用,无需本地部署!

Registry SourceRecently Updated