Token导航 LogoToken导航

Agent Skill · 研究检索

wix-cli-site-component(WIX CLI site component CLI)

wix-cli-site-component 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

wix-cli-site-component 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证为 MIT,暂无第三方扫描结果,按安装量在研究检索类的 73,675 个 Skill 里排第 71,838。

总安装 192周安装 8GitHub Stars 公开资料未说明下载 64核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:wix-cli-site-component(WIX CLI site component CLI)
来源仓库:https://github.com/wix-incubator/skills
仓库路径:skills/wix-cli-site-component
安装命令:
npx skills add wix-incubator/skills --skill "wix-cli-site-component"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add wix-incubator/skills --skill "wix-cli-site-component"

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

发现并安装 AI 代理的技能。适用于 Codex、Claude、Cursor、Gemini CLI 等宿主环境。支持根据关键词快速定位候选技能结果。通过 npx 命令从 GitHub 仓库安装,注意权限和网络访问限制。

wix-cli-site-component 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/wix-cli-site-component

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add wix-incubator/skills --skill "wix-cli-site-component";命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

wix-cli-site-component 怎么安装?

在终端执行 npx skills add wix-incubator/skills --skill "wix-cli-site-component"。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

wix-cli-site-component 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

wix-cli-site-component 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

wix-cli-site-component 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

wix-cli-site-component 用的人多吗?

公开数据是累计安装 192 次,近一周安装 8 次,下载 64 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

wix-cli-site-component 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 要求有安全扫描结论才肯安装的团队。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
wix-cli-site-component

WIX CLI site component CLI · 本页

192—需要联网MIT未收录

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
wix-cli-site-component
description
Use when building React site components with editor manifests for Wix CLI applications.

Wix Site Component Builder

Creates production-quality React site components with editor manifests for Wix CLI applications. Site components are React components that integrate with the Wix Editor, allowing site owners to customize content, styling, and behavior through a visual interface.

Non-Matching Intents

Do NOT use this skill for:

  • Dashboard admin interfaces → Use wix-cli-dashboard-page
  • Site widgets with settings panels → Use wix-cli-site-widget
  • Embedded scripts (HTML/JavaScript injection) → Use wix-cli-embedded-script
  • Backend API endpoints → Use wix-cli-backend-api
  • Service plugins (eCommerce SPIs) → Use wix-cli-service-plugin

Architecture

Site components consist of four required files:

1. Component Manifest (manifest.json)

Defines the contract between the React component and Wix ecosystem:

  • editorElement: Root element configuration (selector, displayName, archetype, layout)
  • cssProperties: CSS API for styling customization
  • data: Data API for content configuration
  • elements: Nested element definitions for granular editing
  • behaviors: Editor interaction behaviors

2. React Component (component.tsx)

Production-ready React functional component:

  • Implements props interface matching manifest data structure
  • Applies className and id to root element
  • Handles element removal state via wix.elementsRemovalState
  • Uses sub-component pattern for nested elements
  • Includes proper TypeScript typing and error handling

3. CSS Styles (style.css)

Modern CSS with responsive design:

  • Synced selectors with manifest and React classNames
  • CSS variables for dynamic styling
  • Responsive design without media queries (flexbox, grid, clamp)
  • Pointer events enabled for editor elements
  • No inline styles for static values
  • Each selector once only, box-sizing: border-box all elements
  • NO transition: all, NO media queries (except prefers-reduced-motion)
  • Root display: Declare --display: [value] CSS variable, then use display: var(--display) on root

4. TypeScript Types (types.ts)

Strict type definitions:

  • Props interfaces for all components
  • Data type mappings (text → string, image → Image object)
  • Element props structure with optional chaining
  • Wix system types (Wix interface, REMOVED type)

Component Manifest Structure

You MUST read MANIFEST_GUIDELINES.md before implementing a site component. It contains the complete manifest structure, all data types, element configurations, and required patterns.

The manifest defines the editor contract using these key sections:

editorElement (Root Configuration)

{
  "selector": ".component-name",
  "displayName": "Component Name",
  "archetype": "Container",
  "layout": {
    "resizeDirection": "horizontalAndVertical",
    "contentResizeDirection": "horizontal"
  },
  "cssProperties": {
    "backgroundColor": {
      "displayName": "Background Color",
      "defaultValue": "#ffffff"
    }
  },
  "data": {
    "columns": {
      "dataType": "number",
      "displayName": "Number of Columns",
      "number": { "minimum": 1, "maximum": 4 }
    }
  },
  "elements": {
    "title": {
      "elementType": "inlineElement",
      "inlineElement": {
        "selector": ".component-name__title",
        "displayName": "Title",
        "data": {
          "titleText": {
            "dataType": "text",
            "displayName": "Title Text"
          }
        },
        "behaviors": {
          "selectable": true,
          "removable": true
        }
      }
    }
  }
}

Data Types Reference

