agentleFS
Ghost7802Ghost7802/awesome-api-skills/skills/cloudinary/SKILL.md

cloudinary

Skill13 starsChanged 26 days agoMITView on GitHub

Verification Tier: code_example_tested | Last Verified: 2026-11-18 Official Docs: https://cloudinary.com/documentation/node_integration

  • Reads credentials
  • Installs packages

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Never expose CLOUDINARY_API_SECRET in client bundles.

    line 28
  2. Distinctive:

    Prefer signed uploads over unsigned upload presets in authenticated apps to prevent quota abuse.

    line 29

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Cloudinary API & SDK Skill

Verification Tier: code_example_tested | Last Verified: 2026-11-18
Official Docs: https://cloudinary.com/documentation/node_integration

Overview

Cloudinary provides media storage, signed direct browser uploads, responsive image/video transformations (f_auto,q_auto), and CDN delivery via the cloudinary v2 SDK.

Installation

npm install cloudinary
pip install cloudinary

Authentication

Configure CLOUDINARY_URL (cloudinary://<api_key>:<api_secret>@<cloud_name>) or individual CLOUDINARY_CLOUD_NAME, CLOUDINARY_API_KEY, and CLOUDINARY_API_SECRET variables. Always set secure: true for HTTPS delivery URLs.

Core Concepts

  • Signed Direct Browser Uploads: Generate a short-lived timestamped signature on your server via cloudinary.utils.api_sign_request(paramsToSign, apiSecret), return { signature, timestamp, apiKey, cloudName } to the browser, and upload directly from client to Cloudinary without proxying large files through your backend or exposing CLOUDINARY_API_SECRET.
  • Automatic Delivery Optimization: Apply fetch_format: "auto" (f_auto) and quality: "auto" (q_auto) on delivery URLs to serve AVIF/WebP automatically.
  • Eager Transformations: Pre-generate expensive video/large-image derivatives asynchronously (eager_async: true) during upload.

Error Handling & Rate Limits

  • Admin API endpoints have hourly rate limits (e.g., 500–2,000 req/hr depending on plan); use Upload API and Delivery URLs on hot user paths instead of polling Admin API.
  • Validate uploaded file MIME types, byte size limits, and allowed folders server-side when signing upload presets.

Security Best Practices

  • Never expose CLOUDINARY_API_SECRET in client bundles.
  • Prefer signed uploads over unsigned upload presets in authenticated apps to prevent quota abuse.
  • Enable Strict Transformations for sensitive or paid transformation presets to prevent arbitrary URL parameter billing attacks.

AI Pitfalls

  • Importing cloudinary root instead of import { v2 as cloudinary } from "cloudinary".
  • Signing parameters that do not exactly match the form fields sent in the browser upload (causes Invalid Signature HTTP 401).
  • Calling Admin API resources() on every page request instead of storing public_id in your database.

Production Checklist

  • secure: true enabled globally for HTTPS URLs
  • Browser uploads use server-generated api_sign_request signatures
  • f_auto and q_auto applied to delivery URLs
  • public_id persisted in app DB (not queried via rate-limited Admin API)

References

Related skills

  • cloudflare-r2 — works well with
  • aws-s3 — alternative to
  • nextjs — integrates with

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.