webflow-cli:devlink
БесплатноБез исполняемых скриптовНе проверенExport Webflow Designer components to React/Next.js code for external projects. Configure devlink settings in webflow.json, sync design updates with devlink…
от webflow★ 138 звёзд на GitHubОб этом скилле
DevLink
Export and sync Webflow Designer components to React/Next.js code with validation, diffs, and integration guidance.
Important Note
ALWAYS use Bash tool for all Webflow CLI operations:
- Execute
webflow devlink syncvia Bash tool - Use Read tool to examine synced files and webflow.json (never modify)
- Use Glob tool to discover generated components
- Verify CLI installation:
webflow --version - Check authentication: Use
webflow auth loginfor site authentication - DO NOT use Webflow MCP tools for CLI workflows
- All CLI commands require proper descriptions (not context parameters)
Package Manager Detection:
- Check for lock files:
package-lock.json(npm),pnpm-lock.yaml(pnpm),yarn.lock(yarn) - If no lock file found, ask user which package manager to use (npm/pnpm/yarn)
- Use detected package manager for all install/build commands
Instructions
Phase 1: Environment Verification
- Verify CLI installed: Run
webflow --versionto confirm CLI is installed - Check authentication: Verify site authentication (created via
webflow auth login) - Discover project state: Check if webflow.json exists with devlink configuration
- Identify target framework: Determine if React, Next.js, or other
Phase 2: DevLink Configuration
- Check for existing config: Look for
webflow.jsonwith devlink section - Read configuration: If exists, show current devlink settings:
rootDir: Directory to export components intocssModules: Whether to use CSS modulesfileExtensions: File extensions for generated files- Other configuration options
- Ask operation type: Clarify what user wants to do:
- Configure DevLink for first time
- Sync all components
- Sync specific components (using
componentsregex pattern) - Update existing sync
- Store baseline (if updating): Use Read tool to capture current files before sync
Phase 3: Sync Execution
- Run sync command: Execute
webflow devlink syncwith options:--api-tokenor-t: Override API token from .env--site-idor-s: Override site ID from .env
- Monitor sync progress: Show CLI output and sync status
- Capture sync results: Record files created/modified in rootDir
- Validate generated code:
- Check for TypeScript errors (if using TS)
- Verify import statements
- Confirm component exports
- Check CSS module references
Phase 4: Analysis & Diff Preview
- Compare before/after: Show what changed:
- New files created in rootDir
- Existing files modified
- Components added or updated
- Show file diffs: Display key changes for modified files
- Analyze component structure:
- Component count
- New components added
- Updated components
- CSS files generated
- List dependencies: Show what needs to be imported
Phase 5: Integration Guidance
- Provide import statements: Show exact code to import components
- Show usage examples: Demonstrate how to use each component
- Document sync timestamp: Record when sync occurred
- Provide next steps: Guide user on testing and integration
Examples
Example 1: First-Time DevLink Setup
User prompt:
Sync my Webflow components to my Next.js project
Step 1: Environment Verification
🔍 DevLink Environment Check
Checking CLI installation...
✓ Webflow CLI installed: v1.5.2
Current directory: /Users/user/projects/my-nextjs-app
Framework detected: Next.js 14
Checking for DevLink configuration...
⚠️ No webflow.json with devlink configuration found
This appears to be your first DevLink sync.
Ready to configure? (yes/no)
User confirms: yes
Step 2: Configuration Setup
📋 DevLink Configuration
DevLink syncs Webflow components to your local project as React code.
Configuration needed in webflow.json:
{
"devlink": {
"rootDir": "./devlink", // Where to export components
"cssModules": true, // Use CSS modules
"fileExtensions": {
"js": "jsx" // or "tsx" for TypeScript
}
}
}
I'll help you create this configuration.
Questions:
1. Where should components be exported? (default: ./devlink)
2. Use TypeScript? (yes for tsx, no for jsx)
3. Use CSS modules? (recommended: yes)
User provides: ./src/devlink, yes (TypeScript), yes (CSS modules)
Creating webflow.json configuration...
{
"devlink": {
"rootDir": "./src/devlink",
"cssModules": true,
"fileExtensions": {
"js": "tsx"
}
}
}
✓ Configuration created
⚠️ Authentication Required:
DevLink needs your Webflow site ID and API token.
Run: webflow auth login
This will create a .env file with:
- WEBFLOW_SITE_ID
- WEBFLOW_SITE_API_TOKEN
After authentication, run sync again.
Example 2: First Sync After Configuration
User prompt:
Run the DevLink sync
Step 1: Verification
🔍 DevLink Sync Ch
Установить webflow-cli:devlink в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл webflow-cli:devlink?
Export Webflow Designer components to React/Next.js code for external projects. Configure devlink settings in webflow.json, sync design updates with devlink sync, validate generated code, show diffs, and provide integration examples. Use when building with Webflow designs in React/Next.js.
Как установить скилл webflow-cli:devlink?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл webflow-cli:devlink запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic