Back to list
ithinkihaveacat

ai-analysis

by ithinkihaveacat

Shell-related config files and scripts

46🍴 10📅 Jan 23, 2026

SKILL.md


name: ai-analysis description: > 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 inference. Triggers: ai analysis, describe image, compare screenshots, generate essay, evaluate condition, alt text, image description, UI comparison, visual diff, satisfies condition, boolean evaluation, gemini. compatibility: > Requires curl and jq. Image tools also need base64 and magick (ImageMagick). Needs GEMINI_API_KEY environment variable and network access to generativelanguage.googleapis.com.

AI Analysis Tools

Important: Use Scripts First

ALWAYS prefer the scripts in scripts/ over raw curl API calls. The scripts 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

Score

Total Score

70/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

+5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon