PlaybookAdvanced15 min read14 September 2026

Give Claude Gemini’s Eyes

Give Claude Code or Codex access to Gemini's video analysis, then turn the findings into work your team can use.

In short

Use Agent Native's free video-analysis skill with a locally enabled agent such as Claude Code or Codex. You need a Gemini API key, Python with Google's google-genai package, and FFprobe; FFmpeg handles conversion or segmentation when required. Start with one short, non-sensitive clip. Ask for visual and spoken evidence with timestamps, check the cited moments yourself, then supply your own product brief to produce a shot list. Gemini receives the uploaded video, and your working agent receives the findings. API usage and your existing agent access can cost money. This guide includes an adapted copy-ready skill, an installation prompt, a first-run checklist, a reusable evidence ledger and troubleshooting. A successful upload does not establish complete coverage or accurate timestamps.


The folder of ads you never get back to

You save an ad because the opening works, the demonstration is clear, or the offer looks worth studying. Later, the folder contains dozens of videos and very few usable notes.

The repeated job is finding the product reveal, recording what evidence appears, and translating useful creative choices into a brief your own team can execute.

Use this workflow to produce a timestamped breakdown and an original shot list. Begin with one ad. Expand to longer recordings only after you can verify the short result.


What connects to what

Agent Native's video-analysis resource, updated September 6, 2026, supplies instructions for an agent with local file access and permission to run tools. The author names Codex, Claude Code and GrokBot as examples.

  1. Your agent checks the exact video you supply.
  2. It uploads that file through Google's Files API and waits for processing.
  3. A video-capable Gemini model analyzes the requested visual and audio content.
  4. Your agent receives timestamped findings and uses them for your next task.
  5. The skill instructs the agent to delete the uploaded file after analysis and report cleanup failures.

Gemini performs the video analysis. Claude Code or Codex coordinates the work and develops the brief. The connection does not transfer Gemini's model into Claude, and it does not require GPT-6 Astra specifically.

Verification status: This guide was checked against Agent Native and Google's documentation on September 7, 2026. Google Gen AI SDK 2.22.0 installed successfully in an isolated Python 3.13.5 environment. FFprobe 7.1.5 correctly inspected a synthetic H.264/AAC clip. We did not run a paid Gemini video request or certify an end-to-end Claude Code or Codex installation. Use the first-video test below before putting this into client work.


What you need and what you pay for

RequirementWhat to check
A compatible working agentClaude Code, Codex or another agent able to read your chosen local file, run approved commands and make API requests. A standard chat window alone may not provide these permissions. Your existing plan or agent API costs remain separate.
A Gemini API project and keyCreate or select the project in Google AI Studio. Confirm model access, region eligibility, quota and billing before upload.
Python and google-genaiInstall Google's SDK in a project-local virtual environment. Let the agent check the SDK's current Python requirement instead of changing your system Python.
FFprobe and FFmpegFFprobe checks duration, size and streams. FFmpeg is needed for conversion or splitting. Both normally come in the FFmpeg distribution.
An authorized local videoUse an owned or permitted download. Source formats include MP4, MOV, M4V, WebM and MKV, with conversion when the API rejects the container or codec.
A narrow questionAsk for something you can check in the footage, such as the first product appearance or the on-screen offer.

The skill instructions are free to access. Gemini API pricing depends on the model, processing mode, media input and output. Some models offer a limited free tier. Free-tier availability, quotas and data-use terms differ from paid service.

Budget rule: Approve one short clip first. Check the selected model's pricing and the request's reported usage before a long recording or batch. A billing alert is an alert, not necessarily a hard spending cap. Set a request limit and require approval before retries or batch expansion.

Do not assume your Gemini consumer subscription pays for this API workflow. A Gemini CLI route would be a separate implementation with its own authentication, limits and entitlement checks. This playbook uses the source's API-key route.


Set it up

Choose a safe first clip

Use a short ad or screen recording you own or are allowed to upload. Choose a clip with a visible product or interface action and audible speech. Watch it yourself first so you know what a correct result looks like.

Put it in a dedicated project folder and copy its full path. Keep client calls, personal information, credentials and unreleased material out of the first test.

Checkpoint: The video plays locally, speech is audible, and you can identify a visible event you will later ask the model to find.

Get the original skill

Open Give agents video analysis skill and use the Copy skill button. The page includes the complete instructions. Read them before giving an agent permission to act.

The next section also contains an adapted, self-contained version for this playbook. Choose either the original or the adapted version. Installing both under the same name creates avoidable confusion.

Prepare Gemini access privately

Open Google AI Studio API keys. Create or select your project, obtain a key, and check that the project has access to the video-capable model you intend to use.

Use your local terminal or the agent host's secret settings to provide GEMINIAPIKEY. Follow Google's API-key setup guide for your operating system. Never paste the actual key into the conversation, the skill, this document or a shared screenshot.

The SDK also recognizes GOOGLEAPIKEY. If both variables exist, Google's documentation says GOOGLEAPIKEY takes precedence. Check which project will be billed. An environment change may require starting a new agent session from that environment.

Checkpoint: Ask the agent to confirm that a supported key variable is present without printing its value. Presence does not prove the key is valid; the first authorized request establishes access.

Give your agent the setup prompt

Paste this prompt followed by the skill you chose. The agent should adapt installation to your current operating system and its supported skill location. Review its proposed writes before approving them.

Help me install the video-analysis skill pasted below for this project only.

First inspect your current skill support, project directory and operating system. Tell me where the skill will be saved. If you already have a skill with this name, show the difference and ask before replacing it. If reusable skills are unavailable, explain how to use these instructions in this session and say they are not installed persistently.

Check Python, google-genai, ffprobe and ffmpeg. Use an isolated project environment for Python dependencies. Show any needed installation commands and ask before running them. Do not change system Python or unrelated projects.

Check for GEMINI_API_KEY or GOOGLE_API_KEY without displaying the value. If neither is available, stop and explain private setup. Do not ask me to paste a key here.

Read Google's current video guide and identify a video-capable model this project can access. Show its exact model ID, processing mode and pricing link before a request. Explain any expected charge; do not invent a fixed price per video.

Save the chosen skill using your supported project skill location. Tell me the saved path, whether a restart is needed and how to invoke it. Do not upload any video yet.

End with READY or BLOCKED and the specific remaining prerequisites.

The next one lands in your inbox before it lands here.

One email a week. What I tested.

Subscribe
Give Claude Gemini’s Eyes · Playbooks · Steve Tan