agentleFS
salmandevsalmandev/everything-gemini/skills/gemini-live-screen-vision/SKILL.md

gemini-live-screen-vision

Skill2 starsChanged 28 days agoApache-2.0View on GitHub

Streams high-framerate desktop/browser screen frames, analyzes visual DOM repaints, and extracts terminal OCR errors for live multimodal voice/visual pair programming with Gemini Live.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When Gemini Live detects UI layout anomalies, it outputs normalized coordinate bounding boxes $[y_{\min}, x_{\min}, y_{\max}, x_{\max}]$:

    line 66

≈ “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 Live Screen Vision & Repaint Analyzer (gemini-live-screen-vision)

Integrates real-time desktop screen capture, browser DOM repaint diffing, terminal OCR error extraction, and synchronized audio-visual feedback loops directly with the Gemini 3.8 Live API for sub-second multimodal pair programming.


1. Architectural Model: Multimodal Video & Voice Duplex

┌─────────────────────────────────────────────────────────────────────────────┐
│                 GEMINI LIVE SCREEN VISION STREAMING RUNTIME                 │
│                                                                             │
│   ┌─────────────────────────────────────────────────────────────────────┐   │
│   │ 1. Client Screen & IDE Capture Engine                               │   │
│   │    • 1080p @ 30–60fps WebRTC screen track or periodic JPEG stream   │   │
│   │    • Active viewport region extraction (Browser canvas, Terminal)   │   │
│   └──────────────────────────────────┬──────────────────────────────────┘   │
│                                      │                                      │
│                                      ▼                                      │
│   ┌─────────────────────────────────────────────────────────────────────┐   │
│   │ 2. Visual Repaint Diff & Change Detector                            │   │
│   │    • Pixel-level perceptual hash (pHash) & structural similarity    │   │
│   │    • Filters static frames; transmits only on repaint transitions   │   │
│   └──────────────────────────────────┬──────────────────────────────────┘   │
│                                      │                                      │
│                                      ▼                                      │
│   ┌─────────────────────────────────────────────────────────────────────┐   │
│   │ 3. Gemini Live Bidirectional WebSocket Gateway                      │   │
│   │    ┌───────────────────────────┐     ┌──────────────────────────┐   │   │
│   │    │ Video Inbound: VP9/H.264  │     │ Audio Duplex: Opus 24kHz │   │   │
│   │    │ (DOM renders, stack traces│     │ (Real-time voice pairs)  │   │   │
│   │    └─────────────┬─────────────┘     └────────────┬─────────────┘   │   │
│   └──────────────────┼────────────────────────────────┼─────────────────┘   │
│                      └────────────────┬───────────────┘                     │
│                                       ▼                                     │
│   ┌─────────────────────────────────────────────────────────────────────┐   │
│   │ 4. Multimodal Cognitive Fusion Engine                               │   │
│   │    • Correlates developer speech ("why is the button misaligned?")   │   │
│   │      with exact visual bounding box coordinates on active screen    │   │
│   │    • Emits proactive vocal guidance before test failures compound   │   │
│   └──────────────────────────────────┬──────────────────────────────────┘   │
│                                      │                                      │
│                                      ▼                                      │
│   ┌─────────────────────────────────────────────────────────────────────┐   │
│   │ 5. Surgical IDE Code Patching                                       │   │
│   │    • Proposes atomic diffs directly to IDE active editor buffer     │   │
│   └─────────────────────────────────────────────────────────────────────┘   │
└─────────────────────────────────────────────────────────────────────────────┘

2. Streaming Primitives & Frame Optimization

A. Perceptual Diff Filter (pHash)

Streaming raw 60fps 1080p video incurs excessive bandwidth and token consumption. The vision engine computes frame-to-frame hamming distance:

  • $\Delta(\text{Frame}t, \text{Frame}{t-1}) < 5$: Static screen; transmission bypassed.
  • $\Delta \ge 5$: Visual transition (e.g. page repaint, terminal scroll); frame emitted to Gemini Live.

B. High-Precision Bounding Box Grounding

When Gemini Live detects UI layout anomalies, it outputs normalized coordinate bounding boxes $[y_{\min}, x_{\min}, y_{\max}, x_{\max}]$:

{
  "anomaly": "CSS Flexbox Overflow in Hero Title",
  "bounding_box": [120, 450, 240, 890],
  "recommendation": "Set flex-wrap: wrap on #hero-container"
}

3. Operational Recipes

Launching Live Screen Vision Session via CLI

# Start live screen streaming bridge to Gemini Live API
everything-gemini live-vision stream --fps 15 --resolution 1080p

# Capture single-frame visual diagnostic of active IDE
everything-gemini live-vision capture --workspace . --json

Python SDK Multimodal Screen Session

from google_antigravity.live import GeminiLiveVisionSession

session = GeminiLiveVisionSession(
    model="gemini-3.8-live",
    audio_format="opus",
    video_fps=15,
    enable_vad=True
)

# Attach desktop window display capture
session.attach_display_stream(display_id=1)
session.start_bidirectional_loop()

4. Cross-Reference Links

  • See skills/gemini-live-multimodal/SKILL.md for core WebSocket protocols.
  • See skills/webrtc-agent-gateway/SKILL.md for WebRTC ICE negotiation.
  • See agents/browser-qa.md for automated visual QA assertions.

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.