Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

author-content-bindings

БесплатноБез исполняемых скриптовНе проверен

Create or update Contentful Binding Sets: target-scoped content binding configurations that map CMS entries or assets to public content properties on…

contentfulот contentful★ 43 звезды на GitHub

Об этом скилле

Author Content Bindings

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.

Scope

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.

Required access

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}"

Workflow

  1. Resolve the target. Confirm space, environment, target kind, and target ID. Fetch the target, its existing Binding Sets, content types, and representative source entries. Before using a Content Type in a planned parameter, query branch, or reference path, read it directly. A 404 can mean it was deleted or is unreadable: omit an optional alternative, or block a required mapping.
  2. Fetch the target GraphQL schema. Immediately before designing mappings, fetch 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.
  3. Classify the request. Map only public contentProperties. A slot child owns its own Binding Set. Do not map a design property or a private child property.
  4. Create a Binding Plan. Start with a short target line and a readable target-property-to-CMS-source table, then show the title, description, resolver shape, and every intentional omission. Keep requiredness as validation evidence; surface it only when it changes the plan. Get explicit approval before any write.
  5. Construct one complete persisted Binding Set body. Use the current sys-free format, an ordered parameters array, and the pattern that matches the source shape. See CMA workflow and resolver patterns.
  6. Write, link, and re-read. Save the Binding Set, re-read it, preserve and verify the target's Binding Set links. CMA acceptance alone is not proof that the Binding Set is editable.
  7. Verify in the UI when a logged-in session is already available. Reopen the exact Binding Set and confirm it loads and is editable. Otherwise, ask the user to check the linked target in their browser and do not claim UI editability.
  8. Hand off publication. Ask the user to review and publish through the Component or Experience Template edit
Полный SKILL.md на GitHub

Установить author-content-bindings в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash(curl *)
mcp__contentful-mcp__*
mcp__plugin_contentful_contentful-mcp__*
mcp__chrome-devtools__*
mcp__plugin_*chrome-devtools*__*

Вложенные файлы

package.jsonreferences/advanced-patterns.mdreferences/cma-workflow.mdreferences/resolver-patterns.mdreferences/ui-compatible-mappings.md

FAQ

Что делает скилл author-content-bindings?

Create or update Contentful Binding Sets: target-scoped content binding configurations that map CMS entries or assets to public content properties on Components and Experience Templates. Binding Sets are stored as Data Assemblies. Uses the current CMA contract, target GraphQL schema, and Experience UI compatibility checks. Use when asked to create a Binding Set, author a Data Assembly, wire CMS content to a component, map an entry or asset to a template, or configure content bindings. Also triggers on "content binding", "data assembly", "binding set", "prebinding", and "hydrate a component". Not for building a component tree, filling a slot, or choosing the concrete source on an existing Experience or Experience Fragment.

Как установить скилл author-content-bindings?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл author-content-bindings запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить author-content-bindings с