better-auth-debugger
Autonomous agent for diagnosing better-auth authentication issues. Analyzes configuration, validates OAuth callbacks, tests endpoints, and provides specific…
This agent should be used when the user asks to "optimize images", "improve image performance", "reduce image size", "choose image format", "configure image variants", "implement responsive images", or needs performance optimization strategies for Cloudflare Images.
$ npx -y skills add secondsky/claude-skills --agent claude-codeHow it fires
How this agent gets triggered: by you, by Claude, or both.
Context preview
The summary Claude sees to decide when to auto-load this agent.
This agent should be used when the user asks to "optimize images", "improve image performance", "reduce image size", "choose image format", "configure image variants", "implement responsive images", or needs performance optimization strategies for Cloudflare Images.
name: optimization-agent description: This agent should be used when the user asks to "optimize images", "improve image performance", "reduce image size", "choose image format", "configure image variants", "implement responsive images", or needs performance optimization strategies for Cloudflare Images. allowed-tools: ["Read", "Write", "Edit", "Bash", "WebFetch"]
Autonomous agent for analyzing and recommending image optimization strategies to reduce file size, improve performance, and enhance user experience.
When invoked, analyze the user's current image delivery setup and provide comprehensive optimization recommendations.
1. **Analyze Current Setup** 2. **Recommend Format Strategy** 3. **Configure Variants** 4. **Implement Responsive Images** 5. **Optimize Quality Settings** 6. **Calculate Savings**
Ask user to clarify (if not specified):
If user has existing images, analyze:
# Test current image sizes
IMAGE_ID="example-image-id"
ACCOUNT_HASH="your_account_hash"
# Original (no transformations)
curl -s -I "https://imagedelivery.net/${ACCOUNT_HASH}/${IMAGE_ID}/public" \
| grep -i content-length
# With width constraint
curl -s -I "https://imagedelivery.net/${ACCOUNT_HASH}/${IMAGE_ID}/public?width=800" \
| grep -i content-lengthLoad `references/format-optimization.md` for complete format comparison.
| Use Case | Recommended Format | Reason | |----------|-------------------|--------| | Product photos | `format=auto` | Automatic WebP/AVIF with JPEG fallback | | User avatars | `format=auto` | Small file size critical for performance | | Hero images | `format=auto` | Best quality-to-size ratio | | PNG graphics | `format=auto` | Preserve transparency, convert to WebP | | Legacy support | `format=jpeg` | IE11, old Android browsers |
# Compare format sizes
IMAGE_ID="your-image-id"
ACCOUNT_HASH="your_account_hash"
echo "JPEG size:"
curl -s -I "https://imagedelivery.net/${ACCOUNT_HASH}/${IMAGE_ID}/public?format=jpeg" \
| grep content-length | awk '{print $2/1024 " KB"}'
echo "WebP size:"
curl -s -I "https://imagedelivery.net/${ACCOUNT_HASH}/${IMAGE_ID}/public?format=webp" \
| grep content-length | awk '{print $2/1024 " KB"}'
echo "AVIF size:"
curl -s -I "https://imagedelivery.net/${ACCOUNT_HASH}/${IMAGE_ID}/public?format=avif" \
| grep content-length | awk '{print $2/1024 " KB"}'**Typical Savings**:
Load `references/format-optimization.md` for browser compatibility table.
**WebP Support**: 96%+ (IE11 no) **AVIF Support**: 82%+ (Safari <14 no)
**Recommendation**: Use `format=auto` for automatic format selection based on `Accept` header:
<!-- Browser sends Accept header --> Accept: image/avif,image/webp,image/apng,image/*,*/*;q=0.8 <!-- Cloudflare Images automatically serves AVIF -->
Load `references/variants-guide.md` for complete variant configuration.
{
"thumbnail": {
"width": 300,
"height": 300,
"fit": "cover",
"quality": 85
},
"medium": {
"width": 800,
"height": 800,
"fit": "scale-down",
"quality": 85
},
"large": {
"width": 1600,
"height": 1600,
"fit": "scale-down",
"quality": 90
}
}{
"avatar-sm": {
"width": 48,
"height": 48,
"fit": "cover",
"quality": 80
},
"avatar-md": {
"width": 96,
"height": 96,
"fit": "cover",
"quality": 85
},
"avatar-lg": {
"width": 192,
"height": 192,
"fit": "cover",
"quality": 85
}
}{
"hero-mobile": {
"width": 768,
"quality": 85,
"fit": "scale-down"
},
"hero-tablet": {
"width": 1024,
"quality": 85,
"fit": "scale-down"
},
"hero-desktop": {
"width": 1920,
"quality": 90,
"fit": "scale-down"
}
}# Create variant via API
curl -X POST \
"https://api.cloudflare.com/client/v4/accounts/${CF_ACCOUNT_ID}/images/v1/variants" \
-H "Authorization: Bearer ${CF_API_TOKEN}" \
-H "Content-Type: application/json" \
-d '{
"id": "thumbnail",
"options": {
"width": 300,
"height": 300,
"fit": "cover",
"metadata": "none"
},
"neverRequireSignedURLs": true
}'Load `references/responsive-images-patterns.md` for complete patterns.
**Option A: Flexible Transformations (Recommended)**
<!-- Automatic WebP/AVIF with responsive sizes -->
<img
src="https://imagedelivery.net/{hash}/{id}/public?width=800&format=auto"
srcset="
https://imagedelivery.net/{hash}/{id}/public?width=400&format=auto 400w,
https://imagedelivery.net/{hash}/{id}/public?width=800&format=auto 800w,
https://imagedelivery.net/{hash}/{id}/public?width=1200&format=auto 1200w,
https://imagedelivery.net/{hash}/{id}/public?width=1600&format=auto 1600w
"
sizes="(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 800px"
alt="Product photo"
loading="lazy"
/>**Option B: Named Variants**
<img
145 production-ready skills for Claude Code CLI 🔌 Platform / Harness Support These plugins ship as Claude Code marketplace plugins (.claude-plugin/ manifests) and Codex CLI plugins (.codex-plugin/ manifests).
Repo: secondsky/claude-skills
Autonomous agent for diagnosing better-auth authentication issues. Analyzes configuration, validates OAuth callbacks, tests endpoints, and provides specific…
Use this agent when the user wants to migrate from Node.js/npm to Bun, convert Jest tests to Bun tests, or upgrade between Bun versions. Examples:
Use this agent when the user wants to optimize performance, analyze bottlenecks, or improve efficiency of their Bun application. Examples:
Use this agent when the user encounters errors, crashes, or unexpected behavior in their Bun application. Examples:
Autonomous diagnostic agent that investigates Cloudflare D1 database issues through 9-phase analysis (config, migrations, queries, bindings, errors, limits,…
Performance analysis agent that identifies slow queries, missing indexes, and optimization opportunities in Cloudflare D1 databases using metrics, insights,…