gemini

Execute Gemini CLI prompts for code analysis and generation.

4|2|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/PeterFile/my-common-skills --skill gemini-peterfile
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gemini
Source: https://github.com/PeterFile/my-common-skills/tree/main/gemini
Command: npx skills add https://github.com/PeterFile/my-common-skills --skill gemini-peterfile

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates access to the Gemini CLI to perform AI-powered code analysis and generation, reducing setup time for complex reasoning tasks.

Core Features & Use Cases

  • Model-flexible: Works with multiple Gemini models via GEMINI_MODEL and command-line options.
  • Prompt-driven: Executes user prompts to analyze, refactor, or generate code.
  • Use Case: When reviewing a large codebase, supply a prompt to analyze architecture or generate refactor suggestions.

Quick Start

Use the gemini skill to run a prompt against a sample project using the gemini.py wrapper, for example: uv run ~/.claude/skills/gemini/scripts/gemini.py "explain this function" "/path/to/project"

Frequently Asked Questions about gemini

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

FAQPage Schema
How do I use Gemini CLI for automated code analysis and refactoring?

To use Gemini CLI for automated code analysis, execute the provided Python wrapper script with your analysis prompt and target project path. This passes your query to the Gemini model to generate code insights and refactor suggestions directly from the command line.

Can I specify a different Gemini model for code generation tasks?

Yes, you can specify a different Gemini model for code generation. The Skill is model-flexible and allows you to select between multiple Gemini models by configuring the GEMINI_MODEL environment variable or by passing the -m command-line option during execution.

What are the prerequisites for running Gemini AI code review workflows?

The prerequisite for running Gemini AI code review workflows is having the Gemini CLI installed and accessible in your system's PATH. You also need Python installed to execute the wrapper script that processes your prompts and manages the execution.

Does the Gemini CLI wrapper support running prompts in a specific project directory?

Yes, the Gemini CLI wrapper supports running prompts in a specific project directory. You can provide an optional working directory path as the second argument to the script, ensuring the code analysis executes within the correct project context.

What is the execution timeout limit when running Gemini CLI for code insights?

The execution timeout limit when running Gemini CLI for code insights is a fixed 2-hour window. This extended timeout accommodates complex code review and large codebase analysis tasks that require deeper reasoning and longer processing times to complete.

How does this approach compare to other CLI tools in the Software Engineering category?

Unlike other CLI tools in the Software Engineering category, this approach specifically automates the Gemini CLI for AI-powered code analysis. It provides a model-flexible, prompt-driven wrapper that streamlines architectural reviews and refactoring without manual CLI configuration.