q-infographics
Skill108 starsChanged 2 months agoMITView on GitHub
Convert documents into business stories and infographics. Use for turning reports, documents, or text into visual summaries or infographics.
- Reads credentials
- Installs packages
In this repository16 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- commitSkill
- handoffSkill
- learnSkill
- organizeSkill
- q-educatorSkill
- q-presentationsSkill
- q-edaSkill
- q-introSkill
- q-litreviewSkill
- q-methodsSkill
- q-multimodalSkill
- q-resultsSkill
- q-tfSkill
- q-scholarSkill
- shipSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 40
Default infographic model is gpt-image-2 (requires OPENAI_API_KEY).
- Distinctive: line 79
Include: Document-to-story conversion, infographic generation, logo branding.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Q-Infographics
Transform source documents into business stories and infographic images.
If in plan mode: write a brief plan — "Run q-infographics skill: convert source document to markdown, generate business story via Gemini, generate infographic image." — then exit plan mode immediately. Do NOT attempt document conversion, story generation, or image generation while plan mode is active.
Script Directory
Agent execution instructions:
- Determine this SKILL.md file's directory path as
SKILL_DIR. - Script path =
${SKILL_DIR}/scripts/<script-name>. - Prompt path =
${SKILL_DIR}/references/<prompt-name>.
| Resource | Purpose |
scripts/gen_story.py | Generate business story from document via Gemini API |
scripts/gen_image.py | Generate infographic image via GPT Image 2 (default) or Gemini |
references/story.txt | Story generation prompt template |
references/image.txt | Infographic generation prompt template |
Dependencies
openai
google-genai
Pillow
markitdownInstall: pip install openai google-genai Pillow markitdown
Default infographic model is gpt-image-2 (requires OPENAI_API_KEY). Set IMAGE_MODEL=gemini or pass --model gemini to gen_image.py to use gemini-3-pro-image-preview (requires GEMINI_API_KEY). Story generation (gen_story.py) always uses Gemini.
Load keys from .env:
PowerShell (Windows):
$env:GEMINI_API_KEY = (Get-Content path\to\.env | Where-Object { $_ -match '^GEMINI_API_KEY=' } | Select-Object -First 1).Split('=',2)[1]Bash (macOS/Linux):
export $(cat /path/to/.env | xargs)References
- references/prompts_reference.md — story and image prompt descriptions and key elements
Core Principles
- Review checkpoint after each step — display outputs and get user confirmation before proceeding
- Output files use source filename with
_INFOsuffix (e.g.,MY_REPORT.pdf→MY_REPORT_INFO.jpg) - Logo auto-overlaid in bottom-right corner (~6% of image width); customize via
assets/Logo_Q.png
Workflow
| Step | Action | Command / Reference |
| 1 | Convert source document to markdown; show first ~50 lines for confirmation | markitdown <input_file> -o <OUTPUT.md> |
| 2 | Generate business story; show prompt and full output for review | python "${SKILL_DIR}/scripts/gen_story.py" <INPUT.md> "${SKILL_DIR}/references/story.txt" > STORY_OUTPUT.md |
| 3 | Generate infographic image; display result for review | python "${SKILL_DIR}/scripts/gen_image.py" STORY_OUTPUT.md "${SKILL_DIR}/references/image.txt" <SOURCE_NAME>_INFO |
Customization
- Story style: Edit
${SKILL_DIR}/references/story.txt— see references/prompts_reference.md - Infographic style: Edit
${SKILL_DIR}/references/image.txt— see references/prompts_reference.md
Scope
Include: Document-to-story conversion, infographic generation, logo branding. Exclude: Slide decks (use q-presentations), data visualization, chart generation.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

