framer-cms

Framer CMS management via the Server API — list, create, read, update, and delete CMS collections and items, upload images, publish previews, deploy to production, and manage project assets, all without opening Framer. Use when the user asks to manage Framer CMS content, publish a Framer site, push articles to Framer, update CMS items, upload images to Framer, create collections, sync content, or automate any Framer workflow. Trigger on: "framer", "framer cms", "framer publish", "framer deploy", "framer collection", "framer article", "push to framer", "upload to framer", "framer api", "framer server api", "cms item", "cms collection", "publish site", "deploy site", "framer preview", "framer image", "framer content". Do NOT trigger for: Framer design/layout work, Framer Motion animation library, building Framer plugins.

3,891 stars

Best use case

framer-cms is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Framer CMS management via the Server API — list, create, read, update, and delete CMS collections and items, upload images, publish previews, deploy to production, and manage project assets, all without opening Framer. Use when the user asks to manage Framer CMS content, publish a Framer site, push articles to Framer, update CMS items, upload images to Framer, create collections, sync content, or automate any Framer workflow. Trigger on: "framer", "framer cms", "framer publish", "framer deploy", "framer collection", "framer article", "push to framer", "upload to framer", "framer api", "framer server api", "cms item", "cms collection", "publish site", "deploy site", "framer preview", "framer image", "framer content". Do NOT trigger for: Framer design/layout work, Framer Motion animation library, building Framer plugins.

Teams using framer-cms should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/framer-crm-api/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/berthelol/framer-crm-api/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/framer-crm-api/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How framer-cms Compares

Feature / Agentframer-cmsStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Framer CMS management via the Server API — list, create, read, update, and delete CMS collections and items, upload images, publish previews, deploy to production, and manage project assets, all without opening Framer. Use when the user asks to manage Framer CMS content, publish a Framer site, push articles to Framer, update CMS items, upload images to Framer, create collections, sync content, or automate any Framer workflow. Trigger on: "framer", "framer cms", "framer publish", "framer deploy", "framer collection", "framer article", "push to framer", "upload to framer", "framer api", "framer server api", "cms item", "cms collection", "publish site", "deploy site", "framer preview", "framer image", "framer content". Do NOT trigger for: Framer design/layout work, Framer Motion animation library, building Framer plugins.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# Framer CMS — Server API Skill

Manage Framer CMS content programmatically via the `framer-api` npm package. Push articles, upload images, create collections, and publish/deploy — all from the terminal, no Framer app needed.

## First-time setup (onboarding)

If this is the first time the user uses this skill in a project, run the onboarding flow described in `references/onboarding.md`.

**Quick check:** Look for `FRAMER_PROJECT_URL` and `FRAMER_API_KEY` in the user's `.env` file or environment. If missing, onboard.

---

## How it works

This skill uses the **Framer Server API** (`framer-api` npm package) which connects to Framer projects via WebSocket using an API key. It provides full CMS CRUD, image uploads, publishing, and deployment.

**Important:** The `framer-api` package must be installed in the project. If not present, run:

```bash
npm i framer-api
```

All operations use **ES module scripts** (`.mjs` files) with this connection pattern:

```javascript
import { connect } from "framer-api"

// IMPORTANT: API key is passed as a plain string (2nd argument), NOT as {apiKey: "..."}
const framer = await connect(process.env.FRAMER_PROJECT_URL, process.env.FRAMER_API_KEY)
try {
  // ... operations ...
} finally {
  await framer.disconnect()
}
```

---

## Available operations

### CMS Collections

| Operation | Method | Notes |
|-----------|--------|-------|
| List collections | `framer.getCollections()` | Returns all CMS collections |
| Get one collection | `framer.getCollection(id)` | By collection ID |
| Create collection | `framer.createCollection(name)` | Creates empty collection |
| Get fields | `collection.getFields()` | Field definitions (name, type, id) |
| Add fields | `collection.addFields([{type, name}])` | Add new fields to collection |
| Remove fields | `collection.removeFields([fieldId])` | Delete fields by ID |
| Reorder fields | `collection.setFieldOrder([fieldIds])` | Set field display order |

### CMS Items (articles, entries)

| Operation | Method | Notes |
|-----------|--------|-------|
| List items | `collection.getItems()` | All items with field data |
| Create items | `collection.addItems([{slug, fieldData}])` | Create new items. Returns `undefined` — re-fetch with `getItems()` to get IDs |
| Update item fields | `item.setAttributes({ fieldData: { [fieldId]: {type, value} } })` | **MUST wrap in `fieldData:`** — without it, values are silently ignored |
| Update item slug/draft | `item.setAttributes({ slug: "new", draft: false })` | Slug and draft are set directly (NOT inside fieldData) |
| Delete item | `item.remove()` | Single item |
| Bulk delete | `collection.removeItems([itemIds])` | Multiple items |
| Reorder items | `collection.setItemOrder([itemIds])` | Set display order |

### ⚠️ Critical: How to update CMS item fields

The `setAttributes` method has a **non-obvious API design** — field values MUST be wrapped in a `fieldData` key:

```javascript
// ✅ CORRECT — fields wrapped in fieldData
await item.setAttributes({
  fieldData: {
    [titleFieldId]: { type: "string", value: "New Title" }
  }
})

// ❌ WRONG — silently ignored, no error thrown
await item.setAttributes({
  [titleFieldId]: { type: "string", value: "New Title" }
})

// ❌ WRONG — also silently ignored
await item.setAttributes({
  [titleFieldId]: "New Title"
})
```

**Partial updates work:** Only specified fields are changed. Other fields are preserved.

**Non-field attributes** (slug, draft) go directly on the object, NOT inside fieldData:
```javascript
await item.setAttributes({ slug: "new-slug", draft: false })
```

### Field data format

When creating/updating items, field data is keyed by **field ID** (not name):

```javascript
const fields = await collection.getFields()
const titleField = fields.find(f => f.name === "Title")

await collection.addItems([{
  slug: "my-article",
  fieldData: {
    [titleField.id]: { type: "string", value: "My Article Title" },
  }
}])
```

**Supported field types and their value format:**

| Type | Value format | Example |
|------|-------------|---------|
| `string` | `string` | `{ type: "string", value: "Hello" }` |
| `number` | `number` | `{ type: "number", value: 42 }` |
| `boolean` | `boolean` | `{ type: "boolean", value: true }` |
| `date` | `string` (UTC ISO) | `{ type: "date", value: "2026-04-06T00:00:00Z" }` |
| `formattedText` | `string` (HTML) | `{ type: "formattedText", value: "<h2>Title</h2><p>Text</p>" }` |
| `link` | `string` (URL) | `{ type: "link", value: "https://example.com" }` |
| `image` | `ImageAsset` object | See image upload section |
| `enum` | `string` (case name) | `{ type: "enum", value: "Published" }` |
| `color` | `string` (hex/rgba) | `{ type: "color", value: "#FF0000" }` |
| `file` | `FileAsset` object | Similar to image |
| `collectionReference` | `string` (item ID) | `{ type: "collectionReference", value: "itemId123" }` |
| `multiCollectionReference` | `string[]` | `{ type: "multiCollectionReference", value: ["id1","id2"] }` |

### Images

Upload images from public URLs, then use the returned asset in CMS items:

```javascript
const asset = await framer.uploadImage("https://example.com/photo.jpg")
// asset = { id, url, thumbnailUrl }

await item.setAttributes({
  fieldData: {
    [thumbnailField.id]: { type: "image", value: asset.url }
  }
})
```

### Publishing & deployment

```javascript
// Create a preview deployment
const result = await framer.publish()
// result = { deployment: { id }, hostnames: [...] }

// Promote preview to production
await framer.deploy(result.deployment.id)
```

**Always ask the user before deploying to production.** Publishing a preview is safe; deploying is live.

### Project info & changes

```javascript
await framer.getProjectInfo()       // { id, name, apiVersion1Id }
await framer.getCurrentUser()       // { id, name, avatar }
await framer.getPublishInfo()       // Current deployment status
await framer.getChangedPaths()      // { added, removed, modified }
await framer.getChangeContributors() // Contributor UUIDs
await framer.getDeployments()       // All deployment history
```

### Other operations

| Operation | Method | Notes |
|-----------|--------|-------|
| Color styles | `getColorStyles()`, `createColorStyle()` | Design tokens |
| Text styles | `getTextStyles()`, `createTextStyle()` | Typography tokens |
| Code files | `getCodeFiles()`, `createCodeFile(name, code)` | Custom code overrides |
| Custom code | `getCustomCode()` | Head/body code injection |
| Fonts | `getFonts()` | Project fonts |
| Locales | `getLocales()`, `getDefaultLocale()` | i18n |
| Pages | `createWebPage(path)`, `removeNode(id)` | Page management |
| Screenshots | `screenshot(nodeId, options)` | PNG buffer of any node |
| Redirects | `addRedirects([{from, to}])` | Requires paid plan |
| Node tree | `getNode(id)`, `getChildren(id)`, `getParent(id)` | DOM traversal |

