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

Written for Claude Code and Codex: argument-hint in frontmatter, but also reads $CODEX_HOME. Also seen: mentions Codex.

Good fit It helps choose article sections for images, create prompts and pictures, import them into the workspace, and check that the article references them correctly.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lienjack/learn-agent/article-photos
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 LienJack/learn-agent --skill article-photos
Clone the repo
git clone --depth 1 https://github.com/LienJack/learn-agent

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/lienjack/learn-agent/article-photos/github.svg)](https://agentmods.dev/skills/lienjack/learn-agent/article-photos)
Your own site
<a href="https://agentmods.dev/skills/lienjack/learn-agent/article-photos"><img src="https://agentmods.dev/badge/skills/lienjack/learn-agent/article-photos/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 article-photos

Your own site · 80×15
<a href="https://agentmods.dev/skills/lienjack/learn-agent/article-photos"><img src="https://agentmods.dev/badge/skills/lienjack/learn-agent/article-photos.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
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.00026 $0.00448
Opus 5.5 $0.00010 $0.00179
Sonnet 5.5 $0.00005 $0.00090
Haiku 4.5 $0.00003 $0.00045

Measured 3mo ago against content hash e4a76f91c442, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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.md、images/workflows/blog-to-photo.md 和 images/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. 3mo 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 (28 stars, last pushed 7d ago), licensed MIT. It adds 26 tokens to every session and 448 once invoked, about $0.0001 per session on Opus 5.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

article-photos compared with skills from other repositories

article-photos next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
article-photosLienJack/learn-agentSkill287d agoMITA26Claude Code, Codex
wiki-curationCiao1019/PetrichorSkill1602mo agoApache-2.0A21Claude Code, Codex
research-noteCiao1019/PetrichorSkill1602mo agoApache-2.0A19Claude Code, Codex
Technical Blog Post WriterNotysoty/openagentskillsSkill93mo agoMITA17Claude Code, Codex
technical-documentationJPeetz/agent-skillsSkill21yesterdaynoneB82Claude Code, Codex
blog-writing-guidezebbern/termstackSkill47mo agononeA60Claude Code, Codex
Help Article Writerjmsktm/claude-settingsSkill1010mo agononeA18Claude Code, Codex