Repository navigation
Add SDK code generation guidance to cloudinary-transformations - #24
carlevison wants to merge 2 commits into
Conversation
Detect the user's Cloudinary SDK from project dependencies and pull SDK-specific syntax from the Transformation Reference parameter pages instead of guessing it from URL parameters. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Make references to cloudinary-next and cloudinary-react conditional on them being installed, and add a rawTransformations fallback for Next.js projects when cloudinary-next isn't available. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
sharon-yelenik
left a comment
There was a problem hiding this comment.
LGTM. One comment for you to look at.
I also wanted to raise a general question because this seems a bit circuitous to me.
We're asking the LLM to produce the delivery URL, and from that to derive the SDK code, only to return back a valid delivery URL, which is what had in the first place.
Is there intrinsic value for using SDK code that justifies the extra processing and potentially introducing a mistake?
| 3. Combine the snippets into one expression, following the chaining pattern the snippets show. For example, `@cloudinary/url-gen` chains action methods (`.resize(...).delivery(...)`). The Node.js, Python and Ruby SDKs take an array of transformation objects (`transformation: [{...}, {...}]`), one per URL component. | ||
| 4. Replace the example public IDs (such as `docs/camera-640.jpg`) and values with the user's. | ||
|
|
||
| **Watch out for:** |
There was a problem hiding this comment.
Should we add a note about import statements? Some SDKs require a separate import for each transformation, shown in the transformation reference. Other SDKs need only one import for all transformations, but for those, the import statement isn't shown in the transformation reference; it's only in the SDK docs.
Summary
The cloudinary-transformations skill only produced URL strings. This adds a Generating SDK Code section so the skill can give users code for their Cloudinary SDK.
Also:
Testing
scripts/check-discovery.sh,scripts/check-links.shandscripts/check-versions.shpass locally.🤖 Generated with Claude Code