claude/skills/gemini/SKILL.md
Gemini CLI for one-shot Q&A, summaries, generation, and large-context codebase analysis (1M token window). Use for quick questions or feeding entire directories to Gemini.
npx skillsauth add kendreaditya/.config geminiInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
# One-shot Q&A (non-interactive)
gemini -p "What is the capital of France?"
# With a specific model
gemini -m gemini-3-flash-preview -p "Explain quicksort"
# JSON output
gemini -p "Return a JSON list of planets" -o json
| Flag | Description |
|------|-------------|
| -p, --prompt | Non-interactive (headless) mode — required for scripting |
| -i, --prompt-interactive | Run prompt then continue in interactive mode |
| -m, --model | Select model (see Models below) |
| -o, --output-format | text (default), json, stream-json |
| -y, --yolo | Auto-approve all tool calls (use with caution) |
| --approval-mode | default, auto_edit, yolo, plan (read-only) |
| -s, --sandbox | Run in sandbox |
| -r, --resume | Resume a previous session (ID or latest) |
| --list-sessions | List available sessions |
| --include-directories | Add extra directories to workspace |
| --policy | Additional policy files/directories |
| -e, --extensions | Limit which extensions are used |
| -l, --list-extensions | List all available extensions |
| --screen-reader | Accessibility mode |
gemini mcp # Manage MCP servers
gemini extensions <command> # Manage extensions
gemini skills <command> # Manage agent skills
gemini hooks <command> # Manage hooks
Default to Flash — fast and handles most tasks well. Use Pro for deeper reasoning.
| Model | Flag | Use case |
|-------|------|----------|
| Flash (default) | -m gemini-3-flash-preview | General tasks, large context |
| Pro | -m gemini-3.1-pro-preview | Complex reasoning, architecture |
| Flash-Lite | -m gemini-3.1-flash-lite-preview | High-volume, fastest, cheapest |
Check latest available models:
~/.claude/skills/gemini/scripts/gemini-smart.sh
Gemini's 1M token context window is ideal for analyzing entire codebases. Use @path syntax to include files/directories in the prompt.
# Single file
gemini -m gemini-3-flash-preview -p "@src/main.py Explain this file"
# Multiple files
gemini -m gemini-3-flash-preview -p "@package.json @src/index.js Analyze dependencies"
# Entire directory (recursive)
gemini -m gemini-3-flash-preview -p "@src/ Summarize architecture"
# All project files
gemini -m gemini-3-flash-preview --all-files -p "Project overview"
# Multiple directories
gemini -m gemini-3-flash-preview -p "@src/ @tests/ Analyze test coverage"
# Architecture analysis
gemini -m gemini-3.1-pro-preview -p "@src/ Describe overall architecture, key modules, data flow, and external dependencies"
# Security audit
gemini -m gemini-3.1-pro-preview -p "@src/ @api/ Review for input validation, auth patterns, injection risks"
# Test coverage
gemini -m gemini-3-flash-preview -p "@src/ @tests/ Which modules lack tests? What edge cases are missing?"
# Save long output
gemini -m gemini-3-flash-preview -p "@src/ Full analysis" > analysis.md
# Google OAuth (free tier: 60 req/min, 1000/day)
gemini # Follow OAuth flow on first run
# Or use API key
export GEMINI_API_KEY="your-key"
-p for non-interactive/scripted usage-y when the prompt references files via @path or when Gemini may need tools (file reads, shell commands) — without it, tool calls silently fail in non-interactive modecat file.md | gemini -p "...") is a reliable alternative to @path for single files--yolo for untrusted/dangerous tool calls, but it's safe and necessary for read-only file analysisCannot find module keytar.node) is cosmetic — file-based fallback works finedevelopment
Search and read content from leetcode.com — problem catalog, daily challenge, full problem statements with hints and starter code, the Discuss forum (interview experiences, comp posts, layoff threads), and company question-list metadata. Read-only, no auth, no API key. Use when the user wants to look up a LeetCode problem by name/number/slug, see today's daily challenge, search Discuss for interview write-ups at a specific company (Google, Waymo, Meta, Amazon, etc.), browse a tag-filtered discuss feed, read a Discuss post + comments, or check what a LeetCode company list covers. Triggers — "lcsearch", "leetcode search", "search leetcode", "leetcode discuss", "leetcode problem", "daily leetcode", "interview discuss", "what's the leetcode for X", URLs containing leetcode.com/problems/, leetcode.com/discuss/, or leetcode.com/company/. Pair with the `interviewcoder` skill (structured leetcode-style writeups from 1point3acres) and `blind` (anonymous workplace chatter) for the same companies.
development
Terminal Spotify playback/search via spogo (preferred) or spotify_player.
development
Search and read posts from interviewcoder.co — a Next.js-fronted aggregator of technical-interview writeups (largely sourced from 1point3acres) tagged by company, position, stage (Phone Screen / OA / Onsite / etc.), period, job type, and structured leetcode-style questions. Use when the user wants real interview questions for a specific company, recent writeups from a hiring loop, leetcode-style problems with tags and difficulty, or to look up a specific interviewcoder.co URL. Read-only, no auth, no API key. Triggers — "interviewcoder", "interviewcoder.co", "interview questions at [company]", "what's been asked at [company] recently", "interview writeup", and URLs containing interviewcoder.co.
tools
Small Yahoo Finance CLI for ticker info + N-year stock returns. Use when the user asks about: stock price, market cap, sector/industry classification, dividend yield, P/E ratio, beta, 52-week range, N-year stock return, company description for a public company. Triggers: 'yfinance', 'yfin', 'stock price', 'market cap of', 'how much has X stock returned', 'sector for ticker', 'industry classification'. Pairs with the levels-fyi skill for cross-checking public/private status (levels gives ticker, yfin returns live data).