article-figure-spot
Installation
SKILL.md
Article Figure Spot
Finds all positions in an article that benefit from a figure, then either outputs the article with inline prompt placeholders (author generates and inserts images later) or generates all figures in one run using the built-in image script and saves them so the author can insert image links.
Input
Article content can be provided in either way:
- File path: User sends a path to a Markdown file (e.g.
/article-figure-spot path/to/article.md). - Pasted text: User writes in the chat that they want figures for an article and pastes the full text below (e.g. “用这个 Skill 给如下文章配图:” then the article). Treat the pasted block as the source article; if needed, save it to a temp or project file for structure analysis, then proceed with the workflow.
When only pasted text is given, infer options from context or ask once for --prompts-only vs --generate and density if ambiguous.
Script directory
Scripts live in the scripts/ subdirectory of this skill.
- SKILL_DIR = directory containing this SKILL.md (the skill root).
- Script path =
${SKILL_DIR}/scripts/generate-image.mjs