Command Palette

Search for a command to run...

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

webflow

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

Webflow is a visual website builder with a built-in CMS and hosting, plus a Data API v2 for managing content from code. Use when someone asks to "update…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub

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

Webflow

Overview

Webflow is a visual web design tool with its own CMS, hosting and forms. Designers build pages in the Designer; developers and automations use the Data API v2 (host api.webflow.com, paths start with /v2) to read and write CMS content, publish, read form submissions and register webhooks. Webflow also runs a hosted MCP server so an AI agent can work on a site, and a code components workflow (React components imported into the Designer).

The Data API v1 is a separate, older version; everything here is v2. Webflow's docs expose clean Markdown by appending .md to a page URL and a section index at https://developers.webflow.com/data/llms.txt.

Instructions

Step 1: Get a token

Every call sends Authorization: Bearer <token>.

  • Site token: made in Site settings, Apps & integrations, API access. Scoped to one site and the scopes you tick (for CMS work cms:read and cms:write, plus sites:write to publish the site). Best for internal scripts.
  • Workspace token: read access across a Workspace, for audits.
  • OAuth app token: for public integrations and Marketplace apps.

Keep tokens in environment variables (WEBFLOW_API_TOKEN, WEBFLOW_SITE_ID), never in a Designer custom-code field or client-side JavaScript. Custom-code endpoints need an OAuth app, not a site token.

curl -s https://api.webflow.com/v2/sites -H "Authorization: Bearer $WEBFLOW_API_TOKEN"
curl -s https://api.webflow.com/v2/sites/$WEBFLOW_SITE_ID/collections -H "Authorization: Bearer $WEBFLOW_API_TOKEN"

GET /collections/{collection_id} returns the field list. Field slug values (not display names) are the keys of fieldData.

Step 2: Create, update and publish CMS items

Items live in two states. A staged item is a draft or pending change; a live item is what visitors see. Writes go to the staged copy unless you use a /live endpoint.

// src/webflow.ts
const API = "https://api.webflow.com/v2";
const headers = {
  Authorization: `Bearer ${process.env.WEBFLOW_API_TOKEN}`,
  "Content-Type": "application/json",
};

async function wf<T>(path: string, init?: RequestInit): Promise<T> {
  const res = await fetch(`${API}${path}`, { ...init, headers });
  if (res.status === 429) {
    const wait = Number(res.headers.get("Retry-After") ?? 60);
    await new Promise((r) => setTimeout(r, wait * 1000));
    return wf<T>(path, init);
  }
  if (!res.ok) throw new Error(`Webflow ${res.status}: ${await res.text()}`);
  return res.json() as Promise<T>;
}

// Create up to 100 items per request (POST /items/insert is the endpoint for new work)
export async function createPosts(collectionId: string, posts: { title: string; slug: string; html: string; imageUrl: string }[]) {
  return wf<{ items: { id: string }[] }>(`/collections/${collectionId}/items/insert`, {
    method: "POST",
    body: JSON.stringify({
      items: posts.map((p) => ({
        isDraft: false, // queue for the next publish; default is true
        fieldData: {
          name: p.title,
          slug: p.slug,
          "post-body": p.html, // rich text is an HTML string
          "thumbnail-image": { url: p.imageUrl }, // public URL, max 4 MB
        },
      })),
    }),
  });
}

// Update one item (PATCH, not PUT)
export const updateTitle = (collectionId: string, itemId: string, name: string) =>
  wf(`/collections/${collectionId}/items/${itemId}`, { method: "PATCH", body: JSON.stringify({ fieldData: { name } }) });

// Publish specific items without publishing the whole site
export const publishItems = (collectionId: string, itemIds: string[]) =>
  wf<{ publishedItemIds?: string[]; errors?: string[] }>(`/collections/${collectionId}/items/publish`, {
    method: "POST",
    body: JSON.stringify({ itemIds }),
  });

Facts that bite:

  • The create and publish endpoints answer 202; the work finishes asynchronously.
  • New items are drafts by default. isDraft: false queues them for the next site publish; publishItems makes them live now.
  • isDraft: true on an already-published item keeps it live and holds the edit as a draft. To take items off the live site call DELETE /collections/{id}/items/live with {"items": [{"id": "..."}]} (up to 100, answers 204, and sets isDraft back to true); setting isArchived: true removes it only at the next site-wide publish.
  • Update a live item and publish in one call with PATCH /collections/{id}/items/{item_id}/live.
  • Older POST /items and POST /items/bulk still work but are no longer listed; they take one locale per item. Create Items (/items/insert) takes cmsLocaleIds (plural) or allCmsLocales: true and rejects unknown properties with 400.
  • List endpoints return at most 100 items; page with offset and limit. Filter with filter[<fieldSlug>][<operator>]=value and sort with sort[<fieldSlug>]=asc.
  • Rich text API writes drop code blocks (an empty string results). Multi-image, reference and option fields have their own
Полный SKILL.md на GitHub

Установить webflow в Claude Code и Claude Desktop

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

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

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

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

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

Без ограничений — скилл может использовать любой инструмент.

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

_scores.json

FAQ

Что делает скилл webflow?

Webflow is a visual website builder with a built-in CMS and hosting, plus a Data API v2 for managing content from code. Use when someone asks to "update Webflow CMS from a script", "sync content to Webflow", "publish a Webflow item", "Webflow webhook", "Webflow API", "connect Claude to Webflow", or "build a site in Webflow". Covers site tokens, CMS items, publishing, live content delivery, webhooks with signature checks, the MCP server and code components.

Как установить скилл webflow?

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

Скилл webflow запускает скрипты?

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

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

Сравнить webflow с