gemini

Runs Gemini CLI in headless one-shot mode for prompts, summaries, and JSON generation.

1|Updated Jun 9, 2026
One-click install
npx skills add https://github.com/JEROME-PRAKASH-L/openclaw --skill gemini-jerome-prakash-l
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gemini
Source: https://github.com/JEROME-PRAKASH-L/openclaw/tree/main/skills/gemini
Command: npx skills add https://github.com/JEROME-PRAKASH-L/openclaw --skill gemini-jerome-prakash-l

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? It lets you invoke Google's Gemini models directly from the terminal in non-interactive, one-shot mode, so you can script prompts, summaries, and structured generation without opening a chat session. ## Core Features & Use Cases - Headless Prompting: Run single prompts with gemini -p and pipe stdin content for summarization or transformation. - Structured Output: Request JSON responses with --output-format json for downstream automation. - Extension Management: List and manage extensions, skills, hooks, and MCP servers via gemini extensions, gemini skills, gemini hooks, and gemini mcp. - Use Case: Pipe a meeting transcript into gemini -p "Summarize" to get a concise summary, or generate JSON-formatted answers for a shell script pipeline. ## Quick Start Ask the assistant to run a one-shot Gemini prompt such as summarizing a file by piping it into gemini with the -p flag.

Frequently Asked Questions about gemini

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

FAQPage Schema
How do I run Gemini CLI in non-interactive mode?

Use the -p or --prompt flag, for example `gemini -p "Answer this question..."`. Passing positional text without the flag starts interactive mode instead, so always use -p for scripted one-shot calls.

How to get JSON output from Gemini CLI?

Add the --output-format json flag to your prompt, such as `gemini -p "Return JSON" --output-format json`. This returns structured output suitable for parsing in shell pipelines or scripts.

Can I pipe files into Gemini CLI for summarization?

Yes, stdin content is appended to the -p prompt. Run `cat notes.md | gemini -p "Summarize"` to summarize a file's contents in a single command.

Why does Gemini CLI ask for authentication?

The CLI requires a one-time login before headless use. Run `gemini` once interactively and follow the login flow; after that, scripted -p calls work without further prompts.

How do I manage Gemini CLI extensions and MCP servers?

List installed extensions with `gemini --list-extensions` and manage them via `gemini extensions <command>`. Skills, hooks, and MCP servers are managed with `gemini skills`, `gemini hooks`, and `gemini mcp` subcommands.