Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计提醒

notion-to-weixinNotion TO weixin 搜索

Agent Skill

用于处理 Notion 页面、数据库、工作区内容和结构化记录。它适合让 Agent 查询知识库、整理页面内容、创建记录或把外部信息同步到 Notion。使用时需要确认集成是否已被授权到目标页面或数据库,并区分读取、追加和覆盖更新;涉及批量写入或修改数据库属性时,应先核对字段名称、属性类型和目标页面。

总安装

208

周安装

25

GitHub Stars

公开资料未说明

下载量

487
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:notion-to-weixin(Notion TO weixin 搜索)
来源仓库:https://github.com/inforix/skills
仓库路径:skills/notion-to-weixin
安装命令:
npx skills add https://github.com/inforix/skills --skill notion-to-weixin
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/inforix/skills --skill notion-to-weixin

简介

用于处理 Notion 页面、数据库、工作区内容和结构化记录。

  • 适合让 Agent 查询知识库、整理页面内容、创建记录或把外部信息同步到 Notion。
  • 使用时需要确认集成是否已被授权到目标页面或数据库,并区分读取、追加和覆盖更新。
  • 安装命令:npx skills add https://github.com/inforix/skills --skill notion-to-weixin。
  • 涉及批量写入或修改数据库属性时,应先核对字段名称、属性类型和目标页面。

SKILL.md

Notion to Weixin

Config (Optional)

Set a default author in ~/.agents/config.yaml:

notion_to_weixin:
  author: "Alice Wang"

You can also set a global default:

author: "Alice Wang"

Workflow (Sequential)

  1. Resolve Notion page ID from the given title.
  2. Export the page to Markdown.
  3. Ensure author exists in Markdown front matter (and inject a byline if needed).
  4. Process images (upload to Weixin and replace URLs in Markdown).
  5. Prepare thumb_media_id:

- If the Notion page has a cover, upload it as a Weixin thumb material and use that ID. - If no cover, use the last image material ID.

  1. Generate digest with AI summarization (if user did not provide one).
  2. Create a new Weixin draft using Markdown input (--format markdown) and always pass --css-path.

Inputs (Ask the user if missing)

  • notion_title: exact Notion page title to publish.
  • author: optional author name (used for Markdown front matter and node-wxcli --author). If missing, read from ~/.agents/config.yaml.
  • css_path: required when using --format markdown; if missing, default to assets/default.css.
  • thumb_media_id: only required if cover and image fallback both fail.
  • digest: optional user-provided summary; if missing, generate via AI from the final Markdown.

Prerequisites

  • notion-cli installed and authenticated (NOTION_TOKEN or notion auth set).
  • node-wxcli installed and authenticated (node-wxcli auth set or node-wxcli auth login).
  • curl and jq available.

Step 1: Resolve Page ID by Title

  1. Copy references/notion-search.json to a temp file and replace __TITLE__.
  2. Run notion search --body @query.json.
  3. Choose the exact-title match. If multiple matches remain, pick the most recently edited or ask the user to confirm.
  4. If no match is found, ask for a Notion page ID or URL and extract the ID.

Step 2: Export Page to Markdown

  • Use notion pages export <page_id> --assets=download -o <workdir>/page.md when the page contains images.
  • Use a workdir like /tmp/notion-to-weixin/<slug-or-timestamp>.

Step 3: Default Author Handling

  • If author is not provided, read it from ~/.agents/config.yaml.
  • Ensure author exists in Markdown front matter (and add a byline if you want it visible in content).

Step 4: Process Images (Recommended)

If the Notion page contains images, upload them to Weixin and replace Markdown image URLs so they remain valid for draft rendering.

  1. Find image links in <workdir>/page.md. Notion exports local images under the assets folder.
  2. For each local image file, upload it and capture the url:
node-wxcli material upload --type image --file <workdir>/assets/<image-file> --json | jq -r '.url'
  1. Replace the Markdown image URL with the returned url:
![alt](<weixin-url>)

If you skip this step, images that reference local files or expiring Notion URLs may not render in Weixin.

Step 5: Prepare thumb_media_id

5.1 If Notion page has a cover

  1. Fetch page metadata (use notion-cli):
notion pages get <page_id> > <workdir>/page.json
  1. Extract cover type + cover URL:
cover_type=$(jq -r '.cover.type // ""' <workdir>/page.json)
cover_url=$(jq -r '.cover | if .==null then "" elif .type=="external" then .external.url else .file.url end' <workdir>/page.json)
  1. If cover type is file, download via notion-cli; if external, use curl:
if [ "$cover_type" = "file" ]; then
  jq -c '.cover' <workdir>/page.json | notion files read --body @- --output <workdir>/cover.jpg
else
  curl -L "$cover_url" -o <workdir>/cover.jpg
fi
thumb_media_id=$(node-wxcli material upload --type thumb --file <workdir>/cover.jpg --json | jq -r '.media_id')

Note: Notion file URLs expire quickly. If download fails, re-fetch page metadata and retry.

5.2 If no cover exists

  1. Get image material count:
image_count=$(node-wxcli material count --json | jq -r '.image_count')
  1. If image_count > 0, fetch the last image and use its media_id:
offset=$((image_count - 1))
thumb_media_id=$(node-wxcli material list --type image --offset "$offset" --count 1 --json | jq -r '.item[0].media_id')
  1. If no images exist, ask the user to provide a thumb_media_id or upload a thumb manually.

Step 6: Build digest with AI summarization

If digest is not provided, summarize the final Markdown content with AI and generate a concise Chinese digest:

  • 1-2 sentences
  • Prefer 60-120 Chinese characters
  • Plain text only (no Markdown / emoji / line breaks)
  • Focus on the article purpose and key outcomes

Step 7: Create Weixin Draft (Markdown input)

When using Markdown format, always pass --css-path. If css_path is missing, set:

css_path=${css_path:-assets/default.css}
node-wxcli draft add \
  --title "<notion_title>" \
  --author "<author>" \
  --digest "<digest>" \
  --format markdown \
  --content - \
  --css-path <css_path> \
  --need-open-comment=1 \
  --only-fans-can-comment=0 \
  --thumb-media-id "$thumb_media_id" < <workdir>/page.md
  • If you need machine-readable output, add --json and capture the returned media_id.

Resources

  • references/notion-search.json: JSON template for Notion title search.
  • references/cli-commands.md: Canonical CLI command examples for notion-cli and node-wxcli.
  • assets/default.css: Default CSS theme for --format markdown (--css-path).

Notes:

  • Use --page-id if the title search is ambiguous.
  • Use --thumb-media-id only if cover and image fallback are unavailable.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.72%
按下载量换算164

Claude

32.7%
按下载量换算159

Cursor

17.94%
按下载量换算87

Gemini CLI

9.61%
按下载量换算47

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/inforix/skills --skill notion-to-weixin 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills