article-batch-illustration

article-batch-illustration is a skill for Claude Code from SpaceZephyr/cowrite. It costs 63 tokens per session (933 once invoked), scanned A, original, MIT.

A workflow for analysing a complete Markdown article, choosing a small number of illustration locations, and generating a consistent set of images. Markdown is plain text formatted with headings, links, and other simple markers.

In plain words
What is it for?
Use it to add a restrained set of 16:9 PNG illustrations to a full Cowrite article. It selects placement anchors and generates the images through the specified image-generation workflow.
Why use it?
It prevents an article from being overloaded with unrelated images and keeps the illustrations tied to specific parts of the text. It also leaves the article unchanged if an image generation attempt fails.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Codex.

Part of the cowrite plugin — 8 skills, 1 MCP server shipped together

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/spacezephyr/cowrite/article-batch-illustration
Any agent
npx skills add SpaceZephyr/cowrite --skill article-batch-illustration
Clone the repo
git clone --depth 1 https://github.com/SpaceZephyr/cowrite

Made for: Claude Code.

Or install cowrite, the plugin that ships this one along with the rest of its 8 skills, 1 MCP server.

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 article-batch-illustration

README.md
[![agentmods](https://agentmods.dev/badge/skills/spacezephyr/cowrite/article-batch-illustration.svg)](https://agentmods.dev/skills/spacezephyr/cowrite/article-batch-illustration)
Your own site
<a href="https://agentmods.dev/skills/spacezephyr/cowrite/article-batch-illustration"><img src="https://agentmods.dev/badge/skills/spacezephyr/cowrite/article-batch-illustration.svg" alt="Measured on agentmods" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 933 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.00063 $0.00933
Opus 5 $0.00032 $0.00466
Sonnet 5 $0.00013 $0.00187
Haiku 4.5 $0.00006 $0.00093

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

Security

Grade A, and why

article-batch-illustration 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/article-batch-illustration/SKILL.md · 67 lines

How it starts

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

Article Batch Illustration for Cowrite

Plan and generate a coherent illustration set for one complete Cowrite Markdown page. This Skill owns article analysis and placement. The bundled image-studio Skill owns prompt assembly and generation through Codex's built-in image_gen tool.

Fixed Cowrite profile

  • Output: PNG, 16:9, 2K
  • Image type: image-studio type D / article logic illustration
  • Generation path: Codex built-in image_gen tool only; one tool call per image
  • Language: Simplified Chinese; technical abbreviations may remain English
  • Count: normally 2-6; use fewer for short articles
  • Placement: after an exact, unique Markdown heading or paragraph anchor
  • Page safety: never rewrite the source article; insert only successful final images

Never use LabNana, Gemini, an API/CLI image generator, an embedded API key, web image search, or another model. If built-in image_gen is unavailable or fails, report the failure and leave the page unchanged.

Phase 1: analyze and select positions

  1. Read the latest Cowrite page through cowrite_get_page.
  2. Ignore frontmatter, references, footnotes, existing delivery links, and existing images whose alt text starts with 文章配图.
  3. Split primarily on H2/H3 headings. For heading-free prose, use major topic transitions.
  4. For every candidate, record:
    • exact unique anchor from the current Markdown;
    • one-sentence core point;
    • 3-5 key concepts;
    • best structure: concept, flow, comparison, hierarchy, relationship, or matrix.
  5. Select only positions where a diagram materially improves comprehension. Do not illustrate every section and do not create decorative filler.
  6. Keep the set between 2 and 6 unless the article is too short. Prefer fewer, stronger images.

Phase 2: establish one visual system

Choose one image-studio style for the whole set based on the article:

  • product/general explanation: minimal or notion
  • data/research: editorial-infographic or scientific
  • technical systems: blueprint
  • education/personal narrative: sketch-notes
  • culture/aesthetics: chinese-elegance

Read the full file on GitHub · 67 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. 6d ago First seen · 67 lines · 63 tokens per session scan A 158286300dc1

Subscribe to this mod's changes

article-batch-illustration is a skill published in the GitHub repository SpaceZephyr/cowrite (91 stars, last pushed 1mo ago), licensed MIT. It adds 63 tokens to every session and 933 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

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