Diagnose and fix Webflow CLI issues including installation problems, authentication failures, build errors, and bundle problems. Uses CLI diagnostic flags (--version, --help, --verbose, --debug-bundler) for troubleshooting.
npx skills add https://github.com/webflow/webflow-skills --skill webflow-cli:troubleshooter
Diagnose and resolve Webflow CLI issues with diagnostic commands and automated fixes.
ALWAYS use Bash tool for all diagnostic operations:
webflow --versionwebflow auth login (if needed)--verbose, --debug-bundler, --helpPackage Manager Detection:
package-lock.json (npm), pnpm-lock.yaml (pnpm), yarn.lock (yarn)webflow --versionwebflow auth login if needed--verbose flag for detailed output--debug-bundler flag to see bundler configwebflow <command> --help to verify command syntax10. Present fix: Show specific solution based on CLI error
11. Apply fix: Execute fix commands
12. Verify: Re-run original command to confirm resolution
User prompt:
Getting "webflow: command not found"
Diagnostics:
🔍 Checking CLI Installation
Executing: webflow --version
Error: bash: webflow: command not found
❌ Webflow CLI not installed
Fix:
📋 Fix: Install Webflow CLI
Executing: npm install -g @webflow/cli
✓ CLI installed
Verifying...
Executing: webflow --version
Output: @webflow/cli/1.5.2
✅ Issue resolved
User prompt:
Build is failing but I don't know why
Diagnostics:
🔍 Running Build with Diagnostics
Executing: webflow library bundle --verbose
Output:
[verbose] Loading webflow.json
[verbose] Found library config
[verbose] Building components from ./src/**/*.webflow.tsx
[verbose] Running bundler
Error: Failed to resolve import './missing-file.ts'
❌ Build failed: Missing import file
Fix:
📋 Fix: Missing Import
Issue: Component imports './missing-file.ts' which doesn't exist
Solutions:
1. Create the missing file
2. Fix the import path
3. Remove the import if not needed
Check your component imports and ensure all files exist.
User prompt:
Bundle is failing with webpack errors
Diagnostics:
🔍 Checking Bundle Configuration
Executing: webflow library bundle --debug-bundler
Output:
[debug-bundler] Final bundler configuration:
{
"entry": "./src/Component.tsx",
"output": {
"path": "/dist",
"filename": "bundle.js"
},
"resolve": {
"extensions": [".ts", ".tsx", ".js"]
}
}
Error: Module not found: Can't resolve 'styled-components'
❌ Bundle failed: Missing dependency
Fix:
📋 Fix: Install Missing Dependency
Executing: npm install styled-components
✓ Dependency installed
Retrying bundle...
Executing: webflow library bundle
✓ Bundle created successfully
✅ Issue resolved
Version Check:
webflow --version
# or
webflow -V
Command Help:
webflow --help # General help
webflow library --help # Library commands help
webflow library bundle --help # Specific command help
Verbose Output:
# Add --verbose to any command for detailed debugging
webflow library bundle --verbose
webflow cloud deploy --verbose
webflow extension bundle --verbose
Debug Bundler:
# Show final bundler configuration
webflow library bundle --debug-bundler
webflow extension bundle --debug-bundler
Issue: CLI Not Found
webflow --version failsnpm install -g @webflow/cliwebflow --version shows versionIssue: Wrong CLI Version
webflow --version shows old versionnpm update -g @webflow/cliIssue: Command Not Recognized
webflow --helpIssue: Authentication Failed
webflow auth loginIssue: Build Failed
--verbose flagIssue: Bundle Configuration Error
--debug-bundler flagIssue: Missing Dependencies
npm install or install specific packageIssue: Corrupted node_modules
rm -rf node_modules && npm installCLI Not Installed:
❌ Webflow CLI Not Found
Install:
npm install -g @webflow/cli
Verify:
webflow --version
Docs: https://developers.webflow.com/cli
Authentication Required:
❌ Authentication Failed
Fix:
webflow auth login
Follow browser prompts to authenticate
Build/Bundle Failed:
❌ Build Failed
Run with diagnostics:
webflow library bundle --verbose --debug-bundler
This shows:
- Detailed build steps
- Import resolution
- Bundler configuration
- Exact error location
Fix the errors shown in output
Unknown Error:
❌ Unknown Issue
Gather info:
1. What command are you running?
2. Run command with --verbose flag
3. Check command syntax with --help
4. Share full error output
This helps identify the specific problem
Reading Config Files:
# View webflow.json
Read: webflow.json
# View package.json
Read: package.json
# View build output
Read: dist/
Discovering Files:
# Find config files
Glob: **/webflow.json
# Find components
Glob: src/**/*.webflow.tsx
# Find logs
Glob: **/*.log
Always Start With:
webflow --versionwebflow <command> --help--verbose flagFor Build/Bundle Issues:
--verbose for detailed output--debug-bundler to see configFor Authentication Issues:
webflow auth loginFor Installation Issues:
node --versionnpm install -g @webflow/cliwebflow --versionWorkflow: identify → diagnose → fix → verify
Diagnostic Flags:
--version / -V - Check CLI version--help / -h - Show command help--verbose - Detailed debugging output--debug-bundler - Show bundler configCommon Fixes:
npm install -g @webflow/clinpm update -g @webflow/cliwebflow auth login--verbose output--debug-bundler outputnpm installDocumentation: https://developers.webflow.com/cli
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes. Turns hours of manual changelog writing into minutes of automated generation.
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bundling
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification
Take webflow/webflow-cli:troubleshooter from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.
The instructions reference npm.
Without those the skill loads but fails at the first command.