Webflow Code Component:Deploy Guide 标志

Webflow Code Component:Deploy Guide

组织
webflow
webflow-code-component:deploy-guide

Step-by-step guide for deploying Webflow Code Components to a workspace. Covers authentication, pre-flight checks, deployment execution, and verification.

Add to TypingMind

概览

发布者webflow
代码仓库webflow-skills
技能名称webflow-code-component:deploy-guide
星标数
122
复刻数
18
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 webflow 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Webflow Code Component:Deploy Guide AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/webflow/webflow-skills/tree/main/plugins/webflow-skills/skills/deploy-guide
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/webflow/webflow-skills.git /tmp/webflow-skills
mkdir -p .claude/skills
cp -r /tmp/webflow-skills/plugins/webflow-skills/skills/deploy-guide .claude/skills/webflow-webflow-code-component-deploy-guide
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Webflow Code Component:Deploy Guide,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Webflow Code Component:Deploy Guide。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Webflow Code Component:Deploy Guide 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Deploy Guide

Guide users through deploying their code component library to Webflow.

When to Use This Skill

Use when:

  • User is ready to deploy components to Webflow
  • User asks how to share, publish, or deploy their library
  • First-time deployment to a workspace
  • Step-by-step deployment walkthrough needed

Do NOT use when:

  • Deployment failed (use troubleshoot-deploy instead)
  • Just validating before deploy (use pre-deploy-check instead)
  • Setting up local development (use local-dev-setup instead)

Note: The CLI command is webflow library share. This skill uses "deploy" as the user-facing term.

Instructions

Phase 1: Pre-Flight Checks

  1. Verify project is ready:

    • Check webflow.json configuration
    • Ensure all dependencies installed
    • Run pre-deploy-check skill checks
  2. Check authentication status:

    • Look for existing .env with API token
    • Verify WEBFLOW_WORKSPACE_API_TOKEN if set
    • Prepare for authentication if needed
  3. Confirm deployment target:

    • Which workspace?
    • New library or update existing?

Phase 2: Authentication

  1. Guide authentication:
    • Interactive: Follow CLI prompts
    • CI/CD: Use --api-token flag
    • Show how to get workspace API token if needed

Phase 3: Deployment

  1. Execute deployment:
    • Run npx webflow library share
    • Monitor for errors
    • Capture output

Phase 4: Verification

  1. Verify deployment:

    • Check Webflow Designer for components
    • Test component functionality
    • Confirm all components appear
  2. Provide next steps:

    • How to use components in Designer
    • How to update in future
    • Common post-deploy tasks
    • If deployment fails, use troubleshoot-deploy to diagnose and fix issues

Deployment Workflow

Standard Deployment

📦 Deploying Code Components

Step 1: Pre-flight checks
├── webflow.json ✅
├── Dependencies ✅
└── Build test ✅

Step 2: Authentication
├── Checking for existing auth...
└── Found valid token ✅

Step 3: Deploying
├── Bundling components...
├── Uploading to workspace...
└── Processing...

Step 4: Verification
├── Library registered ✅
└── 4 components available ✅

🎉 Deployment Complete!

CI/CD Deployment

bash
# Set environment variable
export WEBFLOW_WORKSPACE_API_TOKEN=your-token-here

# Deploy without prompts
npx webflow library share --no-input

Examples

User prompt:

Deploy my components to Webflow

Response:

🚀 Deploy Guide: Code Components

Let me guide you through deploying your component library.

---

## Step 1: Pre-Flight Checks

Running validation...

✅ webflow.json configured
✅ Dependencies installed
✅ Build succeeds
✅ Bundle size: 2.3MB (under 50MB limit)

All checks passed! Ready to deploy.

---

## Step 2: Authentication

**Option A: Interactive (Recommended for first time)**

Run the deploy command:
```bash
npx webflow library share

This will:

  1. Open your browser for Webflow login
  2. Ask you to authorize the app
  3. Save credentials to .env

Option B: API Token (For CI/CD or returning users)

  1. Get your Workspace API Token:

    • Go to Webflow Dashboard
    • Navigate to your Workspace Settings
    • Find "Apps & Integrations" → "Manage"
    • Under "Workspace API Access", click "Generate API Token"
    • Copy the token
  2. Run with token:

bash
npx webflow library share --api-token YOUR_TOKEN_HERE

Or set environment variable:

bash
export WEBFLOW_WORKSPACE_API_TOKEN=YOUR_TOKEN_HERE
npx webflow library share

Step 3: Deploy

Ready to deploy? Run:

bash
npx webflow library share

Expected output:

✓ Bundling components...
✓ Authenticating...
✓ Uploading library...
✓ Processing...

Library "My Component Library" successfully shared!

Components:
- Button
- Card
- Accordion
- Modal

View in Designer: Open any site in your workspace

Step 4: Verify in Designer

After deployment:

  1. Open Webflow Designer for any site in your workspace
  2. Open Add Panel (A key or + button)
  3. Find "Components" section
  4. Look for your library under custom components
  5. Drag a component onto the canvas to test

Step 5: Next Steps

✅ Your components are live!

To update components later:

bash
# Make your changes, then re-deploy
npx webflow library share

Important notes:

  • Updates replace the entire library (no partial updates)
  • Existing component instances will update automatically
  • Don't rename .webflow.tsx files (breaks instances)

💡 Tips:

  • Add .env to .gitignore to protect your token
  • Use --verbose flag for debugging issues
  • Run npx webflow library log to see recent deploy logs

---

**Example: First-Time Setup**

🚀 Deploy Guide: First-Time Setup

I see this is your first deployment. Let me walk you through the full setup.


Step 1: Get Workspace API Token

You'll need a Workspace API token to deploy:

  1. Open Webflow Dashboard Go to webflow.com and log in

  2. Navigate to Workspace Settings Click your workspace name → Settings

  3. Find API Access Go to "Apps & Integrations" → "Manage"

  4. Generate Token Under "Workspace API Access":

    • Click "Generate API Token"
    • Copy the token (you won't see it again!)
  5. Save Token Add to your .env file:

    WEBFLOW_WORKSPACE_API_TOKEN=your-token-here

    ⚠️ Add .env to .gitignore:

    bash
    echo ".env" >> .gitignore

Step 2: Deploy

Now run:

bash
npx webflow library share

The CLI will:

  1. Read your token from .env
  2. Bundle your components
  3. Upload to your workspace

Step 3: Verify

After successful deploy:

  1. Open Webflow Designer
  2. Press 'A' to open Add panel
  3. Find your components in the Components section
  4. Drag onto canvas to test

🎉 First deployment complete!

Future deployments are simpler:

bash
# Just run this after making changes
npx webflow library share

---

**Example: CI/CD Setup**

🚀 Deploy Guide: CI/CD Setup

Setting up automated deployments for your pipeline.


GitHub Actions Example

Create .github/workflows/deploy.yml:

yaml
name: Deploy to Webflow

on:
  push:
    branches: [main]

jobs:
  deploy:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4

      - name: Setup Node.js
        uses: actions/setup-node@v4
        with:
          node-version: '20'
          cache: 'npm'

      - name: Install dependencies
        run: npm ci

      - name: Deploy to Webflow
        env:
          WEBFLOW_WORKSPACE_API_TOKEN: ${{ secrets.WEBFLOW_WORKSPACE_API_TOKEN }}
        run: npx webflow library share --no-input

Add Secret to GitHub

  1. Go to your repo → Settings → Secrets and variables → Actions
  2. Click "New repository secret"
  3. Name: WEBFLOW_WORKSPACE_API_TOKEN
  4. Value: Your workspace API token
  5. Click "Add secret"

Key Flags for CI/CD

bash
npx webflow library share --no-input
  • --no-input: Disables interactive prompts
  • Uses WEBFLOW_WORKSPACE_API_TOKEN env var automatically

Optional: Add TypeScript Check

yaml
- name: Type check
  run: npx tsc --noEmit

✅ CI/CD configured!

Now every push to main will automatically deploy your components.


## Validation

After deployment, verify success with these checks:

| Check | How to Verify |
|-------|---------------|
| Deploy completed | `npx webflow library share` exited without errors |
| Components visible | Open Designer Add panel → find your library |
| Import logs clean | `npx webflow library log` shows successful import |
| Bundle size OK | Output shows bundle under 50MB |
| Props work | Drag component onto canvas, verify props in right panel |

## Guidelines

### Terminology

The CLI command is `webflow library share`. This skill uses "deploy" as the user-facing term for consistency with common developer vocabulary. See the [CLI reference](../../references/CODE_COMPONENTS_REFERENCE.md) (Section 12) for full command documentation.

### Authentication Methods

| Method | Use Case | Command |
|--------|----------|---------|
| Interactive | First time, local dev | `npx webflow library share` |
| Environment variable | CI/CD, automation | Set `WEBFLOW_WORKSPACE_API_TOKEN` |
| CLI flag | One-off with different token | `--api-token TOKEN` |

### Pre-Deploy Checklist

Before every deployment:

- [ ] `npm install` is up to date
- [ ] Build succeeds locally
- [ ] Bundle under 50MB
- [ ] All component tests pass
- [ ] No SSR-breaking code (or ssr: false set)
- [ ] Props have default values where supported (not available for Link, Image, Slot, ID)

### Common Deploy Issues

| Issue | Cause | Solution |
|-------|-------|----------|
| "Authentication failed" | Invalid/expired token | Regenerate workspace token |
| "Bundle too large" | Over 50MB | Optimize dependencies |
| "Library not found" | Wrong workspace | Check token workspace |
| "Build failed" | Code errors | Fix compilation errors |

### CLI Flags Reference

All flags for `npx webflow library share`:

| Flag | Description | Default |
|------|-------------|---------|
| `--manifest` | Path to `webflow.json` file | Scans current directory |
| `--api-token` | Workspace API token | Uses `WEBFLOW_WORKSPACE_API_TOKEN` from `.env` |
| `--no-input` | Skip interactive prompts (for CI/CD) | No |
| `--verbose` | Display more debugging information | No |
| `--dev` | Bundle in development mode (no minification) | No |

### Rollback & Versioning

- Each `library share` replaces the **entire** library — there are no partial updates
- There is **no built-in rollback** — use git to revert changes and re-deploy
- **Never rename `.webflow.tsx` files** — renaming creates a new component and removes the old one, breaking all existing instances in projects

### Debugging Commands

```bash
# Check recent deploy logs
npx webflow library log

# Verbose deploy output (detailed errors)
npx webflow library share --verbose

# Local bundle verification (catches build errors before deploying)
npx webflow library bundle --public-path http://localhost:4000/

CI/CD Deployment

The GitHub Actions example above applies to any CI system. The key elements are:

bash
# Generic CI pattern:
npm ci                                        # Install dependencies
npx webflow library share --no-input          # Deploy without prompts
# Requires WEBFLOW_WORKSPACE_API_TOKEN env var

Post-Deploy Verification

Always verify after deployment:

  1. Check Designer: Components appear in Add panel
  2. Test drag-and-drop: Component renders on canvas
  3. Test props: Props editable in right panel
  4. Test preview: Component works in preview mode
  5. Test publish: Component works on published site

常见问题

Webflow Code Component:Deploy Guide AI 技能有什么作用?

Step-by-step guide for deploying Webflow Code Components to a workspace. Covers authentication, pre-flight checks, deployment execution, and verification.

为什么在 TypingMind 中使用 Webflow Code Component:Deploy Guide?

因为您只需安装一次,就能搭配任何模型使用。Webflow Code Component:Deploy Guide 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Webflow Code Component:Deploy Guide?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/webflow/webflow-skills/tree/main/plugins/webflow-skills/skills/deploy-guide。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Webflow Code Component:Deploy Guide?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Webflow Code Component:Deploy Guide 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Webflow Code Component:Deploy Guide 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Webflow Code Component:Deploy Guide AI 技能免费吗?

是的。webflow 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