Controls Gemini CLI sessions for automated model interaction.

Install

mkdir -p .claude/skills/gemini-runtime && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/13638" && unzip -o skill.zip -d .claude/skills/gemini-runtime && rm skill.zip

Installs to .claude/skills/gemini-runtime

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Gemini CLI runtime/session control: use Gemini CLI slash commands and CLI flags to manage sessions, models, and restarts in a worker terminal. Trigger when the controller needs to operate the Gemini CLI like a human.
216 chars✓ has a “when” trigger
Intermediate

Key capabilities

  • Manage Gemini CLI session state
  • Select Gemini models
  • Reset current conversations
  • Rewind to previous session steps
  • Resume saved sessions
  • List and delete sessions

How it works

This skill operates the Gemini CLI by executing slash commands and CLI flags to manage session state, model selection, and restarts.

Inputs & outputs

You give it
Gemini CLI slash commands (e.g., `/clear`, `/model`, `/resume`) or CLI flags (e.g., `--resume`, `--list-sessions`)
You get back
Managed Gemini CLI session state, model selection, conversation resets, or session information

When to use gemini-runtime

  • Resetting chat sessions
  • Switching Gemini models
  • Resuming previous sessions

About this skill

Gemini Runtime

Overview

Operate the Gemini CLI safely: manage session state, model selection, and restarts from a worker terminal.

Session Safety

  1. Confirm idle state
  • Snapshot and/or status the worker; do not intervene mid-run.
  • Only proceed when the worker is at a prompt or explicitly idle.
  1. Prefer in-session resets
  • Use /clear to reset the current conversation.
  • Use /rewind to go back to a previous step.
  • Use /stats or /context to confirm state.
  1. Full reset (only between tasks)
  • Use /quit (or /exit) to leave the CLI.
  • Relaunch with appropriate flags when a fresh context is needed.

Core Slash Commands (Gemini CLI)

Use /help to see the full list. Common commands:

  • /model select a model.
  • /resume resume a saved session.
  • /restore restore a previous state.
  • /chat manage chat sessions.
  • /clear reset the current conversation.
  • /context show current context.
  • /stats show session stats.
  • /settings open settings.
  • /privacy view privacy info.
  • /policies view policies.
  • /bug file a bug.
  • /vim toggle vim mode.
  • /rewind step backward in the session.
  • /quit or /exit exit the CLI.

Resume / Continue (Shell)

  • gemini --resume <SESSION_ID> or gemini -r <SESSION_ID> resume a session.
  • gemini --list-sessions list available sessions.
  • gemini --delete-session <SESSION_ID> delete a session by index.

Guardrails

  • Do not restart mid-run.
  • Prefer /clear or /rewind over full restarts when possible.
  • Use /stats or /context after model changes to confirm state.
  • If the worker is not Gemini CLI, switch to the model-specific runtime skill instead.

When not to use it

  • When the worker is not Gemini CLI
  • When intervening mid-run of the worker
  • When a full reset is needed between tasks

Limitations

  • Requires confirmation of idle state before intervention
  • Prefers in-session resets over full restarts
  • Must use `/stats` or `/context` to confirm state after model changes

How it compares

This workflow provides a controlled and safe way to interact with the Gemini CLI, ensuring session integrity and preventing unintended interruptions, unlike direct, unmanaged CLI usage.

Compared to similar skills

gemini-runtime side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
gemini-runtime (this skill)05moNo flagsIntermediate
autonomous-loops02moReviewAdvanced
continuous-learning01moReviewAdvanced
mcporter06moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

autonomous-loops

Rajbharti06

Self-improvement loop patterns — eval → learn → improve cycles running without human input

00

continuous-learning

mostafa-ismail-2004

Instinct-based learning system that observes sessions via hooks, creates atomic instincts with confidence scoring, and evolves them into skills/commands/agents. Features project-scoped instincts to prevent cross-project contamination.

00

mcporter

consuelohq

--- name: mcporter description: Call MCP servers via MCPorter - browser automation, vision, and other MCP tools homepage: https://github.com/steipete/mcporter metadata: { "openclaw": { "emoji": "🧳", "requires": { "bins": ["npx"] } } }

00

openai-whisper

qianleigood

Use when transcribing local audio or video on Apple Silicon without an API key, especially when MLX Whisper should be the default general-purpose local speech-to-text path.

00

opencode-cli

SpillwaveSolutions

This skill should be used when configuring or using the OpenCode CLI for headless LLM automation. Use when the user asks to "configure opencode", "use opencode cli", "set up opencode", "opencode run command", "opencode model selection", "opencode providers", "opencode vertex ai", "opencode mcp servers", "opencode ollama", "opencode local models", "opencode deepseek", "opencode kimi", "opencode mistral", "fallback cli tool", or "headless llm cli". Covers command syntax, provider configuration, Vertex AI setup, MCP servers, local models, cloud providers, and subprocess integration patterns.

14174

robotics-code-generator

HumaizaNaz

Generates clean, runnable ROS 2, Gazebo, Isaac Sim, and VLA code for humanoid robotics

1490

Search skills

Search the agent skills registry