← 返回 Skills 市场
gevtolev

WeChat to Notion

作者 Dongyu Li · GitHub ↗ · v1.2.5 · MIT-0
cross-platform ✓ 安全检测通过
314
总下载
0
收藏
0
当前安装
6
版本数
在 OpenClaw 中安装
/install wechat-to-notion
功能描述
Save WeChat public account articles to a Notion database. Use when user sends a mp.weixin.qq.com link and wants to save/archive it to Notion. Fetches title,...
使用说明 (SKILL.md)

wechat-to-notion

Save a WeChat article to Notion in three steps: fetch → analyze → save.

Configuration Check (Do This First)

Check if the Notion API key is configured:

echo ${NOTION_API_KEY:0:8}...

If missing, tell the user:

You haven't configured a Notion API key yet:

  1. Go to https://notion.so/my-integrations+ New integration → copy the key (starts with ntn_)
  2. Open your Notion database → ...Connect to → select your integration
  3. Set the key in your OpenClaw config — do not paste it into chat:
    openclaw config set skills.entries.wechat-to-notion.NOTION_API_KEY "ntn_xxx"
    
    OpenClaw will inject it as NOTION_API_KEY automatically.

⚠️ Never ask the user to send the API key as a chat message — it will be exposed in conversation logs.

Setup (One-time)

Ask if the user has an existing Notion database. If yes, use it directly. If no, ask for a parent page URL and create one:

curl -s -X POST https://api.notion.com/v1/databases \
  -H "Authorization: Bearer $NOTION_API_KEY" \
  -H "Notion-Version: 2025-09-03" \
  -H "Content-Type: application/json" \
  -d '{
    "parent": {"type": "page_id", "page_id": "\x3Cparent_page_id>"},
    "title": [{"type": "text", "text": {"content": "WeChat Articles"}}],
    "properties": {
      "Title": {"title": {}},
      "URL": {"url": {}},
      "Read Time": {"date": {}},
      "Rating": {"select": {"options": [
        {"name": "⭐", "color": "gray"},
        {"name": "⭐⭐", "color": "gray"},
        {"name": "⭐⭐⭐", "color": "yellow"},
        {"name": "⭐⭐⭐⭐", "color": "orange"},
        {"name": "⭐⭐⭐⭐⭐", "color": "red"}
      ]}},
      "Tags": {"multi_select": {}},
      "Notes": {"rich_text": {}}
    }
  }'

Match field names to the user's language (e.g. Chinese users get Chinese field names).

Workflow

Step 1: Fetch article

python3 {skillDir}/scripts/fetch_wechat.py \x3Cwechat_url> > /tmp/wx_article.json

Step 2: Analyze (inline — reason directly, no subprocess)

Use the read tool to load /tmp/wx_article.json. Read the title and text content from blocks, then produce two outputs by reasoning directly:

Keywords (3–5):

  • Only extract core concepts: the specific technologies, products, or domain terms that define what this article is actually about
  • Omit generic/broad terms (e.g. "AI", "efficiency", "productivity", "tools", "development")
  • Comma-separated, preserve original casing

Rating (1–5 stars): Based on readability and value, give a star rating:

  • ⭐ (1): waste of time — clickbait, no substance, or unreadable
  • ⭐⭐ (2): below average — padded, shallow, or poorly organized
  • ⭐⭐⭐ (3): decent — has useful content but nothing exceptional
  • ⭐⭐⭐⭐ (4): good — well-written, actionable, worth bookmarking
  • ⭐⭐⭐⭐⭐ (5): excellent — insightful, well-structured, a must-read in its domain

3 stars and above automatically get a "Featured" tag.

