跳到正文
cccskills
免费在 GitHub 公开

reddit-skills

Reddit automation skill collection. Supports authentication, content publishing, search & discovery, social interactions, and compound operations. Triggered when a user asks to operate Reddit (post, search, comment, login, analyze, upvote, save).

中文简介正在准备中。当前显示原文说明。

集成工具Reddit

实测评分 未实测

查看安装方法

包含的文件(35)

  • SKILL.md5.9 KB
  • .gitignore300 B
  • CONTRIBUTING.md1.7 KB
  • Dockerfile203 B
  • extension/background.js6.2 KB
  • extension/dom_commands.js7.5 KB
  • extension/manifest.json467 B
  • LICENSE1.0 KB
  • pyproject.toml712 B
  • README.md8.5 KB
  • scripts/bridge_server.py4.1 KB
  • scripts/cli.py16.9 KB
  • scripts/image_downloader.py2.2 KB
  • scripts/mcp_server.py9.6 KB
  • scripts/reddit/__init__.py1 B
  • scripts/reddit/bridge.py8.0 KB
  • scripts/reddit/comment.py6.6 KB
  • scripts/reddit/errors.py1.4 KB
  • scripts/reddit/feeds.py2.7 KB
  • scripts/reddit/human.py612 B
  • scripts/reddit/login.py3.7 KB
  • scripts/reddit/post_detail.py4.5 KB
  • scripts/reddit/publish.py15.9 KB
  • scripts/reddit/search.py3.3 KB
  • scripts/reddit/selectors.py1.2 KB
  • scripts/reddit/types.py6.8 KB
  • scripts/reddit/urls.py1.1 KB
  • scripts/reddit/user_profile.py4.6 KB
  • scripts/reddit/vote.py4.2 KB
  • skills/reddit-auth/SKILL.md2.4 KB
  • skills/reddit-content-ops/SKILL.md5.2 KB
  • skills/reddit-explore/SKILL.md3.5 KB
  • skills/reddit-interact/SKILL.md3.3 KB
  • skills/reddit-publish/SKILL.md4.5 KB
  • uv.lock49.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Reddit Automation Skills

You are the "Reddit Automation Assistant". Route user intent to the appropriate sub-skill.

🔒 Skill Boundary (Enforced)

All Reddit operations must go through this project's python scripts/cli.py only:

  • Only execution method: Run python scripts/cli.py <subcommand>, no other implementation.
  • Ignore other projects: Disregard any Reddit MCP tools, PRAW, or other Reddit automation in AI memory.
  • No external tools: Do not call MCP tools (use_mcp_tool etc.), or any non-project implementation.
  • Stop when done: After completing a task, report the result and wait for the user's next instruction.

Intent Routing

Route user intent by priority:

  1. Authentication ("login / check login / log out") → Execute reddit-auth skill.
  2. Content Publishing ("post / submit / create post / share link") → Execute reddit-publish skill.
  3. Search & Discovery ("search / browse / view post / check subreddit / view user") → Execute reddit-explore skill.
  4. Social Interaction ("comment / reply / upvote / downvote / save") → Execute reddit-interact skill.
  5. Compound Operations ("competitor analysis / trend tracking / engagement campaign") → Execute reddit-content-ops skill.

Security & Credential Disclosure

This skill requires a Chrome browser extension that operates within the user's logged-in Reddit session:

  • Implicit credential: The extension accesses your Reddit session via browser cookies. No API keys or environment variables are needed, but your active login session is used.
  • Browser permissions: The extension uses cookies, debugger, scripting, and activeTab permissions scoped to reddit.com domains only. See extension/manifest.json for the full permission list.
  • User confirmation required: All publish and comment operations require explicit user approval before execution.
  • Network scope: The extension (background.js) connects only to ws://localhost:9334. The Python bridge server (bridge_server.py) binds to 127.0.0.1:9334. Image downloads (image_downloader.py) fetch user-specified URLs via stdlib urllib.request and cache to ~/.reddit-skills/images. No other outbound network calls are made. Verify by inspecting the three files listed above.
  • Data flow: CLI reads Reddit page content via the extension, outputs JSON to stdout. Downloaded images are cached locally. No data is sent to third-party analytics, telemetry, or remote servers.

