wewrite-stats

wewrite-stats is a skill for Claude Code from imraywang/wewrite. It costs 88 tokens per session (526 once invoked), scanned A, original, MIT.

A WeChat article performance review workflow. WeChat Official Accounts are Chinese publishing channels, and the workflow examines measures such as reading, sharing, and liking.

In plain words
What is it for?
Use it to fetch recent statistics, update article history, compare the best and worst results, and suggest changes for future writing.
Why use it?
It turns past article results into concrete adjustments for future topics, titles, and structures, while clearly noting when data or credentials are missing.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the wewrite plugin — 10 skills shipped together

About the project

WeWrite is a workflow for creating and publishing WeChat public-account articles with an AI coding agent, covering topic selection, source gathering, drafting, review, optional illustrations, formatting, and draft delivery. It is for public-account writers who want to produce articles or adapt them for other platforms, and its catalogue entries provide the skills and plugin for running those workflow steps.

imraywang/wewrite · 3,254 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/imraywang/wewrite/wewrite-stats
Any agent
npx skills add imraywang/wewrite --skill wewrite-stats
Clone the repo
git clone --depth 1 https://github.com/imraywang/wewrite

Made for: Claude Code.

Or install wewrite, the plugin that ships this one along with the rest of its 10 skills.

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 wewrite-stats

README.md
[![agentmods](https://agentmods.dev/badge/skills/imraywang/wewrite/wewrite-stats.svg)](https://agentmods.dev/skills/imraywang/wewrite/wewrite-stats)
Your own site
<a href="https://agentmods.dev/skills/imraywang/wewrite/wewrite-stats"><img src="https://agentmods.dev/badge/skills/imraywang/wewrite/wewrite-stats.svg" alt="Measured on agentmods" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 526 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00088 $0.00526
Opus 5 $0.00044 $0.00263
Sonnet 5 $0.00018 $0.00105
Haiku 4.5 $0.00009 $0.00053

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

Security

Grade A, and why

wewrite-stats 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 6d ago.

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.

skills/wewrite-stats/SKILL.md · 39 lines

What it actually says

wewrite-stats — 文章数据复盘

运行约定

  • CLI:确定性操作走 wewrite 命令(需在 PATH;缺失则引导 uv tool install wewrite,或在仓库里 bash install.sh)。
  • {home}:用户状态目录 = $WEWRITE_HOME~/.wewritewewrite home 可查)。config/style/history/playbook/output/exemplars 全在 {home},不在仓库;references 文档中的状态路径同此约定。
  • 读取: <路径> = 用文件读取工具真实读完该文件再继续,不是注释。
  • references/:本 skill 自带 {skill_dir}/references/;references 文档内的 {skill_dir} 即本 skill 目录。

执行

读取: {skill_dir}/references/effect-review.md

按其流程执行:fetch_stats.py --days 7 拉数据 → 匹配并回填 history.yaml 的 stats 字段 → 分析最好/最差表现及原因 → 给出后续选题/标题/框架的调整建议。

前置:需要 config.yaml 里的微信 API 凭证。缺凭证 → 告知用户"数据复盘需要配置 公众号 API(config.yaml),当前只能基于 history.yaml 已有记录做定性分析",然后就 history.yaml 现有内容能分析多少分析多少。刚发布的文章 → 告知等 24h 后再看。

下游影响:回填的 stats 会被选题模块(wewrite-topic)读取——哪种框架/增强策略 表现好会加权到下次推荐。这是数据闭环的一半,另一半是 wewrite-learn 的改稿飞轮。

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 6d ago First seen · 39 lines · 88 tokens per session scan A cafea160a5a3

Subscribe to this mod's changes

wewrite-stats is a skill published in the GitHub repository imraywang/wewrite (3,254 stars, last pushed 5d ago), licensed MIT. It adds 88 tokens to every session and 526 once invoked, about $0.0004 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

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens