Skip to content
ai-analysis logo

AI Analysis Tools

ai-analysis

Command-line tools that delegate analysis tasks to AI models. Includes image description, screenshot comparison, essay generation from text, and boolean condition evaluation. Use for describing images, comparing UI states, generating reports, evaluating conditions, or any task requiring AI infere...

SKILL.md

Full skill instructions

AI Analysis Tools

Important: Use Scripts First

ALWAYS prefer the scripts in scripts/ over raw curl API calls. Scripts are located in the scripts/ subdirectory of this skill's folder. They provide features that raw commands do not:

  • Proper image encoding (WebP conversion, alpha removal)
  • Appropriate model selection for each task
  • Structured output handling (boolean responses via exit codes)
  • Meaningful exit codes for shell integration

When to read the script source: If a script doesn't do exactly what you need, or fails due to missing dependencies, read the script source. The scripts encode Gemini API best practices (image ordering, structured output schemas, model selection) that may not be obvious—use them as reference when building similar functionality.

Quick Start

Environment: Set GEMINI_API_KEY before running any commands.

Dependencies: curl, jq (all tools); base64, magick (image tools only)

# Describe an image (generate alt-text)
scripts/​screenshot-describe screenshot.png

# Compare two images for visual differences
scripts/​screenshot-compare before.png after.png

# Generate essay-length analysis from text
scripts/​emerson "Summarize the key changes" < documentation.md

# Evaluate a boolean condition against text
echo "Hello world" | scripts/​satisfies "is a greeting"

Script Overview

screenshot-describe

Generate concise alt-text for an image. Optimized for UI captures.

scripts/​screenshot-describe IMAGE [PROMPT]

Exit codes: 0 success, 1 error, 127 missing dependency

screenshot-compare

Compare two images for visual differences. Identifies layout shifts, color changes, padding, and text updates.

scripts/​screenshot-compare IMAGE1 IMAGE2 [PROMPT]

Exit codes: 0 differences found, 1 error, 2 images identical, 127 missing dependency

emerson

Generate essay-length (~3000 words) analysis from text input. Produces authoritative, footnoted Markdown.

scripts/​emerson "PROMPT" < input.txt

Exit codes: 0 success, 1 error, 127 missing dependency

satisfies

Evaluate whether input text satisfies a condition. Returns boolean via exit code.

echo "text" | scripts/​satisfies "CONDITION"

Exit codes: 0 true (satisfies), 1 false (does not satisfy), 127 missing dependency

Examples:

# Check if file mentions a topic
cat file.txt | scripts/​satisfies "mentions Elvis" && echo "Found it"

# Validate content type
cat response.json | scripts/​satisfies "is valid JSON with an 'id' field"

# Use in conditionals
if cat log.txt | scripts/​satisfies "contains error messages"; then
  echo "Errors detected"
fi

Image Encoding Notes

  • Images converted to lossless WebP for consistent encoding
  • Alpha channel removed (-alpha off) so transparency-only differences are ignored
  • Base64: use -w 0 (Linux) or -b 0 (macOS) for single-line output
  • Single-image prompts: image before text (Gemini best practice)
  • Multi-image comparison: text before images (Gemini best practice)

Safety Notes

  • Scripts require network access to the Gemini API
  • GEMINI_API_KEY must be set in the environment
  • API calls may incur usage costs
  • Large images increase request size and latency
  • Scripts do not store or log input data

References

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View