TypeRuntime ValueUse Case
textstringNames, titles, descriptions
textEnumstringPredefined options
numbernumberQuantities, dimensions
booleanValuebooleanToggles, flags
a11yObjectAccessibility attributes
link{ href, target, rel }Navigation links
image{ uri, url, alt, width, height }Images
videoVideo objectMedia content
vectorArtSanitized SVG objectIcons, graphics
localDatestring (YYYY-MM-DD)Date values
localTimestring (hh:mm)Time values
webUrlstringExternal URLs
richTextstring (HTML)Formatted content
arrayItemsArrayCollections, lists
directionstringHTML dir attribute
menuItemsArray of menu itemsNavigation menus

CSS Properties Reference

Common CSS properties for styling customization:

  • Layout: display, gap, padding, margin, width, height
  • Typography: font, fontSize, fontWeight, textAlign, color
  • Background: backgroundColor, backgroundImage
  • Border: border, borderRadius, boxShadow
  • Positioning: alignItems, justifyContent, flexDirection

Complete CSS properties reference: See CSS_GUIDELINES.md for all CSS properties, variable patterns, and styling best practices.

React Component Patterns

Complete reference: See REACT_PATTERNS.md for detailed component architecture, all coding patterns, and implementation examples.

Props Structure

interface ComponentProps {
  // Standard props (always present)
  className: string;
  id: string;
  wix?: Wix;

  // Component-level data (from editorElement.data)
  columns?: number;
  layout?: string;

  // Element props (from elements definitions)
  elementProps?: {
    title?: {
      titleText?: string;
      wix?: Wix;
    };
    button?: {
      buttonText?: string;
      buttonLink?: Link;
      wix?: Wix;
    };
  };
}

Sub-Component Pattern

Extract every distinct UI element into named sub-components:

// Title sub-component
interface TitleProps {
  titleText?: string;
  className: string;
}

const Title: FC<TitleProps> = ({ titleText = "Default Title", className }) => (
  <h2 className={className}>{titleText}</h2>
);

// Main component
const ProductCard: FC<ProductCardProps> = ({
  className,
  id,
  elementProps,
  wix
}) => {
  const removalState = wix?.elementsRemovalState || {};

  return (
    <div className={`product-card ${className}`} id={id}>
      {!removalState['title'] && (
        <Title
          className="product-card__title"
          {...elementProps?.title}
        />
      )}
      {!removalState['button'] && (
        <Button
          className="product-card__button"
          {...elementProps?.button}
        />
      )}
    </div>
  );
};

Conditional Rendering

All elements must be conditionally rendered based on removal state:

const removalState = wix?.elementsRemovalState || {};

return (
  <div className={`component ${className}`} id={id}>
    {!removalState['elementKey'] && <Element />}
  </div>
);

CSS Guidelines

Responsive Design Strategy

Components live in user-resizable containers (300-1200px) within varying viewports:

  • Root element: width: 100%; height: 100%
  • Layout structure: Use CSS Grid and Flexbox for fluid responsiveness
  • Typography: Use clamp() for fluid scaling
  • Spacing: Fixed or tight clamp spacing (≤50% variation)

CSS Variables for Dynamic Styling

.component {
  --display: block;
  --background-color: #ffffff;
  --text-color: #333333;

  display: var(--display);
  background-color: var(--background-color);
  color: var(--text-color);
  pointer-events: auto;
}

Selector Synchronization

CRITICAL: CSS selectors must match manifest selectors and React classNames exactly:

  • React: className="product-card__title"
  • CSS: .product-card__title { ... }
  • Manifest: "selector": ".product-card__title"

Design Guidelines

Complete reference: See DESIGN_SYSTEM.md for visual design principles, creative guidelines, and aesthetic best practices.

Spacing as Communication

RelationshipValueUse Case
Tight (icon + label)0.25-0.5rem (4-8px)Clustering related items
Same category1-1.5rem (16-24px)Card sections, form fields
Different sections2-3rem (32-48px)Major content blocks
Emphasis/Drama4rem+ (64px+)Hero content, luxury feel

Visual Consistency

  • Corner Radius: All similar elements share same radius (0-4px sharp, 6-12px rounded)
  • Shadow Levels: Max 3 levels (rest, hover, floating)
  • Element Heights: Consistent heights for similar elements
  • Color Strategy: Use full palette purposefully for hierarchy and zones

Creative Exploration

Push beyond obvious solutions:

  • Cards: Asymmetric grids, overlapping elements, thick accent borders
  • Lists: Alternating styles, spotlight patterns, color rhythm
  • Interactive Elements: Split buttons, colored icon circles, smooth transitions
  • Content Hierarchy: Large numbers for stats, quote callouts, whitespace dividers

Component Elements Guidelines

One Element = One Manifest Entry

Each distinct visual part requires a separate manifest element:

  • ✅ 3 buttons → 3 separate elements
  • ✅ Image + text → 2 separate elements
  • ❌ Multiple items grouped as one element

Data Scoping Rules

editorElement.data - Component-wide configuration only:

  • ✅ Layout enums, numbers (columns: 3, speed: 500)
  • ❌ Text, links, images (belongs to elements)
  • ❌ show/hide booleans (use removable: true instead)

