From webflow-code-component-skills
Initializes Webflow Code Components project from scratch or adds to existing React/Next.js/Vite setup. Creates structure, installs React/TypeScript deps, configures webflow.json, verifies bundle.
npx claudepluginhub webflow/webflow-skills --plugin webflow-code-component-skillsThis skill uses the workspace's default tool permissions.
Set up a new Webflow Code Components project from scratch.
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Set up a new Webflow Code Components project from scratch.
Use when:
Do NOT use when:
Check if project exists:
Determine setup type:
Create project structure (if new):
Install dependencies:
Create webflow.json:
Configure TypeScript:
Create example component:
Create globals file (optional):
Verify bundle compiles:
npx webflow library bundle --public-path http://localhost:4000/ to catch build errors locallynpx webflow library shareProvide next steps:
For detailed step-by-step examples, see references/EXAMPLES.md.
Available examples:
Quick Start (New Project):
# 1. Create project
mkdir my-webflow-components && cd my-webflow-components
npm init -y
# 2. Install dependencies
npm install react react-dom
npm install -D typescript @types/react @types/react-dom
npm install -D @webflow/webflow-cli @webflow/data-types @webflow/react
# 3. Create webflow.json
echo '{"library":{"name":"My Library","components":["./src/**/*.webflow.tsx"]}}' > webflow.json
# 4. Create component directory
mkdir -p src/components/Button
Then create your component files (.tsx, .webflow.tsx, .module.css). See Example 1 in references/EXAMPLES.md for complete file contents including component, definition, and CSS files.
Deploy with:
npx webflow library share
After setup, verify the project is correctly configured:
| Check | How to Verify |
|---|---|
webflow.json exists in project root | cat webflow.json |
| Dependencies installed | npm list @webflow/webflow-cli |
| Bundle compiles without errors | npx webflow library bundle --public-path http://localhost:4000/ |
| At least one component found | Check bundle output for "Found N component(s)" |
Every code components project needs:
.webflow.tsx fileproject/
├── src/
│ ├── components/
│ │ └── [ComponentName]/
│ │ ├── [ComponentName].tsx
│ │ ├── [ComponentName].webflow.tsx
│ │ └── [ComponentName].module.css
│ ├── hooks/ # Custom hooks
│ ├── utils/ # Utilities
│ ├── declarations.d.ts # CSS module types
│ ├── globals.ts # Decorators/global imports
│ └── globals.css # Global styles
├── package.json
├── tsconfig.json
├── webflow.json
└── .gitignore
npm run dev)npx webflow library share