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

obsidian-to-weixinObsidian TO weixin 搜索

Agent Skill

obsidian-to-weixin 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

303

周安装

13

GitHub Stars

公开资料未说明

下载量

106
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 支持基于关键词、任务场景或来源线索进行信息检索与筛选。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装使用。
  • 安装前需确认权限范围、维护状态及是否涉及联网或文件操作。
  • obsidian-to-weixin 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Obsidian to Weixin

Config (Optional)

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

obsidian_to_weixin:
  author: "Alice Wang"

You can also set a global default:

author: "Alice Wang"

Workflow (Sequential)

  1. Resolve vault path and note path/title using obsidian-cli.
  2. Read note file as Markdown (no Notion export/conversion).
  3. Ensure author exists in front matter (and add visible byline if needed).
  4. Upload note images to Weixin (material image) and replace Markdown image URLs.
  5. Prepare thumb_media_id:

- Use the first image in note order as Weixin cover (material thumb). - If note has no image, fallback to the latest Weixin image material ID.

  1. Generate digest with AI summarization (if user did not provide one).
  2. Create Weixin draft from Markdown stdin via node-wxcli draft add --format markdown --css-path....

Inputs (Ask if missing)

  • note_path: Obsidian note path from vault root (recommended), e.g. Projects/Weekly Update.md.
  • note_title: title/name to search when note_path is missing.
  • author: optional, fallback from ~/.agents/config.yaml.
  • css_path: required when using --format markdown; if missing, default to assets/default.css.
  • thumb_media_id: only needed if first-image + fallback both fail.
  • digest: optional user-provided summary; if missing, generate via AI from the final Markdown.

Prerequisites

  • obsidian-cli installed and default vault configured.
  • node-wxcli installed and authenticated.
  • curl + jq available.

Step 1: Resolve note from Obsidian

Get default vault path:

vault_path=$(obsidian-cli print-default --path-only)

If note_path is provided, use it directly.

If only note_title is provided, search candidates and confirm exact note:

obsidian-cli search "<note_title>"
obsidian-cli search-content "<note_title>"

Then resolve final path (from search result / user confirmation), and read file:

cat "$vault_path/<note_path>" > <workdir>/note.md

Step 2: Keep Markdown as source

Obsidian notes are already Markdown. Do not run any Notion export or Notion-to-Markdown conversion.

Step 3: Author handling

  • If author is missing, read from ~/.agents/config.yaml.
  • Ensure front matter contains author if your workflow requires it.

Step 4: Process images and replace URLs

Supported image references:

  • Markdown image: ![alt](path-or-url)
  • Obsidian embed: ![[image.png]]

Process in note order:

  1. Parse image references from <workdir>/note.md.
  2. Resolve each image file:

- local relative paths -> absolute file path (based on note dir/vault) - remote URL -> download to temp file

  1. Upload to Weixin image material:
node-wxcli material upload --type image --file <image-file> --json | jq -r '.url'
  1. Replace original image target with returned Weixin URL.
  2. Rewrite ![[...]] to standard markdown image form:
![image](<weixin-url>)

Step 5: Prepare thumb_media_id

5.1 Primary: first image in note as cover

Take the first image reference (top-to-bottom), resolve file/download if needed, then upload as thumb:

thumb_media_id=$(node-wxcli material upload --type thumb --file <first-image-file> --json | jq -r '.media_id')

5.2 Fallback: latest Weixin image material

If note has no image:

image_count=$(node-wxcli material count --json | jq -r '.image_count')
offset=$((image_count - 1))
thumb_media_id=$(node-wxcli material list --type image --offset "$offset" --count 1 --json | jq -r '.item[0].media_id')

If no image materials exist, ask user to provide/upload cover and pass --thumb-media-id.

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 draft from Markdown stdin

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 "<note_title_or_custom_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>/note.md

Resources

  • references/cli-commands.md: canonical command snippets (obsidian-cli + node-wxcli).
  • assets/default.css: default CSS for --format markdown (--css-path).

Notes

  • Prefer note_path over note_title.
  • Only use manual --thumb-media-id when first-image and fallback both fail.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.66%
按下载量换算38

Claude

29.16%
按下载量换算31

Cursor

20.05%
按下载量换算21

Gemini CLI

9.99%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills