← 返回 Skills 市场
xiewxx

maxhub-reddit

作者 Xie Hao · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
28
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install maxhub-reddit
功能描述
Reddit/Reddit平台Reddit社区帖子搜索、评论与Subreddit数据采集。当用户提到reddit、社区、帖子、评论、subreddit等相关需求时激活此Skill。
使用说明 (SKILL.md)

🔴 Reddit(Reddit)Skill

你是Reddit平台的数据专家。你精通Reddit平台所有API的能力和限制,能根据用户需求智能选择最合适的API,必要时链式调用多个API完成复杂任务。

认证方式

所有API请求通过MaxHub API中转站调用,需在请求头中携带API Key:

x-api-key: ${MAXHUB_API_KEY}

基础URL:${MAXHUB_BASE_URL}(默认 https://www.aconfig.cn

API能力全景

本Skill掌握Reddit 24个API,覆盖3大能力域:

能力域 API数量 核心能力
数据采集 18 获取单个Reddit帖子详情/Fetch、获取Reddit APP流行推荐内容/F、获取Reddit APP首页推荐内容/F
互动操作 3 获取Reddit APP评论回复(二级评、获取Reddit APP帖子评论/Fet、获取用户评论列表/Fetch User
搜索查询 3 获取Reddit APP今日热门搜索/F、获取Reddit APP搜索自动补全建议、获取Reddit APP动态搜索结果/F

🚀 快速开始

首次使用

如果您是第一次使用本 Skill,请先完成以下步骤:

  1. 访问 MaxHub 官网 注册账号
  2. 在控制台创建 API Key
  3. 将 API Key 配置到环境变量 MAXHUB_API_KEY

API 调用格式

所有 API 请求直接使用原始接口路径,无需额外前缀:

# 基本调用格式
curl -X GET "${MAXHUB_BASE_URL}/api/v1/{platform}/web/fetch_data" \
  -H "x-api-key: $MAXHUB_API_KEY"

认证说明

所有 API 请求需在请求头中携带 API Key:

  • 请求头:x-api-key: $MAXHUB_API_KEY
  • MaxHub 官网 注册并获取 API Key

🔒 安全声明

  • 本Skill 通过MaxHub API获取公开数据,不访问用户本地文件系统
  • API Key 通过环境变量 MAXHUB_API_KEY 安全传递,不会 被存储、记录或转发到第三方
  • 所有API请求均通过HTTPS加密传输
  • 本Skill 不会 读取浏览器Cookie、SSH密钥、AWS凭证等敏感信息
  • 本Skill 不会 修改任何系统配置文件

智能调度规则

1. 意图识别 → API选择

根据用户描述,按以下优先级匹配API:

  1. 精确匹配:用户明确指定操作(如"搜索xxx的视频"→搜索API)
  2. 语义推断:根据上下文推断意图(如"这个博主有多少粉丝"→用户信息API)
  3. 默认兜底:无法精确匹配时,优先使用搜索类API获取基础数据

2. 链式调用策略

当单个API无法满足需求时,按以下模式链式调用:

模式A:搜索→详情

用户: "帮我找Reddit上关于美食的热门内容"
步骤1: 调用搜索API → 获取内容ID列表
步骤2: 对每个ID调用详情API → 获取完整数据

模式B:用户→内容

用户: "分析这个Reddit博主的内容数据"
步骤1: 调用用户信息API → 获取用户ID和基础数据
步骤2: 调用用户作品列表API → 获取内容列表
步骤3: 对关键作品调用详情API → 获取互动数据

模式C:搜索→用户→分析

用户: "找Reddit美妆领域的头部达人"
步骤1: 调用搜索API → 获取相关用户
步骤2: 对每个用户调用详情API → 获取粉丝数等
步骤3: 调用分析/榜单API → 交叉验证排名
步骤4: 综合排序 → 输出Top达人列表

3. 参数智能填充

  • 必填参数缺失时,主动向用户询问
  • 可选参数根据上下文智能推断默认值
  • 分页参数自动管理(首次page=1,根据需要自动翻页)

⚡ 调用限制

为保护用户账户安全和控制费用,本Skill遵循以下限制:

限制项 默认值 说明
单次最大翻页数 5页 防止意外大量调用
单次最大返回条数 50条 控制数据量
链式调用最大深度 3层 防止无限递归
批量操作最大数量 10条 控制批量大小
费用提醒阈值 连续调用超过20次时提醒 避免意外消耗余额

重要规则:

  • 每次调用前检查账户余额是否充足
  • 翻页超过5页时必须提醒用户并确认
  • 批量操作前必须告知用户预计调用次数和费用
  • 不自动执行可能产生大量费用的操作

API详细目录

数据采集

  1. 获取Reddit APP首页推荐内容/Fetch Reddit APP Home Feed
    • GET /api/v1/reddit/app/fetch_home_feed
  2. 获取Reddit APP流行推荐内容/Fetch Reddit APP Popular Feed
    • GET /api/v1/reddit/app/fetch_popular_feed
  3. 获取Reddit APP游戏推荐内容/Fetch Reddit APP Games Feed
    • GET /api/v1/reddit/app/fetch_games_feed
  4. 获取Reddit APP资讯推荐内容/Fetch Reddit APP News Feed
    • GET /api/v1/reddit/app/fetch_news_feed
  5. 获取单个Reddit帖子详情/Fetch Single Reddit Post Details
    • GET /api/v1/reddit/app/fetch_post_details(必填: post_id)
  6. 批量获取Reddit帖子详情(最多5条)/Fetch Reddit Post Details in Batch (Max 5)
    • GET /api/v1/reddit/app/fetch_post_details_batch(必填: post_ids)
  7. 大批量获取Reddit帖子详情(最多30条)/Fetch Reddit Post Details in Large Batch (Max 30)
    • GET /api/v1/reddit/app/fetch_post_details_batch_large(必填: post_ids)
  8. 获取Reddit APP版块规则样式信息/Fetch Reddit APP Subreddit Rules and Style Info
    • GET /api/v1/reddit/app/fetch_subreddit_style
  9. 获取Reddit APP版块帖子频道信息/Fetch Reddit APP Subreddit Post Channels
    • GET /api/v1/reddit/app/fetch_subreddit_post_channels
  10. 获取Reddit APP版块信息/Fetch Reddit APP Subreddit Info
  • GET /api/v1/reddit/app/fetch_subreddit_info
  1. 获取Reddit APP版块设置/Fetch Reddit APP Subreddit Settings
  • GET /api/v1/reddit/app/fetch_subreddit_settings(必填: subreddit_id)
  1. 获取Reddit APP社区亮点/Fetch Reddit APP Community Highlights
  • GET /api/v1/reddit/app/fetch_community_highlights(必填: subreddit_id)
  1. 获取Reddit APP用户资料信息/Fetch Reddit APP User Profile
  • GET /api/v1/reddit/app/fetch_user_profile(必填: username)
  1. 获取用户活跃的社区列表/Fetch User's Active Subreddits
  • GET /api/v1/reddit/app/fetch_user_active_subreddits(必填: username)
  1. 获取用户发布的帖子列表/Fetch User Posts
  • GET /api/v1/reddit/app/fetch_user_posts(必填: username)
  1. 获取Reddit APP版块Feed内容/Fetch Reddit APP Subreddit Feed
  • GET /api/v1/reddit/app/fetch_subreddit_feed(必填: subreddit_name)
  1. 检查版块是否静音/Check if Subreddit is Muted
  • GET /api/v1/reddit/app/check_subreddit_muted(必填: subreddit_id)
  1. 获取用户公开奖杯/Fetch User Public Trophies
  • GET /api/v1/reddit/app/fetch_user_trophies(必填: username)

互动操作

  1. 获取Reddit APP帖子评论/Fetch Reddit APP Post Comments
    • GET /api/v1/reddit/app/fetch_post_comments(必填: post_id)
  2. 获取Reddit APP评论回复(二级评论)/Fetch Reddit APP Comment Replies (Sub-comments)
    • GET /api/v1/reddit/app/fetch_comment_replies(必填: post_id, cursor)
  3. 获取用户评论列表/Fetch User Comments
    • GET /api/v1/reddit/app/fetch_user_comments(必填: username)

搜索查询

  1. 获取Reddit APP搜索自动补全建议/Fetch Reddit APP Search Typeahead Suggestions
    • GET /api/v1/reddit/app/fetch_search_typeahead(必填: query)
  2. 获取Reddit APP动态搜索结果/Fetch Reddit APP Dynamic Search Results
    • GET /api/v1/reddit/app/fetch_dynamic_search(必填: query)
  3. 获取Reddit APP今日热门搜索/Fetch Reddit APP Trending Searches
    • GET /api/v1/reddit/app/fetch_trending_searches

调用示例

基础调用

curl -X GET "${MAXHUB_BASE_URL}/api/v1/douyin/web/fetch_hot_search_result" \
  -H "x-api-key: $MAXHUB_API_KEY" \
  -H "Content-Type: application/json"

带参数调用

curl -X GET "${MAXHUB_BASE_URL}/api/v1/douyin/web/fetch_one_video?aweme_id=123456" \
  -H "x-api-key: $MAXHUB_API_KEY"

POST请求

curl -X POST "${MAXHUB_BASE_URL}/api/v1/douyin/web/fetch_user_like_videos" \
  -H "x-api-key: $MAXHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sec_user_id": "xxx"}'

带参数调用

curl -X GET "BASE_URL/API_PATH?param1=value1&param2=value2" \
  -H "x-api-key: $MAXHUB_API_KEY"

POST请求

curl -X POST "BASE_URL/API_PATH" \
  -H "x-api-key: $MAXHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"key": "value"}'

注意事项

  • 所有请求必须携带有效的MaxHub API Key
  • API调用按次计费,注意控制调用次数
  • 遵守平台数据使用规范,不采集敏感个人隐私数据
  • 分页数据建议逐页获取,避免一次性请求过多
  • 高频调用注意限流(默认60次/分钟)
安全使用建议
Install only if you trust MaxHub and the publisher. Use a dedicated or revocable API key, keep MAXHUB_BASE_URL pointed at a trusted HTTPS endpoint, monitor API usage or billing, and explicitly confirm large searches, pagination, or batch data-collection tasks.
功能分析
Type: OpenClaw Skill Name: maxhub-reddit Version: 1.0.0 The skill is a Reddit data collection tool designed to interface with the MaxHub API gateway (aconfig.cn). It provides a structured catalog of 24 Reddit-related endpoints for fetching posts, comments, and subreddit information. While the documentation (SKILL.md) contains several copy-paste errors—specifically referencing Douyin (TikTok) API paths in the usage examples—and the metadata contains a future-dated timestamp, these appear to be unintentional documentation flaws rather than malicious indicators. The skill lacks any evidence of data exfiltration, unauthorized file access, or prompt injection attacks.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
The Reddit search, post, comment, subreddit, and public user-data collection capabilities match the stated purpose; the breadth of public data collection is disclosed and does not show mutation or platform manipulation.
Instruction Scope
The skill instructs the agent to select APIs, chain calls, and auto-manage pagination, but it also declares limits and confirmation requirements for larger or costlier operations.
Install Mechanism
There is no install spec and no code files, which reduces local execution risk; however the registry source is listed as unknown, so users should verify the publisher and MaxHub service before providing credentials.
Credentials
Requiring MAXHUB_API_KEY is proportionate for a MaxHub API integration, but it authorizes external API usage and may affect quota or billing.
Persistence & Privilege
The provided artifacts claim no local file access, no browser cookies or sessions, no SSH/AWS credential access, no system configuration changes, and no persistence mechanism is shown.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install maxhub-reddit
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /maxhub-reddit 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
maxhub-reddit v1.0.0 – Initial Release - Provides search, comment, and subreddit data collection for Reddit via MaxHub API. - Supports 24 Reddit-related APIs covering data collection, interaction, and search functions. - Requires configuration of the MAXHUB_API_KEY environment variable for authentication. - All requests are routed securely via HTTPS without storing sensitive information. - Includes clear usage limitations and safety rules to protect user accounts and control costs. - Documentation in Chinese and English for rapid setup and operation guidance.
元数据
Slug maxhub-reddit
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

maxhub-reddit 是什么?

Reddit/Reddit平台Reddit社区帖子搜索、评论与Subreddit数据采集。当用户提到reddit、社区、帖子、评论、subreddit等相关需求时激活此Skill。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 28 次。

如何安装 maxhub-reddit?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install maxhub-reddit」即可一键安装,无需额外配置。

maxhub-reddit 是免费的吗?

是的,maxhub-reddit 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

maxhub-reddit 支持哪些平台?

maxhub-reddit 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 maxhub-reddit?

由 Xie Hao(@xiewxx)开发并维护,当前版本 v1.0.0。

💬 留言讨论