AGENT SKILL

wechat-search

Search WeChat Official Account articles using OpenClaw's web search and fetch capabilities with compliance-focused design.

适用职业律师与法务
License 许可
MIT
最近更新
2026-04-14
Stars
★ 0
Forks
0

01 前言 Front Matter

name
wechat-search
description
Search WeChat Official Account articles using OpenClaw's web search and fetch capabilities with compliance-focused design.

02 资源文件 6

03 SKILL.md 正文

WeChat Search Skill

Search for WeChat Official Account (微信公众号) articles using a compliant, two-layer approach that prioritizes legal search APIs and falls back to respectful web scraping when needed.

Features

  • Compliant Design: Prioritizes legal search APIs, respects robots.txt and rate limits
  • Two-Layer Strategy:
    • Primary: Web search with site:mp.weixin.qq.com filter
    • Fallback: Direct page fetching with proper delays and headers
  • Recent Results: Returns the 5 most recent articles by default (configurable)
  • Time Filtering: Support for date range and recency filters
  • Multiple Output Formats: Text, JSON, and markdown formats available

Prerequisites

  • OpenClaw Web Tools: Requires web_search and web_fetch tools to be available
  • Tavily API Key (optional): For enhanced search capabilities via Tavily integration

Usage

Basic Search

wechat-search "人工智能"

Advanced Options

# Return 10 results instead of default 5
wechat-search "机器学习" --max-results 10

# Search within past week
wechat-search "大模型" --past-week

# Custom date range
wechat-search "AI应用" --from 2026-01-01 --to 2026-02-01

# JSON output format
wechat-search "开源AI" --output json

# Force web fetch strategy
wechat-search "最新技术" --strategy web_fetch

Configuration

Create ~/.openclaw/wechat-search-config.json to customize behavior:

{
  "defaultMaxResults": 5,
  "maxResultsLimit": 20,
  "requestDelayMs": 5000,
  "cacheDurationHours": 1,
  "userAgent": "OpenClaw-WeChat-Search-Bot/1.0 (+https://github.com/your-username/wechat-search-skill)"
}

Compliance & Ethics

  • Respects robots.txt: Checks and follows robots.txt directives
  • Rate limiting: Minimum 5-second delay between requests
  • Transparent identification: Clear User-Agent string identifying the bot
  • Public content only: Only accesses publicly available articles
  • No data retention: Does not store full article content, only metadata

Error Handling

  • Automatic retry on network failures (up to 3 attempts)
  • Graceful fallback between search strategies
  • Clear error messages for debugging

Future Enhancements

  • RSS feed integration support
  • Article content summarization
  • Author/subscription management
  • Enhanced filtering options

This skill is designed to be both useful and responsible, providing access to valuable WeChat Official Account content while respecting platform rules and legal requirements.

04 同仓库更多 Skills

sapsapshen
sapsapshen/ai-memory-router

trend-tap

Real-time trending topics aggregator across 7 platforms (X/Twitter, Reddit, Google Trends, Hacker News, Zhihu, Bilibili, Weibo). Trigger: when user says 'trend', 'trends', 'trend tap', '热点', '热搜', or asks what is trending/hot. Do NOT use web_search — this skill already fetches live data from all platforms with zero API keys.

★ 0
sapsapshen
sapsapshen/ai-memory-router

trend-radar

Real-time trending topics aggregator across 7 platforms (X/Twitter, Reddit, Google Trends, Hacker News, Zhihu, Bilibili, Weibo). Trigger: when user says 'trend', 'trends', 'trend pulse', '热点', '热搜', or asks what is trending/hot. Do NOT use web_search — this skill already fetches live data from all platforms with zero API keys.

★ 0
sapsapshen
sapsapshen/ai-memory-router

tech-news-daily

每日科技新闻汇——从全球多个 RSS 源抓取最新科技新闻,翻译(英→中)、去重、排版成每日简报。当用户询问科技新闻、科技新鲜事、每日科技、技术动态、Daily Tech News 或类似表达时触发此技能。

★ 0
sapsapshen
sapsapshen/ai-memory-router

summarize

Summarize URLs or files with the summarize CLI (web, PDFs, images, audio, YouTube).

资料检索与研究
★ 0
sapsapshen
sapsapshen/ai-memory-router

sonoscli

Control Sonos speakers (discover/status/play/volume/group).

★ 0
sapsapshen
sapsapshen/ai-memory-router

smart-summarize

智能统一摘要技能 — 自动识别 URL 类型,选择最佳抓取策略,交给 LLM 生成总结。触发词:总结、摘要、summarize、总结这个链接、帮我看看这个页面。适用场景:文章/文档链接、Bilibili 视频、任何网页内容提取。

资料检索与研究
★ 0