webflow-code-component:troubleshoot-deploy — скилл для Claude Code
Разбирает сбои деплоя Webflow Code Components: читает сообщение об ошибке, находит причину и даёт конкретное исправление.
npx skills add webflow/webflow-skills --skill webflow-code-component:troubleshoot-deploy -a claude-code
npx skills add webflow/webflow-skills --skill troubleshoot-deploy -a claude-codeЧто делает webflow-code-component:troubleshoot-deploy
Скилл включается, когда npx webflow library share упал с ошибкой или компоненты уехали, но не работают. Он просит точный текст ошибки и вывод команды, уточняет, первый это деплой или обновление, и раскладывает сбой по категориям: авторизация, сборка, размер бандла, сеть, конфигурация.
Внутри — справочник частых ошибок с быстрыми правками. Для «Authentication failed» советует перегенерировать токен в настройках воркспейса и заново выставить WEBFLOW_WORKSPACE_API_TOKEN, для «Module not found» — доставить @webflow/react, для проблем со стилями — импортировать CSS в .webflow.tsx. Отдельно разбирает SSR: браузерные API надо оборачивать в useEffect или отключать SSR через declareComponent.
Для работы нужны Node.js 18+, React 18+, TypeScript и @webflow/webflow-cli. Если ошибка не подходит ни под одну категорию, скилл собирает данные для эскалации: лог npx webflow library log, вывод с --verbose, версию Node.js и содержимое webflow.json. Это повод проверить конфиг до того, как писать в поддержку.
Какие задачи решает
- разобрать текст ошибки от
webflow library share - починить авторизацию после истечения API-токена
- найти причину ошибок TypeScript перед деплоем
- уложить бандл в лимит размера
- собрать данные для обращения в поддержку Webflow
Примеры запросов агенту
- Деплой упал с ошибкой Authentication failed, что делать?
- Вот вывод
npx webflow library share --verbose, найди причину - Компоненты задеплоились, но стили не применились — почему?
Как установить webflow-code-component:troubleshoot-deploy
1Через Skills CLI (Vercel)
npx skills add webflow/webflow-skills --skill webflow-code-component:troubleshoot-deploy -a claude-codenpx skills add webflow/webflow-skills --skill troubleshoot-deploy -a claude-code2Вручную: положить файлы
~/.claude/skills/troubleshoot-deploy/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/troubleshoot-deploy/
1Через Skills CLI (Vercel)
npx skills add webflow/webflow-skills --skill troubleshoot-deploy -a codex2Вручную: положить файлы
.agents/skills/troubleshoot-deploy/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add webflow/webflow-skills --skill troubleshoot-deploy -a cursor2Вручную: положить файлы
.cursor/skills/troubleshoot-deploy/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install webflow/webflow-skills troubleshoot-deploy2Вручную: положить файлы
.github/skills/troubleshoot-deploy/SKILL.md1Через Skills CLI (Vercel)
npx skills add webflow/webflow-skills --skill troubleshoot-deploy -a gemini-cli2Командой платформы
gemini skills install https://github.com/webflow/webflow-skills --path plugins/webflow-skills/skills/troubleshoot-deployВручную: положить файлы
.devin/skills/troubleshoot-deploy/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add webflow/webflow-skills --skill troubleshoot-deploy -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Из того же набора21
Похожие
Рядом в теме «Фронтенд и UI»
Всё по теме «Фронтенд и UI» →Вопросы о webflow-code-component:troubleshoot-deploy
Как установить webflow-code-component:troubleshoot-deploy в Claude?
Выполните npx skills add webflow/webflow-skills --skill webflow-code-component:troubleshoot-deploy -a claude-code. Файл скилла окажется в ~/.claude/skills/troubleshoot-deploy/SKILL.md.
Что делает этот скилл?
Помогает отладить неудачный деплой Webflow Code Components: определяет категорию ошибки, объясняет причину и предлагает пошаговое исправление с проверкой результата.
Что нужно, чтобы скилл заработал?
Node.js 18+, React 18+, TypeScript и пакет @webflow/webflow-cli. Без них команды деплоя и проверки типов не запустятся.
Исходный текст
SKILL.md · MIT
---
name: webflow-code-component:troubleshoot-deploy
description: Debug deployment failures for Webflow Code Components. Analyzes error messages, identifies root causes, and provides specific fixes for common issues.
compatibility: Node.js 18+, React 18+, TypeScript, @webflow/webflow-cli
metadata:
author: webflow
version: "1.1"
---
# Troubleshoot Deploy
Debug and fix deployment issues for Webflow Code Components.
## When to Use This Skill
**Use when:**
- `webflow library share` failed with an error
- Components deployed but aren't working correctly
- User shares an error message from deployment
- Bundle or compilation errors occurred
**Do NOT use when:**
- Deployment hasn't been attempted yet (use deploy-guide instead)
- Validating before deployment (use pre-deploy-check instead)
- General code quality issues (use component-audit instead)
## Instructions
### Phase 1: Gather Information
1. **Get error details**:
- Ask for exact error message
- Request output from `npx webflow library share`
- Check if `npx webflow library log` has additional info
2. **Understand context**:
- First deploy or update?
- Recent changes made?
- Working previously?
### Phase 2: Diagnose
3. **Identify error category**:
- Authentication errors
- Build/compilation errors
- Bundle size errors
- Network/upload errors
- Configuration errors
4. **Analyze root cause**:
- Parse error message
- Check common causes
- Identify specific issue
### Phase 3: Provide Solution
5. **Give specific fix**:
- Step-by-step resolution
- Code examples if needed
- Verification steps
6. **Prevent recurrence**:
- Explain why it happened
- Suggest preventive measures
## Common Error Reference
For detailed solutions to each error, see [references/ERROR_CATALOG.md](references/ERROR_CATALOG.md).
### Quick Reference
| Error | Category | Quick Fix |
|-------|----------|-----------|
| "Authentication failed" | Auth | Regenerate API token in Workspace Settings |
| "Insufficient permissions" | Auth | Check workspace role and token |
| "Module not found" | Build | `npm install --save-dev @webflow/react` |
| "TypeScript errors" | Build | Run `npx tsc --noEmit` to find error |
| "Unexpected token" | Build | Check file extension is `.tsx` |
| "Bundle size exceeds limit" | Bundle | Tree-shake imports, lazy load heavy components |
| "Component not rendering" | Runtime | Check SSR issues, browser console |
| "Styles not appearing" | Runtime | Import CSS in .webflow.tsx file |
| "webflow.json not found" | Config | Create webflow.json in project root |
| "No components found" | Config | Check glob pattern and file extension |
| "Invalid JSON in webflow.json" | Config | Fix JSON syntax (trailing commas, comments) |
| "429 Too Many Requests" | Network | Wait 60 seconds and retry |
| "Request timed out" | Network | Check connectivity, proxy, Webflow status |
| "JavaScript heap out of memory" | Memory | `NODE_OPTIONS="--max-old-space-size=4096"` |
| "Circular dependency" | Build | Extract shared code, break import cycles |
### Most Common Fixes
**Authentication:**
```bash
# Regenerate token, then:
export WEBFLOW_WORKSPACE_API_TOKEN=your-new-token
npx webflow library share
```
**Missing Dependencies:**
```bash
npm install --save-dev @webflow/webflow-cli @webflow/data-types @webflow/react
```
**SSR Issues:**
```typescript
// Wrap browser APIs in useEffect or disable SSR:
declareComponent(Component, { options: { ssr: false } });
```
**Missing Styles:**
```typescript
// In .webflow.tsx, import styles:
import "./Component.module.css";
```
## Debugging Commands
```bash
# Check recent deploy logs
npx webflow library log
# Verbose deploy output (shows detailed errors)
npx webflow library share --verbose
# Type check without deploying
npx tsc --noEmit
```
## Validation
The issue is resolved when all of the following are true:
| Success Criteria | How to Verify |
|-----------------|---------------|
| Deploy completes without errors | `npx webflow library share` exits cleanly |
| Components appear in Designer | Open Add panel in Designer and find your library |
| Import logs confirm success | `npx webflow library log` shows successful import |
## Guidelines
### Error Analysis Process
1. **Read the full error message** - Often contains the solution
2. **Check the error category** - Auth, build, bundle, or runtime
3. **Look for file paths** - Points to exact location
4. **Check line numbers** - For code errors
5. **Search error message** - May be a known issue
### When to Escalate
If none of the solutions work, gather this data before escalating:
1. **Deploy logs**: `npx webflow library log`
2. **Verbose output**: `npx webflow library share --verbose`
3. **Node.js version**: `node -v`
4. **Package versions**: `npm list @webflow/webflow-cli @webflow/data-types @webflow/react`
5. **Configuration**: Contents of `webflow.json`
6. **Error message**: Full error output (not just the summary line)
Then:
- Check **Webflow status page** for outages
- Search the **Webflow Community Forum** for your error message
- Contact **Webflow Support** with the collected data above
© webflow · MIT · webflow/webflow-skills