webflow-code-component:pre-deploy-check
БесплатноБез исполняемых скриптовНе проверенPre-deployment validation for Webflow Code Components. Checks bundle size, dependencies, prop configurations, SSR compatibility, styling setup, and common…
от webflow★ 138 звёзд на GitHubОб этом скилле
Build Validate
Validate code components before deployment to catch issues early.
When to Use This Skill
Use when:
- User is about to deploy and wants to check for issues first
- Proactively before running
webflow library share - User asks to validate, check, or verify their components
- After making significant changes to components
Do NOT use when:
- Deployment already failed (use troubleshoot-deploy instead)
- Just building for local development
- Auditing code quality (use component-audit instead)
Instructions
Phase 1: Project Structure Check
Verify webflow.json exists:
- Check for required fields (
library.name,library.components) - Validate glob pattern matches component files — the recommended pattern is
"./src/**/*.webflow.@(js|jsx|mjs|ts|tsx)"covering all supported extensions - Check
globalspath if specified — file must exist and be importable - Check
bundleConfigpath if specified — file must exist
- Check for required fields (
Check dependencies:
- Verify
@webflow/webflow-cliinstalled - Verify
@webflow/data-typesinstalled - Verify
@webflow/reactinstalled - Check for version compatibility (check installed versions, don't assume specific versions)
- Verify
Verify component files:
- Find all
.webflow.tsx/.webflow.tsfiles matching the glob pattern - Ensure matching React components exist
- Check for orphaned definition files
- Find all
Validate imports in
.webflow.tsxfiles:- Must import
declareComponentfrom@webflow/react - Must import
propsfrom@webflow/data-types(if props are defined) - Must import the actual React component being declared
- Must import
Phase 2: Component Analysis
For each component, check:
declareComponentis called with the component and a config objectnameis provided in the config- All props have
nameproperties and appropriatedefaultValuewhere applicable - Prop types are valid — the 11 supported types are:
- Text (alias: String) — single line text input
- RichText — multi-line text with formatting
- TextNode — single/multi-line text editable on canvas
- Link — URL input (returns
{ href, target, preload }object) - Image — image upload and selection
- Number — numeric input
- Boolean — true/false toggle
- Variant — dropdown with predefined options (requires
optionsarray) - Visibility — show/hide controls
- Slot — content areas for child components
- ID — HTML element ID
Validate component options:
- If
optionsobject is present, validate:applyTagSelectorsis a boolean (default:false) — enables site tag selectors in Shadow DOMssris a boolean (default:true) — controls server-side rendering
- If
Check for SSR issues:
- Scan for browser-only API usage outside of
useEffector guarded blocks:window,document,localStorage,sessionStorage,navigator
- Flag dynamic/personalized content patterns (user-specific dashboards, authenticated views)
- Flag heavy/interactive UI that doesn't benefit from SSR (charts, 3D scenes, maps, animation-heavy elements)
- Flag non-deterministic output (random numbers, time-based values that differ server vs client)
- Suggest
ssr: falsein options if component is purely interactive or browser-dependent
- Scan for browser-only API usage outside of
Check styling:
- Verify styles are imported in
.webflow.tsxor via globals file - Check for site class usage — site classes do NOT work in Shadow DOM
- Site variables DO work:
var(--variable-name, fallback) - Inherited CSS properties DO work:
font-family: inherit - Tag selectors work IF
applyTagSelectors: trueis set in component options - Validate CSS-in-JS setup if used (see CSS-in-JS detection below)
- Verify styles are imported in
Check for Shadow DOM + React Context issues:
- If a component uses slots (
props.Slot) AND imports/usesuseContextor a Context Provider:- Warn that parent and child components in slots cannot share React Context — each child renders in its own Shadow DOM with a separate React root
- Suggest alternatives: Nano Stores, custom events, URL parameters, or browser storage
- If a component uses slots (
Phase 3: Build Test
Run TypeScript/build check:
- Check for TypeScript compilation errors
- Verify all imports resolve correctly
- Identify any build-time issues
Check bundle size:
- If a build output exists, verify total bundle size is under 50MB (maximum bundle limit)
- If over limit, flag as error and suggest optimization
Run local bundle test (optional, suggest to user):
- Suggest running
npx webflow library bundle --public-path http://localhost:4000/to test bundling before sharing - If bundling issues occur, suggest
--debug-bundlerflag to inspect the final webpack config
- Suggest running
Phase 4: Detect Framework-Specific Setup
- CSS-in-JS library detection:
- If proj
Установить webflow-code-component:pre-deploy-check в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл webflow-code-component:pre-deploy-check?
Pre-deployment validation for Webflow Code Components. Checks bundle size, dependencies, prop configurations, SSR compatibility, styling setup, and common issues before running webflow library share.
Как установить скилл webflow-code-component:pre-deploy-check?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл webflow-code-component:pre-deploy-check запускает скрипты?
Нет, скилл состоит только из инструкций (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