reddit-browser-automation

该技能提供用于类似 Postmill/Reddit 论坛自动化的工具和技术,涵盖账户创建、发帖、论坛创建和 Wiki 管理,适用于需要在论坛平台上执行复杂操作的任务。

仓库最近推送
GitHub Stars
134
Forks
6
Issues / PRs
0

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "reddit-browser-automation":https://skillpi.com/zh/skills/deepskill-708c847af6b41a922152f00ab7cf3c42ecddb82eda3a6996e2894d09a3848cf6。安装前核对上游来源和版本:https://github.com/MassLab-SII/open-agent-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

该技能提供用于类似 Postmill/Reddit 论坛自动化的工具和技术,涵盖账户创建、发帖、论坛创建和 Wiki 管理,适用于需要在论坛平台上执行复杂操作的任务。

0 下载

介绍来源: third_party · MassLab-SII · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
适合谁
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: reddit-browser-automation
description: This skill provides tools and techniques for Postmill/Reddit-like forum automation. Includes account creation, posting, forum creation and wiki management. Suitable for tasks requiring complex operations on forum platforms.

Reddit/Postmill Browser Automation Skill

This skill is based on Playwright MCP tools, providing automation capabilities for Reddit-like forum platforms (Postmill).

Core Concepts

In forum automation, we distinguish two types of operations:

  1. Skill: Meaningful combinations of multiple tool calls, encapsulated as independent Python scripts
  2. Basic Tools: Single function calls used for atomic operations.

I. Skills

1. Sign Up

Use Cases:

  • Create a new account on the forum after cilcing "Sign up" button
  • Register with specific username and password

Usage:

# Usage:
#   python sign_up.py <username> <password> <username_ref> <password_ref> <password_repeat_ref> <submit_ref>
# Example:
python sign_up.py "AIDataAnalyst2025" "SecurePass123!" e35 e43 e44 e54

2. Create Post

Use Cases:

  • Submit a new post/submission to a forum aftering clicking "Submit" button
  • Create text posts with title and body

Usage:

# Usage:
#   python create_post.py <title> <body> <title_ref> <body_ref> <create_btn_ref>
# Example:
python create_post.py "My Post Title" "Post body content here" e58 e63 e82

Note: The body text can contain multiple lines. Each line should start with a dash (-) for proper formatting.


3. Create Forum

Use Cases:

  • Create a new forum/community after clicking "Create forum" button
  • Set up forum name, title, description, and sidebar

Usage:

# Usage:
#   python create_forum.py <name> <title> <description> <sidebar> <name_ref> <title_ref> <desc_ref> <sidebar_ref> <create_btn_ref>
# Example:
python create_forum.py "BudgetEuropeTravel" "Budget Travel Europe" "Community for sharing money-saving tips" "Share your best deals!" e51 e56 e61 e69 e83

4. Create Wiki

Use Cases:

  • Create a wiki page for a forum after clicking "Create new page" button
  • Set up wiki URL path, title, and content

Usage:

# Usage:
#   python create_wiki.py <url_path> <title> <body> <url_ref> <title_ref> <body_ref> <save_btn_ref>
# Example:
python create_wiki.py "europe-travel-guide" "Complete Budget Travel Guide" "Wiki content here" e51 e56 e62 e69

II. Basic Tools (When to Use Single Functions)

Below are the basic tool functions and their use cases. These are atomic operations for flexible combination.

Note: Code should be written without line breaks.

How to Run

# Standard format (browser persists across calls)
python run_browser_ops.py -c "await browser.navigate('http://localhost:9999')"

Navigation Tools

navigate(url: str)

Use Cases:

  • Open forum homepage
  • Navigate to specific forum or post

Example:

python run_browser_ops.py -c "await browser.navigate('http://localhost:9999')"
python run_browser_ops.py -c "await browser.navigate('http://localhost:9999/f/MachineLearning')"

navigate_back()

Use Cases:

  • Go back to previous page
  • Return to forum listing after viewing post

Example:

python run_browser_ops.py -c "await browser.navigate_back()"

Interaction Tools

click(ref: str, element: Optional[str] = None)

Use Cases:

  • Click navigation links (Forums, Submit, Wiki, etc.)
  • Click forum links and post titles
  • Click buttons (Sign up, Create, Save, Upvote, etc.)
  • Click pagination links (More, Page 2, etc.)

