aceternity-ui
100+ animated React components (Aceternity UI) for Next.js with Tailwind. Use for hero sections, parallax, 3D effects, or…
This skill should be used when the user asks to \"upload images to Cloudflare\", \"implement direct creator upload\", \"configure image transformations\", \"optimize WebP/AVIF\", \"create image variants\", \"generate signed URLs\", \"add image watermarks\", \"integrate with
Claude Code
$ npx -y skills add secondsky/claude-skills --skill cloudflare-images --agent claude-code
Codex
$ npx skills add secondsky/claude-skills --skill cloudflare-images -a codex -y
Cursor
$ npx skills add secondsky/claude-skills --skill cloudflare-images -a cursor -y
Gemini CLI
$ npx skills add secondsky/claude-skills --skill cloudflare-images -a gemini-cli -y
GitHub Copilot
$ npx skills add secondsky/claude-skills --skill cloudflare-images -a github-copilot -y
OpenCode
$ npx skills add secondsky/claude-skills --skill cloudflare-images -a opencode -y
Windsurf
$ npx skills add secondsky/claude-skills --skill cloudflare-images -a windsurf -y
name: cloudflare-images
description: "This skill should be used when the user asks to \"upload images to Cloudflare\", \"implement direct creator upload\", \"configure image transformations\", \"optimize WebP/AVIF\", \"create image variants\", \"generate signed URLs\", \"add image watermarks\", \"integrate with Next.js/Remix\", \"configure webhooks\", \"debug CORS errors\", \"troubleshoot error 5408/9401-9413\", or \"build responsive images with Cloudflare Images API\"."
license: MIT
metadata:
version: "3.0.0"
last_verified: "2025-12-27"
workers_types_version: "4.20260408.0"
typescript_version: "5.7.2"
wrangler_version: "4.81.0"
production_tested: true
token_savings: "~65%"
errors_prevented: 10
templates_included: 16
references_included: 16
agents_included: 3
commands_included: 3
examples_included: 3
diagrams_included: 3
scripts_included: 5
keywords:
- cloudflare images
- image upload cloudflare
- imagedelivery.net
- cloudflare image transformations
- /cdn-cgi/image/
- direct creator upload
- image variants
- cf.image workers
- signed urls images
- flexible variants
- webp avif conversion
- responsive images cloudflare
- error 5408
- error 9401
- error 9403
- CORS direct upload
- multipart/form-data
- image optimization cloudflare
- image watermarks
- webhooks images
- nextjs cloudflare images
- remix cloudflare images
- custom domains images
- content credentials
- c2pa**Status**: Production Ready ✅ | **Version**: 3.0.0 | **Last Verified**: 2025-12-27
---
Two powerful features:
1. **Images API**: Upload, store, serve images globally 2. **Image Transformations**: Resize/optimize ANY image
**Key benefits:**
---
Dashboard → **Images** → **Enable**
Get your **Account ID** and create **API token** (Cloudflare Images: Edit permission)
curl --request POST \ --url https://api.cloudflare.com/client/v4/accounts/<ACCOUNT_ID>/images/v1 \ --header 'Authorization: Bearer <API_TOKEN>' \ --header 'Content-Type: multipart/form-data' \ --form 'file=@./image.jpg'
**CRITICAL:** Use `multipart/form-data`, not JSON
<img src="https://imagedelivery.net/<ACCOUNT_HASH>/<IMAGE_ID>/public" />
Dashboard → **Images** → **Transformations** → **Enable for zone**
Transform ANY image:
<img src="/cdn-cgi/image/width=800,quality=85/uploads/photo.jpg" />
export default {
async fetch(request: Request): Promise<Response> {
return fetch("https://example.com/image.jpg", {
cf: {
image: {
width: 800,
quality: 85,
format: "auto" // WebP/AVIF
}
}
});
}
};**Load `references/setup-guide.md` for complete walkthrough.**
---
**Upload methods:** 1. File upload (server-side) 2. Upload via URL (ingest from external) 3. Direct creator upload (user uploads, no API keys)
**Load `templates/upload-api-basic.ts` for file upload example.** **Load `references/direct-upload-complete-workflow.md` for user uploads.**
Optimize ANY image (uploaded or external).
**Methods:** 1. URL: `/cdn-cgi/image/width=800,quality=85/path/to/image.jpg` 2. Workers: `cf.image` fetch option
**Load `references/transformation-options.md` for all options.** **Load `templates/transform-via-workers.ts` for Workers example.**
Predefined transformations (up to 100).
**Examples:**
**Load `references/variants-guide.md` for complete guide.**
---
1. **Use multipart/form-data** for uploads (not JSON) 2. **Enable transformations for zones** before using `/cdn-cgi/image/` 3. **Use direct creator upload** for user uploads (don't expose API tokens) 4. **Set CORS headers** for direct uploads from browser 5. **Use signed URLs** for private images 6. **Configure variants** for common sizes (avoid dynamic transformations) 7. **Use format=auto** for automatic WebP/AVIF 8. **Handle error codes** (9401, 9403, 9413, 5408) 9. **Set quality=85** for optimal size/quality balance 10. **Use fit=cover** for consistent aspect ratios
1. **Never expose API tokens** in frontend code 2. **Never use JSON encoding** for file uploads 3. **Never skip CORS configuration** for direct uploads 4. **Never exceed 100 variants** (hard limit) 5. **Never use transformations without enabling for zone** 6. **Never hardcode account IDs** in public code 7. **Never skip error handling** (uploads can fail) 8. **Never use quality >90** (diminishing returns) 9. **Never skip image validation** (size, format, dimensions) 10. **Never use transformations on non-proxied requests**
---
Direct creator upload pattern for user-uploaded images:
// Backend: Generate upload URL
const response = await fetch(
`https://api.cloudflare.com/client/v4/accounts/${ACCOUNT_ID}/images/v2/direct_upload`,
{ method: 'POST', headers: { 'Authorization': `Bearer ${API_TOKEN}` } }
);
const { result } = await response.json();
return Response.json({ uploadURL: result.uploadURL });
// Frontend: Upload file
const formData = new FormData();
formData.append('file', file);
await fetch(uploadURL, { method: 'POST', body: formData });**Load `templates/direct-creator-upload-backend.ts` for complete exam
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).
100+ animated React components (Aceternity UI) for Next.js with Tailwind. Use for hero sections, parallax, 3D effects, or…
Secure API authentication with JWT, OAuth 2.0, API keys. Use for authentication systems, third-party integrations,…
Creates comprehensive API changelogs documenting breaking changes, deprecations, and migration strategies for API consumers. Use…
Verifies API contracts between services using consumer-driven contracts, schema validation, and tools like Pact. Use when testing…
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use…
Implements standardized API error responses with proper status codes, logging, and user-friendly messages. Use when building…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.