cloudinary-transformations
Create and debug Cloudinary transformation URLs from natural language instructions. Use when building Cloudinary delivery URLs, applying image/video transformations, optimizing media, or debugging transformation syntax errors.
What this skill does
# Cloudinary Transformation Rules ## When to Use - Building Cloudinary delivery/transformation URLs - Converting natural language requests to transformation syntax - Debugging transformation URLs that aren't working - Optimizing images or videos with Cloudinary - Applying effects, overlays, resizing, or cropping ## Quick Start ### Default Best Practice: Always Optimize **Add `f_auto/q_auto` to the end of nearly every transformation URL** (as final components): - Automatically delivers optimal format - Optimizes quality for best balance of visual quality and file size - Reduces bandwidth and improves performance **Example:** `c_fill,g_auto,w_400,h_300/f_auto/q_auto` **Exceptions - Don't add optimization when:** - Account has "Optimize By Default" enabled (already applied automatically) - Special quality requirements (use `q_auto:best`, `q_auto:low`, or manual `q_N` instead) - Specific format required (replace `f_auto` with `f_png`, `f_jpg`, etc.) - Delivering exact original with no modifications **Examples of common transformations (with optimization):** 1. Resize: `c_scale,w_400/f_auto/q_auto` 2. Smart crop: `c_fill,g_auto,h_300,w_400/f_auto/q_auto` 3. Background removal: `e_background_removal/f_png/q_auto` 4. Text overlay: `co_yellow,l_text:Arial_40:Hello%20World/fl_layer_apply,g_south/f_auto/q_auto` 5. Image overlay: `l_logo/c_scale,w_100/fl_layer_apply,g_north_west,x_10,y_10/f_auto/q_auto` **Important:** All transformation strings shown throughout this skill are illustrative examples to demonstrate syntax and concepts. When generating transformations, choose specific values (dimensions, colors, positions, etc.) based on the user's actual requirements and use case, not the example values shown. **For debugging:** See [references/debugging.md](references/debugging.md) for detailed troubleshooting steps. ## Gathering Requirements Before generating a transformation URL, if not already specified, clarify these details based on the user's request: ### For Resize/Crop Requests **Required:** - At least one dimension (width OR height) - Crop behavior if both dimensions specified (fill, pad, scale, limit, etc.) **Clarify:** - Focal point/gravity (especially for cropping): Face detection? Center? Smart auto-detection? - Maintain aspect ratio? (if only one dimension, this is automatic) **Example questions:** - "What dimensions do you need? (width and/or height)" - "Should this fill the space (may crop) or fit within it (no cropping)?" - "Any important focal point? (faces, center, specific area)" ### For AI Transformation Requests **Background removal:** - Output format needs (PNG for transparency vs JPG with solid background) - What to do with transparent area (keep transparent, add color, or gen_fill) **Generative fill:** - Target dimensions or aspect ratio - How much extension needed **Generative replace:** - What object to replace (from) - What to replace it with (to) - Preserve original shape? (for clothing/objects) **Generative remove:** - What object(s) to remove - Remove all instances or just one? **Generative background replace:** - Describe desired background (or use auto-generation) - Need reproducibility? (consider seed parameter) ### For Video Transformation Requests **Trimming:** - Start and end time, or duration - Seconds or percentage of video **Codec/format:** - Output format needs (MP4, WebM, etc.) - Quality requirements (use `vc_auto` if unsure) **Audio:** - Keep or remove audio track - If for autoplay, suggest removing audio (`ac_none`) ### Always Recommend Unless user specifies otherwise: - **Add `f_auto/q_auto` at the end** of transformation URLs (see Quick Start section for exceptions) - Use `g_auto` for smart cropping when filling dimensions - Consider cost for AI transformations (inform user of transformation credits) ## Quick Reference ### URL Structure ``` https://res.cloudinary.com/<cloud_name>/<asset_type>/<delivery_type>/<transformations>/<version>/<public_id>.<ext> ``` **Key Rules:** - Commas (`,`) separate parameters **within** a component - Slashes (`/`) separate components **between** transformations - Each component acts on the output of the previous one ### Parameter Types **Action parameters**: Perform transformations (one action per component: each action transformation should be separated by a slash) **Qualifier parameters**: Modify action behavior (in the same component as the action, using commas as separators) Check the [Transformation Reference](https://cloudinary.com/documentation/transformation_reference.md) to determine if a parameter is an action or qualifier. ## Core Transformations ### Resize & Crop **Dimension value formats:** - **Whole numbers** (e.g., `w_400`, `h_300`) = pixels - **Decimal values** (e.g., `w_0.5`, `h_1.0`) = percentage of original dimensions (0.5 = 50%, 1.0 = 100%) **Choosing the right crop mode:** Use **`c_scale`** when: - Resizing while maintaining original aspect ratio - Specify only ONE dimension (width OR height) - No cropping needed - The user intentionally wants to stretch or squash an image by changing the aspect ratio Use **`c_fill`** when: - Must fit exact dimensions (e.g., thumbnail grid, fixed layout) - Okay to crop parts of image - Combine with `g_auto` for smart cropping, or `g_face` for portraits Use **`c_fit`** when: - Image must fit within dimensions without cropping - Okay to have empty space - Maintaining full image content is critical Use **`c_pad`** when: - Must fit exact dimensions without cropping - Need to fill empty space with background color/blur/AI-generated pixels - Use with `b_<color>` or `b_auto` (blurred background) or `b_gen_fill` Use **`c_limit`** when: - Set maximum dimensions but don't upscale small images - Preserving original quality of small images matters Use **`c_thumb`** when: - Creating thumbnails (typically avatars) - Use with `g_face` for face-centered crops Use **`c_auto`** when: - Cloudinary should intelligently crop to interesting content - Combine with `g_auto` for best results - Good for dynamic content where focal point varies **Examples:** ``` c_scale,w_400 # Resize width to 400px, maintain aspect ratio c_scale,w_0.5 # Resize to 50% of original width c_fill,g_auto,h_300,w_400 # Fill 400x300px dimensions, smart crop c_fit,h_300,w_400 # Fit within dimensions, no crop c_pad,b_white,h_300,w_400 # Pad to exact size with white background c_pad,w_1.0 # Pad to original width (100%) c_limit,w_1000 # Limit max width, no upscale c_thumb,g_face,h_150,w_150 # Face-centered square thumbnail c_auto,g_auto,w_800 # Auto crop to interesting area ``` **Important**: Always specify a crop mode explicitly. Avoid using both dimensions with `c_scale` (will distort if aspect ratios don't match) - prefer one dimension to maintain aspect ratio. ### Gravity (Focal Point) Gravity determines which part of the image to focus on when cropping: - **`g_auto`** - Smart detection (recommended for varied content; detects faces, objects, contrast) - **`g_face`** - Face detection (portraits, avatars) - **`g_center`** - Center position (centered subjects, logos) - **`g_north`, `g_south_east`, etc.** - Compass positions (fixed locations, overlay positioning) - **`x_N,y_N`** - Custom offsets (integers = pixels, floats = percentage: 0.8 = 80%) **Examples:** ``` c_fill,g_auto,w_400,h_300 # Smart crop c_thumb,g_face,w_200,h_200 # Face-centered l_logo/fl_layer_apply,g_south_east,x_10,y_10 # Logo bottom-right ``` **Important**: - `g_auto` only works with `c_fill`, `c_lfill`, `c_crop`, `c_thumb`, `c_auto` - When using x, y, h, w together, use all integers OR all floats (don't mix) ### Format & Quality **Recommended defaults:** - **`f_auto/q_auto`** - Use for most production images (WebP to supported browsers, optimized file size) **Specific formats**
Related in Image & Video
watch
IncludedWatch a video (URL or local path). Downloads with yt-dlp, extracts auto-scaled frames with ffmpeg, pulls the transcript from captions (or Whisper API fallback), and hands the result to Claude so it can answer questions about what's in the video.
physical-ai-defect-image-generation
IncludedUse when the user wants to orchestrate defect image generation, run associated setup, or handle outputs on OSMO. The Day 0 path handles cold-start with USD-to-ROI, image-edit augmentation, and AnomalyGen to create initial PCBA datasets. The Day 1 path performs inference and labeling on real images. This skill helps with first-time asset setup, creation of finetuning checkpoints, and configuring deployment. Trigger keywords: defect image generation, dig workflow, dig pipeline, defect image detection workflow, aoi pipeline, aoi anomalygen, usd2roi anomalygen, day 0 pcba, day 1 pcba, day 1 real-photo alignment, day 1 manual roi, metal surface anomaly, glass defect, anomalygen finetune, setup_pcb, setup_metal, setup_glass, setup_pretrained, dig setup, dig datasets, dig pretrained checkpoint, dig image-edit endpoint.
accelint-react-best-practices
IncludedReact performance optimization and best practices. ALWAYS use this skill when working with any React code - writing components, hooks, JSX; refactoring; optimizing re-renders, memoization, state management; reviewing for performance; fixing hydration mismatches; debugging infinite re-renders, stale closures, input focus loss, animations restarting; preventing remounting; implementing transitions, lazy initialization, effect dependencies. Even simple React tasks benefit from these patterns. Covers React 19+ (useEffectEvent, Activity, ref props). Triggers - useEffect, useState, useMemo, useCallback, memo, inline components, nested components, components inside components, re-render, performance, hydration, SSR, Next.js, useDeferredValue, combined hooks.
elevenlabs-agents
IncludedBuild conversational AI voice agents with ElevenLabs Platform using React, JavaScript, React Native, or Swift SDKs. Configure agents, tools (client/server/MCP), RAG knowledge bases, multi-voice, and Scribe real-time STT. Use when: building voice chat interfaces, implementing AI phone agents with Twilio, configuring agent workflows or tools, adding RAG knowledge bases, testing with CLI "agents as code", or troubleshooting deprecated @11labs packages, Android audio cutoff, CSP violations, dynamic variables, or WebRTC config. Keywords: ElevenLabs Agents, ElevenLabs voice agents, AI voice agents, conversational AI, @elevenlabs/react, @elevenlabs/client, @elevenlabs/react-native, @elevenlabs/elevenlabs-js, @elevenlabs/agents-cli, elevenlabs SDK, voice AI, TTS, text-to-speech, ASR, speech recognition, turn-taking model, WebRTC voice, WebSocket voice, ElevenLabs conversation, agent system prompt, agent tools, agent knowledge base, RAG voice agents, multi-voice agents, pronunciation dictionary, voice speed control, elevenlabs scribe, @11labs deprecated, Android audio cutoff, CSP violation elevenlabs, dynamic variables elevenlabs, case-sensitive tool names, webhook authentication
humanizer
IncludedHumanize AI-generated text by detecting and removing patterns typical of LLM output. Rewrites text to sound natural, specific, and human. Uses 28 pattern detectors, 560+ AI vocabulary terms across 3 tiers, and statistical analysis (burstiness, type-token ratio, readability) for comprehensive detection. Use when asked to humanize text, de-AI writing, make content sound more natural/human, review writing for AI patterns, score text for AI detection, or improve AI-generated drafts. Covers content, language, style, communication, and filler categories.
generating-mermaid-diagrams
IncludedSalesforce architecture diagrams using Mermaid with ASCII fallback. Use this skill when generating text-based diagrams for Salesforce architecture, OAuth flows, ERDs, integration sequences, or Agentforce structure. TRIGGER when: user says "diagram", "visualize", "ERD", or asks for sequence diagrams, flowcharts, class diagrams, or architecture visualizations in Mermaid. DO NOT TRIGGER when: user wants PNG/SVG image output (use generating-visual-diagrams), or asks about non-Salesforce systems.