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.
What this skill does
# DevLink
Export and sync Webflow Designer components to React/Next.js code with validation, diffs, and integration guidance.
## Important Note
**ALWAYS use Bash tool for all Webflow CLI operations:**
- Execute `webflow devlink sync` via Bash tool
- Use Read tool to examine synced files and webflow.json (never modify)
- Use Glob tool to discover generated components
- Verify CLI installation: `webflow --version`
- Check authentication: Use `webflow auth login` for site authentication
- DO NOT use Webflow MCP tools for CLI workflows
- All CLI commands require proper descriptions (not context parameters)
**Package Manager Detection:**
- Check for lock files: `package-lock.json` (npm), `pnpm-lock.yaml` (pnpm), `yarn.lock` (yarn)
- If no lock file found, ask user which package manager to use (npm/pnpm/yarn)
- Use detected package manager for all install/build commands
## Instructions
### Phase 1: Environment Verification
1. **Verify CLI installed**: Run `webflow --version` to confirm CLI is installed
2. **Check authentication**: Verify site authentication (created via `webflow auth login`)
3. **Discover project state**: Check if webflow.json exists with devlink configuration
4. **Identify target framework**: Determine if React, Next.js, or other
### Phase 2: DevLink Configuration
5. **Check for existing config**: Look for `webflow.json` with devlink section
6. **Read configuration**: If exists, show current devlink settings:
- `rootDir`: Directory to export components into
- `cssModules`: Whether to use CSS modules
- `fileExtensions`: File extensions for generated files
- Other configuration options
7. **Ask operation type**: Clarify what user wants to do:
- Configure DevLink for first time
- Sync all components
- Sync specific components (using `components` regex pattern)
- Update existing sync
8. **Store baseline** (if updating): Use Read tool to capture current files before sync
### Phase 3: Sync Execution
9. **Run sync command**: Execute `webflow devlink sync` with options:
- `--api-token` or `-t`: Override API token from .env
- `--site-id` or `-s`: Override site ID from .env
10. **Monitor sync progress**: Show CLI output and sync status
11. **Capture sync results**: Record files created/modified in rootDir
12. **Validate generated code**:
- Check for TypeScript errors (if using TS)
- Verify import statements
- Confirm component exports
- Check CSS module references
### Phase 4: Analysis & Diff Preview
13. **Compare before/after**: Show what changed:
- New files created in rootDir
- Existing files modified
- Components added or updated
14. **Show file diffs**: Display key changes for modified files
15. **Analyze component structure**:
- Component count
- New components added
- Updated components
- CSS files generated
16. **List dependencies**: Show what needs to be imported
### Phase 5: Integration Guidance
17. **Provide import statements**: Show exact code to import components
18. **Show usage examples**: Demonstrate how to use each component
19. **Document sync timestamp**: Record when sync occurred
20. **Provide next steps**: Guide user on testing and integration
## Examples
### Example 1: First-Time DevLink Setup
**User prompt:**
```
Sync my Webflow components to my Next.js project
```
**Step 1: Environment Verification**
```
๐ DevLink Environment Check
Checking CLI installation...
โ Webflow CLI installed: v1.5.2
Current directory: /Users/user/projects/my-nextjs-app
Framework detected: Next.js 14
Checking for DevLink configuration...
โ ๏ธ No webflow.json with devlink configuration found
This appears to be your first DevLink sync.
Ready to configure? (yes/no)
```
*User confirms: yes*
**Step 2: Configuration Setup**
```
๐ DevLink Configuration
DevLink syncs Webflow components to your local project as React code.
Configuration needed in webflow.json:
{
"devlink": {
"rootDir": "./devlink", // Where to export components
"cssModules": true, // Use CSS modules
"fileExtensions": {
"js": "jsx" // or "tsx" for TypeScript
}
}
}
I'll help you create this configuration.
Questions:
1. Where should components be exported? (default: ./devlink)
2. Use TypeScript? (yes for tsx, no for jsx)
3. Use CSS modules? (recommended: yes)
```
*User provides: ./src/devlink, yes (TypeScript), yes (CSS modules)*
```
Creating webflow.json configuration...
{
"devlink": {
"rootDir": "./src/devlink",
"cssModules": true,
"fileExtensions": {
"js": "tsx"
}
}
}
โ Configuration created
โ ๏ธ Authentication Required:
DevLink needs your Webflow site ID and API token.
Run: webflow auth login
This will create a .env file with:
- WEBFLOW_SITE_ID
- WEBFLOW_SITE_API_TOKEN
After authentication, run sync again.
```
### Example 2: First Sync After Configuration
**User prompt:**
```
Run the DevLink sync
```
**Step 1: Verification**
```
๐ DevLink Sync Check
Checking configuration...
โ webflow.json found with devlink config
โ Root directory: ./src/devlink
โ CSS modules: enabled
โ File extensions: tsx
Checking authentication...
โ .env found with WEBFLOW_SITE_ID and WEBFLOW_SITE_API_TOKEN
Ready to sync components from Webflow.
```
**Step 2: Sync Execution**
```
๐ Syncing Components
Executing: webflow devlink sync
Output:
โ Connecting to Webflow site
โ Fetching components
โ Exporting components to ./src/devlink
โ Generating React components
โ Creating CSS module files
โ Creating index file
Sync complete!
๐ Generated Files:
./src/devlink/
โโโ index.ts (module exports)
โโโ Navigation.tsx (component)
โโโ Navigation.module.css (styles)
โโโ Hero.tsx (component)
โโโ Hero.module.css (styles)
โโโ Footer.tsx (component)
โโโ Footer.module.css (styles)
โโโ _webflow-style.css (global styles)
๐ Sync Summary:
- Components synced: 3
- Files created: 8
- Total size: 45 KB
```
**Step 3: Integration Guidance**
```
โ
DevLink Sync Complete!
๐ Components Available:
1. Navigation
2. Hero
3. Footer
๐ก How to Use:
Import components in your Next.js pages:
```tsx
import { Navigation, Hero, Footer } from './src/devlink'
export default function Home() {
return (
<>
<Navigation />
<Hero />
<Footer />
</>
)
}
```
Global Styles:
Import the global DevLink styles in your _app.tsx or layout:
```tsx
import '../src/devlink/_webflow-style.css'
```
๐ฆ No additional dependencies required!
DevLink components use only React (already in your project).
๐ Future Updates:
Run `webflow devlink sync` again to pull latest design changes.
```
### Example 3: Update Existing Sync
**User prompt:**
```
Sync latest changes from Webflow
```
**Step 1: Pre-Sync State**
```
๐ DevLink Update Check
Current state:
โ Configuration: ./src/devlink
โ Existing components: 3 (Navigation, Hero, Footer)
โ Last sync: 2 days ago
Capturing current state for comparison...
โ Baseline captured
```
**Step 2: Sync**
```
๐ Syncing Updates
Executing: webflow devlink sync
Output:
โ Connecting to Webflow site
โ Fetching components
โ Detecting changes
โ Updating components
โ Regenerating files
Sync complete!
```
**Step 3: Diff Analysis**
```
๐ Sync Analysis
Changes detected:
Modified Components:
1. Navigation.tsx
- Added new "Contact" link
- Updated styles for mobile view
2. Hero.tsx
- Changed heading text
- Updated button styling
New Components:
3. CallToAction.tsx (new)
- New CTA section added
Unchanged:
- Footer.tsx
๐ Files Updated:
- ./src/devlink/Navigation.tsx (modified)
- ./src/devlink/Navigation.module.css (modified)
- ./src/devlink/Hero.tsx (modified)
- ./src/devlink/Hero.module.css (modified)
- ./src/devlink/CallToAction.tsx (new)
- ./src/devlink/CallToAction.module.css (new)
- ./src/devlink/index.ts (updated exports)
โ
3 components updated, 1 new component added
๐ก New Component Available:
```tsx
import { CallToAction } from './src/devlink'
<CallToAction />
```
```
### Example 4Related in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context โ no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes โ information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development โ guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.