Перейти к содержимому
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 — любой кодинг-агент, которым пользуетесь.

Ссылки