/contentful:author-content-bindings [space id] [component or template]from contentful
Creates or updates Contentful Binding Sets that map CMS entries/assets to public content properties on Components and Experience Templates. Uses CMA, GraphQL schema, and Experience UI compatibility checks.
Ships in contentful. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Create or update Binding Sets: target-scoped content binding configurations that map CMS data into a Component or Experience Template's public content properties. Binding Sets are stored as Data Assemblies. They are not an instance-level choice of a specific entry, and one Data Assembly belongs to one Component or Experience Template only.
| Request | Correct layer |
|---|---|
| "Create a Binding Set" or "map a page hero to Hero" | This skill: Binding Set authoring. |
| "Choose the entry for this Experience" | Instance-level binding; it consumes a Binding Set. |
| "Put this Component in a slot" or "build the tree" | Component or template assembly. |
The target tree reads through $contentProperties/.... Every Binding Set return key
must therefore be an existing public content-property ID. Do not create return
values that no Component or template reads.
This skill is CMA-led by default. Before inspecting or changing a space, obtain
an authorized CMA token for the target space and environment. Prefer CMA_TOKEN
or an agent-accessible secret store; do not ask users to paste a token into
chat when a secure channel is available. A token pasted as a last resort should
be revoked after use.
When the user provides a target URL, parse it before opening a browser or making a request:
https://app.contentful.com/spaces/{spaceId}/environments/{environmentId}/components/{componentId}
https://app.contentful.com/spaces/{spaceId}/environments/{environmentId}/templates/{templateId}
https://app.contentful.com/spaces/{spaceId}/environments/{environmentId}/experience-templates/{templateId}
Resolve components to the Component CMA endpoint and templates or
experience-templates to the Experience Template CMA endpoint
(/experience_templates/{templateId}). Preserve the original URL for final
handoff. If the target route is not recognized, ask rather than guessing.
Use the original target URL in the final handoff. When the target was resolved
only from IDs, construct the app URL with /components/{componentId} for a
Component or /templates/{templateId} for an Experience Template.
The URL identifies the target; it does not authorize access. If the user explicitly asks to author through a logged-in browser session or another supported authenticated method, use that method instead of CMA while keeping the same plan-and-approval safeguards. Do not use a browser session to retrieve a CMA token. Otherwise, if the token is unavailable, ask for secure CMA access and stop before CMA authoring.
Before each CMA request, require the token without printing it:
: "${CMA_TOKEN:?CMA_TOKEN must be set by a secret store or environment}"
404 can mean it was deleted or is unreadable: omit an
optional alternative, or block a required mapping.graphql_schema. It is the source of truth for GraphQL field names,
concrete versus abstract return types, and valid ordering enums.
Pair it with Content-Type fields to establish reference topology, allowed
types, and requiredness. Use Component/Experience Template and content-type
metadata for user-facing labels, descriptions, and semantics in the Binding
Plan; keep IDs secondary.contentProperties. A slot child
owns its own Binding Set. Do not map a design property or a private child
property.parameters array, and the pattern that matches the
source shape. See CMA workflow and
resolver patterns./published endpoint.| Concern | Required behavior |
|---|---|
| CMA body | Send metadata, name, description, ordered parameters, resolvers, and return. Never send top-level sys or sys.dataType. |
| Parameters | Each newly authored parameter is mandatory: set explicit required: true. Do not use a keyed parameter map. |
| Schema | Trace every selected GraphQL path against the current target schema. Use the Content-Type definition for reference topology, allowed types, and requiredness; use the schema for GraphQL type behavior. |
$on.type | Use it at every UNION or INTERFACE selection boundary, including a one-member union. Use an ordinary selector for a concrete OBJECT. |
| Pointers | Keep _node and collection envelopes in $from.source. Prefer a direct selector path for a single Link<Entry> to a concrete OBJECT, unless a same-environment UI Binding Set differs; use an inner mapping for a union/interface branch, collection, or transformation. |
| Direct resolver return | When a return value is the complete output of a resolver, use { "$from": "$resolvers/<resolverId>" }. Do not use a bare resolver string. |
| Requiredness | Never map an optional source to a required target without a verified query-level guarantee. |
| Content-Type availability | Directly read every planned parameter type and every allowed type on a selected Link<Entry> or Array<Link<Entry>>. Treat a 404 as deleted or unreadable; omit it or block the mapping. |
| Collections | Never use items/0, items/1, or another index to fill individual required nested inputs. If a shared parameter cannot cover nested Binding Sets directly, prefer explicitly hoisting nested child parameters as separate inputs. Do not propose a partial Binding Set if it can be avoided through hoisting or other similar options. When the source relationship must remain positional, report a modeling gap. |
| Static root collections | Use the UI-shaped locked Record query parameter, with the same ID as its resolver. Bind limit and schema-validated $order variables to its Number and OrderExpression fallback fields. This keeps the behavior fixed while matching the editor's persisted format. |
| Target ownership | A Data Assembly belongs to one Component or Experience Template. Never link the same Data Assembly to another target; create a distinct Data Assembly even when the contracts and mappings are identical. |
| UI check | When a logged-in browser session is already available, reopen the exact Binding Set and confirm it is editable. Otherwise, report CMA-valid; UI editability unverified and ask the user to check the target in their browser. |
In a Binding Plan, status update, mapping summary, or error explanation, use a target property or parameter's display label or title when available; show its ID only when it disambiguates duplicates, is needed for copy/paste, or the user asks for technical detail. Describe the editor-visible outcome: the target property, the CMS source, and the action the user can take. Do not foreground resolver-pointer mechanics, root transport paths, or GraphQL type inference unless the user asks for a technical diagnosis. The final review payload can contain persisted resolver syntax because it is needed to review the Binding Set itself.
Before approval, lead with concise target context and the mapping table.
Describe the proposed functionality and mappings directly. Do not add a generic
“Before / After” contrast when creating a new Binding Set. Include a comparison
only when modifying an existing Binding Set or when the user explicitly asks
for one. Keep (required) out of human-facing property labels, parameter
labels, names, descriptions, and mapping summaries.
required: true remains in the persisted body and matters in user-facing copy
only when it creates a mapping constraint or error.
Show the complete plan before writing. For each Binding Set include:
The editor already shows the owning Component or template. Do not repeat that name in the Binding Set name. Emphasize the distinct author-visible functionality or outcome; use the description to explain what it does and how it gets its data. Naming one source type is useful for a single-input Binding Set, but when several inputs or source types are involved, describe their behavior together rather than listing technical contracts.
Avoid: CTA Section — Title and AI Action Templates
Prefer: Recent AI actions
Uses a selected title and displays the three most recently published AI actions.
| Need | Read |
|---|---|
| Current endpoints, token handling, persisted body, link lifecycle, and UI verification | CMA workflow |
| Complete entity, collection, and Asset examples | Resolver patterns |
| Complete RichText, polymorphic, and nested-contract examples | Advanced resolver patterns |
| Schema type tracing, canonical pointers, requiredness, depth, and API-only exceptions | UI-compatible mappings |
After every write, re-read the saved Binding Set and render a review projection. Use a
documented native collapsible mechanism when the active harness provides one;
in Codex, use HTML <details>. Use the harness's documented expandable form
when known, or fall back to a normal Markdown heading with a jsonc code block
when none is available. Do not invent a collapsible syntax. In every form,
include the full metadata, name, description, parameters, resolvers,
and return; omit only server-assigned sys with a short comment that it is
not relevant for review. Follow with target-link verification and, when an
authenticated browser session was already available, the UI-check outcome.
Without that session, report UI editability as unverified, ask the user to
check that the Binding Set renders and is meaningful, and end with the direct
target URL as a clickable Markdown link. Never call it UI-compatible without
that check.
For general Contentful concepts or API selection, use the contentful-guide
skill. For content-model migrations, use the contentful-migration skill.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub contentful/skills --plugin contentful10 skills in this plugin
/channels-destinationsSet up and manage Contentful Channels, Destinations, and Destination Nodes through the Destinations Management API. Use for creating or updating channel contracts, destination properties, destination maps, experience/folder/redirect nodes, assigning experiences, routing and path configuration, publishing, unpublishing, migration, or deletion. Verify the current API schema and permissions before acting; use this skill instead of guessing endpoints or payloads./contentful-apiComprehensive Contentful REST API guide. Covers Content Management API (CMA) for creating/updating content, Content Delivery API (CDA) for fetching published content, Preview API, Images API, and GraphQL API. All examples use curl/HTTP — language-agnostic./contentful-custom-app-enhancementImprove, debug, and extend an existing Contentful App Framework custom app in a customer's own repository. Use when users provide a bug report, feature request, support note, customer feedback, or direct change request for an existing custom app, including app configuration, sidebar, field editor, dialog, page, home, App Action, Function, installation parameters, local validation, or PR preparation. Also triggers on "fix my Contentful app", "improve a custom app", "enhance App Framework app", "debug custom app", "update sidebar app", and "custom app feature request". Not for creating a brand new app from scratch (contentful-custom-app-from-scratch), generic API examples (contentful-api), migrations (contentful-migration), or website integration (contentful-nextjs)./contentful-custom-app-from-scratchDesign, scaffold, build, and validate a new Contentful App Framework custom app for a customer's own repository or workspace. Use when users want to create a custom app from an idea, choose App Framework locations, build a sidebar app, field editor app, page app, dialog, configuration screen, App Action, or Function-backed app, scaffold with create-contentful-app, or make a locally testable app for an organization-specific Contentful workflow. Also triggers on "build a Contentful app", "custom app from scratch", "App Framework app", "sidebar app", "field editor app", "page app", "app action", and "app function". Not for generic Contentful API examples (contentful-api), content model migrations (contentful-migration), or website integration (contentful-nextjs)./contentful-env-analysisDownload a Contentful space and environment into a local read-only SQLite snapshot, inspect its content model and content usage, or answer data questions./contentful-guideExplain core Contentful concepts and route users to the right implementation skill or documentation. Use when users ask conceptual questions, need terminology clarified, want help choosing between APIs (CDA/CMA/CPA/GraphQL), or need guidance on the Contentful MCP server. Also triggers on "Contentful 101", "which Contentful API", "how do I get started", "which skill should I use", "what does X mean in Contentful", "Contentful glossary", "CDA vs CPA", "CDA vs GraphQL", "how does Contentful work", "Contentful architecture", "explain environments", "what are aliases", "content model design", "headless CMS", "Contentful MCP", "MCP server", "set up MCP", "Remix Contentful", "Astro Contentful", "Gatsby Contentful", "SvelteKit Contentful", "Nuxt Contentful". Not for framework-specific implementation (contentful-nextjs), migrations (contentful-migration), personalization (contentful-personalization), or hands-on REST/GraphQL request examples (contentful-api).Other plugins' skills for the same job