home / skills / openclaw / skills / gemini
This skill helps you use Gemini CLI for fast one-shot Q&A, summaries, and generation with simple prompts.
npx playbooks add skill openclaw/skills --skill geminiReview the files below or copy the command above to add this skill to your agents.
---
name: gemini
description: Gemini CLI for one-shot Q&A, summaries, and generation.
homepage: https://ai.google.dev/
metadata: {"clawdbot":{"emoji":"♊️","requires":{"bins":["gemini"]},"install":[{"id":"brew","kind":"brew","formula":"gemini-cli","bins":["gemini"],"label":"Install Gemini CLI (brew)"}]}}
---
# 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.
This skill provides a compact Gemini CLI for one-shot Q&A, summaries, and text generation. It is designed to run from the command line with a simple positional prompt and supports model selection, structured output formats, and extension management. The tool emphasizes non-interactive usage for reproducible results and archival convenience.
Run the CLI with a single prompt argument to produce one-shot answers or generations. You can choose a model with --model, request structured output like JSON with --output-format, and list or manage extensions with built-in subcommands. If authentication is required, the first run can be interactive to complete login before switching to non-interactive mode.
Do I need to login to use the CLI?
Some configurations require authentication; run gemini once interactively and follow the login flow, then use non-interactive mode.
How do I get machine-readable output?
Add --output-format json to return JSON that can be parsed by your scripts or tools.