webflow-code-components

webflow-code-components is a skill for Claude Code, Codex from 224-Industries/webflow-skills. It costs 56 tokens per session (1,462 once invoked), scanned A, original, MIT.

A guide for building React code components and importing them into Webflow through DevLink. React is a JavaScript library for building interactive interface components; imported components can be placed on Webflow's visual canvas.

In plain words
What is it for?
Use it to create, configure, bundle, import, and troubleshoot reusable React components for Webflow sites.
Why use it?
It explains the setup, component definitions, bundling, server-rendered output, and isolated styles needed to make code-built components usable in Webflow.

Skill for Claude CodeCodex

Part of the webflow-agent-skills plugin — 5 skills shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/224-industries/webflow-skills/webflow-code-components
Any agent
npx skills add 224-Industries/webflow-skills --skill webflow-code-components
Clone the repo
git clone --depth 1 https://github.com/224-Industries/webflow-skills

Made for: Claude Code, Codex.

Or install webflow-agent-skills, the plugin that ships this one along with the rest of its 5 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for webflow-code-components

README.md
[![agentmods](https://agentmods.dev/badge/skills/224-industries/webflow-skills/webflow-code-components.svg)](https://agentmods.dev/skills/224-industries/webflow-skills/webflow-code-components)
Your own site
<a href="https://agentmods.dev/skills/224-industries/webflow-skills/webflow-code-components"><img src="https://agentmods.dev/badge/skills/224-industries/webflow-skills/webflow-code-components.svg" alt="Measured on agentmods" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,462 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00056 $0.01462
Opus 5 $0.00028 $0.00731
Sonnet 5 $0.00011 $0.00292
Haiku 4.5 $0.00006 $0.00146

Measured 3d ago against content hash d5ec47b0245b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

webflow-code-components scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/search_references.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/webflow-code-components/SKILL.md · 107 lines

How it starts

The opening of the file, as written. The whole thing — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Webflow Code Components

Build, define, and import React code components into Webflow using DevLink. Code components let you develop advanced, interactive React components in your codebase and deploy them to Webflow as shared libraries for visual composition on the canvas.

Quick Start

Prerequisite: Webflow Workspace on Freelancer, Core, Growth, Agency, or Enterprise plan (or a site on CMS, Business, or Enterprise). Node.js 20+ and npm 10+.

  1. Set up your project — Install the CLI and dependencies
  2. Create a React component — Build your standard React component
  3. Define the code component — Create a .webflow.tsx file with declareComponent
  4. Import to Webflow — Run npx webflow library share
  5. Use on canvas — Install the library on a site, then drag and drop components

See references/quick-start.md for a full end-to-end tutorial.

Key Concepts

  • Shadow DOM isolation — Styles and DOM are sandboxed per component
  • Separate React roots — No shared React Context or state between components. Use URL params, browser storage, Nano Stores, or custom events
  • SSR by default — Server-rendered HTML is hydrated on the client. Disable with ssr: false for browser-only components
  • declareComponent — Defines how your React component appears in Webflow. See references/hooks.md for the full API
  • Prop types — 11 types available (Text, Rich Text, Text Node, Link, Image, Number, Boolean, Variant, Visibility, Slot, ID)
  • Bundling — Webpack bundles your library (50MB max)

Important Notes

  • File names are unique identifiers. Renaming a .webflow.tsx file creates a new component and removes the old one — existing instances on sites will break.
  • React Server Components are not supported. Use standard React components only.
  • Components can fetch data client-side, but APIs must support CORS and you must never embed API keys in component code.

Reference Documentation

Each reference file includes YAML frontmatter with name, description, and tags for searchability. Use the search script in scripts/search_references.py to find relevant references.

Read the full file on GitHub · 107 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 107 lines · 56 tokens per session scan A d5ec47b0245b

Subscribe to this mod's changes

webflow-code-components is a skill published in the GitHub repository 224-Industries/webflow-skills (9 stars, last pushed 21d ago), licensed MIT. It adds 56 tokens to every session and 1,462 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

vercel-react-best-practices

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…

CherryHQ/cherry-studio · 67 tokens

webflow-cli:code-component

Create and deploy reusable React components for Webflow Designer. Configure existing React projects with webflow.json, build and bundle code, validate output, and deploy to workspace using library share. Use when building custom components for designers.

webflow/webflow-skills · 51 tokens

webflow-code-component:convert-component

Convert an existing React component into a Webflow Code Component. Analyzes TypeScript props, maps to Webflow prop types, generates the .webflow.tsx definition file, and identifies required modifications.

webflow/webflow-skills · 49 tokens

webflow-cli:devlink

Export Webflow Designer components to React/Next.js code for external projects. Configure devlink settings in webflow.json, sync design updates with devlink sync, validate generated code, show diffs, and provide integration examples. Use when building with Webflow designs in React/Next.js.

webflow/webflow-skills · 65 tokens

webflow-code-component:component-scaffold

Generate new Webflow Code Component boilerplate with React component, definition file, and optional styling. Automatically checks prerequisites and can set up missing config/dependencies.

webflow/webflow-skills · 40 tokens

webflow-code-component:component-audit

Audit Webflow Code Components for architecture decisions - prop exposure, state management, slot opportunities, and Shadow DOM compatibility. Focused on Webflow-specific patterns, not generic React best practices.

webflow/webflow-skills · 46 tokens