Agent skill
gemini-qa
Use Google Gemini CLI to answer questions about code, analyze files, or perform codebase exploration. Invoke this skill when the user asks to use Gemini, wants a second opinion from another AI, or wants to compare Claude's answer with Gemini's response.
Install this agent skill to your Project
npx add-skill https://github.com/FunnelEnvy/agents_webinar_demos/tree/main/.claude/skills/gemini-qa
SKILL.md
Gemini Q&A
Use Google's Gemini CLI to answer questions about the codebase.
Prerequisites
Gemini CLI must be installed:
npm install -g @anthropic-ai/gemini-cli
# or follow installation at https://github.com/google-gemini/gemini-cli
Authentication must be configured (Google API key or Application Default Credentials).
Usage
Spawn the gemini-qa subagent to handle the question:
Use the Task tool to spawn the gemini-qa agent with the user's question.
The subagent will:
- Formulate a clear prompt for Gemini
- Run
gemini -p "question"in headless mode - Return Gemini's response
Direct Usage (without subagent)
If you prefer to run Gemini directly:
gemini -p "your question here"
# or
gemini "your question here"
Command Options
- Basic query:
gemini -p "question" - Positional:
gemini "question" - Pipe input:
cat file.txt | gemini -p "summarize this" - JSON output:
gemini -p "question" --output-format json - File reference:
gemini -p "@src/file.ts explain this"
File References with @
Gemini supports @ syntax to include file context:
# Reference a specific file
gemini -p "@src/auth.ts Explain this module"
# Reference a directory
gemini -p "@src/ Summarize all code here"
Common Use Cases
- Code explanation: "What does this function do?"
- Architecture questions: "How is the database layer structured?"
- Finding patterns: "Where is error handling implemented?"
- Code review: "Review this file for potential issues"
- Comparison: Get a second opinion on a code question
Notes
- Use
-pflag for headless (non-interactive) mode - Gemini is git-aware and respects
.gitignorefor directory references - For complex questions, use the subagent for better context isolation
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
playwright-browser
Use when capturing screenshots, automating browser interactions, or scraping web content. Covers Playwright Python API for page navigation, screenshots, element selection, form filling, and waiting strategies.
bq-query-optimization
Use when writing BigQuery queries, optimizing query performance, analyzing execution plans, or avoiding common SQL gotchas. Covers parameterized queries, UDFs, scripting, window functions (QUALIFY, ROW_NUMBER, RANK, LEAD/LAG), JSON functions, ARRAY/STRUCT operations, BigQuery-specific features (EXCEPT, REPLACE, SAFE_*), CTE re-execution issues, NOT IN with NULLs, DML performance, Standard vs Legacy SQL, and performance best practices.
n8n-workflow
Use when creating, deploying, or managing N8N workflows. Automatically uses N8N_HOST and N8N_API_KEY from environment.
gcp-bq-data-loading
Use when loading data into BigQuery from CSV, JSON, Avro, Parquet files, Cloud Storage, or local files. Covers bq load command, source formats, schema detection, incremental loading, and handling parsing errors.
gcp-cli-gotchas
Use when encountering gcloud or bq CLI formatting errors, quote escaping issues, command substitution problems, or when debugging CLI commands. Provides solutions for backtick usage, heredoc syntax, timestamp filters, parameter escaping, and multiline command formatting.
gcp-bq-table-management
Use when creating BigQuery tables, implementing partitioning or clustering, managing table schemas, or optimizing table structure. Covers time-based partitioning, range partitioning, clustering strategies, DDL commands, and table configuration.
Didn't find tool you were looking for?