gemini
Gemini CLI for one-shot Q&A, summaries, and generation.
Why use this skill?
Integrate the Gemini LLM into your terminal with this OpenClaw skill. Perfect for automated summaries, code generation, and fast data processing.
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
sag
ElevenLabs text-to-speech with mac-style say UX.
bear-notes
Create, search, and manage Bear notes via grizzly CLI.
mcporter
Use the mcporter CLI to list, configure, auth, and call MCP servers/tools directly (HTTP or stdio), including ad-hoc servers, config edits, and CLI/type generation.
eightctl
Control Eight Sleep pods (status, temperature, alarms, schedules).
xurl
A CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.