AW

adennng/wechat-query-skill

Deployment & DevOps

This page was translated automatically. Technical details may differ from the original. View the original

78 stars Quality 41 Trend 14NOASSERTION

A skill for subscription, querying, and push notifications for WeChat official accounts targeting OpenClaw. A set of reusable automated processes integrating deployment, login, subscription, article retrieval, query, push, and inspection.

Overview

wechat-query-skill is a WeChat official account subscription, query, and push skill for OpenClaw. It has a built-in wechat-download-api service and operates locally, relying on the WeChat official account backend login mode to pull article data and cache articles in SQLite for subsequent LLM queries, organization, analysis, and pushing. The focus of this project is not just "capturing official account articles," but integrating deployment, login, subscription, warehousing, querying, pushing, inspection, and re-login into a reusable automated process. - Have a WeChat official account, both subscription and service accounts are acceptable - Docker is installed in the local environment - When using it for the first time or when login fails, users need to use ** to scan the code to log in 1. Deploy the service for the first time and complete the first login 2. Users proactively request to log in again, or inspection finds login invalid 3. Add, view, or cancel official account subscriptions 4. Query cached articles of subscribed official accounts 5. Users send direct links to official account articles, requiring full text or analysis 6. Summarize and push new articles from the past 24 hours daily at 18:00 7. Check service status and login status daily at 09:00 - Subscription and inbound link: Search for official account -> Add subscription -> Immediately complete a polling -> Backend RSS Poller automatically pulls and writes to SQLite every hour - Query link: prioritizes querying cached databases; When the database is empty, call the interface as needed to fetch it - Inspection task: Only checks service and login status, sending messages regardless of the result - Push task: Compiling the most recent 24-hour articles based on the cache, including the current login status - Built-in wechat-download-api service source code - Unified launch via Docker Compose - All major scenarios undergo unified precheck - Precheck default check: - GET /api/health - GET /api/admin/status - Supports first-time login - Supports active login - Login validity period is about 4 days per experience point - Vouchers are automatically saved after successful login - First login and relogin are unified using server-hosted QR code links: - POST /api/login/relogin/start - GET /api/login/relogin/{request_id}/qrcode - GET /api/login/relogin/{request_id}/status

Overview (machine translated)

wechat-query-skill is a WeChat public account subscription, query, and push notification skill for OpenClaw.
It has a built-in wechat-download-api service and operates locally, relying on the WeChat official account backend login mode to pull article data and cache articles in SQLite for subsequent LLM queries, organization, analysis, and pushes.

The focus of this project is not just “capturing official account articles,” but integrating deployment, login, subscription, warehousing, querying, pushing, inspection, and re-login into a reusable automated process.

Prerequisites for use

  • Have a WeChat public account, either subscription or service accounts
  • Docker is installed in the local environment
  • When the user first uses or login expires, they need to scan the code to log in using the Official Account Administrator WeChat

Applicable Scenarios

  1. Deploy the service for the first time and complete the first login
  2. The user voluntarily requests to log in again, or the patrol finds login invalid
  3. Add, view, and unsubscribe from official accounts
  4. Check the cached articles of the subscribed official account
  5. Users directly send the official account article link and need to read the full text or analyze the content
  6. Summarize and push new articles from the last 24 hours daily at 18:00
  7. Daily 09:00 inspection service status and login status

Overall Logic Diagram

This diagram corresponds to two main links:

  • Subscription and inbound link: Search for official account -> Add subscription -> Immediately complete a polling -> Backend RSS Poller automatically pulls and writes to SQLite every hour
  • Query link: prioritize querying cached databases; If the database is empty, call the interface as needed to fetch it

The two most critical tables at the moment:

  • subscriptions
  • articles

Timed Task Chart

These two tasks have different responsibilities:

  • Inspection task: Only checks service and login status; messages must be sent regardless of the outcome
  • Push task: Organize articles from the last 24 hours based on the cache, including the current login status

Core Competencies

1. Service deployment and unified pre-inspection

  • Built-in wechat-download-api service source code
  • Unified launch via Docker Compose
  • All major scenarios undergo a unified pre-check
  • Pre-check default check:
  • GET /api/health
  • GET /api/admin/status

2. Login and relog

  • Supports first-time login
  • Supports active re-login
  • Login validity period is about 4 days based on experience points
  • Automatically saves credentials after successful login
  • First-time login and re-login unified server-hosted QR code links:
  • POST /api/login/relogin/start
  • GET /api/login/relogin/{request_id}/qrcode
  • GET /api/login/relogin/{request_id}/status

3. Subscribe to official accounts and add articles to the database

  • Search for official accounts
  • Add subscriptions
  • View the subscription list
  • Unsubscribe
  • After a successful subscription, a manual polling can be triggered immediately

This page was translated automatically. Technical details may differ from the original.

Recommended Tools

Try a different keyword or remove a filter.

Install

npx skillfish add adennng/wechat-query-skill
New to MCP? Start with the mcpskill.org guide →