---

## Common workflows

### Push a new article to CMS

See `references/cms-operations.md` for the full pattern including field resolution, image upload, and error handling.

### Bulk update articles

```javascript
const items = await collection.getItems()
for (const item of items) {
  await item.setAttributes({
    fieldData: {
      [metaField.id]: { type: "string", value: generateMeta(item) }
    }
  })
}
```

### Publish after CMS changes

```javascript
const changes = await framer.getChangedPaths()
if (changes.added.length || changes.modified.length || changes.removed.length) {
  const result = await framer.publish()
  console.log("Preview:", result.hostnames)
  // Ask user before: await framer.deploy(result.deployment.id)
}
```

---

## Important notes

- **API key scope:** Each key is bound to one project. For multiple Framer sites, store multiple keys.
- **WebSocket connection:** The `connect()` call opens a persistent WebSocket. Always call `disconnect()` when done, or use `using framer = await connect(...)` for auto-cleanup.
- **Field IDs, not names:** CMS operations use field IDs. Always call `getFields()` first and resolve names to IDs.
- **Image fields:** Pass the full `framerusercontent.com` URL from `uploadImage()`, not the asset ID.
- **Proxy methods:** Most methods (getCollections, publish, etc.) are proxied — they don't appear in `Object.keys(framer)` but work correctly.
- **Rate limits:** No documented rate limits, but avoid hammering. Add small delays for bulk operations (100+ items).
- **`formattedText` fields:** Accept standard HTML (h1-h6, p, ul, ol, li, a, strong, em, img, blockquote, pre, code, table, etc.).
- **Draft items:** Items can have `draft: true` — drafts are excluded from publishing.
- **Blog Posts collection:** Collections managed by `"thisPlugin"` are read-only via the API. Only `"user"` managed collections can be modified.

Related Skills

---

3891
from openclaw/skills

name: article-factory-wechat

Content & Documentation

humanizer

3891
from openclaw/skills

Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases.

Content & Documentation

find-skills

3891
from openclaw/skills

Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.

General Utilities

tavily-search

3891
from openclaw/skills

Use Tavily API for real-time web search and content extraction. Use when: user needs real-time web search results, research, or current information from the web. Requires Tavily API key.

Data & Research

baidu-search

3891
from openclaw/skills

Search the web using Baidu AI Search Engine (BDSE). Use for live information, documentation, or research topics.

Data & Research

agent-autonomy-kit

3891
from openclaw/skills

Stop waiting for prompts. Keep working.

Workflow & Productivity

Meeting Prep

3891
from openclaw/skills

Never walk into a meeting unprepared again. Your agent researches all attendees before calendar events—pulling LinkedIn profiles, recent company news, mutual connections, and conversation starters. Generates a briefing doc with talking points, icebreakers, and context so you show up informed and confident. Triggered automatically before meetings or on-demand. Configure research depth, advance timing, and output format. Walking into meetings blind is amateur hour—missed connections, generic small talk, zero leverage. Use when setting up meeting intelligence, researching specific attendees, generating pre-meeting briefs, or automating your prep workflow.

Workflow & Productivity

self-improvement

3891
from openclaw/skills

Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Claude ('No, that's wrong...', 'Actually...'), (3) User requests a capability that doesn't exist, (4) An external API or tool fails, (5) Claude realizes its knowledge is outdated or incorrect, (6) A better approach is discovered for a recurring task. Also review learnings before major tasks.

Agent Intelligence & Learning

botlearn-healthcheck

3891
from openclaw/skills

botlearn-healthcheck — BotLearn autonomous health inspector for OpenClaw instances across 5 domains (hardware, config, security, skills, autonomy); triggers on system check, health report, diagnostics, or scheduled heartbeat inspection.

DevOps & Infrastructure

linkedin-cli

3891
from openclaw/skills

A bird-like LinkedIn CLI for searching profiles, checking messages, and summarizing your feed using session cookies.

Content & Documentation

notebooklm

3891
from openclaw/skills

Google NotebookLM 非官方 Python API 的 OpenClaw Skill。支持内容生成(播客、视频、幻灯片、测验、思维导图等)、文档管理和研究自动化。当用户需要使用 NotebookLM 生成音频概述、视频、学习材料或管理知识库时触发。

Data & Research

小红书长图文发布 Skill

3891
from openclaw/skills

## 概述

Content & Documentation