article-photos

article-photos is a skill for Claude Code, Codex from LienJack/learn-agent. It costs 26 tokens per session (448 once invoked), scanned A, original, MIT.

A workflow for planning and generating illustrations for sections of Markdown articles, then placing the images in the article’s project workspace.

In plain words
What is it for?
It helps choose article sections for images, create prompts and pictures, import them into the workspace, and check that the article references them correctly.
Why use it?
It keeps image prompts, generated files, article links, and warnings together, so missing or failed illustrations are easier to track.

Skill for Claude CodeCodex

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/lienjack/learn-agent/article-photos
Any agent
npx skills add LienJack/learn-agent --skill article-photos
Clone the repo
git clone --depth 1 https://github.com/LienJack/learn-agent

Made for: Claude Code, Codex.

Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 448 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.00026 $0.00448
Opus 5 $0.00013 $0.00224
Sonnet 5 $0.00005 $0.00090
Haiku 4.5 $0.00003 $0.00045

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

Security

Grade A, and why

article-photos 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 3d 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.

images/skills/article-photos/SKILL.md · 29 lines

What it actually says

文章正文插图 Skill

本 skill 只能通过显式引用本文件路径触发。

执行流程

  1. 阅读 images/README.mdimages/workflows/blog-to-photo.mdimages/prompts/blog-to-photo-section.md
  2. 运行 images/bin/article-images --dry-run --stage photos <article.md ...>
  3. 展示每篇文章选中的章节、prompt request、目标文件名、warning、blocker 和工作区。
  4. 用户确认后运行 images/bin/article-images --yes --stage photos <article.md ...>,生成 prompt request 和 workspace manifest。
  5. 对每个 photo-* prompt request,调用 blog-to-photo skill 生成正向提示词和负向提示词,并把最终 prompt 写回同一文章工作区。
  6. 使用内置 imagegen 为每个最终 prompt 生成图片。项目图片必须从 $CODEX_HOME/generated_images/... 移动或复制到文章工作区,不能只留在 Codex 默认目录。
  7. 对选定输出运行 images/bin/article-images --import <generated.png> --prompt-id <photo-id> <article.md>
  8. 如果内置 imagegen 失败或不可用,才运行 images/bin/article-photo-fallback ...,并继续通过 import 路径写回 manifest。
  9. 完成后运行 images/bin/article-image-check <article.md ...>

规则

  • 每篇文章默认至少规划三张正文插图;短文不足时记录 warning,不编造无关图。
  • 长文可以规划超过三张,具体由章节长度、复杂度和解释价值启发式决定。
  • prompt、最终图片、Markdown anchor 和章节标题都必须写入 manifest。
  • 单张图失败不能让整批文章不可判断;保留成功产物和失败线索。
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. 3d ago First seen · 29 lines · 26 tokens per session scan A e4a76f91c442

Subscribe to this mod's changes

article-photos is a skill published in the GitHub repository LienJack/learn-agent (23 stars, last pushed 1mo ago), licensed MIT. It adds 26 tokens to every session and 448 once invoked, about $0.0001 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.