gemini
Gemini CLI for one-shot Q&A, summaries, and generation.
Why use this skill?
Integrate Google Gemini into your OpenClaw workflows. Use this CLI tool for one-shot summaries, JSON generation, and automated tasks directly from your terminal.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/steipete/geminiWhat This Skill Does
The Gemini CLI skill provides a robust bridge between the OpenClaw agent and Google's Gemini models. Unlike interactive chatbot interfaces, this skill is optimized for the 'one-shot' paradigm, making it ideal for integration into automated workflows, shell pipelines, and programmatic request cycles. By treating AI interactions as standard command-line operations, users can seamlessly pipe content into the model for summarization, creative generation, or logical reasoning tasks without the overhead of maintaining a persistent session.
Installation
To integrate this skill into your environment, use the OpenClaw hub. Run the following command in your terminal:
clawhub install openclaw/skills/skills/steipete/gemini
Before initial use, verify your authentication status. If this is your first time using the tool, simply run gemini in your terminal without arguments to trigger the interactive login flow. Follow the on-screen prompts to link your API credentials securely.
Use Cases
- Automated Summarization: Pipe log files or long-form documentation into Gemini to generate concise summaries for reporting.
- Data Transformation: Utilize the
--output-format jsonflag to parse unstructured text into structured data structures for secondary processing. - Content Generation: Rapidly generate boilerplate code, email drafts, or documentation snippets directly from the terminal.
- Workflow Logic: Use Gemini as a decision-making node within custom scripts, where the CLI output determines the next step of a bash or Python script.
Example Prompts
- "gemini --model gemini-1.5-pro "Summarize the following git diff into a professional commit message format: $(git diff)""
- "gemini --output-format json "Extract the incident ID and priority level from this system alert: $(cat alert.log)""
- "gemini "Explain this recursive function in simple terms: $(cat script.py)""
Tips & Limitations
- Safety: Always avoid the
--yoloflag. This flag bypasses standard safety filters and is intended only for development environments where harmful output is expected or acceptable. Keep safety filters enabled for general-purpose use. - Authentication: If you experience 'unauthorized' errors, simply re-run the
geminibase command to refresh your token. - Extension Management: Use
gemini --list-extensionsto see available plugins. Manage them usinggemini extensions <command>to keep your toolset lean. - Performance: Remember that one-shot prompts count as individual API calls. For extremely large datasets, consider pre-processing or truncating your input to stay within token limits.
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-steipete-gemini": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: external-api
Related Skills
swiftui-liquid-glass
Implement, review, or improve SwiftUI features using the iOS 26+ Liquid Glass API. Use when asked to adopt Liquid Glass in new SwiftUI UI, refactor an existing feature to Liquid Glass, or review Liquid Glass usage for correctness, performance, and design alignment.
qmd
Local search/indexing CLI (BM25 + vectors + rerank) with MCP mode.
songsee
Generate spectrograms and feature-panel visualizations from audio with the songsee CLI.
summarize
Summarize URLs or files with the summarize CLI (web, PDFs, images, audio, YouTube).
bird
X/Twitter CLI for reading, searching, and posting via cookies or Sweetistics.