liubin-weibo-autopilot
Weibo Autopilot (微博自动驾驶)
An autonomous agent that browses Weibo feeds, identifies interesting content based on learned user preferences, and reposts with thoughtful commentary.
Script Directory
Important: All scripts are located in the scripts/ subdirectory of this skill.
Agent Execution Instructions:
- Determine this SKILL.md file's directory path as
SKILL_DIR - Script path =
${SKILL_DIR}/scripts/<script-name>.ts - Replace all
${SKILL_DIR}in this document with the actual path
Script Reference:
| Script | Purpose |
|---|---|
scripts/learn-preferences.ts |
Learn user posting/commenting habits |
scripts/browse-feed.ts |
Browse Weibo feeds and extract content |
scripts/repost.ts |
Repost content with commentary |
scripts/autopilot.ts |
Main controller for continuous operation |
scripts/weibo-cdp.ts |
Shared Chrome CDP utilities |
Prerequisites
- Google Chrome or Chromium installed
buninstalled (for running scripts)- Logged in to Weibo (will prompt on first run)
Data Files
User preferences and learning data are stored in data/ subdirectory:
data/user-profile.json- Learned user preferences and posting styledata/repost-history.json- History of reposts to avoid duplicates
Commands
1. Learn User Preferences
Learn from user's posting history and comment style. Run periodically (e.g., weekly) to update preferences.
# Learn from user's Weibo profile and comment history
npx -y bun ${SKILL_DIR}/scripts/learn-preferences.ts
# Force refresh (ignore cached data)
npx -y bun ${SKILL_DIR}/scripts/learn-preferences.ts --refresh
Data Sources:
- User profile: https://weibo.com/u/1043848755
- Comment outbox: https://weibo.com/comment/outbox
2. Start Autopilot Mode
Start continuous browsing and reposting. Runs in background, reposts approximately every 10 minutes.
# Start autopilot (default: browse all feeds)
npx -y bun ${SKILL_DIR}/scripts/autopilot.ts
# Browse specific feed group
npx -y bun ${SKILL_DIR}/scripts/autopilot.ts --group "国际新闻/军事"
npx -y bun ${SKILL_DIR}/scripts/autopilot.ts --group "足球"
# Set repost interval (default: 10 minutes with ±3 min variance)
npx -y bun ${SKILL_DIR}/scripts/autopilot.ts --interval 15
# Dry run (browse but don't actually repost)
npx -y bun ${SKILL_DIR}/scripts/autopilot.ts --dry-run
Parameters:
| Parameter | Description |
|---|---|
--group <name> |
Browse specific feed group (optional) |
--interval <min> |
Average minutes between reposts (default: 10) |
--dry-run |
Browse and analyze but don't repost |
3. Manual Repost
Manually repost a specific Weibo with commentary.
# Repost with auto-generated commentary
npx -y bun ${SKILL_DIR}/scripts/repost.ts <weibo-url>
# Repost with custom commentary
npx -y bun ${SKILL_DIR}/scripts/repost.ts <weibo-url> --comment "Your commentary here"
Behavior Rules
Content Selection
- Analyzes text, images (via vision), video descriptions, and comments
- Matches content against learned user interests
- Avoids content that might be controversial or offensive
- Skips already reposted content
Commentary Generation
- Thoughtful, non-controversial observations
- Respects original poster and other users
- Matches user's learned commenting style
- Always includes AI signature:
⸢ᴬᴵ ᵖᵒˢᵗᵉᵈ ᵛⁱᵃ ᶜˡᵃᵘᵈᵉ ᶜᵒᵈᵉ⸥
Safety Guidelines
- Never comments, only reposts
- Avoids politically sensitive content
- Respects all users and groups
- Fully understands content before reposting
Notes
- First run requires manual Weibo login (session is saved)
- Learning preferences should be run before first autopilot session
- Browser runs in background during autopilot mode
- Logs are written to stdout for monitoring
More from questnova502/claude-skills-sync
liubin-post-to-weibo
Post content to Weibo (微博). Supports text posts with images. Uses real Chrome with CDP to bypass anti-automation.
31baoyu-xhs-images
Xiaohongshu (Little Red Book) infographic series generator with multiple style options. Breaks down content into 1-10 cartoon-style infographics. Use when user asks to create "小红书图片", "XHS images", or "RedNote infographics".
26jira-integration
Agent Skill: Comprehensive Jira integration through lightweight Python scripts. AUTOMATICALLY TRIGGER when user mentions Jira URLs like 'https://jira.*/browse/*', 'https://*.atlassian.net/browse/*', or issue keys like 'PROJ-123'. Use when searching issues (JQL), getting/updating issue details, creating issues, transitioning status, adding comments, logging worklogs, managing sprints and boards, creating issue links, or formatting Jira wiki markup. If authentication fails, offer to configure credentials interactively. Supports both Jira Cloud and Server/Data Center with automatic authentication detection. By Netresearch.
11ms365-tenant-manager
Comprehensive Microsoft 365 tenant administration skill for setup, configuration, user management, security policies, and organizational structure optimization for Global Administrators
10baoyu-cover-image
Generate elegant cover images for articles. Analyzes content and creates eye-catching hand-drawn style cover images with multiple style options. Use when user asks to "generate cover image", "create article cover", or "make a cover for article".
10senior-data-engineer
World-class data engineering skill for building scalable data pipelines, ETL/ELT systems, and data infrastructure. Expertise in Python, SQL, Spark, Airflow, dbt, Kafka, and modern data stack. Includes data modeling, pipeline orchestration, data quality, and DataOps. Use when designing data architectures, building data pipelines, optimizing data workflows, or implementing data governance.
10