Example:

# Click Forums link
python run_browser_ops.py -c "await browser.click(ref='e22', element='Forums link')"

# Click a post title
python run_browser_ops.py -c "await browser.click(ref='e77', element='Post title link')"

# Click Upvote button
python run_browser_ops.py -c "await browser.click(ref='e94', element='Upvote button')"

type_text(ref: str, text: str, element: Optional[str] = None)

Use Cases:

  • Fill form fields (username, password, title, body)
  • Enter search queries
  • Fill wiki content

Example:

# Enter username
python run_browser_ops.py -c "await browser.type_text(ref='e35', text='MyUsername', element='Username field')"

# Enter post body
python run_browser_ops.py -c "await browser.type_text(ref='e63', text='Post content here', element='Body textbox')"

select_option(ref: str, element_desc: str, value: str)

Use Cases:

  • Select timezone in user settings
  • Select sorting options
  • Select dropdown values

Example:

# Select timezone
python run_browser_ops.py -c "await browser.select_option(ref='e56', element_desc='Time zone combobox', value='Europe / Amsterdam')"

press_key(key: str)

Use Cases:

  • Submit search queries (press Enter)
  • Submit forms

Example:

python run_browser_ops.py -c "await browser.press_key('Enter')"

Page State Tools

snapshot()

Use Cases:

  • When unsure about current page state
  • Need to find ref references for elements
  • Verify if operation was successful
  • Count posts or comments on a page

Example:

python run_browser_ops.py -c "await browser.snapshot()"

Best Practices:

  • Use snapshot after navigation to find element refs
  • Use snapshot to count items on a page
  • Use snapshot to verify data before submitting

III. Common Navigation Patterns

Forum Navigation

# Navigate to homepage
python run_browser_ops.py -c "await browser.navigate('http://localhost:9999')"

Sorting and Pagination

# Click Sort by dropdown
python run_browser_ops.py -c "await browser.click(ref='e54', element='Sort by: Hot dropdown')"

IV. Best Practices

Use snapshot() Liberally

Use snapshot() in the following situations:

  • After navigating to a new page
  • Before performing actions that require element refs
  • When counting posts or analyzing content
  • To verify successful completion of actions

Usage Principles

  1. Navigate first: Start by navigating to http://localhost:9999
  2. Use snapshot() liberally: Forum pages have dynamic refs, verify state often
  3. Find refs: Always find current refs before using skills

当前收录版本

0.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值65/100

待提升项

  • 长尾需求定位 原报告严重程度:轻微

    Skill addresses a specific niche (forum automation) rather than mainstream use cases

    改进建议:Consider expanding documentation to show broader applicability or more common use cases

亮点

  • Provides comprehensive automation capabilities for forum platforms
  • Covers multiple key operations: account creation, posting, forum management, and wiki management
  • Well-suited for users needing to automate repetitive forum tasks
触发精准70/100

待提升项

  • description写错位置 原报告严重程度:轻微

    Description appears in both frontmatter and body, creating redundancy

    改进建议:Keep description only in frontmatter to avoid duplication

亮点

  • Clear trigger scenarios described for each tool and skill
  • Usage examples provided with concrete parameters
结构规范75/100

待提升项

  • 缺少明确的阶段划分 原报告严重程度:轻微

    While well-organized, some sections could benefit from clearer phase boundaries and exit conditions

    改进建议:Add explicit phase markers and completion criteria for multi-step processes

亮点

  • Excellent organization separating Skills from Basic Tools
  • Comprehensive navigation patterns and best practices documented
  • Clear parameter documentation with examples
执行可靠60/100

待提升项

  • 缺少错误处理文档 原报告严重程度:重大

    No documentation of error handling strategies or failure recovery mechanisms

    改进建议:Add error handling guidelines, expected failure modes, and recovery procedures

  • 不可逆操作缺少确认机制说明 原报告严重程度:轻微

    Account creation and forum modifications are mentioned without confirmation safeguards

    改进建议:Document confirmation mechanisms for destructive or irreversible operations

亮点

  • Based on reliable Playwright MCP framework
  • Parameterized usage reduces risk of execution errors
  • Snapshot tool provides state verification capability
证据可验 (前四项均值)68/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

文档引用的域名或地址

这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。

  • localhost

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。