wjs-tweeting-from-articles

wjs-tweeting-from-articles is a skill for Claude Code, Codex from jianshuo/claude-skills. It costs 106 tokens per session (2,356 once invoked), scanned A, original, MIT.

An automation workflow for turning a recently published WeChat public-account article into a short post for X, formerly called Twitter.

In plain words
What is it for?
Use it to select the newest eligible article, draft three short post options, publish the chosen one through X, and schedule recurring posts.
Why use it?
It avoids choosing an article manually, rewriting it from scratch, and accidentally posting the same article twice. It prepares several angles and records which articles have already been used.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; names the AskUserQuestion tool.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is FORCE=1 bash scripts/post-next-from-queue.sh.

Good fit Use it to select the newest eligible article, draft three short post options, publish the chosen one through X, and schedule recurring posts.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/jianshuo/claude-skills
agentmods
npx agentmods add skills/jianshuo/claude-skills/wjs-tweeting-from-articles

Made for: Claude Code, Codex.

Its marketplace also offers this one on its own, as the plugin wjs-tweeting-from-articles/plugin install wjs-tweeting-from-articles after adding the marketplace above.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for wjs-tweeting-from-articles

README.md
[![agentmods](https://agentmods.dev/badge/skills/jianshuo/claude-skills/wjs-tweeting-from-articles/github.svg)](https://agentmods.dev/skills/jianshuo/claude-skills/wjs-tweeting-from-articles)
Your own site
<a href="https://agentmods.dev/skills/jianshuo/claude-skills/wjs-tweeting-from-articles"><img src="https://agentmods.dev/badge/skills/jianshuo/claude-skills/wjs-tweeting-from-articles/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for wjs-tweeting-from-articles

Your own site · 80×15
<a href="https://agentmods.dev/skills/jianshuo/claude-skills/wjs-tweeting-from-articles"><img src="https://agentmods.dev/badge/skills/jianshuo/claude-skills/wjs-tweeting-from-articles.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 106 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,356 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 134
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00106 $0.02356
Opus 5 $0.00053 $0.01178
Sonnet 5 $0.00021 $0.00471
Haiku 4.5 $0.00011 $0.00236

Measured 12d ago against content hash 5d9e36de8a81, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

wjs-tweeting-from-articles scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 5 executable files (daily.sh, scripts/mirror-articles.py, scripts/pick-next-article.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

wjs-tweeting-from-articles/SKILL.md · 166 lines

How it starts

The opening of the file, as written. The whole thing — 166 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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: 挑今天要推的文章

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

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"

Read the full file on GitHub · 166 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 166 lines · 106 tokens per session scan A 5d9e36de8a81

Subscribe to this mod's changes

wjs-tweeting-from-articles is a skill published in the GitHub repository jianshuo/claude-skills (129 stars, last pushed 22d ago), licensed MIT. It adds 106 tokens to every session and 2,356 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

exploratory-data-analysis

Perform bounded, local exploratory analysis of explicitly supported scientific files. Use for redacted CSV/TSV/JSON profiles; optional NumPy, HDF5, FASTA/FASTQ, and basic image metadata inspection; missingness/leakage audits; outlier and transformation sensitivity; and rigorous EDA report scaffolds. Other domain…

K-Dense-AI/scientific-agent-skills · 83 tokens

google-ads-audit

Google Ads account audit and business context setup. Use for account-health audits and business-context setup. Trigger on "audit my ads", "ads audit", "set up my ads", "onboard", "account overview", "how's my account", "ads health check", "what should I fix in my ads", or when the user is new to NotFair and hasn't run…

nowork-studio/notfair-plugin · 86 tokens

data-charts-tako

Search and visualize the world's data - get charts, insights, and embeddable knowledge cards for finance, economics, demographics, sports, and more.

gooseworks-ai/goose-skills · 35 tokens

webhook-management

Configure and validate CCAM webhook targets across supported chat, incident, automation, and generic providers. Use when listing provider requirements, creating or updating a target, scoping it to alert rules, sending a test notification, reviewing delivery history, or deleting a target.

hoangsonww/Claude-Code-Agent-Monitor · 56 tokens

gesellschaftsrechtliche-satzungen-agb

Für Gesellschaftsrechtliche Satzungen AGB Abgrenzung: ordnet Norm, Beweislast und Gegenargument; Ergebnis: Prüfprodukt mit Risiko und nächstem Schritt. Fachgebiet: AGB-Recht-Prüfer. Route: gesellschaftsrechtliche-satzungen-agb.

Klotzkette/claude-fuer-deutsches-recht · 69 tokens

master-yinguang

A reference-based assistant for questions about Yinguang and Pure Land Buddhism, a Buddhist tradition focused on faith, ethical living, and practice connected with rebirth in the Pure Land. It can answer in Yinguang’s historical teaching style.

xr843/Master-skill · 274 tokens