Comment (1 sentence, written in the user's language): Evaluate the article's readability and value, not summarize its content. Focus on:

  • Is it well-structured and easy to follow, or rambling and padded?
  • Does it deliver actionable insight, or is it surface-level fluff?
  • Who would actually benefit from reading this?
  • Example: "Well-structured, flows from theory to hands-on smoothly — ideal for devs wanting to get started with MCP (refreshingly no filler)"
  • Example: "Clickbait title, buries the lead under three screens of preamble — the core point could fit in a single tweet"
  • Keep it under 35 words. Be direct — praise or criticize with specifics, no hedging.

Step 3: Save to Notion

python3 {skillDir}/scripts/save_to_notion.py \
  /tmp/wx_article.json \
  \x3Cnotion_db_url> \
  \x3Cwechat_url> \
  \x3Cread_time_iso8601+08:00> \
  "\x3Ckw1>,\x3Ckw2>,\x3Ckw3>" \
  "\x3Ccomment>" \
  \x3Crating>
  • read_time: current time in the user's local timezone as ISO 8601 with offset, e.g. 2026-03-12T14:00:00+08:00
  • keywords: comma-separated string
  • comment: the single-sentence comment from Step 2
  • rating: integer 1–5 (star rating); 3+ automatically adds "Featured" to tags

The script auto-detects field names from the database schema by type (title, url, date, select, multi_select), writes all content blocks in batches of 100, and posts the comment to the Notion Comments panel.

Notes

  • Cover image: extracted from og:image meta tag, inserted as the first block
  • Rich text (bold/italic), code blocks, and lists are preserved by fetch_wechat.py
  • Read time defaults to current system time with local UTC offset if omitted
  • The comment appears in the Notion Comments panel, not in the page body
  • Field names are language-agnostic — the script maps by type, not by name
安全使用建议
This skill appears to do exactly what it says: fetch WeChat article HTML (only mp.weixin.qq.com), parse it locally, and write blocks to a Notion database using your NOTION_API_KEY. Before installing, confirm: (1) only grant the Notion integration access to the specific database/page you want (do not give it workspace-wide access unless necessary), (2) keep your NOTION_API_KEY secret and do not paste it into chat (the SKILL.md correctly warns this), and (3) review the small scripts if you want to verify they meet your policies (they use curl subprocesses and post data only to Notion API and the WeChat URL). Note the README/comment mismatch around the config key name (skills.entries.wechat-to-notion.NOTION_API_KEY vs skills.entries.notion.apiKey); ensure you set the key where your OpenClaw installation expects it.
功能分析
Type: OpenClaw Skill Name: wechat-to-notion Version: 1.2.5 The skill bundle provides a legitimate utility for archiving WeChat articles to Notion. It includes security-conscious instructions in SKILL.md that explicitly warn the agent against asking for or exposing the Notion API key in chat logs. The implementation in fetch_wechat.py includes a URL whitelist (mp.weixin.qq.com) to prevent SSRF, and both scripts use subprocess.run with argument lists rather than shell strings, which mitigates shell injection risks. The behavior is consistent with the stated purpose and lacks any indicators of malicious intent or data exfiltration.
能力评估
Purpose & Capability
Name/description match the implementation: fetch_wechat.py only allows mp.weixin.qq.com, and save_to_notion.py only calls the Notion API. Declared requirements (python3, curl, NOTION_API_KEY) are appropriate and necessary.
Instruction Scope
SKILL.md steps (fetch → analyze → save) correspond to the scripts. The instructions only read the temporary article JSON and interact with mp.weixin.qq.com and api.notion.com; they do not request unrelated files, secrets, or external endpoints beyond image URLs and Notion.
Install Mechanism
No install spec — instruction-only with two small scripts. No downloads from arbitrary URLs or package installs are requested.
Credentials
Only a single credential (NOTION_API_KEY) is required and used to call Notion. Minor documentation inconsistency: SKILL.md and README show setting skills.entries.wechat-to-notion.NOTION_API_KEY, while save_to_notion.py comments mention skills.entries.notion.apiKey; this is a documentation naming mismatch but not a functional request for extra secrets.
Persistence & Privilege
always:false (default) and normal autonomous invocation. The skill does not request permanent system-wide privileges or modify other skills' configs.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install wechat-to-notion
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /wechat-to-notion 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.2.5
- Added a Chinese-language documentation file: README.zh-CN.md - Updated SKILL.md: changed the "精选" tag to "Featured" for articles rated 3 stars and above, and revised example comments to English for multilingual clarity. - No code changes; documentation only.
v1.2.4
- Github: https://github.com/Gevtolev/wechat-to-notion.git - Added a detailed README.md file to the project. - Updated skill metadata to require both "python3" and "curl" in addition to the NOTION_API_KEY. - Database schema now includes a "Rating" (1–5 stars) select field for quality assessment. - Inline analysis now produces a star rating and a critical, value-oriented comment, not a summary quote. - Articles rated 3 stars or higher automatically receive the "精选" tag. - Improved instructions for API key configuration and field matching for international users.
v1.2.3
- Security update: The setup instructions now explicitly prohibit sharing the Notion API key in chat; users are directed to use the OpenClaw config command instead. - Updated instructions: Clarified API key setup to improve user safety and privacy, reflecting correct environment configuration steps. - The required time zone for read_time now matches the user's local system offset rather than defaulting to Asia/Shanghai. - Minor clarifications in workflow and notes for improved accuracy and usability.
v1.2.2
weChat-to-notion 1.2.2 is a streamlined update that clarifies the workflow and usage. - Simplified the workflow to clearly define three main steps: fetch → analyze → save. - Replaced previous shell/REST workflow with a single save_to_notion.py script that handles Notion field mapping, content upload, and comments. - Updated analysis step: clearer instructions for extracting precise keywords and writing a succinct, editorialized summary comment. - Emphasized field mapping by type, not by field name, ensuring language-agnostic operation. - Improved documentation for configuration and one-time setup with Notion API key and database. - No functional code or file changes in this version (documentation only).
v1.2.1
- Now handles the entire WeChat-to-Notion workflow directly; no helper scripts or manual steps needed. - Notion API key now expected in the NOTION_API_KEY environment variable (shared with other skills). - Database field mapping and schema detection are done automatically based on field type and user's language. - Content analysis (keywords and comment) is done inline, with stricter rules about keywords and comment length. - Article content, cover image, and page comment are posted to Notion using batch API calls and the latest API version. - Improved documentation for setup and troubleshooting.
v1.0.0
Initial release: save WeChat articles to Notion with auto keyword extraction and witty comments
元数据
Slug wechat-to-notion
版本 1.2.5
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 6
常见问题

WeChat to Notion 是什么?

Save WeChat public account articles to a Notion database. Use when user sends a mp.weixin.qq.com link and wants to save/archive it to Notion. Fetches title,... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 314 次。

如何安装 WeChat to Notion?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install wechat-to-notion」即可一键安装,无需额外配置。

WeChat to Notion 是免费的吗?

是的,WeChat to Notion 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

WeChat to Notion 支持哪些平台?

WeChat to Notion 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 WeChat to Notion?

由 Dongyu Li(@gevtolev)开发并维护,当前版本 v1.2.5。

💬 留言讨论