gemini-qa
π―Skillfrom funnelenvy/agents_webinar_demos
Queries code and files using Google Gemini CLI, providing AI-powered insights, explanations, and analysis for codebases.
Installation
npx skills add https://github.com/funnelenvy/agents_webinar_demos --skill gemini-qaSkill Details
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.
Overview
# Gemini Q&A
Use Google's Gemini CLI to answer questions about the codebase.
Prerequisites
Gemini CLI must be installed:
```bash
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:
```bash
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:
```bash
# 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
More from this repository9
Generates precise CSV export formats for Google Ads Enhanced Conversions, Customer Match, and Meta Custom Audiences with specific data schema requirements.
Queries and analyzes code using OpenAI Codex CLI, providing read-only codebase exploration and technical insights.
gcp-cli-gotchas skill from funnelenvy/agents_webinar_demos
gcp-bq-data-loading skill from funnelenvy/agents_webinar_demos
Automates browser interactions using Playwright Python, enabling web scraping, screenshot capture, and dynamic page testing with precise element selection.
Automates BigQuery table operations like creation, schema updates, data loading, and management across Google Cloud Platform projects
Automates anomaly detection workflows by connecting data sources, triggering alerts in Slack, and orchestrating multi-step notification processes using N8N workflow automation.
Exports BigQuery data to Cloud Storage in various formats like CSV, JSON, Avro, and Parquet with flexible compression and export options.
Syncs contacts and lists to HubSpot CRM using a private API token, enabling seamless data integration and management.