content-illustrator

content-illustrator is a skill for Claude Code, Codex from chengkj99/kj-skills. It costs 93 tokens per session (1,894 once invoked), scanned A, original, MIT.

A content-illustration tool that creates SVG diagrams from text, finds places in an article where a picture would explain something faster, and fills marked illustration placeholders. SVG is a scalable image format suited to diagrams and web content.

In plain words
What is it for?
Use it to generate flowcharts and other SVG graphics from descriptions, analyse articles for illustration opportunities, or replace placeholders such as “[flowchart]” with generated diagrams.
Why use it?
It helps turn explanations into consistent diagrams and identifies visual gaps in written material. It also supports completing several marked image positions in a course or article.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present. Also seen: mentions CLAUDE.md.

Part of the kj-skills plugin — 34 skills, 1 command, 1 hook shipped together

Good fit Use it to generate flowcharts and other SVG graphics from descriptions, analyse articles for illustration opportunities, or replace placeholders such as “[flowchart]” with generated diagrams.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/chengkj99/kj-skills/content-illustrator
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.

Any agent
npx skills add chengkj99/kj-skills --skill content-illustrator
Clone the repo
git clone --depth 1 https://github.com/chengkj99/kj-skills

Made for: Claude Code, Codex.

Or install kj-skills, the plugin that ships this one along with the rest of its 34 skills, 1 command, 1 hook.

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 content-illustrator

