Enforces project Cloudinary media conventions when working with image uploads, URL generation, transformations, social sharing images, and photo management components.
Enforces project Cloudinary media conventions when working with image uploads, URL generation, transformations, social sharing images, and photo management components.
This skill covers the complete media workflow including CloudinaryService operations, URL utilities, CldImage/CldUploadWidget components, path organization, type definitions, and Sentry integration.
Similar popular skills
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Claude CodeNot declared
CursorNot declared
CodexNot declared
GitHub CopilotNot declared
WindsurfNot declared
Gemini CLINot declared
ClineNot declared
OpenCodeNot declared
Package contents
Files included with this skill beyond the listing page.
skill mdSKILL.md4,364 B
docsSUMMARY.md390 B
History
First recorded snapshot · 0 installs
SKILL.md
Cloudinary Media Skill
Purpose
This skill enforces the project Cloudinary media conventions automatically during media-related development. It ensures consistent patterns for image uploads, URL transformations, social sharing images, photo management, error handling with Sentry, and proper type usage across the application.
Activation
This skill activates when:
Working with image uploads using CldUploadWidget or CloudinaryService
Using CldImage component from next-cloudinary for image display
Generating optimized URLs with cloudinary.utils functions
Creating social sharing images (OG, Twitter) for SEO metadata
Extracting publicIds or formats from Cloudinary URLs
Implementing photo galleries, avatars, or image displays
Working with CloudinaryPhoto type or related interfaces
Using CloudinaryPathBuilder or CLOUDINARY_PATHS constants
Implementing photo upload components with progress tracking
Working with files in src/lib/utils/cloudinary.utils.ts
Working with files in src/lib/services/cloudinary.service.ts
Working with files in src/lib/constants/cloudinary-paths.ts
Working with files in src/types/cloudinary.types.ts
Working with files in src/components/ui/cloudinary-*.tsx
Workflow
Detect Cloudinary work (file path contains cloudinary, imports from next-cloudinary, or uses cloudinary utilities)
Load references/Cloudinary-Media-Conventions.md
Generate/modify code following all conventions
Scan for violations of media patterns
Auto-fix all violations (no permission needed)
Report fixes applied
Key Patterns
Image Display
Use CldImage from next-cloudinary for all Cloudinary images
Pass publicId to src prop (not full URL)
Always include alt, crop, gravity, quality={'auto'} props
Use sizes prop for responsive images with fill
Extract publicId using extractPublicIdFromCloudinaryUrl() when needed
URL Generation
Use generateOpenGraphImageUrl() for OG images (1200x630)
Use generateTwitterCardImageUrl() for Twitter cards (800x418)
Use generateSocialImageUrl() for platform-specific dimensions
Use extractFormatFromCloudinaryUrl() to get file extensions
All utilities include Sentry error logging with fallbacks
Upload Service
Use CloudinaryService static methods for server-side operations
Use deletePhotosByUrls() for batch deletion with URL context
Use movePhotosToPermFolder() to move temp uploads to permanent locations
Use getOptimizedUrl() for programmatic URL generation
All service methods use circuit breakers and retry logic
Path Organization
Use CLOUDINARY_PATHS.FOLDERS for base folder names
Use CloudinaryPathBuilder functions for dynamic paths: