gemini
Skill15 starsChanged 43 days agoMITView on GitHub
Expert Google Gemini API assistance covering Gemini 1.5 Pro / Flash, multimodal reasoning (audio, video, PDF), and structured outputs. Use when building multi-modal AI applications with Google's foundation models.
- Reads credentials
63 other projects use a version of this.
Adopted by
Most recently taken up by
- choughton/feature-design-prompt-templatestheir own version, first seen Nov 8, 2026
- JustinPerea/nebula-nodestheir own version, first seen Nov 5, 2026
- QVerisAI/QVerisBottheir own version, first seen Nov 1, 2026
- AlekseiUL/heisenberg-team-GPTtheir own version, first seen Nov 1, 2026
- AlekseiUL/heisenberg-teamtheir own version, first seen Nov 1, 2026
- AlekseiUL/sprut-agent-kittheir own version, first seen Nov 1, 2026
Used with
Projects with it also use voice-call, BlueBubbles and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
seedprodSkillvoice-call
Start voice calls via the OpenClaw voice-call plugin.
Also in 14 projects that use this
jiulingyunSkillBlueBubbles
为Clawdbot构建或更新BlueBubbles外部通道插件(扩展包,REST发送/探测,webhook入站)。
Also in 14 projects that use this
AlekseiULSkillTubeScribe
YouTube video summarizer with speaker detection, formatted documents, and audio output. Works out of the box with macOS built-in TTS. Optional recommended tools (pandoc, ffmpeg, mlx-audio) enhance quality. Requires internet for YouTube access. No paid APIs or subscriptions. Use when user sends a YouTube URL or asks to summarize/transcribe a YouTube video.
Also in 3 projects that use this
seedprodSkillimsg
iMessage/SMS CLI for listing chats, history, watch, and sending.
Also in 15 projects that use this
AtomicBot-aiSkilltaskflow-inbox-triage
Also in 4 projects that use this
jiulingyunSkillSAG
具有mac风格say用户体验的ElevenLabs文本转语音。
Also in 15 projects that use this
- +6 more from seedprod
Other versions63 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 63
- moltbot/clawdbot★ 394ksame name
- steipete/warelay★ 394ksame name
- steipete/clawdis★ 394ksame name
- moltbot/moltbot★ 394ksame name
- clawdbot/clawdbot★ 394ksame name
- openclaw/openclaw★ 394ksame name
- molt-bot/clawdbot★ 391ksame name
- spinabot/brigade★ 11ksame name
- the-open-agent/openagent★ 5.7ksame name
- casibase/casibase★ 5.7ksame name
53 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository350 other files it gives its agents.
- airflowSkill
- catboostSkill
- claudeSkill
- comfyuiSkill
- cursor-aiSkill
- dalleSkill
- daskSkill
- dbtSkill
- deepseekSkill
- fastaiSkill
- github-copilotSkill
- huggingfaceSkill
- jaxSkill
- jupyterSkill
- kerasSkill
- langchainSkill
- lightgbmSkill
- llamaindexSkill
- llamaSkill
- matplotlibSkill
- midjourneySkill
- mistralSkill
- mlflowSkill
- nltkSkill
- numpySkill
- ollamaSkill
- openai-gptSkill
- opencvSkill
- pandasSkill
- perplexitySkill
- plotlySkill
- polarsSkill
- pytorchSkill
- raySkill
- scikit-learnSkill
- seabornSkill
- spacySkill
- sparkSkill
- stable-diffusionSkill
- tensorflowSkill
- vaexSkill
- weights-biasesSkill
- whisperSkill
- xgboostSkill
- api-gatewaySkill
- clean-architectureSkill
- cqrsSkill
- domain-driven-designSkill
- event-drivenSkill
- event-sourcingSkill
- graphqlSkill
- grpcSkill
- hexagonalSkill
- microservicesSkill
- modular-monolithSkill
- monolithSkill
- rest-apiSkill
- sagaSkill
- serverlessSkill
- service-meshSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 58 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 149
Use gemini-1.5-flash for high-volume, low-latency tasks and gemini-1.5-pro for deep reasoning.
- Distinctive: line 156
Leave sensitive credentials exposed in client-side code.
- Distinctive: line 157
Use high temperature settings (> 0.4) when strict schema compliance or factual retrieval is required.
“Common” is measured: kept by at least 6 in 10 of the 58 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Gemini
Gemini is Google's native multimodal foundation model family, featuring native audio, image, and video comprehension alongside million-token context windows and fast tool-calling.
When to Use
- Massive Multimodal Understanding: Gemini 1.5 Pro / Flash processing up to 2 million tokens of text, hours of video, audio, and large codebases.
- Structured JSON Extraction: Enforcing rigid response schemas with Pydantic and native
response_schema. - High-Speed Real-Time Inference: Gemini 1.5 Flash for sub-second, cost-effective conversational assistants and summarization.
- Code & Repository Analysis: Analyzing entire GitHub repositories in a single context window.
Quick Start
from google import genai
client = genai.Client()
response = client.models.generate_content(
model="gemini-2.0-flash",
contents="Explain quantum computing in one short paragraph.",
)
print(response.text)Core Concepts
Structured Output with Pydantic & Google GenAI SDK
Enforcing type-safe JSON schema responses:
from google import genai
from google.genai import types
from pydantic import BaseModel, Field
import os
client = genai.Client(api_key=os.environ.get("GEMINI_API_KEY"))
class InvoiceExtraction(BaseModel):
invoice_number: str
vendor: str
total_amount: float = Field(description="Total invoice amount in USD")
items: list[str]
is_paid: bool
response = client.models.generate_content(
model='gemini-1.5-flash',
contents='Invoice #INV-2026-908 from CloudCorp for $1,450.00. Included 2 Cloud Servers and 1 Storage bucket. Paid via Wire.',
config=types.GenerateContentConfig(
response_mime_type="application/json",
response_schema=InvoiceExtraction,
temperature=0.1
),
)
extracted: InvoiceExtraction = InvoiceExtraction.model_validate_json(response.text)
print(f"Extracted Invoice: {extracted.invoice_number}, Total: ${extracted.total_amount}")Native Video & Audio Multimodal Analysis
Processing video files directly using the File API:
from google import genai
client = genai.Client()
# Upload video file to File API
video_file = client.files.upload(file="presentation.mp4")
# Query video content directly
response = client.models.generate_content(
model="gemini-1.5-pro",
contents=[
video_file,
"Summarize the key decisions made between timestamp 04:15 and 08:30 in this meeting."
]
)
print(response.text)Context Caching for Massive Contexts
Reducing cost on recurring queries against massive datasets:
from google import genai
from google.genai import types
import datetime
client = genai.Client()
# Create cached content for a massive documentation corpus
cache = client.caches.create(
model='gemini-1.5-pro',
config=types.CreateCachedContentConfig(
contents=[large_documentation_file],
ttl=datetime.timedelta(hours=2),
display_name='api_documentation_v2'
)
)
# Query against cache at significantly reduced per-token cost
response = client.models.generate_content(
model='gemini-1.5-pro',
contents='What are the rate limits for the batch endpoint?',
config=types.GenerateContentConfig(cached_content=cache.name)
)Common Patterns
Multimodal Document Analysis (PDF / Audio / Video)
Problem: Processing multi-page PDF documents or audio files without complex local extraction libraries.
Solution: Upload file using the Google GenAI File API:
# Upload document directly to Gemini File API
doc_file = client.files.upload(file="contract.pdf")
response = client.models.generate_content(
model="gemini-2.0-flash",
contents=[
doc_file,
"Extract the governing law, termination notice period, and liability cap."
]
)
print(response.text)Best Practices
Do:
- Target the modern Google GenAI SDK (
google-genai) instead of legacy deprecated libraries. - Use
gemini-1.5-flashfor high-volume, low-latency tasks andgemini-1.5-profor deep reasoning. - Enforce structured outputs with
response_schemaand Pydantic models for reliable API integrations. - Leverage Context Caching for prompts exceeding 32k tokens that are reused across multiple calls.
Don't:
- Upload raw video/audio base64 payloads inline; use the
client.files.upload()API. - Leave sensitive credentials exposed in client-side code; proxy requests through a secure backend.
- Use high temperature settings (> 0.4) when strict schema compliance or factual retrieval is required.
Troubleshooting
| Error | Cause | Solution |
google.genai.errors.APIError: 400 Invalid argument | Unsupported file format or invalid model name. | Verify model identifier (e.g. gemini-2.0-flash or gemini-1.5-pro). |
ResourceExhausted: 429 Quota exceeded | Rate limit hit on free tier requests per minute. | Implement client-side rate limiting or upgrade to paid tier API key. |
Missing GEMINI_API_KEY environment variable | Environment variable not exported in shell. | Export export GEMINI_API_KEY="AIzaSy...". |
References
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

