Ac tools video query

From WaterplanAI/agentic-config · View interactive version

Ac tools video query is an AI agent skill from the GitHub repository WaterplanAI/agentic-config. Analyzes video files using Google Gemini API and answers questions about content. Triggers on keywords: video query, analyze video, video analysis, query video

How to use this skill

Skill file

Video Query Command

Compatibility Note

This pi wrapper preserves the original video-query workflow while using a bundled skill-local helper script instead of the legacy plugin root.

Analyze a video file using Google Gemini API and answer questions about its content.

Video Path: $1

Query: $2

Pre-Flight Checks

  1. Verify Video Path Provided
  1. Verify Query Provided
  1. Verify Script Exists
  1. Verify GEMINI_API_KEY

Execution

  1. Resolve Script Path

```bash

SCRIPT_PATH="./video-query.py"

```

  1. Run Video Query Script
  1. Parse JSON Response
  1. Format and Present Results

Present results as:

## Video Analysis Results

**Video:** <video_path>
**Model:** <model>
**Query:** <query>

### Response

<model response text>

---
**Cost:** $<total_cost_usd> | **Tokens:** <input_tokens> in / <output_tokens> out | **Time:** <time_seconds>s

Error Handling

| Error | Action |

|-------|--------|

| Video not found | Show: "Video file not found: $1" |

| API key not set | Show: "GEMINI_API_KEY not set. Export it: export GEMINI_API_KEY=your_key" |

| API error | Show full error output |

| Script error | Show full error output |

| Script not found | Show: "video-query.py not found in plugin" |

Setup

Requires GEMINI_API_KEY environment variable:

export GEMINI_API_KEY="your-api-key-here"

Get API key from: https://aistudio.google.com/apikey

Dependencies

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.