.claude/skills/gemini-feedback/SKILL.md
Get feedback from Gemini API on a diagram image for textbook quality review.
npx skillsauth add natolambert/rlhf-book gemini-feedbackInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Get feedback from Gemini API on a diagram image.
/gemini-feedback <path-to-image> [context]
When this command is invoked:
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)
<IMAGE_PATH> with the actual path provided<CONTEXT> with any context provided, or use "Technical diagram for ML/AI textbook"uv run python -c "..."/gemini-feedback diagrams/generated/png/tool_use_generation.png "Diagram showing tool use interleaving in LLM generation"
tools
Update the body of a GitHub pull request. Use when the user asks to update, edit, or modify a PR description/body.
tools
Create a new PR or push commits to an existing PR for the current branch.
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.
development
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.