# Usecli Gemini

> Use Gemini as an external CLI worker inside a Claude Code or LikeCode-centered workflow. Good for broad review, first-pass critique, and structured feedback.

- Skill: `harzva/usecli-gemini` (Agent Skill, multi-file: 4 files)
- Install (CLI): `npx skillmds@latest add harzva/usecli-gemini`
- Raw SKILL.md: https://api.skillmd.com/api/skills/harzva/usecli-gemini/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: harzva (https://skillmd.com/u/harzva)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/harzva/usecli-gemini

---


# usecli-gemini

## Overview

Use Google Gemini CLI as an external worker inside a Claude Code workflow.

Best for:
- broad review
- first-pass critique
- structured feedback
- long-context reasoning

## Install

This sub-skill can be installed independently:

```bash
skill install https://github.com/Harzva/usecli-gemini
```

Or manually:

```bash
git clone https://github.com/Harzva/usecli-gemini.git
mkdir -p ~/.claude/skills
ln -s $(pwd) ~/.claude/skills/usecli-gemini
```

## Command

```bash
bash ~/.claude/skills/usecli-gemini/scripts/usecli-gemini.sh --prompt "<prompt>"
```

Or with a prompt file:

```bash
bash ~/.claude/skills/usecli-gemini/scripts/usecli-gemini.sh --prompt-file <path>
```

## Verification

Run the local smoke test:

```bash
bash ~/.claude/skills/usecli-gemini/tests/test_wrapper.sh
```

## Environment Variables

| Variable | Purpose | Default |
| --- | --- | --- |
| `USECLI_GEMINI_BIN` | Gemini executable | `gemini` |
| `USECLI_GEMINI_MODEL` | Model override | (none) |
| `USECLI_GEMINI_OUTPUT_FORMAT` | Output format | `text` |
| `USECLI_GEMINI_TIMEOUT` | Timeout seconds | (none) |

## Good Fits

- When you need broad coverage on a document or design
- When you want structured critique with strengths/weaknesses/suggestions
- When you need Gemini's long-context capabilities for large documents

## Notes

- Uses `gemini -p` in non-interactive mode
- Requires local Gemini CLI installation and web login
- For first-time setup, complete browser authentication first

## Resources

### `bin/usecli-gemini.sh`

The wrapper script. Sources `bin/usecli-lib.sh` for shared functionality.

### `examples/workflows/multi-model-review.sh`

Demonstrates multi-model review workflow including Gemini.
