Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot

gemini — Claude Code skill: what it does, how to install

Runs Gemini CLI in headless one-shot mode for prompts, summaries, and generation. Useful when piping files into Gemini directly from your coding agent.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add openclaw/openclaw --skill gemini -a claude-code
Open on GitHub

What gemini does

This skill guides your agent to invoke Gemini CLI without launching an interactive shell. Positional arguments trigger interactive prompts, so the skill uses the -p or --prompt flag for headless execution. It covers model switching with -m, structured responses with --output-format json, and piped input via stdin like cat notes.md | gemini -p "Summarize".

It requires the gemini binary on your system. You can install it using Homebrew via the gemini-cli formula. If authentication is missing, run gemini once interactively to complete the login steps. Beyond text generation, the CLI supports commands for extensions, hooks, and MCP servers.

Install this if you want to delegate tasks to Gemini or Gemma from inside your coding agent session.

What it helps with

  • pipe file contents into Gemini via stdin for quick summaries
  • generate structured JSON responses using the --output-format flag
  • specify target models using the -m parameter in headless mode
  • manage hooks, extensions, and MCP servers through the Gemini CLI

Example prompts for the agent

  • Summarize notes.md using the gemini CLI
  • Run gemini with prompt "Return JSON" and format json
  • List all installed extensions with gemini --list-extensions

How to install gemini

1Skills CLI (Vercel)

npx skills add openclaw/openclaw --skill gemini -a claude-code

2Manually: put the files in place

~/.claude/skills/gemini/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/gemini/

From the same set45

The whole set →
summarize openclaw Runs a CLI tool to summarize or transcribe web articles, YouTube videos, podcasts, and local PDF documents directly within your AI assistant. Claude Code CX Codex Cursor +1 26,900installs weather openclaw This skill fetches current conditions and forecasts for a city, region, airport code, or coordinates. Use it to check rain and temperature or plan a trip. Claude Code CX Codex Cursor +1 9,300installs gog openclaw Guides an agent using the gog CLI for Gmail, Calendar, Drive, Contacts, Sheets, and Docs. Use it when Google Workspace tasks need to run from a terminal. Claude Code CX Codex Cursor +1 8,500installs tmux openclaw Lets an agent work with live tmux sessions: read pane output, send keys and text, wait for a prompt line to show up. Claude Code CX Codex Cursor +1 8,400installs openai-whisper openclaw This skill lets your agent call the Whisper CLI to transcribe audio on your own machine. No API key needed. Claude Code CX Codex Cursor +1 7,100installs nano-pdf openclaw Edit PDF pages with plain text instructions through the nano-pdf CLI. Useful when you need to fix a typo or swap a heading without leaving your terminal. Claude Code CX Codex Cursor +1 7,100installs skill-creator openclaw A skill for writing, repairing and reviewing other skills. It splits behaviour into branches, sets the frontmatter and sorts resources into folders. Useful once your skill folder gets crowded. Claude Code CX Codex Cursor +1 6,700installs coding-agent openclaw This skill sends large coding tasks to Codex, Claude Code, or OpenCode as background workers. Use it for refactors, PR reviews, and issue-to-PR work. Claude Code CX Codex Cursor +1 6,500installs

Similar

Questions about gemini

How to install gemini in Claude Code?

Run npx skills add openclaw/openclaw --skill gemini -a claude-code. The skill file will be placed in ~/.claude/skills/gemini/SKILL.md.

What does the gemini skill do?

It allows your agent to run headless one-shot prompts, format JSON outputs, and manage extensions or MCP through Gemini CLI.

What system dependencies does gemini require?

You need the gemini binary, installed via brew using the gemini-cli formula. You must also run it interactively once if login is needed.

Source text

SKILL.md · MIT
---
name: gemini
description: "Gemini CLI one-shot prompts, summaries, generation, skills, hooks, MCP, or Gemma routing."
homepage: https://ai.google.dev/
metadata:
  {
    "openclaw":
      {
        "emoji": "✨",
        "requires": { "bins": ["gemini"] },
        "install":
          [
            {
              "id": "brew",
              "kind": "brew",
              "formula": "gemini-cli",
              "bins": ["gemini"],
              "label": "Install Gemini CLI (brew)",
            },
          ],
      },
  }
---

# Gemini CLI

Use Gemini in headless one-shot mode. Positional text starts interactive mode; use `-p/--prompt`.

Quick start

- `gemini -p "Answer this question..."`
- `gemini -m <model> -p "Prompt..."`
- `gemini -p "Return JSON" --output-format json`
- stdin appends to `-p`: `cat notes.md | gemini -p "Summarize"`

Extensions

- List: `gemini --list-extensions`
- Manage: `gemini extensions <command>`
- Skills: `gemini skills <command>`
- Hooks: `gemini hooks <command>`
- MCP: `gemini mcp <command>`

Notes

- If auth is required, run `gemini` once interactively and follow the login flow.

© openclaw · MIT · openclaw/openclaw

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor