Agent skill

Wjs Tweeting From Articles

by jianshuo in jianshuo/claude-skills

A skill your agent uses when the user wants to post a daily X/Twitter tweet inspired by one of their recently-published 微信公众号 articles.

MITAuto-check passedWriting & Content

Install Wjs Tweeting From Articles

skills CLI
$ npx skills add jianshuo/claude-skills --skill wjs-tweeting-from-articles -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jianshuo/claude-skills wjs-tweeting-from-articles --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jianshuo/claude-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/wjs-tweeting-from-articles .claude/skills/wjs-tweeting-from-articles && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
wjs-tweeting-from-articles
GitHub stars
131
Token cost
~1.3k tokens
SKILL.md length
257 words
Files
10 (incl. scripts)
Skills in repo
38
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when the user wants to post a daily X/Twitter tweet inspired by one of their recently-published 微信公众号 articles.

  • Works in 6 steps: 挑今天要推的文章 → 读文章 + 草拟 3 条 tweet 候选 → 让用户挑一条 → …
  • The user wants to post a daily X/Twitter tweet inspired by one of their recently-published 微信公众号 articles
  • SKILL.md covers Core Principle, When This Skill Fires, When NOT to use and Workflow, plus 6 more sections
  • Runs Shell and Python scripts from its folder; calls jq and bash; reaches x.com

What it does

Wjs Tweeting From Articles is an agent skill from jianshuo/claude-skills. Use when the user wants to post a daily X/Twitter tweet inspired by one of their recently-published 微信公众号 articles. Picks the newest article that hasn't been tweeted yet, drafts 3 tweet candidates from it (different angles — quote / metaphor / one-liner), posts the chosen one via xurl, records to history. Triggers — "每天发一个 tweet", "从文章里发推", "今天的 tweet", "/wjs-tweeting-from-articles".

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 11 other files, including scripts (for example `daily.sh`, `scripts/mirror-articles.py` and `scripts/pick-next-article.sh`).

It sits in Writing & Content, covering Social media posts. It works with X (Twitter). The repository describes itself as: 13 Claude Code skills for video production (transcribe / translate / dub / multicam / subtitles / reframe) + WeChat publishing. Compatible with Claude Code, OpenAI Codex CLI… The licence is MIT.

When your agent uses it

  • The user wants to post a daily X/Twitter tweet inspired by one of their recently-published 微信公众号 articles
  • /wjs-tweeting-from-articles

Example prompts

  • “每天发一个 tweet”
  • “从文章里发推”
  • “今天的 tweet”
  • “/wjs-tweeting-from-articles”

Requirements

  • Python 3
  • A Bash shell

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. 挑今天要推的文章
  2. 读文章 + 草拟 3 条 tweet 候选
  3. 让用户挑一条
  4. 真发 X
  5. 记录到 history
  6. 收尾

What it can do on your machine

Read from SKILL.md and the folder at commit b2690f5. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 3 files in scripts/ (Shell and Python), which the agent can run.

    Shell commands in SKILL.md call:

    • jq
    • bash

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • x.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Wjs Tweeting From Articles loads about 1.3k tokens when it runs. Until then it costs about 103 tokens; SKILL.md has 257 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~103
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from jianshuo/claude-skills at commit b2690f5, republished under its MIT licence (© jianshuo). 257 words, ~1,318 tokens.