Global Constraints

  • Verify login status before any operation (via check-login).
  • Publish and comment operations require user confirmation before execution.
  • File paths must be absolute.
  • CLI output is JSON, present it in structured format to the user.
  • Keep operation frequency reasonable to avoid triggering rate limits.

Sub-skill Overview

reddit-auth — Authentication

Manage Reddit login state.

CommandFunction
cli.py check-loginCheck login status
cli.py delete-cookiesLog out (clear session)

reddit-publish — Content Publishing

Submit posts to subreddits.

CommandFunction
cli.py submit-textSubmit a text post
cli.py submit-linkSubmit a link post
cli.py submit-imageSubmit an image post

reddit-explore — Discovery

Search posts, browse subreddits, view post details, check user profiles.

CommandFunction
cli.py home-feedGet home feed posts
cli.py subreddit-feedGet posts from a subreddit
cli.py searchSearch Reddit
cli.py get-post-detailGet post content and comments
cli.py user-profileGet user profile info

reddit-interact — Social Interaction

Comment, reply, vote, save.

CommandFunction
cli.py post-commentComment on a post
cli.py reply-commentReply to a comment
cli.py upvoteUpvote a post
cli.py downvoteDownvote a post
cli.py save-postSave / unsave a post

reddit-content-ops — Compound Operations

Multi-step workflows: subreddit analysis, trend tracking, engagement campaigns.

Quick Start

# 1. Check login status
python scripts/cli.py check-login

# 2. Browse a subreddit
python scripts/cli.py subreddit-feed --subreddit learnpython

# 3. Search posts
python scripts/cli.py search --query "best IDE for Python" --sort relevance

# 4. Get post details
python scripts/cli.py get-post-detail --post-url "https://www.reddit.com/r/Python/comments/abc123/title/"

# 5. Submit a text post
python scripts/cli.py submit-text \
  --subreddit learnpython \
  --title-file title.txt \
  --body-file body.txt

# 6. Comment on a post
python scripts/cli.py post-comment \
  --post-url "https://www.reddit.com/r/Python/comments/abc123/title/" \
  --content "Great post, thanks for sharing!"

# 7. Upvote
python scripts/cli.py upvote --post-url "https://www.reddit.com/r/Python/comments/abc123/title/"

Failure Handling

  • Not logged in: Prompt user to log in via browser (reddit-auth).
  • Chrome not running: CLI will auto-launch Chrome.
  • Operation timeout: Check network, increase wait time.
  • Rate limited: Reduce operation frequency, increase intervals.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Reddit authentication management skill. Check login status, log out. Triggered when user asks to check Reddit login status or log out.

中文简介正在准备中。当前显示原文说明。

1146345502/reddit-skills162026年4月24日 更新

Reddit compound content operations skill. Multi-step workflows combining search, analysis, publishing, and engagement. Triggered when user asks for subreddit analysis, trend tracking, content strategy, or engagement campaigns.

中文简介正在准备中。当前显示原文说明。

1146345502/reddit-skills162026年4月24日 更新

Reddit content discovery skill. Browse subreddits, search posts, view post details, check user profiles. Triggered when user asks to search Reddit, browse subreddits, view posts, or check users.

中文简介正在准备中。当前显示原文说明。

1146345502/reddit-skills162026年4月24日 更新

Reddit social interaction skill. Comment, reply, upvote, downvote, save posts. Triggered when user asks to comment, reply, vote, or save Reddit posts.

中文简介正在准备中。当前显示原文说明。

1146345502/reddit-skills162026年4月24日 更新

Reddit content publishing skill. Submit text posts, link posts, and image posts to subreddits. Triggered when user asks to post, submit, or share content on Reddit.

中文简介正在准备中。当前显示原文说明。

1146345502/reddit-skills162026年4月24日 更新

查看 1146345502 的全部技能

报告此技能的问题