gemini
Gemini CLI for one-shot Q&A, summaries, and generation.
Install via CLI (Recommended)
clawhub install openclaw/openclaw/skills/geminiWhat This Skill Does
The Gemini skill for OpenClaw integrates the powerful Gemini large language model directly into your command-line workflow. Unlike chat-heavy interfaces, this skill is specifically designed for one-shot operations, allowing you to pipe input, generate documentation, summarize text, or format data without needing to manage an active chat session. By leveraging the underlying Google Gemini API, it provides high-performance text generation and reasoning capabilities that can be easily integrated into automated scripts, CI/CD pipelines, or daily development tasks.
Installation
Installing the Gemini skill is straightforward through the OpenClaw ecosystem. Run the following command in your terminal:
clawhub install openclaw/openclaw/skills/gemini
After installation, you may need to initialize the authentication flow. Simply run the command gemini once without arguments; the interactive prompt will guide you through the secure login process to link your Google credentials. Once authenticated, the CLI will handle future requests automatically.
Use Cases
This skill excels in environments where rapid, programmatic access to LLM capabilities is required. Common use cases include:
- Automated Commit Message Generation: Pipe your
git diffoutput directly intogeminito summarize your changes. - Data Transformation: Convert unstructured text logs into structured JSON formats for further processing by other scripts.
- Documentation Assistant: Generate boilerplate code comments or README sections based on existing codebase snippets.
- Quick Fact Checking: Retrieve information or explanations while staying strictly within your terminal environment.
Example Prompts
- "gemini 'Summarize the following log file and highlight any critical errors: $(cat system.log)'"
- "gemini --model gemini-1.5-pro 'Refactor the following Python function for better performance: $(cat script.py)'"
- "gemini --output-format json 'Extract all user emails from this text: $(cat contacts.txt)'"
Tips & Limitations
To maximize efficiency, prioritize one-shot prompts. For complex tasks, ensure your input text is concise and well-formatted. Avoid using the --yolo flag to maintain safety and output quality. Remember that the model relies on the specific version and token limits of your API tier. If the output appears truncated, consider breaking your task into smaller, incremental requests. Always verify sensitive data before passing it through the cloud-based API.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-openclaw-gemini": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: external-api
Related Skills
apple-notes
Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.
sherpa-onnx-tts
Local text-to-speech via sherpa-onnx (offline, no cloud)
goplaces
Query Google Places for text search, place details, resolve, reviews, or scriptable JSON via goplaces.
skill-creator
Create, edit, improve, tidy, review, audit, or restructure AgentSkills and SKILL.md files.
video-frames
Extract frames or short clips from videos using ffmpeg.