gemini-feedback
Analyzes diagram images via Gemini API to provide feedback on visual quality, alignment, and clarity.
Install
mkdir -p .claude/skills/gemini-feedback && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/5956" && unzip -o skill.zip -d .claude/skills/gemini-feedback && rm skill.zipInstalls to .claude/skills/gemini-feedback
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Get feedback from Gemini API on a diagram image for textbook quality review.Key capabilities
- →Reads image files from a provided path
- →Calls the Gemini API for diagram feedback
- →Provides assessment and improvement suggestions
How it works
The skill reads an image file and sends it to the Gemini 2.5-flash model with a specific prompt to generate feedback.
Inputs & outputs
When to use gemini-feedback
- →Review diagram for errors
- →Check diagram alignment
- →Get improvement suggestions for textbook visuals
About this skill
Gemini Feedback
Get feedback from Gemini API on a diagram image.
Usage
/gemini-feedback <path-to-image> [context]
Instructions
When this command is invoked:
- Read the image file at the provided path
- Call the Gemini API to get feedback on the diagram
- Use this Python snippet to call Gemini (uses the newer
google-genaipackage):
import base64
import os
from google import genai
client = genai.Client(api_key=os.environ['GEMINI_API_KEY'])
with open('<IMAGE_PATH>', 'rb') as f:
img_bytes = f.read()
prompt = '''Review this diagram for a textbook. Be concise and specific.
Context: <CONTEXT>
Please provide:
1. Overall assessment (1-2 sentences)
2. Specific issues to fix (be detailed about visual problems like alignment, overlapping, etc.)
3. Suggestions for improvement
'''
response = client.models.generate_content(
model='gemini-2.5-flash',
contents=[
prompt,
genai.types.Part.from_bytes(data=img_bytes, mime_type='image/png'),
],
)
print(response.text)
- Replace
<IMAGE_PATH>with the actual path provided - Replace
<CONTEXT>with any context provided, or use "Technical diagram for ML/AI textbook" - Ensure GEMINI_API_KEY is set in environment
- Run using:
uv run python -c "..." - Present the feedback to the user
Example
/gemini-feedback diagrams/generated/png/tool_use_generation.png "Diagram showing tool use interleaving in LLM generation"
When not to use it
- →When GEMINI_API_KEY is not set in the environment
Prerequisites
Limitations
- →Requires the google-genai package
- →Requires a valid GEMINI_API_KEY
How it compares
It automates the visual review process for diagrams using a specific LLM prompt instead of manual inspection.
Compared to similar skills
gemini-feedback side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| gemini-feedback (this skill) | 1 | 5mo | Review | Intermediate |
| quant-analyst | 103 | 2mo | No flags | Advanced |
| llava | 7 | 8mo | Review | Advanced |
| cocoindex | 6 | 9mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by natolambert
View all by natolambert →You might also like
quant-analyst
zenobi-us
Expert quantitative analyst specializing in financial modeling, algorithmic trading, and risk analytics. Masters statistical methods, derivatives pricing, and high-frequency trading with focus on mathematical rigor, performance optimization, and profitable strategy development.
llava
zechenzhangAGI
Large Language and Vision Assistant. Enables visual instruction tuning and image-based conversations. Combines CLIP vision encoder with Vicuna/LLaMA language models. Supports multi-turn image chat, visual question answering, and instruction following. Use for vision-language chatbots or image understanding tasks. Best for conversational image analysis.
cocoindex
cocoindex-io
Comprehensive toolkit for developing with the CocoIndex library. Use when users need to create data transformation pipelines (flows), write custom functions, or operate flows via CLI or API. Covers building ETL workflows for AI data processing, including embedding documents into vector databases, building knowledge graphs, creating search indexes, or processing data streams with incremental updates.
ai-multimodal
mrgoonie
Process and generate multimedia content using Google Gemini API. Capabilities include analyze audio files (transcription with timestamps, summarization, speech understanding, music/sound analysis up to 9.5 hours), understand images (captioning, object detection, OCR, visual Q&A, segmentation), process videos (scene detection, Q&A, temporal analysis, YouTube URLs, up to 6 hours), extract from documents (PDF tables, forms, charts, diagrams, multi-page), generate images (text-to-image, editing, composition, refinement). Use when working with audio/video files, analyzing images or screenshots, processing PDF documents, extracting structured data from media, creating images from text prompts, or implementing multimodal AI features. Supports multiple models (Gemini 2.5/2.0) with context windows up to 2M tokens.
rag-implementation
wshobson
Build Retrieval-Augmented Generation (RAG) systems for LLM applications with vector databases and semantic search. Use when implementing knowledge-grounded AI, building document Q&A systems, or integrating LLMs with external knowledge bases.
umap-learn
K-Dense-AI
UMAP dimensionality reduction. Fast nonlinear manifold learning for 2D/3D visualization, clustering preprocessing (HDBSCAN), supervised/parametric UMAP, for high-dimensional data.