smithery.ai

gemini-feedback

Get feedback from Gemini API on a diagram image for textbook quality review.

First seen Mar 26, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Allowed toolsBash(uv run python:*), Read

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,622 B
  • docs SUMMARY.md 99 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Gemini Feedback

Get feedback from Gemini API on a diagram image.

Usage

/gemini-feedback <path-to-image> [context]

Instructions

When this command is invoked:

  1. Read the image file at the provided path
  2. Call the Gemini API to get feedback on the diagram
  3. Use this Python snippet to call Gemini (uses the newer google-genai package):
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)
  1. Replace <IMAGE_PATH> with the actual path provided
  2. Replace <CONTEXT> with any context provided, or use "Technical diagram for ML/AI textbook"
  3. Ensure GEMINIAPIKEY is set in environment
  4. Run using: uv run python -c "..."
  5. Present the feedback to the user

Example

/gemini-feedback diagrams/generated/png/tool_use_generation.png "Diagram showing tool use interleaving in LLM generation"