gemini

Run non-interactive Gemini CLI prompts for Q&A, summaries, and large-context analysis.

Updated May 18, 2022
One-click install
npx skills add https://github.com/kendreaditya/.config --skill gemini-kendreaditya
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gemini
Source: https://github.com/kendreaditya/.config/tree/main/claude/skills/gemini
Command: npx skills add https://github.com/kendreaditya/.config --skill gemini-kendreaditya

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Gemini CLI provides a fast way to obtain quick answers, summaries, and detailed analyses of large codebases and documents without long setup.

Core Features & Use Cases

  • One-shot Q&A: Ask questions and get immediate answers in text or JSON.
  • Summaries & Generation: Generate concise summaries or new content from input materials.
  • Large-context analysis: Analyze entire directories or large files with support for different models and outputs.

Quick Start

Run gemini -p "Explain this module" to get a concise answer.

Frequently Asked Questions about gemini

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform large-context code analysis on an entire directory?

Large-context code analysis of entire directories is performed by running the Gemini CLI with a non-interactive prompt. You can execute `gemini -p "Explain this module"` to obtain immediate summaries or detailed answers for large codebases.

Can I get JSON output for one-shot Q&A queries?

Yes, one-shot Q&A queries support JSON or text outputs. By using the CLI with a prompt via the `-p` flag, you can generate concise summaries and retrieve immediate answers formatted as JSON across large files and directories.

How do I select different models for codebase summaries?

Codebase summaries and generation tasks support optional model selection via the `-m` flag. You can specify your desired model when running the CLI to analyze large directories or single files and output results in text or JSON.

Does the Gemini CLI require an interactive session to analyze large files?

No, the Gemini CLI does not require an interactive session to analyze large files. It supports non-interactive prompts through the `-p` flag, enabling fast one-shot Q&A and large-context analysis without long setup or interactive modes.

What is the best way to generate concise summaries from input materials?

Generating concise summaries from input materials is best achieved through the Gemini CLI's one-shot prompt feature. Running a command with the `-p` flag allows you to quickly generate summaries and perform large-context analysis on text and codebases.