q-infographicslisted
Install: claude install-skill TyrealQ/q-skills
# Q-Infographics
Transform source documents into business stories and infographic images using the Gemini API.
> **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:
1. Determine this SKILL.md file's directory path as `SKILL_DIR`.
2. Script path = `${SKILL_DIR}/scripts/<script-name>`.
3. 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 from story via Gemini API |
| `references/story.txt` | Story generation prompt template |
| `references/image.txt` | Infographic generation prompt template |
## Dependencies
```
google-genai
Pillow
markitdown
```
Install: `pip install google-genai Pillow markitdown`
Requires `GEMINI_API_KEY` environment variable. Load from `.env`:
**PowerShell (Windows):**
```powershell
$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):**
```bash
export $(cat /path/to/.env | xargs)
```
## References
- **references/prompts_reference.md** — story an