elements[key].data - Content for that specific element:

  • ✅ Element-specific content (title text, button link, image)

Asset Requirements

When components need default images, use this format:

// Import in component
import { heroImage } from './assets/defaultImages';

// Usage
<img src={heroImage} alt="Hero" />

Asset specification format:

<imageUrlName>
{ "description": "Modern cityscape at sunset", "width": 1920, "height": 1088 }
</imageUrlName>

Rules:

  • Import as named export from './assets/defaultImages'
  • Width/height: multiples of 64, between 128-2048px
  • NEVER use external URLs

Output Structure

src/site/components/
└── {component-name}/
    ├── manifest.json        # Component manifest
    ├── component.tsx        # React component
    ├── style.css           # CSS styles
    ├── types.ts            # TypeScript types
    └── assets/             # Optional assets
        └── defaultImages.ts

Examples

Complete working example: See EXAMPLE.md for a full production-ready site component with all patterns, including manifest, React component, CSS, and types.

Product Card Component

Request: "Create a product card component with image, title, price, and buy button"

Output:

  • Manifest with 4 elements (image, title, price, button)
  • React component with sub-components for each element
  • CSS with responsive grid layout and hover effects
  • TypeScript types for all props and data structures

Hero Section Component

Request: "Build a hero section with background image, headline, subtitle, and CTA button"

Output:

  • Manifest with background image CSS property and 3 text elements
  • React component with overlay design and typography hierarchy
  • CSS with responsive text scaling and dramatic spacing
  • Asset specifications for default hero images

Feature List Component

Request: "Create a features component with configurable number of items"

Output:

  • Manifest with arrayItems data type for feature collection
  • React component mapping over features array with safety checks
  • CSS with flexible grid layout adapting to item count
  • Sub-components for feature icons, titles, and descriptions

Extension Registration

Extension registration is MANDATORY and has TWO required steps.

Step 1: Create Component-Specific Extension File

Each site component requires an extensions.ts file in its folder:

import { extensions } from "@wix/astro/builders";
import manifest from "./site/components/my-component/manifest.json";

export const sitecomponentMyComponent = extensions.siteComponent({
  ...manifest,
  id: "{{GENERATE_UUID}}",
  description: "My Component",
  type: "platform.builder.{{GENERATE_UUID}}",
  resources: {
    client: {
      component: "./site/components/my-component/component.tsx",
      componentUrl: "./site/components/my-component/component.tsx",
    },
  },
});

Note: The id and type should use the same UUID.

CRITICAL: UUID Generation

The id must be a unique, static UUID v4 string. Generate a fresh UUID for each extension - do NOT use randomUUID() or copy UUIDs from examples.

Step 2: Register in Main Extensions File

CRITICAL: After creating the component-specific extension file, you MUST read ../../skills/references/EXTENSIONS.md and follow the "App Registration" section to update src/extensions.ts.

Without completing Step 2, the site component will not be available in the Wix Editor.

Code Quality Requirements

Complete reference: See TYPESCRIPT_QUALITY.md for comprehensive type safety guidelines and code quality standards.

TypeScript Standards

  • Strict TypeScript with no any types
  • Explicit return types for all functions
  • Proper null/undefined handling with optional chaining
  • No @ts-ignore or @ts-expect-error comments

React Best Practices

  • Functional components with hooks
  • Proper dependency arrays in useEffect
  • Component must react to prop changes
  • SSR-safe code (no browser APIs at module scope)

ESLint Compliance

  1. No unused vars/params/imports (@typescript-eslint/no-unused-vars)
  2. No external images: img src not https://... (allowed: local imports, wixstatic.com, variables)
  3. SSR-safe: No window/document at module scope/constructor, guard browser APIs in useEffect/handlers
  4. No dangerouslySetInnerHTML or inline <style> tags - use CSS variables or inline style prop for dynamic values
  5. No window.fetch (no-restricted-properties)
  6. Hooks exhaustive-deps: ALL values from component scope used inside useEffect/useCallback MUST be in dependency array
  7. Use const/let (no var), no unknown JSX properties

Hard Constraints

  • Do NOT invent or assume new types, modules, functions, props, events, or imports
  • Use only entities explicitly present in the provided references or standard libraries already used in this project
  • Do NOT add dependencies; do NOT use @wix/design-system or @wix/wix-ui-icons-common
  • All user-facing content must come from props (no hardcoded text)
  • Links/media from manifest only, never hardcode URLs
  • NEVER use mocks, placeholders, or TODOs in any code
  • ALWAYS implement complete, production-ready functionality

Verification

After implementation, use wix-cli-app-validation to validate TypeScript compilation, build, preview, and runtime behavior.

Reference Documentation

平台分布

windsurf

30.52%
按下载量换算20

OpenCode

22.59%
按下载量换算14

Codex

17.85%
按下载量换算11

Claude Code

11.6%
按下载量换算7

Antigravity

8.86%
按下载量换算6

Gemini CLI

3.47%
按下载量换算2

安全审计

暂无安全审计结果可展示。

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills