Skip to main content

Bootstrap installer for the gemini Claude Code skill

Project description

CI

gemini-skill

gemini-skill is a Gemini API front end that works in two modes:

  • as a Claude Code skill via /gemini ...
  • as a direct CLI via python3 scripts/gemini_run.py ...

It exposes the same command surface in both modes: text, multimodal analysis, structured output, embeddings, Files API, image/video/music generation, file search, deep research, and iterative plan review.

Quick Start

Install for Claude Code

Recommended:

uvx gemini-skill-install

Fallback:

uvx --python 3.13 gemini-skill-install

Or from a clone:

git clone https://github.com/reshinto/gemini-skill.git
cd gemini-skill
python3 setup/install.py

The installer copies the runtime payload into ~/.claude/skills/gemini/, creates or reuses ~/.claude/skills/gemini/.venv, installs the pinned google-genai SDK, and writes the canonical env block into ~/.claude/settings.json.

Configure credentials

Create a Gemini API key in Google AI Studio:

The Gemini API is not an unlimited flat-rate service. Google offers a free tier for getting started and a paid pay-as-you-go tier for higher-volume or production use. If you enable the paid tier, prompts and responses can incur usage-based charges depending on the model and features you use.

The launcher resolves canonical Gemini env keys from the current working directory first, then Claude settings files, then existing process env:

  1. ./.env
  2. ./.claude/settings.local.json
  3. ./.claude/settings.json
  4. ~/.claude/settings.json
  5. existing process env

Supported keys:

GEMINI_API_KEY
GEMINI_IS_SDK_PRIORITY
GEMINI_IS_RAWHTTP_PRIORITY
GEMINI_LIVE_TESTS

For repo-local CLI use:

cp .env.example .env

GEMINI_API_KEY is the only supported secret name. GOOGLE_API_KEY is ignored.

Use it from Claude Code

The skill manifest sets disable-model-invocation: true, so Claude Code will not start this skill on its own. Invoke it explicitly first.

/gemini text "Explain quantum computing in three sentences"
/gemini plan_review "Review this implementation plan for gaps and rollout risks"

Use it as a direct CLI

From a checkout:

python3 scripts/gemini_run.py text "hi"
python3 scripts/gemini_run.py plan_review "Review this migration plan"
python3 scripts/gemini_run.py plan_review

The last command starts the interactive plan_review REPL when stdin is a TTY.

Core Workflows

  • text for one-shot prompts and multi-turn sessions
  • plan_review for iterative plan review, either one-turn or REPL
  • multimodal for PDFs, images, audio, video, and URLs
  • structured for schema-constrained JSON output
  • embed, token_count, files, cache, batch, and file_search
  • image_gen, imagen, video_gen, and music_gen
  • search, maps, computer_use, deep_research, and live

Documentation

Backend Routing

The launcher and adapters are backend-agnostic. The transport coordinator chooses the SDK or raw HTTP backend from the two routing flags:

  • GEMINI_IS_SDK_PRIORITY=true
  • GEMINI_IS_RAWHTTP_PRIORITY=false

Both backends produce the same normalized response shape for callers.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gemini_skill_install-0.1.6.tar.gz (163.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gemini_skill_install-0.1.6-py3-none-any.whl (343.1 kB view details)

Uploaded Python 3

File details

Details for the file gemini_skill_install-0.1.6.tar.gz.

File metadata

  • Download URL: gemini_skill_install-0.1.6.tar.gz
  • Upload date:
  • Size: 163.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for gemini_skill_install-0.1.6.tar.gz
Algorithm Hash digest
SHA256 c7fcfba21c3e56d29bf7f016f2d40c8eb8830f279dd3e35b2493e98e6d52244c
MD5 b94bd394bb5b54175adb65c01ea3d786
BLAKE2b-256 48fe3d73735ba17cd1d348cfde352e65a0dc7eb9cfaf8700a6843b3f720ccfc3

See more details on using hashes here.

Provenance

The following attestation bundles were made for gemini_skill_install-0.1.6.tar.gz:

Publisher: release.yml on reshinto/gemini-skill

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gemini_skill_install-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for gemini_skill_install-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 21754e4e141edf5d17339942fee8fd90fa80acb61e9268292e0408d94c148652
MD5 980d887096e50d99447b01c95722b84e
BLAKE2b-256 4aab202f4b48d1d414bb2f454da2aa524969f68a107474c3c76b4d5ae0137733

See more details on using hashes here.

Provenance

The following attestation bundles were made for gemini_skill_install-0.1.6-py3-none-any.whl:

Publisher: release.yml on reshinto/gemini-skill

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page