README.md
[![agentmods](https://agentmods.dev/badge/skills/chengkj99/kj-skills/content-illustrator/github.svg)](https://agentmods.dev/skills/chengkj99/kj-skills/content-illustrator)
Your own site
<a href="https://agentmods.dev/skills/chengkj99/kj-skills/content-illustrator"><img src="https://agentmods.dev/badge/skills/chengkj99/kj-skills/content-illustrator/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 content-illustrator

Your own site · 80×15
<a href="https://agentmods.dev/skills/chengkj99/kj-skills/content-illustrator"><img src="https://agentmods.dev/badge/skills/chengkj99/kj-skills/content-illustrator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,894 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 pass 7 Sept 2026
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.00093 $0.01894
Opus 5 $0.00046 $0.00947
Sonnet 5 $0.00019 $0.00379
Haiku 4.5 $0.00009 $0.00189

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

Security

Grade A, and why

content-illustrator 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 11d 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/content-illustrator/SKILL.md · 177 lines

How it starts

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

content-illustrator:内容插图工具

把文字变成图,三种用法,一个 skill 搞定。

适用边界

  • ✅ 用我:文字描述 → SVG;分析文章找插图时机;批量补全课程文件里的图片占位
  • ❌ 不用我:需要 AI 绘图风格(照片/插画)→ 用 hd-infoimage;截图/录屏 → 手动操作

模式识别(先判断用哪种模式)

用户说了什么 进入模式
「画个图:XXX」「生成 SVG:XXX」「根据描述生成图片」 模式 A:描述生图
「分析这篇文章该在哪里插图」「帮我看看哪里需要加图」「分析插图时机」 模式 B:文章分析
「补图」「把 [流程图] 占位全部生成」「backfill」+ 目录/文件路径 模式 C:批量补图

触发词不明确时,问用户:「是要直接生成一张图、分析文章找插图位置,还是批量补全占位符?」


SVG 生成规范(三种模式共用)

所有 SVG 遵循统一规范,执行前必读../course-generator/references/image-protocol.md

核心要点(快速回顾):

  • 画布:viewBox="0 0 620 480" width="620" height="480"
  • 字体:'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif
  • 节点:浅色背景 + 深色左侧色条,圆角 rx="10"
  • 箭头:每条连线必须有文字标注
  • 配色:蓝 #E8F4FD/#4A9FD4、绿 #EAF7EE/#52A96A、橙 #FEF3E8/#E08A3A
  • 验证:用 Bash 工具 open <路径> 本地预览后再插入

生成后按 A 方案插入(注释保留 + 图片引用追加):

<!-- [流程图] 描述:... -->
![alt 文字](相对路径/xxx.svg)

模式 A:描述生图

触发:用户直接给出图片描述。

流程

  1. 从描述中提取图表类型(见类型识别表)和核心内容
  2. 读取 image-protocol.md 第 5 节提示词模板,将 {描述} 替换为用户提供的描述文本
  3. 生成 SVG,命名规则:<slug>.svg(2-4 个英文词 + - 连接)
  4. 询问用户存放路径(或用户已指定时直接写入)
  5. 用 Bash 工具 open 预览
  6. 报告:文件路径 + 是否需要插入某篇文章

类型识别表

描述中出现的关键词/结构 图表类型 SVG 骨架
顺序、步骤、流程、加载、触发、依次 流程图 纵向矩形 + 虚线箭头
判断、分支、条件、如果、决策 决策流程图 菱形 + 矩形 + 实线箭头
对比、区别、vs、左边/右边、好坏 对比图 左右分栏 + 顶部色块标题
层级、继承、上下级、包含、属于 层级图 树形或纵向堆叠矩形
连接、关系、集成、通信、调用 拓扑/关系图 中心节点 + 放射连线
时间轴、变化、增长、累积 时间轴图 横向时间线 + 节点标注

模式 B:文章分析

触发:用户提供文章路径或内容,要求找插图时机。

流程

B1. 读取文章

用 Read 工具读取指定文件(或用户粘贴的内容)。

B2. 识别插图候选位置

逐段扫描,按以下信号识别「看图比看字快」的位置:

信号 插图类型 优先级
描述 3 步以上的操作流程 流程图 🔴 高
解释两个以上选项的差异 对比图 🔴 高
描述模块/组件之间的调用关系 拓扑图 🔴 高
解释层级/嵌套结构(文件目录、配置层级) 层级图 🟡 中
超过 150 字解释一个机制/原理 流程图/示意图 🟡 中
列表超过 4 项且项目有顺序关系 流程图 🟡 中
已有代码块紧邻文字解释 可选,非必须 🟢 低

Read the full file on GitHub · 177 lines

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. 11d ago First seen · 177 lines · 93 tokens per session scan A 3c0e76ddad4d

Subscribe to this mod's changes

content-illustrator is a skill published in the GitHub repository chengkj99/kj-skills (14 stars, last pushed 10d ago), licensed MIT. It adds 93 tokens to every session and 1,894 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

html-ppt-zhangzara-retro-zine

A neighborhood zine on the disappearing corner shops — portraits, voices, and what a block loses when they close. Built as a decision-grade story deck for community, local readers.

nexu-io/open-design · 49 tokens

html-ppt-zhangzara-studio

A photography studio's portfolio-and-rate deck — the signature work, the process, and the packages that win the brief. Built as a decision-grade design craft deck for prospective clients.

nexu-io/open-design · 47 tokens

motion-frames

A single-frame motion-design composition with looping CSS animations — rotating type ring, animated globe, ticking timer, parallax labels. Renders as a hero video poster you can hand straight to HyperFrames or any keyframe-based exporter. Use when the brief asks for "motion design", "animated hero", "loop", "video…

nexu-io/open-design · 91 tokens

webgl-halftone-drift

A self-contained WebGL2 hero: a flowing field screened through a rotated halftone dot grid into a duotone print aesthetic; move the cursor to bend the drift.

nexu-io/open-design · 44 tokens

webgl-holographic-foil

A self-contained WebGL2 hero: thin-film interference over a crushed-foil surface whose palette shifts with the viewing angle; move the cursor to tilt the film.

nexu-io/open-design · 41 tokens

motion-graphics

A short, design-led motion graphic where motion is the message — kinetic typography, stat count-up, chart/data-viz hit, logo sting / brand lockup, lower-third / callout / social overlay, animated map (highlight regions, connect places, zoom to a location), animated tweet / news-article / headline, webpage / UI…

heygen-com/hyperframes · 139 tokens