Download SKILL.mdSave it as .claude/skills/wjs-tweeting-from-articles/SKILL.md (or your agent's skills folder). This skill also uses 9 other files; get the full folder from GitHub.
name
wjs-tweeting-from-articles
description
Use when the user wants to post a daily X/Twitter tweet inspired by one of their recently-published 微信公众号 articles. Picks the newest article that hasn't been tweeted yet, drafts 3 tweet candidates from it (different angles — quote / metaphor / one-liner), posts the chosen one via xurl, records to history. Triggers — "每天发一个 tweet", "从文章里发推", "今天的 tweet", "/wjs-tweeting-from-articles".

wjs-tweeting-from-articles

每天一条 X tweet,灵感直接从最近发的公众号文章里抠。文章是源头,tweet 是更短的萃取。

Core Principle

文章已经过了一轮王建硕式的精炼,tweet 只是再短一格的版本。 不要重新构思——从 article.md 里直接抠最 quotable 的一句 / 一段,按 X 的节奏切。

一天最多一条,一篇文章只推一次。 状态文件 state/history.jsonl 记录哪些 article 已经推过;不重复。(例外:批量排期模式——一次把多篇排进队列、按每 N 小时一条自动发,见下文。)

真发,不暂存。 用户确认后立刻 xurl POST。失败原文 dump 给用户重试。

When This Skill Fires

  • 用户说「今天的 tweet」/「发一条 X」/「从文章里发推」
  • 用户跑 /wjs-tweeting-from-articles
  • 用户设了 /schedule daily /wjs-tweeting-from-articles 之后每天自动调

When NOT to use

  • 用户要发的内容和最近的公众号文章无关——直接 xurl POST /2/tweets 即可
  • 用户要发的是产品 / skill 推广——用 /publish-skill 或 /wjs-promoting-skills

Workflow

Step 1: 挑今天要推的文章
bash
scripts/pick-next-article.sh

输出最新一篇还没推过的文章的 folder 路径(最近一周内,按日期倒序找第一个未推的)。已经全推完 → 退出 0、空输出,告诉用户「最近 7 天的文章都推过了,今天 rest day」。

如果用户想推特定那一篇:跳过此脚本,直接用 <folder>。

Step 2: 读文章 + 草拟 3 条 tweet 候选

读 <folder>/article.md,按下面三个角度各起草一条:

角度选材例子
A · 金句从文中挑一句最 quotable 的,可以加一句铺垫"笔头钝了,写不出锋——蘸点墨,在砚台上转两圈,重新有了尖。"
B · 比喻文章的核心比喻 + 一句把比喻落到读者头上"写 prompt 跟画画一样,是手感活儿。每天都得写点。"
C · 反差「不是 X,是 Y」式的认知翻转"不是变聪明,是手感来了。"

长度硬约束:tweet ≤ 280 字符(X 限制;中文每字算 2)——所以中文 tweet 实际 ≤ 140 字。留 buffer 到 120 字以内比较稳。

风格:保留王建硕语气——平实、家常比喻、不写营销腔。不要加 hashtags、不要加 @、不要加 emoji(除非原文有)。不要加 mp.weixin 链接(默认);如果用户问要不要带链接,提示可以 reply 里附。

Step 3: 让用户挑一条

用 AskUserQuestion 给出 A/B/C 三条候选 + 「四选其他」。用户选一条之后进入 Step 4。

Step 4: 真发 X
bash
TWEET_TEXT='<picked text>'
JSON=$(jq -nc --arg text "$TWEET_TEXT" '{text:$text}')
resp=$(xurl -X POST -d "$JSON" /2/tweets)
# Don't use `jq -r '.data.id'` here — X API returns raw newlines in the echoed
# `text` field, which strict jq rejects with "control characters must be escaped".
# Grep the id directly instead.
TWEET_ID=$(printf '%s' "$resp" | grep -oE '"id":"[0-9]+"' | head -1 | sed -E 's/.*"([0-9]+)".*/\1/')
[[ -n "$TWEET_ID" ]] || { echo "POST failed: $resp"; exit 1; }
echo "https://x.com/jianshuo/status/$TWEET_ID"

成功 → 拿到 tweet_id + URL,告诉用户。

Step 5: 记录到 history
bash
HIST="$HOME/.claude/skills/wjs-tweeting-from-articles/state/history.jsonl"
SLUG=$(basename "$FOLDER")
jq -nc --arg date "$(date +%F)" --arg slug "$SLUG" --arg angle "$ANGLE" \
       --arg tweet_id "$TWEET_ID" --arg text "$TWEET_TEXT" \
       '{date:$date,slug:$slug,angle:$angle,tweet_id:$tweet_id,text:$text,status:"posted"}' \
  >> "$HIST"

angle ∈ A / B / C / other。

Step 6: 收尾

告诉用户:

  • tweet URL
  • 哪篇文章(slug)
  • 哪个 angle
  • 今天的 history 行已经写入

Inputs

/wjs-tweeting-from-articles                       # 自动挑最近一篇没推过的
/wjs-tweeting-from-articles <article-folder>      # 显式指定
/wjs-tweeting-from-articles --dry-run             # 草稿不发

File Layout

~/.claude/skills/wjs-tweeting-from-articles/
├── SKILL.md
├── scripts/
│   ├── pick-next-article.sh        # 找最近一篇未推的 article folder
│   └── post-next-from-queue.sh     # 批量排期模式:每次发队列里下一条,自节流
└── state/
    ├── .gitignore              # 屏蔽 history.jsonl 不被推到 public repo
    ├── history.jsonl           # 每条 tweet 一行 JSON record
    ├── queue-<DATE>.tsv        # 批量模式:待发队列 idx/slug/text
    ├── queue-cursor            # 批量模式:下一条序号
    └── last-post-epoch         # 批量模式:上次发出的时间戳(节流用)

批量排期模式(多篇一次排,每 N 小时一条)

一次要发很多篇(典型来源:wjs-mining-articles 从一场长对谈挖出十几篇文章),用这个模式——一次连发会被 X 判刷屏,所以排成队列、按固定间隔自动发。

为什么不用 AskUserQuestion 逐篇选 angle:十几篇 × A/B/C 太多。每篇直接抠一条最 quotable 的(≤120 字、王建硕语气、无 hashtag/emoji/链接、带盘古之白),列全文给用户一次过目 + 定节奏,确认后排期。

机制(scripts/post-next-from-queue.sh + 每小时 cron,脚本自己节流):

bash
# 1. 队列文件:state/queue-<DATE>.tsv,每行  idx<TAB>slug<TAB>text
# 2. cursor: state/queue-cursor(下一条序号);last-post-epoch(上次发的时间)
# 3. 立刻发第一条(FORCE 绕过节流,顺便验证 xurl 能发):
FORCE=1 bash scripts/post-next-from-queue.sh
# 4. 装 cron:每小时跑,脚本只在距上次 ≥ MIN_GAP(默认 4h)才真发:
( crontab -l 2>/dev/null | grep -v post-next-from-queue.sh; \
  echo "5 * * * * /bin/bash $HOME/.claude/skills/wjs-tweeting-from-articles/scripts/post-next-from-queue.sh >/dev/null 2>&1" ) | crontab -

脚本要点:单机锁(防并发)、发失败不推进 cursor(下小时重试)、发成功才写 history.jsonl 并推进、队列发完自动删掉自己的 cron 行。改间隔用 MIN_GAP(秒)。

Daily 自动化(可选)

要每天自动跑:

bash
/schedule daily 09:00 /wjs-tweeting-from-articles

或写 cron。但默认不自动跑——每天人工确认 angle 选哪条更稳。

Anti-Patterns

不要原因
加 hashtags(#AI #prompt)王建硕的 X 风格不用 hashtag,加了变营销腔
同一篇文章推两条一篇一推;如果文章特别长 / 多核心,下次跑时把它从 history 删一行重推
tweet 里塞 mp.weixin 链接默认不带;想带就放 reply 里
把 3 条候选都发出去用户挑 1 条;不挑 = 跳过今天
凭空生造一条不在文章里的 tweet灵感必须从 article.md 抠;这条 skill 的价值就是「文章是源」
LLM 自己改原文风格做"提炼"王建硕原文已经够紧;直接抠 > 重写

Dependencies

  • xurl:xurl whoami 能返回用户名(auth OK)
  • jq:解析 xurl 返回的 JSON
  • 存在 ~/code/wechat-publish/articles/YYYY-MM-DD-*/article.md:源文章

© jianshuo, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 9 other files (scripts) in wjs-tweeting-from-articles of jianshuo/claude-skills.

  • SKILL.md
  • com.jianshuo.wjs-tweeting-from-articles.plist.template
  • daily.sh
  • scripts/mirror-articles.py
  • scripts/pick-next-article.sh
  • scripts/pick-next-article.sh.bak.1779689674
  • setup.sh
  • state/.gitignore
  • state/queue-2026-05-24.tsv
  • uninstall.sh

Open the folder on GitHubat commit b2690f5

Compare with similar skills

Wjs Tweeting From Articles next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Wjs Tweeting From Articles compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Wjs Tweeting From Articles this skilljianshuo/claude-skills131—~1.3kAutomated safety check: PassMIT
Hook Writer Smsblacktwist/social-media-skills560—~3.7kAutomated safety check: PassMIT
Podcast Pipelineericosiu/ai-marketing-skills3.6k1 repos~2.6kAutomated safety check: PassMIT
AI Social Media ContentNeverSight/learn-skills.dev2171 repos~1.8kAutomated safety check: PassNone
Download X Videoswyxio/skills176—~256Automated safety check: PassMIT
Search Xsundial-org/awesome-openclaw-skills663—~599Automated safety check: PassNone

Similar skills

  • Hook Writer Sms

    blacktwist/social-media-skills

    When the user wants help writing opening lines, hooks, first sentences, video hooks, thumbnails titles, or pin titles that grab attention.

    560 GitHub stars~3.7k tokensUpdated 5 mo ago
    Writing & ContentAuto-check passed
  • Podcast Pipeline

    ericosiu/ai-marketing-skills

    Podcast-to-Everything content pipeline. An agent skill from ericosiu/ai-marketing-skills.

    3.6k GitHub starsUsed in 1 repo~2.6k tokens
    Writing & ContentAuto-check passed
  • AI Social Media Content

    NeverSight/learn-skills.dev

    Create AI-powered social media content for TikTok, Instagram, YouTube, Twitter/X.

    217 GitHub starsUsed in 1 repo~1.8k tokens
    Writing & ContentAuto-check passed
  • Download X Video

    swyxio/skills

    Download video from X/Twitter posts using yt-dlp. An agent skill from swyxio/skills.

    176 GitHub stars~256 tokensUpdated 6 days ago
    Writing & ContentAuto-check passed
  • Search X

    sundial-org/awesome-openclaw-skills

    Search X/Twitter in real-time using Grok. An agent skill from sundial-org/awesome-openclaw-skills.

    663 GitHub stars~599 tokensUpdated 7 mo ago
    Writing & ContentAuto-check passed
  • Social

    coreyhaines31/marketingskills

    When the user wants help creating, scheduling, or optimizing social media content for LinkedIn, Twitter/X, Instagram, TikTok, or Facebook, or wants to do social listening and engagement triage.

    54k GitHub starsUsed in 4 repos~4.5k tokens
    Writing & ContentAuto-check passed

More from jianshuo/claude-skills

All 38 skills in this repo
  • Wjs Segmenting Video

    jianshuo/claude-skills

    A skill your agent uses when the user has a long-form video (interview / lecture / podcast / conversation) and a transcript SRT, and wants to extract 3–6 stand-alone topical short clips from it.

    131 GitHub stars~3.5k tokensUpdated 1 mo ago
    Auto-check passed
  • Wjs Uploading Video

    jianshuo/claude-skills

    Upload one or many videos to YouTube. An agent skill from jianshuo/claude-skills.

    131 GitHub stars~2.1k tokensUpdated 1 mo ago
    Auto-check passed
  • Wjs Converting Wp To Hugo

    jianshuo/claude-skills

    A skill your agent uses when migrating a WordPress site to a Hugo static site on GitHub Pages from a WXR export (.xml) plus the wp-content/uploads folder — preserving /archives/<id/ URLs, localizing…

    131 GitHub stars~1.8k tokensUpdated 1 mo ago
    Auto-check passed
  • Wjs Burning Subtitles

    jianshuo/claude-skills

    A skill your agent uses when the user has a video + an SRT and wants the subtitles either burned into the pixels (libass, always-visible) or soft-muxed as a togglable track.

    131 GitHub stars~3k tokensUpdated 1 mo ago
    Auto-check passed
  • Wjs Cleaning Spam

    jianshuo/claude-skills

    A skill your agent uses when the user complains about spam on his X/Twitter posts — 同城面付 / 寻固炮 / 线下上门 / 免费破处 这类引流号在他推文下刷的 emoji 垃圾回复 — and wants them removed.

    131 GitHub stars~532 tokensUpdated 1 mo ago
    Auto-check passed
  • Wjs Creating Video Book

    jianshuo/claude-skills

    A skill your agent uses when the user wants a book turned into YouTube chapter videos — 每章用 VoiceDrop 读书的有声书 mp3 做音轨,配 GPT Image 2 画面和中心思想大字,输出 1920×1080 横屏视频发 YouTube。Triggers — "把这本书做成视频"…

    131 GitHub stars~1.8k tokensUpdated 1 mo ago
    Auto-check passed

Works with

Questions about Wjs Tweeting From Articles

What does Wjs Tweeting From Articles do?

A skill your agent uses when the user wants to post a daily X/Twitter tweet inspired by one of their recently-published 微信公众号 articles. Wjs Tweeting From Articles is an agent skill from jianshuo/claude-skills. Use when the user wants to post a daily X/Twitter tweet inspired by one of their recently-published 微信公众号 articles.

When should I use Wjs Tweeting From Articles?

Wjs Tweeting From Articles fits situations like: the user wants to post a daily X/Twitter tweet inspired by one of their recently-published 微信公众号 articles; /wjs-tweeting-from-articles.

How do I install Wjs Tweeting From Articles in Claude Code?

Run `npx skills add jianshuo/claude-skills --skill wjs-tweeting-from-articles -a claude-code`. Or copy the skill folder (wjs-tweeting-from-articles in jianshuo/claude-skills) into .claude/skills/wjs-tweeting-from-articles in your project. Claude Code loads it when a task matches its description.

How do I install Wjs Tweeting From Articles in Codex?

Run `npx skills add jianshuo/claude-skills --skill wjs-tweeting-from-articles -a codex`. Or copy the skill folder (wjs-tweeting-from-articles in jianshuo/claude-skills) into .agents/skills/wjs-tweeting-from-articles in your project. Codex loads it when a task matches its description.

Can I use Wjs Tweeting From Articles in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jianshuo/claude-skills --skill wjs-tweeting-from-articles -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/wjs-tweeting-from-articles, .gemini/skills/wjs-tweeting-from-articles, .github/skills/wjs-tweeting-from-articles and .opencode/skills/wjs-tweeting-from-articles in your project.

What does Wjs Tweeting From Articles need to run?

Going by SKILL.md and its folder, Wjs Tweeting From Articles needs a shell and Python for the scripts in its folder and the command-line tools its instructions call (jq and bash). Our summary lists: Python 3; A Bash shell.

Does Wjs Tweeting From Articles access the network?

SKILL.md names 1 domain. In commands or code: x.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Wjs Tweeting From Articles safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Wjs Tweeting From Articles use?

Wjs Tweeting From Articles is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Wjs Tweeting From Articles use?

About 1.3k tokens (SKILL.md is roughly 5.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Wjs Tweeting From Articles?

Skills that share tags, products or a category with Wjs Tweeting From Articles: Hook Writer Sms (blacktwist/social-media-skills, 560 stars), Podcast Pipeline (ericosiu/ai-marketing-skills, 3.6k stars), AI Social Media Content (NeverSight/learn-skills.dev, 217 stars) and Download X Video (swyxio/skills, 176 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Wjs Tweeting From Articles?

jianshuo (a GitHub user) maintains it in jianshuo/claude-skills, which has 131 GitHub stars. The repository holds 38 skills in this directory. The repository was last updated on August 20, 2026.

Source: jianshuo/claude-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.