360 Secure SkillHub
360 安全技能中心

Strapi CMS

该 Skill 通过 @strapi/client SDK 以 CLI 方式操作 Strapi 无头 CMS:对集合类型、单一类型和媒体文件做增删改查与上传,查看内容类型、组件与关系,管理模式与编辑表单布局,处理草稿发布、i18n 本地化、终端用户与角色,并可直接发起 HTTP 请求。使用前需配置 API Token 与实例基础地址。

ilya-ryzhov
ilya-ryzhov
热度 79.35
最近更新 2026-05-18 12:05:23
分类:开发依赖:代码执行 / 读写文件 / 第三方 API应用场景:API 集成 / 自动化脚本 / 工作流 / 翻译 ...

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add strapi
Metadata
name
strapi
description
Manage Strapi CMS content through the official @strapi/client SDK. CRUD on collection types, single types, and media files. Upload files to media library. Introspect content type schemas, relations, and components. Manage i18n locales and localized content (translations). Draft/publish workflow. Configure edit form layout (field order, sizes, labels). Manage end users, roles, and authentication. Use when the user asks about Strapi, headless CMS, content management, managing articles, blog posts, pages, entries, media files, upload images, upload from URL, download and upload, translations, localization, publishing, drafts, content types, schemas, form layout, edit view, users, roles, permissions, authentication, login, register, REST API, or creating/updating/deleting CMS content.
metadata
{"openclaw":{"emoji":"🔵","requires":{"bins":["node"],"env":["STRAPI_API_TOKEN","STRAPI_BASE_URL"]},"primaryEnv":"STRAPI_API_TOKEN","install":[{"id":"node","kind":"node","package":".","bins":["node"],"label":"Install Strapi skill dependencies"}]}}

Strapi CMS Skill

Manage content in a Strapi headless CMS instance via the official @strapi/client SDK.

Setup

During installation, enter your Strapi API Token in the API Key field. Then add STRAPI_BASE_URL to the env section:

{
  skills: {
    entries: {
      strapi: {
        enabled: true,
        apiKey: "your-strapi-api-token",     // → STRAPI_API_TOKEN
        env: {
          STRAPI_BASE_URL: "http://localhost:1337/api"
        }
      }
    }
  }
}

Capabilities

  • Collection types: find, findOne, create, update, delete entries
  • Single types: find, update, delete the document
  • Content introspection: discover types, schemas, components, relations, inspect real data
  • Schema management: create/update/delete content types, components, fields (destructive)
  • Form layout: configure edit form field order, sizes, labels, descriptions (local/dev only)
  • Draft & publish: list drafts, publish, unpublish, create as draft or published
  • Files: list, get, upload (local path or URL), update metadata, delete media files
  • Users & Permissions: list, create, update, delete end users; view roles; login, register, password reset
  • Locales (i18n): list, create, delete locales
  • Localized content: CRUD per locale, translation status, fetch all locales at once
  • Raw fetch: direct HTTP to any Strapi endpoint

Usage

See instructions.md for full agent instructions. See examples/usage.md for conversation examples.