跳到正文
Skillpedia
技术文档77k · #1942

Contentful Automation

它能做什么

这个工具可以帮你管理 Contentful 内容系统(CMS)。你可以查看所有的空间(space),获取某个空间的详细信息,还可以重命名空间。

适用场景

  • ✓当你想查看 Contentful 中的所有项目时。
  • ✓当你需要了解某个具体项目的详细信息时。
  • ✓当你想在 Contentful 中重命名某个项目时。

技能链接

https://github.com/ComposioHQ/awesome-claude-skills/blob/master/composio-skills/contentful-automation/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/ComposioHQ/awesome-claude-skills/blob/master/composio-skills/contentful-automation/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“列出我在 Contentful 中的所有空间,并告诉我它们的创建日期。”

每周 5 个新技能,1 分钟读完。

工作原理

这个工具会连接到你的 Contentful 账户。它使用特定的命令来列出你的空间、获取某个空间的详细信息,或者更新它的名称。要进行修改,必须使用正确的空间版本号。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Contentful Automation

Manage your Contentful headless CMS spaces directly from Claude Code. List spaces, retrieve metadata, and update space configurations without leaving your terminal.

Toolkit docs: composio.dev/toolkits/contentful


Setup

  1. Add the Composio MCP server to your configuration:
    https://rube.app/mcp
    
  2. Connect your Contentful account when prompted. The agent will provide an authentication link. Ensure your access token has space management scopes.

Core Workflows

1. List All Spaces

Discover all Contentful spaces accessible to your authenticated account. This is typically the first operation since most other actions require a space_id.

Tool: CONTENTFUL_LIST_SPACES

Key parameters:

  • limit (1-1000) -- maximum number of spaces to return (default: 100)
  • skip -- number of spaces to skip for pagination
  • order -- sort by field, e.g., sys.createdAt or -sys.createdAt for descending

Example prompt: "List all my Contentful spaces"


2. Get Space Details

Retrieve detailed metadata for a specific space including its current sys.version, which is required for updates.

Tool: CONTENTFUL_GET_SPACE

Key parameters:

  • space_id (required) -- the ID of the space to retrieve (alphanumeric, 1-64 chars)

Example prompt: "Get details for Contentful space abc123def"


3. Update Space Name

Update the name of a specific space. Requires the current version number for optimistic locking to prevent concurrent modification conflicts.

Tool: CONTENTFUL_UPDATE_SPACE

Key parameters:

  • space_id (required) -- ID of the space to update
  • name (required) -- new name for the space (1-255 chars)
  • version (required) -- current space version from sys.version (must be > 0)

Example prompt: "Rename Contentful space abc123def to 'Production Content Hub'"


4. Audit Space Inventory

Combine space listing and detail retrieval to audit your organization's Contentful spaces.

Tools: CONTENTFUL_LIST_SPACES then CONTENTFUL_GET_SPACE

Workflow:

  1. List all spaces to get IDs and names
  2. Fetch details for each space to get version info, creation dates, and metadata

Example prompt: "Audit all Contentful spaces -- list them with their creation dates and current versions"


Known Pitfalls

  • Version conflicts on update: CONTENTFUL_UPDATE_SPACE requires the latest sys.version from CONTENTFUL_GET_SPACE. If someone else modified the space between your read and write, the update will fail with a version conflict. Always fetch the space immediately before updating.
  • Pagination for many spaces: CONTENTFUL_LIST_SPACES uses limit and skip parameters. When you have many spaces, iterate by incrementing skip until no more results are returned to avoid missing spaces.
  • Scope limitations: These tools only manage space-level metadata (names). They cannot create or modify entries, content types, or assets within a space.
  • Auth/permissions mismatch: Updates via CONTENTFUL_UPDATE_SPACE will fail if your token lacks space management scopes, even if reads via CONTENTFUL_GET_SPACE succeed. Verify your token has write permissions.
  • Space ID format: The space_id must match the pattern ^[a-zA-Z0-9-_.]{1,64}$. Invalid characters will be rejected.

Quick Reference

Tool Slug Description
CONTENTFUL_LIST_SPACES List all spaces accessible to your account
CONTENTFUL_GET_SPACE Retrieve detailed metadata for a single space
CONTENTFUL_UPDATE_SPACE Update the name of a space (requires version)

Powered by Composio

常见问题

什么是 Contentful 中的空间(space)?

空间就像是你内容的容器。可以把它理解为一个独立的项目,你可以在里面整理文字、图片和其他信息。

我可以用这个工具创建或编辑内容吗?

不可以。这个工具只用于管理空间的常规设置,比如列出或重命名。它不处理内容本身(文字、图片等)。

为什么我的重命名操作失败了?

这可能是因为有其他人同时修改了空间的名称,或者你没有使用正确的版本号。工具需要最新的版本号,才能确保修改正确完成。

详情

作者的原始描述

Automate headless CMS operations in Contentful -- list spaces, retrieve space metadata, and update space configurations through the Composio Contentful integration.

repo: ComposioHQ/awesome-claude-skills

热度

GitHub 星标
77k
排名
#1942
许可证
—
更新时间
2026/9/18

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能