跳到正文
TakoAPI
返回技能列表

strapi

由 ilya-ryzhov 提供

Browser & Automation
441下载量由 clawskills.sh 提供
1浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Manage Strapi CMS content through the official @strapi/client SDK.

描述

该技能的功能

Manages content in a Strapi headless CMS instance using the official @strapi/client SDK. Supports full CRUD on collection types, single types, and media files, plus schema introspection, i18n localization, draft/publish workflows, and user/role management.

Uses the official @strapi/client SDK rather than raw REST calls, so schema changes, relations, and locale handling follow Strapi's own conventions without manual endpoint construction.

何时使用

  • Publish a new blog post from draft
  • Upload an image to the media library from a URL
  • Add a French translation for an existing article
  • Create a new content type field in the schema
  • Reset a CMS user's password

示例工作流

输入

User asks: 'Publish all draft articles in the Blog collection'

智能体
  1. 1

    Connect to Strapi using STRAPI_BASE_URL and STRAPI_API_TOKEN

  2. 2

    Query the Blog collection type for entries with draft status

  3. 3

    Iterate over each draft entry and call the publish action

  4. 4

    Confirm each entry transitions to published state

输出

All draft Blog entries are now published in the Strapi instance

前置要求

  • STRAPI_API_TOKEN environment variable
  • STRAPI_BASE_URL environment variable (e.g. http://localhost:1337/api)

安装

clawhub install ilya-ryzhov/strapi

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接