Gemini

Gemini CLI for one-shot Q&A, summaries, and generation.

Peter Steinberger

@steipete

What This Skill Does

Command-line interface for Google's Gemini model that accepts a single prompt and returns a response. Supports model selection, JSON output, and extension management.

Replaces opening a browser and typing into the Gemini web interface by enabling one-shot Q&A, summarization, and generation directly from the terminal.

When to Use It

  • Ask a factual question and get a concise answer without leaving the terminal
  • Summarize a block of text by piping it into Gemini as a prompt
  • Generate JSON-structured output for scripting or data pipelines
  • Quickly draft an email, tweet, or short document from a one-line prompt
  • Test different Gemini models side-by-side by specifying the model flag

Install

$ openclaw skills install @steipete/gemini

Gemini CLI

Use Gemini in one-shot mode with a positional prompt (avoid interactive mode).

Quick start

  • gemini "Answer this question..."
  • gemini --model <name> "Prompt..."
  • gemini --output-format json "Return JSON"

Extensions

  • List: gemini --list-extensions
  • Manage: gemini extensions <command>

Notes

  • If auth is required, run gemini once interactively and follow the login flow.
  • Avoid --yolo for safety.

Top skills in this category