gemini-cli

Execute Gemini CLI commands in headless mode for automated code analysis.

Updated Feb 25, 2026
One-click install
npx skills add https://github.com/zbl91555/openclaw --skill gemini-cli-zbl91555
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gemini-cli
Source: https://github.com/zbl91555/openclaw/tree/main/skills/gemini-cli
Command: npx skills add https://github.com/zbl91555/openclaw --skill gemini-cli-zbl91555

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gemini, bash, and includes references (resource) components.

What problem does it solve?

This Skill enables non-interactive, automation-friendly execution of Google's Gemini CLI for AI-driven tasks.

Core Features & Use Cases

  • Automated Query Execution: Run Gemini CLI commands in headless mode via prompts or piped input for scripts and agents.
  • Broad Application Scenarios: Ideal for code analysis, document review, automated reporting, and translation workflows.
  • Use Case: Generate a GitHub PR description by piping code diffs into Gemini CLI to produce concise summaries and change highlights.

Quick Start

Use the gemini-cli skill to perform a security review of your Python code by piping the file contents directly into Gemini CLI with a prompt asking for vulnerability analysis.

Frequently Asked Questions about gemini-cli

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

FAQPage Schema
How do I run Gemini CLI in headless mode for automated code analysis?

Run Gemini CLI in headless mode by passing prompts or piping inputs like code diffs directly into the command line. This enables non-interactive, automated execution for AI-driven code analysis and document review workflows.

Can I pipe code diffs into Gemini CLI to generate automated PR descriptions?

Yes, you can pipe code diffs into Gemini CLI to generate automated PR descriptions. The headless execution processes the piped input to produce concise summaries and change highlights for your GitHub pull requests.

Do I need bash and Gemini CLI installed to execute automated AI queries?

Yes, you need both bash and the Gemini CLI tools installed in your environment. These specific dependencies are required to execute the non-interactive, automation-friendly scripts for continuous integration scenarios.

What is the best way to automate AI document review using command line tools?

Automating AI document review is best handled by executing Gemini CLI commands in headless mode via scripts. This approach allows you to process documents automatically without manual interaction for reporting and translation workflows.

How does headless CLI execution fit into continuous integration workflows?

Headless CLI execution integrates into continuous integration workflows by running automated Gemini queries non-interactively. This allows scripts and agents to perform AI-based security reviews and vulnerability analysis automatically during the build process.