Wjs Syndicating Articles logo

Wjs Syndicating Articles

Community
jianshuo
wjs-syndicating-articles

Use when the user wants to auto-syndicate their latest 微信公众号 article across social platforms — picks the newest un-syndicated article, extracts one core copy, auto-posts to API platforms (X / Bluesky / Threads / LinkedIn) and prepares a copy-paste outbox for manual platforms (Facebook / 小红书 / 即刻 / 知乎). Triggers — "分发文章到各平台", "同步到社交平台", "今天的文章发各平台", "/wjs-syndicating-articles".

Overview

Publisherjianshuo
Repositoryclaude-skills
Skill namewjs-syndicating-articles
Stars
137
Forks
22
Bundled files
22
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 22 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by jianshuo on GitHub. Read the source before you install it.

Installation

Install the Wjs Syndicating Articles AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/jianshuo/claude-skills/tree/main/wjs-syndicating-articles
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jianshuo/claude-skills.git /tmp/claude-skills
mkdir -p .claude/skills
cp -r /tmp/claude-skills/wjs-syndicating-articles .claude/skills/wjs-syndicating-articles
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Wjs Syndicating Articles in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Wjs Syndicating Articles on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Wjs Syndicating Articles is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

wjs-syndicating-articles

每天把最新一篇还没分发过的公众号文章,扇出(syndicate)到各社交平台。一套文案走天下,有 API 的真发,没 API 的备好待发件箱让你手动粘。

Core Principles

  • 稳定第一:每个平台是独立步骤,一个失败绝不影响其它。
  • 幂等去重:state/history.jsonl 按 (slug, platform) 记录;重复跑只补发没成功的,永不重复发。
  • 凭证降级:API 平台缺/过期凭证 → 自动转 outbox(手动),不报错。
  • 署名 / CTA 用「王建硕」(用户全局偏好),不写营销腔、不堆 hashtag/@/emoji(除非原文有)。

Inputs

/wjs-syndicating-articles                 # 选最新未分发文章,走完整流程(默认/定时用)
/wjs-syndicating-articles <article-folder># 显式指定文章
/wjs-syndicating-articles --open          # 交互模式:打开手动平台 web 页 + 文案进剪贴板
/wjs-syndicating-articles --dry-run       # 只草拟,不发、不写 history
/wjs-syndicating-articles --mark <slug> <platform>  # 手动标记某平台已发

SKILL_DIR = ~/.claude/skills/wjs-syndicating-articles

Workflow (default / scheduled run)

Step 0: --mark short-circuit

若调用是 --mark <slug> <platform>:bash $SKILL_DIR/scripts/history.sh record <slug> <platform> posted 然后告诉用户已标记,结束。

Step 1: 选文章

bash
bash $SKILL_DIR/scripts/pick-next-article.sh
  • 显式指定了 <article-folder> 则跳过此脚本,直接用它。
  • 输出为空 → 最近文章都分发完了,今天 rest day,结束。
  • 记 FOLDER,SLUG=$(basename "$FOLDER")。

Step 2: 抽一套核心文案(你来做,不是脚本)

读 $FOLDER/article.md 和 $FOLDER/meta.json。抽出一段最 quotable 的核心句/小段,≤120 字(保证塞进 X 的 280 字符;中文每字算 2),保留王建硕语气。再加一行软 CTA + 文章链接(公众号链接,没有就用 meta.json 里信息+ article_url_base)。

把最终文案写进 $SKILL_DIR/outbox/<date>-<SLUG>/post.txt(先 mkdir -p)。<date>=$(date +%F)。

--dry-run 时:打印 post.txt 内容 + 下面每个平台「将发什么」,不继续 Step 3+,结束。

Step 3: 扇出(一个确定性脚本搞定,LLM 不碰 key)

bash
bash $SKILL_DIR/scripts/syndicate.sh "$FOLDER" "$POST_TXT"

syndicate.sh 内部:slug 一律取 basename "$FOLDER";API 平台(X/Bluesky/Threads/LinkedIn)逐个 try/catch 真发,X 会先查 tweeting skill 的 history 防双发,缺凭证的自动降级记 queued;手动平台(Facebook/小红书/即刻/知乎)调 build-outbox.sh 备好 outbox/<slug>/ 并记 queued。不要自己手写平台循环或拼 slug —— 全交给脚本,避免 key 漂移。--dry-run 时改跑 syndicate.sh "$FOLDER" "$POST_TXT" --dry-run(不发、不写 history)。脚本 stdout 的每行 <platform>: ... 和末尾 outbox=... 就是 Step 5 汇总的数据来源。

Step 5: 通知 + 汇总

打印一张表:每个平台 status(posted+URL / queued(outbox) / failed / skipped)。 无人值守(定时)跑:发一条 PushNotification,例:「✅ X、Bluesky 已发;📋 Facebook/小红书/即刻/知乎 在 outbox 待粘:$OUTBOX」。 不要在 Step 5 自动开浏览器——那是 --open 的事。

--open mode(交互,发手动平台时)

  1. 找到今天的 outbox:$SKILL_DIR/outbox/$(date +%F)-<SLUG>(或最新一个)。
  2. cat OUTBOX/post.txt | pbcopy(文案进剪贴板)。
  3. 用 /browse skill 打开 config 里 facebook、jike、zhihu 的 web_compose。
  4. 小红书:open "$OUTBOX/image.png"(Finder 弹出),提示用户 AirDrop 到手机、文案已在剪贴板。
  5. 逐个提示:粘贴 → 发布。用户发完某个可 --mark <slug> <platform>。

File Layout

$SKILL_DIR/
├── SKILL.md  config.json  secrets.json(gitignored)
├── scripts/  lib.sh history.sh pick-next-article.sh post-*.sh build-outbox.sh
├── outbox/<date>-<slug>/  post.txt image.png OPEN.md
└── state/history.jsonl

配置 API 平台(可选,配了才真发)

拷 secrets.json.example → secrets.json,按需填 bluesky / threads / linkedin。不填的平台自动走 outbox。

Daily 自动化

/schedule daily 10:00 /wjs-syndicating-articles

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Wjs Syndicating Articles AI skill do?

Use when the user wants to auto-syndicate their latest 微信公众号 article across social platforms — picks the newest un-syndicated article, extracts one core copy, auto-posts to API platforms (X / Bluesky / Threads / LinkedIn) and prepares a copy-paste outbox for manual platforms (Facebook / 小红书 / 即刻 / 知乎). Triggers — "分发文章到各平台", "同步到社交平台", "今天的文章发各平台", "/wjs-syndicating-articles".

Why use Wjs Syndicating Articles on TypingMind?

Because you install it once and use it with any model. Wjs Syndicating Articles is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Wjs Syndicating Articles in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/jianshuo/claude-skills/tree/main/wjs-syndicating-articles. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Wjs Syndicating Articles?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Wjs Syndicating Articles?

As many as you like. As long as a model supports skills, you can use Wjs Syndicating Articles with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Wjs Syndicating Articles AI skill free?

Yes. It is published on GitHub by jianshuo under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