Analyze or compare images and PDFs using AI (Gemini) or local processing (sharp/pixelmatch). Use when performing design review, screenshot comparison, visual diff, edge detection, image metadata inspection, or PDF document analysis.
From researchnpx claudepluginhub masseater/claude-code-plugin --plugin researchThis skill uses the workspace's default tool permissions.
scripts/image-analyze.tsscripts/image-process.tsGuides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Details PluginEval's skill quality evaluation: 3 layers (static, LLM judge), 10 dimensions, rubrics, formulas, anti-patterns, badges. Use to interpret scores, improve triggering, calibrate thresholds.
Analyze or compare images and PDF documents. Two scripts available:
Located at ${CLAUDE_PLUGIN_ROOT}/skills/image-analyze/scripts/.
| Script | Description | Requires API |
|---|---|---|
image-analyze.ts | AI analysis / comparison (images + PDF) | Yes (Gemini) |
image-process.ts | Pixel diff, edge, overlay, side-by-side, info | No |
AI-powered image analysis using Gemini API.
Supported formats: PNG, JPEG, GIF, WebP, PDF
| Argument | Required | Description |
|---|---|---|
image1 | ✓ | First image/PDF path |
image2 | Second image/PDF path (enables comparison mode) | |
--prompt, -p | Custom prompt for analysis/comparison |
Analyze single image:
${CLAUDE_PLUGIN_ROOT}/skills/image-analyze/scripts/image-analyze.ts ./screenshot.png
Analyze PDF document:
${CLAUDE_PLUGIN_ROOT}/skills/image-analyze/scripts/image-analyze.ts ./document.pdf
Compare two images:
${CLAUDE_PLUGIN_ROOT}/skills/image-analyze/scripts/image-analyze.ts ./before.png ./after.png
Compare two PDFs:
${CLAUDE_PLUGIN_ROOT}/skills/image-analyze/scripts/image-analyze.ts ./v1.pdf ./v2.pdf
With custom prompt:
${CLAUDE_PLUGIN_ROOT}/skills/image-analyze/scripts/image-analyze.ts ./design.png -p "Check if this follows Material Design guidelines"
Local image processing tool. No API key required.
| Subcommand | Description |
|---|---|
diff | Pixel-level diff between two images |
edge | Edge detection (Sobel filter) |
overlay | Semi-transparent overlay of two images |
side-by-side | Horizontal side-by-side comparison |
info | Display image metadata |
Compare two same-size images pixel by pixel. Outputs a diff image and match rate.
| Option | Required | Default | Description |
|---|---|---|---|
--image1 | ✓ | Source image | |
--image2 | ✓ | Target image | |
--output | {image1}_diff.png | Output path | |
--threshold | 0.1 | Sensitivity (0-1, smaller = stricter) |
${CLAUDE_PLUGIN_ROOT}/skills/image-analyze/scripts/image-process.ts diff --image1 before.png --image2 after.png --threshold 0.05
Extract edges using Sobel filter. Useful for comparing layout structure.
| Option | Required | Default | Description |
|---|---|---|---|
--image | ✓ | Input image | |
--output | {image}_edge.png | Output path |
${CLAUDE_PLUGIN_ROOT}/skills/image-analyze/scripts/image-process.ts edge --image screenshot.png
Overlay two images with adjustable opacity to visually spot differences.
| Option | Required | Default | Description |
|---|---|---|---|
--image1 | ✓ | Base image | |
--image2 | ✓ | Overlay image | |
--output | {image1}_overlay.png | Output path | |
--opacity | 0.5 | Overlay opacity (0-1) |
${CLAUDE_PLUGIN_ROOT}/skills/image-analyze/scripts/image-process.ts overlay --image1 before.png --image2 after.png --opacity 0.3
Place two images side by side for visual comparison.
| Option | Required | Default | Description |
|---|---|---|---|
--image1 | ✓ | Left image | |
--image2 | ✓ | Right image | |
--output | {image1}_sidebyside.png | Output path | |
--gap | 4 | Gap between images (px) |
${CLAUDE_PLUGIN_ROOT}/skills/image-analyze/scripts/image-process.ts side-by-side --image1 before.png --image2 after.png --gap 8
Display image metadata (dimensions, format, color space, file size, DPI, alpha).
| Option | Required | Default | Description |
|---|---|---|---|
--image | ✓ | Input image |
${CLAUDE_PLUGIN_ROOT}/skills/image-analyze/scripts/image-process.ts info --image screenshot.png