🎯

q-infographics

🎯Skill

from tyrealq/q-skills

VibeIndex|
What it does

Converts documents into engaging business stories and visually compelling infographics using Gemini AI's advanced text and image generation capabilities.

πŸ“¦

Part of

tyrealq/q-skills(3 items)

q-infographics

Installation

PythonRun Python server
python skills/q-infographics/scripts/gen_story.py <INPUT.md> skills/q-infographics/prompts/story.txt > STORY_OUTPUT.md
PythonRun Python server
python skills/q-infographics/scripts/gen_image.py STORY_OUTPUT.md skills/q-infographics/prompts/image.txt <SOURCE_NAME>_INFO
pip installInstall dependencies
pip install -r skills/q-infographics/requirements.txt
πŸ“– Extracted from docs: tyrealq/q-skills
3Installs
-
AddedFeb 4, 2026

Skill Details

SKILL.md

Converts documents into business stories and infographics using Gemini 3.0 Pro (Python SDK).

Overview

# Q-Infographics Skill

Transforms documents -> Story -> Infographic.

Powered by: google-genai (Gemini 3.0 Pro).

Folder Structure

```

q-infographics/

β”œβ”€β”€ SKILL.md # This file

β”œβ”€β”€ requirements.txt # Python dependencies

β”œβ”€β”€ prompts/

β”‚ β”œβ”€β”€ story.txt # Story generation prompt

β”‚ └── image.txt # Infographic generation prompt

β”œβ”€β”€ scripts/

β”‚ β”œβ”€β”€ gen_story.py # Story generator script

β”‚ └── gen_image.py # Image generator script

└── examples/ # Sample outputs

```

When to Use

Use this skill when the user wants to:

  • Convert a document, report, or text into a compelling business story
  • Create an infographic from written content
  • Transform dry business information into visual summaries
  • Generate cartoon-style visual representations of key points

Workflow

IMPORTANT: After each step, display outputs and ask for user confirmation before proceeding.

Step 1: Prepare Input

Convert the source document to markdown/text.

```bash

markitdown -o

```

Review checkpoint: Show the first ~50 lines of converted content. Ask user to confirm before proceeding.

Step 2: Generate Story

```bash

python skills/q-infographics/scripts/gen_story.py skills/q-infographics/prompts/story.txt > STORY_OUTPUT.md

```

Review checkpoint:

  1. Show the prompt being used: cat skills/q-infographics/prompts/story.txt
  2. After generation, show the full story output: cat STORY_OUTPUT.md
  3. Ask user: "Story generated. Review above and confirm to proceed with infographic generation, or request edits."

Step 3: Generate Infographic

```bash

python skills/q-infographics/scripts/gen_image.py STORY_OUTPUT.md skills/q-infographics/prompts/image.txt _INFO

```

Naming convention: Output files use the source filename with _INFO suffix (e.g., MY_REPORT.pdf β†’ MY_REPORT_INFO.jpg).

Review checkpoint:

  1. Show the image prompt being used: cat skills/q-infographics/prompts/image.txt
  2. After generation, display the infographic image
  3. Ask user: "Infographic generated. Would you like to regenerate with different settings?"

Requirements

  • pip install -r skills/q-infographics/requirements.txt
  • GEMINI_API_KEY environment variable set

Customization

  • Story Style: Edit skills/q-infographics/prompts/story.txt to change the writing persona
  • Infographic Style: Edit skills/q-infographics/prompts/image.txt to change the visual art style

Prompts Reference

Story Prompt (`prompts/story.txt`)

Creates business stories in the style of top-tier Chinese tech media (36Kr, Huxiu). Key elements:

  • Story-first approach with hero's journey structure
  • "Golden sentences" - bold, shareable quotes
  • Effective analogies for complex concepts
  • Structured methodology breakdowns
  • Rhythmic flow with rhetorical questions

Image Prompt (`prompts/image.txt`)

Generates hand-drawn cartoon-style infographics:

  • 16:9 landscape composition
  • Concise cartoon elements and icons
  • Highlights keywords and core concepts
  • Ample white space for readability
  • Language matches input content

Examples

Sample infographics generated from academic research papers:

Esports Online Spectatorship

![ESPORTS_INFO](examples/ESPORTS_INFO.jpg)

Esports Gamification

![ESPORTS_GAMIFICATION_INFO](examples/ESPORTS_GAMIFICATION_INFO.jpg)