[recipes] Infographic Generator: turn research docs into visual infographics#85
Conversation
…raphics Second recipe from @jaredirish. Part of the Open Brain Flywheel (capture-process-visualize loop, see Issue NateBJones-Projects#84). Takes any markdown doc or Open Brain thought cluster and generates professional infographic images via Gemini's free-tier API. Auto-chunks content, writes verbose prompts (300+ words each), generates PNGs with specific colors/layout/typography. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
justfinethanku
left a comment
There was a problem hiding this comment.
Code Review: Infographic Generator Recipe
Summary
This is a well-structured and thoughtfully designed contribution. The recipe adds a valuable capability to the Open Brain ecosystem by enabling users to generate professional infographic images from their research and thoughts using Gemini's free-tier API. The contribution demonstrates excellent documentation, clean code, and strong integration with the Open Brain flywheel concept.
What's Good
Documentation Excellence:
- README is comprehensive with all required sections (Prerequisites, Steps, Expected Outcome, Troubleshooting)
- Credential tracker is a nice touch for helping users track their setup
- Troubleshooting section covers realistic failure scenarios with actionable solutions
- Clear connection to the Open Brain Flywheel (#84) provides context for the contribution's role
Code Quality:
- Python script properly checks for environment variables before proceeding
- No hardcoded credentials anywhere
- Clean error handling with retry logic for API failures
- Well-structured argument parsing with helpful usage documentation
- Proper use of pathlib for cross-platform compatibility
Skill Design:
- Comprehensive step-by-step process with clear routing logic
- Audience calibration is a thoughtful feature
- Detailed prompt template ensures consistent, high-quality outputs
- Good integration points with Open Brain (both read and write sides)
metadata.json:
- All required fields present and valid
- Appropriate difficulty level (intermediate) and time estimate (15 minutes)
- Tags are relevant and searchable
- Free-tier service requirement aligns with OB1 principles
Required Changes
1. Reference to non-existent recipe (blocking)
Line 132 in README.md references ../brain-dump-processor/:
Together with [Panning for Gold](../brain-dump-processor/) and [Auto-Capture Protocol](../auto-capture-protocol/)...The correct path should be ../panning-for-gold/ (checking the recipes directory). Also, the Auto-Capture Protocol recipe doesn't exist yet in the repo (PR #42 is still open). You should either:
- Change to:
Together with [Panning for Gold](../panning-for-gold/) and Auto-Capture Protocol (PR #42)... - Or remove the broken link until PR #42 merges
2. Skills directory path assumption (minor but important)
The README assumes the user has a ~/.claude/skills/ directory structure. While this is common for Claude Code, it would be helpful to add a note in the Prerequisites or Step 1 clarifying this is for Claude Code specifically, or provide alternative instructions for other AI coding tools mentioned in the prerequisites.
3. Missing validation for prompt file format (nice-to-have)
The generate.py script assumes the prompts file follows a specific markdown format. If the format is wrong, users get a generic "No prompts found" error. Consider adding:
- More specific error messages about what's expected (e.g., "Expected '## Infographic N: Title' headers followed by '### Prompt' sections")
- Or a
--validateflag to check file format before attempting generation
The script does print the expected format on line 142, which is good, but catching specific format errors earlier would improve UX.
Nice-to-Haves (optional improvements)
-
Dependencies documentation: Consider mentioning approximate install sizes or noting that
google-genaiandPilloware the only dependencies (keeping the venv lightweight). -
Example output: A brief description or even a note about what the generated images typically look like would help users set expectations.
-
Model versioning: The Gemini model names (
gemini-2.5-flash-image,gemini-3.1-flash-image-preview) may change. Consider adding a comment in the code about when these were last verified or a link to Gemini's model documentation.
Security & Safety ✅
- No credentials, API keys, or secrets in any file
- No SQL (not applicable)
- No binary blobs
- No modifications to core Open Brain infrastructure
- Environment variable properly checked before use
- No destructive operations
Category-Specific Requirements ✅
Recipe requirements met:
- Folder structure correct (recipes/infographic-generator/)
- README.md present and complete
- metadata.json present and valid
- Code files present (generate.py, skill file)
- Step-by-step instructions clear and copy-paste ready
- Troubleshooting section with multiple scenarios
PR Format ✅
- Title follows
[recipes] Descriptionformat - Body includes what it does, requirements, and test plan
- Proper attribution to @jaredirish
Verdict: Minor fixes needed
This is a strong contribution that's nearly ready to merge. The primary blocker is the broken internal link to brain-dump-processor which should be panning-for-gold. Once that's fixed (and ideally the Auto-Capture Protocol link is updated to note it's not yet merged), this should be good to go.
Great work @jaredirish! This is a creative and practical addition to the Open Brain ecosystem. The skill design is particularly well thought out, and I appreciate how it fits into the larger capture-process-visualize workflow.
justfinethanku
left a comment
There was a problem hiding this comment.
Code Review: Infographic Generator Recipe
Summary
This is a well-structured and thoughtfully designed contribution. The recipe adds a valuable capability to the Open Brain ecosystem by enabling users to generate professional infographic images from their research and thoughts using Gemini's free-tier API. The contribution demonstrates excellent documentation, clean code, and strong integration with the Open Brain flywheel concept.
What's Good
Documentation Excellence:
- README is comprehensive with all required sections (Prerequisites, Steps, Expected Outcome, Troubleshooting)
- Credential tracker is a nice touch for helping users track their setup
- Troubleshooting section covers realistic failure scenarios with actionable solutions
- Clear connection to the Open Brain Flywheel (#84) provides context for the contribution's role
Code Quality:
- Python script properly checks for environment variables before proceeding
- No hardcoded credentials anywhere
- Clean error handling with retry logic for API failures
- Well-structured argument parsing with helpful usage documentation
- Proper use of pathlib for cross-platform compatibility
Skill Design:
- Comprehensive step-by-step process with clear routing logic
- Audience calibration is a thoughtful feature
- Detailed prompt template ensures consistent, high-quality outputs
- Good integration points with Open Brain (both read and write sides)
metadata.json:
- All required fields present and valid
- Appropriate difficulty level (intermediate) and time estimate (15 minutes)
- Tags are relevant and searchable
- Free-tier service requirement aligns with OB1 principles
Required Changes
1. Reference to non-existent recipe (blocking)
Line 132 in README.md references ../brain-dump-processor/:
Together with [Panning for Gold](../brain-dump-processor/) and [Auto-Capture Protocol](../auto-capture-protocol/)...The correct path should be ../panning-for-gold/ (the actual directory name in the repo). Also, the Auto-Capture Protocol recipe doesn't exist yet (PR #42 is still open). You should either:
- Change to:
Together with [Panning for Gold](../panning-for-gold/) and Auto-Capture Protocol (PR #42)... - Or remove the broken link until PR #42 merges
2. Skills directory path assumption (minor but important)
The README assumes the user has a ~/.claude/skills/ directory structure. While this is common for Claude Code, it would be helpful to add a note in the Prerequisites or Step 1 clarifying this is for Claude Code specifically, or provide alternative instructions for other AI coding tools mentioned in the prerequisites.
3. Missing validation for prompt file format (nice-to-have)
The generate.py script assumes the prompts file follows a specific markdown format. If the format is wrong, users get a generic "No prompts found" error. Consider adding more specific error messages about what's expected (the script does print the expected format on line 142, which helps).
Nice-to-Haves (optional improvements)
-
Dependencies documentation: Consider mentioning approximate install sizes or noting that
google-genaiandPilloware the only dependencies (keeping the venv lightweight). -
Example output: A brief description of what the generated images typically look like would help users set expectations.
-
Model versioning: The Gemini model names (
gemini-2.5-flash-image,gemini-3.1-flash-image-preview) may change. Consider adding a comment in the code about when these were last verified.
Security & Safety ✅
- No credentials, API keys, or secrets in any file
- No SQL (not applicable)
- No binary blobs
- No modifications to core Open Brain infrastructure
- Environment variable properly checked before use
- No destructive operations
Category-Specific Requirements ✅
Recipe requirements met:
- Folder structure correct (recipes/infographic-generator/)
- README.md present and complete
- metadata.json present and valid
- Code files present (generate.py, skill file)
- Step-by-step instructions clear and copy-paste ready
- Troubleshooting section with multiple scenarios
PR Format ✅
- Title follows
[recipes] Descriptionformat - Body includes what it does, requirements, and test plan
- Proper attribution to @jaredirish
Verdict: Minor fixes needed
This is a strong contribution that's nearly ready to merge. The primary blocker is the broken internal link to brain-dump-processor which should be panning-for-gold. Once that's fixed (and ideally the Auto-Capture Protocol link is updated to note it's not yet merged), this should be good to go.
Great work @jaredirish! This is a creative and practical addition to the Open Brain ecosystem. The skill design is particularly well thought out, and I appreciate how it fits into the larger capture-process-visualize workflow.
Summary
Turn any research doc, analysis, or Open Brain thought cluster into professional infographic images using Gemini's free-tier image generation API.
--redo Nfor individual image regeneration and--premiumfor better textPart of the Open Brain Flywheel (#84)
This is the visualize side of a three-recipe capture-process-visualize loop:
Second recipe contribution from @jaredirish.
Files
README.md- Full recipe with Prerequisites, Steps, Expected Outcome, Troubleshootingmetadata.json- Recipe metadatainfographic-generator.skill.md- AI coding tool skill (Claude Code compatible)generate.py- Image generation script (usesGEMINI_API_KEYenv var, no hardcoded keys)Test Plan
generate.pyerrors cleanly whenGEMINI_API_KEYis not set