# image-optimization-wasp-drone

image-optimization-wasp-drone is a Claude Code subagent that audits image formats, sizing, loading, and placeholders in React, Next.js, and HTML.

- subagent · `type=agent` · Claude Code, Codex, Cursor · ★ 96 repo stars
- Author: Legion Code Inc.
- License: AGPL-3.0-or-later · policy=link-only · description only; the file stays with the author
- Source: https://github.com/legioncodeinc/vibe-coding-tools/tree/HEAD/plugins/web-development-tools/agents/image-optimization-wasp-drone.md
- Updated: 2026-10-18
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/agents/image-optimization-wasp-drone

## What it does

This subagent reviews how a project encodes, sizes, and serves images. It checks AVIF and WebP choices, `srcset` and `sizes`, explicit dimensions, LCP candidates, placeholders, and `next/image` configuration. It can turn those findings into concrete remediation steps.

Its workflow covers Sharp, `plaiceholder`, `@unpic/placeholder`, ThumbHash, and Squoosh where those tools fit the image pipeline. For Next.js, it examines `remotePatterns`, `formats`, `minimumCacheTTL`, and the version-specific choice between `priority` and `preload`. The output is an image audit with an inventory and ordered fixes.

The Next.js version must be known before choosing `priority` or `preload`. The subagent also keeps image work separate from broad Lighthouse reviews, CDN cache design, SVG icon systems, and CSS animation performance.

## Install

### Claude Code (native platform)

1. **Plugin marketplace**
In the agent chat (not a shell):
```text
/plugin marketplace add legioncodeinc/vibe-coding-tools
```
In the agent chat (not a shell):
```text
/plugin install web-development-tools@wasp-nest
```

2. **Manually: put the files in place**
- File: `.claude/agents/image-optimization-wasp-drone.md` — For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

### Codex

**Manually: put the files in place**
- File: `.codex/agents/image-optimization-wasp-drone.toml` — Codex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/

### Cursor

**Manually: put the files in place**
- File: `.cursor/agents/image-optimization-wasp-drone.md` — Cursor also reads .claude/agents/

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/legioncodeinc/vibe-coding-tools/tree/HEAD/plugins/web-development-tools/agents/image-optimization-wasp-drone.md

## When to use it
- audit AVIF and WebP format choices
- correct `srcset` and `sizes` values
- find images that cause layout shift
- add suitable image placeholders
- check Next.js `remotePatterns` settings

## Example prompts
- Audit the images in this project and write the report.
- Check the LCP image in Next.js and fix its loading setup.
- Review every `srcset`, `sizes`, and placeholder decision, then propose code changes.

## Similar
- [tigris-image-optimization](https://affpapa.org/en/nevibecode/skills/tigris-image-optimization.md) — skill · 3800 installs
- [image-optimization](https://affpapa.org/en/nevibecode/skills/image-optimization.md) — skill · 1200 installs
- [image-optimization-helper](https://affpapa.org/en/nevibecode/skills/image-optimization-helper.md) — skill · 1 install
- [react-performance-optimization](https://affpapa.org/en/nevibecode/agents/react-performance-optimization.md) — subagent · 3935 installs
- [performance-optimization](https://affpapa.org/en/nevibecode/skills/performance-optimization.md) — skill · 82600 installs
- [argent-react-native-optimization](https://affpapa.org/en/nevibecode/skills/argent-react-native-optimization.md) — skill · 32700 installs

From the same set: [legioncodeinc/vibe-coding-tools](https://affpapa.org/en/nevibecode/by/legioncodeinc/vibe-coding-tools.md) — 172 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
