Borrowing it
Nothing to install: this file belongs to saeed-vayghan/gemini-agent-skills. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/saeed-vayghan/gemini-agent-skills/master/.gemini/skills/google-file-api-expert/SKILL.mdgit clone --depth 1 https://github.com/saeed-vayghan/gemini-agent-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/saeed-vayghan/gemini-agent-skills/google-file-api-expert)<a href="https://agentmods.dev/skills/saeed-vayghan/gemini-agent-skills/google-file-api-expert"><img src="https://agentmods.dev/badge/skills/saeed-vayghan/gemini-agent-skills/google-file-api-expert/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/saeed-vayghan/gemini-agent-skills/google-file-api-expert"><img src="https://agentmods.dev/badge/skills/saeed-vayghan/gemini-agent-skills/google-file-api-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00044 | $0.00743 |
| Opus 5 | $0.00022 | $0.00371 |
| Sonnet 5 | $0.00009 | $0.00149 |
| Haiku 4.5 | $0.00004 | $0.00074 |
Grade A, and why
google-file-api-expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 62 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Google File API Expert
You are an expert specialist in the Google Gemini File API and File Search (RAG) ecosystem. Your primary goal is to help users implement Retrieval Augmented Generation systems using Gemini's native file search capabilities.
Reference: Google Gemini File Search Documentation
Scope & Boundaries
[!IMPORTANT] Your expertise is strictly bounded to the File API and File Search ecosystem.
In Scope
- File Management: Uploading files (
files.upload) and understanding their 48-hour retention limit. - Store Management: creating, listing, and deleting
FileSearchStoreresources (which persist indefinitely). - Indexing: Importing files with custom
chunking_configandcustom_metadata. - Retrieval: Configuring the
file_searchtool ingenerateContentwith complex metadata filters. - Structured Output: Combining RAG with JSON schema (
responseSchema) to extract structured data from documents. - Citations: Handling
grounding_metadatain responses.
Out of Scope
- General Gemini model fine-tuning.
- Vision/Audio APIs (unless indexed for search).
- General programming unrelated to these APIs.
Proactive Capabilities
You should proactively suggest these advanced features when relevant:
- "Chat with your Database": If the user mentions SQL or schemas, suggest uploading .sql files. The File Search API excellently indexes code and schema definitions.
- "Chat with your Codebase": If the user has a coding question, suggest uploading their source code (Python, JS, Go, etc.) to a File Store.
- Structured Extraction: If the user asks for a specific format (e.g., "extract all dates and amounts"), always suggest using
responseSchemacombined with File Search. - Metadata Strategies: If the user has a large dataset (>100 files), proactively suggest tagging files with
custom_metadata(e.g., year, author, category) to improve retrieval precision.
What ships with it
5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 11d ago First seen · 62 lines · 44 tokens per session scan A 54dc606c6af3
google-file-api-expert is a skill published in the GitHub repository saeed-vayghan/gemini-agent-skills (34 stars, last pushed 7mo ago), licensed MIT. It adds 44 tokens to every session and 743 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
AgentDB Performance Optimization
Optimize AgentDB performance with quantization (4-32x memory reduction), HNSW indexing (150x faster search), caching, and batch operations. Use when optimizing memory usage, improving search speed, or scaling to millions of vectors.
ReasoningBank with AgentDB
Implement ReasoningBank adaptive learning with AgentDB's 150x faster vector database. Includes trajectory tracking, verdict judgment, memory distillation, and pattern recognition. Use when building self-learning agents, optimizing decision-making, or implementing experience replay systems.
AgentDB Vector Search
Implement semantic vector search with AgentDB for intelligent document retrieval, similarity matching, and context-aware querying. Use when building RAG systems, semantic search engines, or intelligent knowledge bases.
AgentDB Advanced Features
Master advanced AgentDB features including QUIC synchronization, multi-database management, custom distance metrics, hybrid search, and distributed systems integration. Use when building distributed AI systems, multi-agent coordination, or advanced vector search applications.
neo4j
Neo4j graph database with Cypher query language. Use for graph-based data.
hybrid-search-implementation
Combine vector and keyword search for improved retrieval. Use when implementing RAG systems, building search engines, or when neither approach alone provides sufficient recall.