Guide for implementing Google Gemini API document processing - analyze PDFs with native vision to extract text, images, diagrams, charts, and tables. Use when processing documents, extracting structured data, summarizing PDFs, answering questions about document content, or converting documents to structured formats. (project)
Agent skill for processing PDF documents using Google Gemini API's native vision capabilities.
This skill enables Claude Code to process and analyze PDF documents with Gemini's multimodal vision API. Extract structured data, summarize content, answer questions, and understand complex documents containing text, images, diagrams, charts, and tables.
Get your Gemini API key from: https://aistudio.google.com/apikey
The skill checks for API key in this priority order:
Environment variable (recommended):
export GEMINI_API_KEY="your-api-key-here"
Skill directory:
cp .env.example .env
# Edit .env and add your API key
Project root:
echo "GEMINI_API_KEY=your-api-key-here" > ../../../.env
pip install google-genai python-dotenv
./scripts/check-api-key.sh
Simply invoke the skill when working with documents:
/gemini-document-processing
Claude will have access to all document processing capabilities.
# Basic usage
python scripts/process-document.py \
--file document.pdf \
--prompt "Summarize this document"
# Extract structured data as JSON
python scripts/process-document.py \
--file invoice.pdf \
--prompt "Extract invoice details" \
--format json
# Process large file with File API
python scripts/process-document.py \
--file large-report.pdf \
--prompt "Analyze this report" \
--use-file-api
# Multiple prompts
python scripts/process-document.py \
--file contract.pdf \
--prompt "What are the key terms?" \
--prompt "What are the obligations?"
gemini-document-processing/
├── SKILL.md # Skill entrypoint (loaded by Claude)
├── README.md # This file
├── .env.example # Environment template
├── scripts/
│ ├── process-document.py # Main processing script
│ └── check-api-key.sh # API key verification utility
└── references/
├── gemini-document-processing-report.md # Comprehensive API reference
├── quick-reference.md # Quick lookup guide
└── code-examples.md # Code patterns and examples
See references/code-examples.md for comprehensive examples including:
API Key Not Found:
./scripts/check-api-key.sh
File Too Large:
--use-file-api flagVision Not Working:
This skill is part of ClaudeKit Engineer project.
npx skills add einverne/gemini-document-processing下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer