webflow-code-component:pre-deploy-check

Validates Webflow Code Components for deployment readiness before running webflow library share.

Updated Aug 10, 2026
One-click install
npx skills add https://github.com/KryptaMedina7/quero-s-home --skill webflow-code-component-pre-deploy-check-kryptamedina7
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: webflow-code-component:pre-deploy-check
Source: https://github.com/KryptaMedina7/quero-s-home/tree/main/.agents/skills/pre-deploy-check
Command: npx skills add https://github.com/KryptaMedina7/quero-s-home --skill webflow-code-component-pre-deploy-check-kryptamedina7

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Deploying Webflow Code Components without validation leads to failed builds, oversized bundles, SSR crashes, and unstyled components in the Shadow DOM. This Skill catches these issues before you run webflow library share. ## Core Features & Use Cases - Project Structure Validation: Verifies webflow.json configuration, glob patterns, required dependencies (@webflow/webflow-cli, @webflow/data-types, @webflow/react), and component file integrity. - Component & SSR Analysis: Checks declareComponent usage, validates the 11 supported prop types, detects browser-only API usage (window, document, localStorage) that breaks server-side rendering, and flags Shadow DOM + React Context conflicts. - Framework Detection: Validates setup for styled-components, Emotion, Tailwind CSS, Sass/Less, and custom webpack bundleConfig files, including Shadow DOM decorator requirements. - Use Case: Before sharing a component library, run this check to get a pass/fail/warning report covering bundle size (50MB limit), build errors, and styling configuration, with concrete fix suggestions for each issue. ## Quick Start Check if my Webflow components are ready to deploy and report any issues before I run webflow library share.

Frequently Asked Questions about webflow-code-component:pre-deploy-check

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate Webflow Code Components before deployment?

Run a pre-deployment check that verifies webflow.json structure, required dependencies, declareComponent usage, prop types, and build success. The check produces a report with errors, warnings, and fix suggestions before you run webflow library share.

What prop types are supported in Webflow Code Components?

Webflow supports 11 prop types: Text (alias String), RichText, TextNode, Link, Image, Number, Boolean, Variant, Visibility, Slot, and ID. Variant props require an options array, and Link returns an object with href, target, and preload.

Why do my Webflow components break with SSR enabled?

SSR breaks when components use browser-only APIs like window, document, localStorage, or navigator outside useEffect or guarded blocks. Non-deterministic output like Math.random() also causes hydration mismatches. Set ssr: false in the component options for purely interactive components.

Why are my styled-components styles missing in Webflow Shadow DOM?

styled-components injects styles into document.head by default, which the Shadow DOM cannot access. Install @webflow/styled-components-utils and export styledComponentsShadowDomDecorator from your globals decorators array, then reference globals in webflow.json.

What is the bundle size limit for Webflow component libraries?

The maximum bundle size is 50MB, enforced by Webflow. To reduce size, enable minification, tree-shake imports, replace heavy libraries like moment with date-fns, and use dynamic imports for large components.

Can React Context be shared between Webflow slot components?

No. Children placed in slots render in separate Shadow DOM containers with their own React roots, so they cannot access a parent's React Context. Use alternatives like Nano Stores, custom events, URL parameters, or browser storage instead.