wewrite-visual

wewrite-visual is a skill for Claude Code, Codex from imraywang/wewrite. It costs 65 tokens per session (736 once invoked), scanned A, original, MIT.

A visual workflow for creating cover images and needed illustrations for WeChat public-account articles, or for delivering image prompts only. It records image instructions and keeps the original article unchanged.

In plain words
What is it for?
Use it to create a cover, add selected explanatory images to an article copy, prepare prompts, or maintain a manifest of the requested image files.
Why use it?
It prevents unnecessary images, separates cover-only work from full illustration, and preserves the text if image generation fails or is skipped.

Skill for Claude CodeCodex

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,230 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-visual
Any agent
npx skills add imraywang/wewrite --skill wewrite-visual
Clone the repo
git clone --depth 1 https://github.com/imraywang/wewrite

Made for: Claude Code, Codex.

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-visual

README.md
[![agentmods](https://agentmods.dev/badge/skills/imraywang/wewrite/wewrite-visual.svg)](https://agentmods.dev/skills/imraywang/wewrite/wewrite-visual)
Your own site
<a href="https://agentmods.dev/skills/imraywang/wewrite/wewrite-visual"><img src="https://agentmods.dev/badge/skills/imraywang/wewrite/wewrite-visual.svg" alt="Measured on agentmods" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 736 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 $0.00065 $0.00736
Opus 5 $0.00032 $0.00368
Sonnet 5 $0.00013 $0.00147
Haiku 4.5 $0.00006 $0.00074

Measured 5d ago against content hash 7650c1891e81, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

wewrite-visual 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 5d 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-visual/SKILL.md · 63 lines

What it actually says

wewrite-visual — 封面与配图

前置

用户指定文章时使用该文件;否则 wewrite run show,读取当前任务的 artifacts.articleartifacts.illustrated_articleartifacts.image_promptsartifacts.images_manifestvisualflags 和任务目录。已完成的文章也可以直接配图,不要恢复或新建写作任务。

有任务时运行 wewrite run step visual in_progress。用户直接给了任务外文章时独立执行, 不写任务状态;提示词和图片放进文章同目录的 <文件名>-assets/,带图副本写成 <文件名>-illustrated.md

根据本轮原话确定模式并用 wewrite run update 记录:只要封面用 cover,封面和必要内文图 用 full,只要提示词用 prompts。不要沿用写作模式猜测用户想生图。promptsskip_image_gen=true 时仍要完成提示词,但不调用付费图片服务。

完整读取:

读取: {skill_dir}/references/visual-guide.md

执行

  1. 从终稿提取 3-5 个具体实体和文章主情绪,形成统一色板、构图与质感。
  2. 写一个封面提示词。cover 模式到此为止;full 模式只为确实需要解释或缓冲阅读的 段落补图,不按固定数量凑图。
  3. 将提示词和目标路径写到 artifacts.image_prompts;批量清单写到 artifacts.images_manifest
  4. 数量必须不超过任务的 visual.max_images。调用时同时传入数量和费用上限:
wewrite image-gen --manifest {run_dir}/images.json --max-images {max_images} --max-cost {max_cost}

max_cost 为空时省略该参数。预算预检不通过就减少内文图,不能绕过上限。图片服务失败时 保留完整提示词并继续流程。

  1. 一次性检查所有实际文件:能打开、格式与扩展名一致、核心实体可辨、风格连贯。只重试 明显失败的单张一次。full 模式先复制原始正文到 artifacts.illustrated_article,再把 采用的内文图插到副本相应段落;封面不插入正文。任何模式都不得覆盖原始正文。

完成后更新 images.coverimages.figures,再执行:

wewrite run step visual completed

只有提示词时同样标 completed,并明确说明未产生费用、没有实际图片。

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. 5d ago First seen · 63 lines · 65 tokens per session scan A 7650c1891e81

Subscribe to this mod's changes

wewrite-visual is a skill published in the GitHub repository imraywang/wewrite (3,230 stars, last pushed 4d ago), licensed MIT. It adds 65 tokens to every session and 736 once invoked, about $0.0003 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

general-video

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated…

heygen-com/hyperframes · 92 tokens

html-ppt-hermes-cyber-terminal

OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.

nexu-io/open-design · 53 tokens

html-ppt-taste-brutalist

16:9 HTML deck in tactical-telemetry / CRT-terminal taste. Deactivated-CRT charcoal slides, white-phosphor monospace, hazard-red accent, scanline overlay, ASCII syntax, density over decoration. Distilled from Leonxlnx/taste-skill brutalist-skill (Tactical Telemetry mode).

nexu-io/open-design · 78 tokens

diagnostic-stem-delivery

Audio production with diagnostic analysis, timecode parsing from documents, and verified export workflow.

HKUDS/OpenSpace · 23 tokens

chengfeng-check-updates

剪辑环境的唯一管理者:就绪检查(skills 是否最新 → Runtime 是否配套)、Skills 更新激活、Runtime 安装与体检。用户说检查更新、安装剪辑环境、装播放器、检查剪辑环境、剪辑环境就绪了吗、配置转录凭证时使用;业务 Skill(剪口播/字幕/画面/导出)第 0 步也引用本 Skill 的就绪检查。不用于剪辑、字幕、画面、导出本身或项目数据迁移。.

Agentchengfeng/chengfeng-videocut-skills · 120 tokens

infographic-template-updater

Update template catalogs and UI prompts after adding new infographic templates (src/templates/.ts), including SKILL.md template list, site gallery template mappings, and the AIPlayground prompt list.

antvis/Infographic · 43 tokens