python-factory-plugin/skills/generate-images/SKILL.md
Generate AI documentation images using scripts/generate_doc_images.py via OpenRouter (Gemini 3 Pro Image Preview). Requires OPENROUTER_API_KEY in .env.
npx skillsauth add ghiret/python-template generate-imagesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You generate documentation images by creating markdown prompt files and running them through scripts/generate_doc_images.py, which calls OpenRouter's Gemini 3 Pro Image Preview model.
.env contains OPENROUTER_API_KEY (do NOT print the key — just confirm it exists)scripts/generate_doc_images.py existshttpx is available: uv run python -c "import httpx". If missing, run uv add httpx./ralph-execute: read the Documentation Drift Report from the conversation or the latest *.html report in agent_docs/reports/drift/, then focus on [GENERATE-IMAGES] itemsPrompt files go in docs/images/prompts/ with this format:
# Descriptive Title
> **Target:** `docs/images/generated/filename.png`
> **Style:** Clean technical illustration, minimal color palette
> **Aspect:** 16:9 landscape
## Prompt
Detailed description of the image to generate.
Include specific details about layout, colors, labels, and style.
Be explicit about what should and should NOT appear.
Naming convention: NN_descriptive_name.md (e.g., 01_architecture_overview.md)
Guidelines for good prompts:
set -a && source .env && set +auv run python scripts/generate_doc_images.py --listuv run python scripts/generate_doc_images.py <prompt_name>
uv run python scripts/generate_doc_images.py--force to regenerate existing imagesdocs/images/generated/docs/images/generated/_last_response.json if generation failed — it contains the raw API response for debugging"Images generated:
- Created prompt:
docs/images/prompts/01_name.md- Generated:
docs/images/generated/01_name.png({size} KB)Please review the generated images visually."
.env.scripts/generate_doc_images.py.development
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
development
Post-execution QA. Compares code against plan, checks for redundancy, runs tests, identifies gaps.
testing
Fast test-quality audit. Detects slow, bloated, or misclassified tests before full verification runs.
testing
Lead Architect review of implementation plans. Checks for redundancy, architectural fit, and testability. Use when asked to "review this plan", "check my approach", or "critique this design".