agentleFS
robium-airobium-ai/robium/skills/gemini-robotics/SKILL.md

gemini-robotics

Skill93 starsChanged 3 months agoMITView on GitHub

Integrate and debug Gemini Robotics ER perception, function calls, and guarded execution. For a first natural-language robot assistant demo, start with architect's reference-app selection.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep Gemini on the perception and planning side of an actuator boundary.

    line 8
  2. Very specific:

    Use gemini-robotics-er-2-streaming-preview for a stateful Live API session that receives text, JPEG frames, or audio and orchestrates robot …

    line 19
  3. Very specific:

    Use gemini-robotics-er-2-preview for discrete embodied-reasoning requests such as spatial analysis or offline video work.

    line 22
  4. Distinctive:

    Treat both model IDs and feature support as preview surfaces.

    line 25
  5. Very specific:

    Keep one client.aio.live.connect session open for the task and run a receive loop that handles both model content and tool calls.

    line 31
  6. Very specific:

    When a tool exists specifically to observe the world, attach its fresh image to that call's FunctionResponse when the SDK supports inline …

    line 45
  7. Distinctive:

    Use Google's current robotics streaming guide for the volatile SDK syntax.

    line 53
  8. Very specific:

    Use integration for process or transport boundaries, ros2 and navigation for deterministic mobile-robot execution, and testing for the …

    line 84

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Gemini Robotics

Keep Gemini on the perception and planning side of an actuator boundary. The model may choose a capability; deterministic robot software validates and executes it.

Choose the endpoint from the interaction

  • For a new robot assistant or first simulation demo, read architect before building a model/robot integration. It discovers the saved apps checkout and checks compatible examples. If a baseline was already selected, continue here; existing integration fixes and API explanations do not need onboarding.
  • Use gemini-robotics-er-2-streaming-preview for a stateful Live API session that receives text, JPEG frames, or audio and orchestrates robot tools with low latency.
  • Use gemini-robotics-er-2-preview for discrete embodied-reasoning requests such as spatial analysis or offline video work. The standard endpoint does not provide the Live API.
  • Treat both model IDs and feature support as preview surfaces. Re-check the current model overview before changing dependencies or deployment assumptions.

Make the stream an observe-act-observe loop

  • Keep one client.aio.live.connect session open for the task and run a receive loop that handles both model content and tool calls.
  • Serialize user turns and model-facing heartbeats around unresolved turns and blocking tools. A text heartbeat is a new reasoning input, not a transport keepalive, and can interrupt an action as barge-in.
  • Declare physical actions with behavior: BLOCKING. Execute each call through the robot adapter, then manually return a FunctionResponse with the call ID, name, and structured result using send_tool_response.
  • Stream raw 16-bit, 16 kHz, little-endian PCM for speech input and explicitly end finite audio with audio_stream_end=True. Send JPEG camera frames at no more than the endpoint's current one-frame-per-second limit.
  • A camera frame alone updates context but does not trigger reasoning. Pair it with user audio/text, or use an intentional heartbeat prompt. Heartbeats are turns and can interrupt generation.
  • When a tool exists specifically to observe the world, attach its fresh image to that call's FunctionResponse when the SDK supports inline media. This binds the evidence to the requesting call more deterministically than placing an unrelated realtime frame immediately before the response.
  • The streaming endpoint returns text, not synthesized audio. Route speech through an independently replaceable TTS adapter or expose speaking as a bounded tool.

Use Google's current robotics streaming guide for the volatile SDK syntax. Read FAILURES.md when a session stalls, ignores images, overlaps actions, or never finishes an audio turn.

Guard the robot outside the model

  • Expose semantic capabilities such as named-waypoint navigation, bounded inspection, or grasping a currently grounded object. Do not expose raw motor commands, arbitrary poses, or unrestricted coordinates merely because the function schema can describe them.
  • Validate the tool allowlist, exact arguments, ranges, named resources, and current perception-issued object IDs in ordinary code. A system instruction and JSON schema improve model behavior but are not the safety boundary.
  • Build the advertised tool list from capabilities that passed preflight. Do not leave a disconnected robot, camera, or accessory visible to the model as a callable tool.
  • Return completion, rejection, and failure states to the model. After motion, send a fresh observation so the next decision is based on the resulting scene rather than the pre-action frame.
  • Give every long-running action cancellation and a deadline. On session or tool timeout, invoke the robot's stop/cancel path independently of the model.
  • On half-duplex hardware, pause microphone ingestion before speech or another device action and resume it explicitly afterward. Keep this device handoff outside the model's control.
  • Prove the same semantic contract against a fake adapter, representative simulation, and finally supervised hardware. Keep simulator- and robot- specific motion details behind the adapter.

For the evidence behind these choices and their current validation limits, read SILLY-TURTLEBOT.md for a ROS/Nav2 mobile robot and STACKCHAN-ER2.md for a USB, audio, camera, and BLE companion. Use integration for process or transport boundaries, ros2 and navigation for deterministic mobile-robot execution, and testing for the fake-to-simulation-to-hardware acceptance ladder.

Done

  • A complete user turn can stream input, execute a blocking semantic action, return its result, and reason from a fresh observation.
  • An undeclared or invalid action is rejected before reaching the robot SDK.
  • Timeout and cancellation behavior is proven without depending on a model response.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.