Install any skill in seconds. Free to start, no credit card required.
Get Started Free →webiny/webiny-sdk
Using @webiny/sdk to read and write CMS data from external applications.
Passed 21 of 22 test cases with the skill, and 5 of 22 without it.
and 27 more in the full report
16 fixed5 passed either way1 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 16 test cases the skill fixed. Same model, same prompt, with and without the skill.
I need to publish a newly created article revision 'art123#0001' in Webiny CMS. Should I call `webiny.cms.publishEntry` with the entry ID?
| Checked | Without skill | With skill |
|---|---|---|
| Uses webiny.cms.publishEntryRevision instead of publishEntry. | Missed | Passed |
| Passes revisionId and fields parameters to publishEntryRevision. | Missed | Passed |
The instructions your model reads when the skill loads.
The @webiny/sdk package provides a TypeScript interface for external apps (Next.js, Vue, Node.js) to interact with Webiny's Headless CMS and File Manager. Every method returns a Result object (checked with isOk()). Supports listing, getting, creating, updating, publishing, and unpublishing entries with filtering, sorting, pagination, and TypeScript generics for type safety.
npm install @webiny/sdk
Initialize once and reuse:
// lib/webiny.ts
import { Webiny } from "@webiny/sdk";
export const webiny = new Webiny({
token: process.env.WEBINY_API_TOKEN!,
endpoint: process.env.WEBINY_API_ENDPOINT!,
tenant: process.env.WEBINY_API_TENANT || "root"
});
token -- API key token generated in Webiny Admin (Settings > API Keys)endpoint -- The base API URL, without a trailing slash. Run yarn webiny info in your Webiny project to find the API URL. For Website Builder projects use NEXT_PUBLIC_WEBSITE_BUILDER_API_HOST.tenant -- Tenant ID, defaults to "root"IMPORTANT: Never add a trailing slash to
endpoint. The SDK appends/graphqlto the endpoint internally, sohttps://xxx.cloudfront.net/will break all requests.
fields Parameter (Required)Every SDK method requires a fields array that specifies which fields to return. Omitting it will cause a runtime error.
"values.<fieldId>" for content fields: "values.name", "values.price""id", "entryId", "createdOn", "status""values.author.name"test cases passed, vs 5 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.