Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计未展示

wix-cli-site-pluginWIX CLI site plugin CLI

Agent Skill

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

总安装

539

周安装

22

GitHub Stars

公开资料未说明

下载量

174
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

发现并安装 AI 代理的技能。

  • 适用于 Codex、Claude、Cursor、Gemini CLI 等宿主环境。
  • 支持根据关键词快速定位候选技能结果。
  • 通过 npx 命令从 GitHub 仓库安装,注意权限和网络访问限制。
  • wix-cli-site-plugin 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
wix-cli-site-plugin
description
Use when building interactive components for predefined slots in Wix business solutions like Stores, Bookings, or Restaurants. Triggers include site plugin, slot, product page extension, checkout plugin, booking widget, store customization, Wix app integration, plugin explorer, business solution extension.
compatibility
Requires Wix CLI development environment.

Wix Site Plugin Builder

Creates site plugin extensions for Wix CLI applications. Site plugins are custom elements that integrate into predefined slots within Wix business solutions (like Wix Stores, Wix Bookings), extending their functionality and user experience.

Site owners can place site plugins into UI slots using the plugin explorer in Wix editors.

Quick Start Checklist

Follow these steps in order when creating a site plugin:

  1. [ ] Create plugin folder: src/extensions/site/plugins/<plugin-name>/
  2. [ ] Create <plugin>.tsx extending HTMLElement with observedAttributes
  3. [ ] Create <plugin>.panel.tsx with WDS components and widget.getProp/setProp
  4. [ ] Create <plugin>.extension.ts with extensions.sitePlugin() and unique UUID
  5. [ ] Update src/extensions.ts to import and use the new extension
  6. [ ] Run npx tsc --noEmit to verify TypeScript compiles
  7. [ ] Run npx wix build and npx wix preview to test
  8. [ ] Verify plugin appears in plugin explorer for target slots

Non-Matching Intents

Do NOT use this skill for:

  • Standalone site widgets (not in predefined slots) → Use wix-cli-site-widget
  • Dashboard admin interfaces → Use wix-cli-dashboard-page
  • Backend API endpoints → Use wix-cli-backend-api
  • Service plugins (eCommerce SPIs) → Use wix-cli-service-plugin
  • Embedded scripts (HTML/JavaScript injection) → Use wix-cli-embedded-script

Site Plugin vs Site Widget

FeatureSite PluginSite Widget
Target locationPredefined slots in Wix business solutionsAnywhere on site pages
Component typeNative HTMLElementReact → Web Component (react-to-webcomponent)
Use caseExtend Wix business solutionsStandalone interactive widgets
PlacementPlugin explorer in Wix EditorAdd Panel in Wix Editor
Props conventionkebab-case onlycamelCase (widget) / kebab-case (panel)

Choose Site Plugin when: You need to extend predefined slots in Wix business solutions.

Choose Site Widget when: You need a standalone widget that site owners can place anywhere on their pages.

Architecture

Site plugins consist of three required files:

1. Plugin Component (<plugin-name>.tsx)

Custom element component that renders in the slot using native HTMLElement:

  • Extend HTMLElement class
  • Define observedAttributes for reactive properties
  • Implement connectedCallback() and attributeChangedCallback() for rendering
  • Use inline styles via template strings
  • Attributes use kebab-case (e.g., display-name)

2. Settings Panel (<plugin-name>.panel.tsx)

Settings panel shown in the Wix Editor sidebar:

  • Uses Wix Design System components (see WDS-COMPONENTS.md)
  • Manages plugin properties via @wix/editor widget API
  • Loads initial values with widget.getProp('kebab-case-name')
  • Updates properties with widget.setProp('kebab-case-name', value)
  • Wrapped in WixDesignSystemProvider > SidePanel > SidePanel.Content

3. Extension Configuration (<plugin-name>.extension.ts)

Defines the plugin's placement configuration:

  • Specifies which slots the plugin can be added to
  • Configures auto-add behavior on app installation
  • Sets the tag name and file paths

Plugin Component Pattern

Site plugins use native HTMLElement custom elements:

// my-site-plugin.tsx
class MyElement extends HTMLElement {
  static get observedAttributes() {
    return ['display-name'];
  }

  constructor() {
    super();
  }

  connectedCallback() {
    this.render();
  }

  attributeChangedCallback() {
    this.render();
  }

  render() {
    const displayName = this.getAttribute('display-name') || "Your Plugin's Title";

    this.innerHTML = `
      <div style="font-size: 16px; padding: 16px; border: 1px solid #ccc; border-radius: 8px; margin: 16px;">
        <h2>${displayName}</h2>
        <hr />
        <p>
          This is a Site Plugin generated by Wix CLI.<br />
          Edit your element's code to change this text.
        </p>
      </div>
    `;
  }
}

export default MyElement;

Key Points:

  • Extend HTMLElement class directly
  • Define observedAttributes static getter to list reactive attributes
  • Attributes use kebab-case (e.g., display-name, bg-color)
  • Implement connectedCallback() for initial render
  • Implement attributeChangedCallback() to re-render when attributes change
  • Use inline styles via template strings
  • Use this.getAttribute('attribute-name') to read attribute values

Settings Panel Pattern

// my-site-plugin.panel.tsx
import React, { type FC, useState, useEffect, useCallback } from 'react';
import { widget } from '@wix/editor';
import {
  SidePanel,
  WixDesignSystemProvider,
  Input,
  FormField,
} from '@wix/design-system';
import '@wix/design-system/styles.global.css';

const Panel: FC = () => {
  const [displayName, setDisplayName] = useState<string>('');

  useEffect(() => {
    widget.getProp('display-name')
      .then(displayName => setDisplayName(displayName || "Your Plugin's Title"))
      .catch(error => console.error('Failed to fetch display-name:', error));
  }, [setDisplayName]);

  const handleDisplayNameChange = useCallback((event: React.ChangeEvent<HTMLInputElement>) => {
    const newDisplayName = event.target.value;
    setDisplayName(newDisplayName);
    widget.setProp('display-name', newDisplayName);
  }, [setDisplayName]);

  return (
    <WixDesignSystemProvider>
      <SidePanel width="300" height="100vh">
        <SidePanel.Content noPadding stretchVertically>
          <SidePanel.Field>
            <FormField label="Display Name">
              <Input
                type="text"
                value={displayName}
                onChange={handleDisplayNameChange}
                aria-label="Display Name"
              />
            </FormField>
          </SidePanel.Field>
        </SidePanel.Content>
      </SidePanel>
    </WixDesignSystemProvider>
  );
};

export default Panel;

Key Points:

  • Prop names in widget.getProp() and widget.setProp() use kebab-case (e.g., "display-name")
  • Always update both local state AND widget prop in onChange handlers
  • Wrap content in WixDesignSystemProvider > SidePanel > SidePanel.Content
  • Use WDS components from @wix/design-system
  • Import @wix/design-system/styles.global.css for styles
  • Include aria-label for accessibility

Attribute Naming Convention

Site plugins use kebab-case consistently for HTML attributes:

FileConventionExample
<plugin>.tsx (getAttribute)kebab-casethis.getAttribute('display-name')
<plugin>.tsx (observedAttributes)kebab-case['display-name', 'bg-color']
<plugin>.panel.tsx (widget API)kebab-casewidget.getProp('display-name')

Output Structure

Site plugins live under src/extensions/site/plugins. Each plugin has its own folder with files named after the plugin.

src/extensions/site/plugins/
└── {plugin-name}/
    ├── {plugin-name}.tsx           # Main plugin component (HTMLElement)
    ├── {plugin-name}.panel.tsx     # Settings panel component
    └── {plugin-name}.extension.ts  # Extension registration
public/
└── {plugin-name}-logo.svg          # Plugin logo (optional)

References

TopicReference
Complete ExamplesEXAMPLES.md
Slots (App IDs, multiple placements, finding slots)SLOTS.md
WDS ComponentsWDS-COMPONENTS.md
Extension RegistrationEXTENSIONS.md

Available Slots

Site plugins integrate into predefined slots in Wix business solutions. Each slot is identified by:

  • appDefinitionId: The ID of the Wix app (e.g., Stores, Bookings)
  • widgetId: The ID of the page containing the slot
  • slotId: The specific slot identifier

Common placement areas include product pages (Wix Stores), booking pages (Wix Bookings), service pages, and event pages.

For supported pages, common Wix App IDs, and how to find slot IDs, see SLOTS.md.

Extension Registration

Extension registration is MANDATORY and has TWO required steps.

Step 1: Create Plugin-Specific Extension File

Each site plugin requires an extension file in its folder:

// my-site-plugin.extension.ts
import { extensions } from '@wix/astro/builders';

export default extensions.sitePlugin({
  id: '{{GENERATE_UUID}}',
  name: 'My Site Plugin',
  marketData: {
    name: 'My Site Plugin',
    description: 'Marketing Description',
    logoUrl: '{{BASE_URL}}/my-site-plugin-logo.svg',
  },
  placements: [{
    appDefinitionId: 'a0c68605-c2e7-4c8d-9ea1-767f9770e087',
    widgetId: '6a25b678-53ec-4b37-a190-65fcd1ca1a63',
    slotId: 'product-page-details-6',
  }],
  installation: { autoAdd: true },
  tagName: 'my-site-plugin',
  element: './extensions/site/plugins/my-site-plugin/my-site-plugin.tsx',
  settings: './extensions/site/plugins/my-site-plugin/my-site-plugin.panel.tsx',
});

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. Replace {{GENERATE_UUID}} with a freshly generated UUID like "95a28afd-7df1-4e09-9ec1-ce710b0389a0".

PropertyTypeDescription
idstringUnique static UUID v4 (generate fresh)
namestringInternal name for the plugin
marketData.namestringDisplay name in plugin explorer and app dashboard
marketData.descriptionstringDescription shown in plugin explorer and app dashboard
marketData.logoUrlstringPath to logo file ({{BASE_URL}} resolves to public folder)
placementsarrayArray of slot placements where plugin can be added
placements.appDefinitionIdstringID of the Wix app containing the slot
placements.widgetIdstringID of the page containing the slot
placements.slotIdstringID of the specific slot
installation.autoAddbooleanWhether to auto-add plugin to slots on app installation
tagNamestringHTML custom element tag (kebab-case, must contain a hyphen)
elementstringRelative path to plugin component
settingsstringRelative path to settings panel component

Step 2: Register in Main Extensions File

CRITICAL: After creating the plugin-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 plugin will not be available in the plugin explorer.

Examples

For complete examples with all three required files (plugin component, settings panel, extension configuration), see EXAMPLES.md.

Example use cases:

  • Best Seller Badge - Customizable badge on product pages with text and color settings
  • Booking Confirmation - Custom confirmation message for booking pages
  • Product Reviews Summary - Star rating and review count display
  • Data-Driven Plugin - Plugin with Wix Data API integration and editor environment handling

Best Practices

Implementation Guidelines

  • Use inline styles - CSS imports are not supported in custom elements
  • Handle editor environment - Show placeholders when in editor mode for data-dependent plugins
  • Editor sandboxing - Plugins are sandboxed in the Editor; localStorage, sessionStorage, and cookies are restricted. Use viewMode() to detect editor and mock storage if needed
  • Validate all input - Check required props are present
  • Follow naming conventions - kebab-case for all attributes and widget API
  • Keep plugins focused - Each plugin should do one thing well
  • Test in multiple slots - If supporting multiple placements, test each one

Performance Considerations

  • Keep bundle size small - plugins load on user-facing pages
  • Avoid heavy computations on initial render
  • Lazy load data when possible
  • Use efficient re-rendering patterns

Verification

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

Code Quality Requirements

  • Strict TypeScript (no any, explicit return types)
  • Native HTMLElement class for plugin components
  • React functional components with hooks for settings panels
  • Proper error handling and loading states
  • No @ts-ignore comments
  • Inline styles via template strings (no CSS imports)
  • Handle Wix Editor environment when using Wix Data API
  • Consistent attribute naming using kebab-case throughout

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

26.51%
按下载量换算46

windsurf

24.59%
按下载量换算43

trae

17.14%
按下载量换算30

OpenCode

11.82%
按下载量换算21

Codex

7.74%
按下载量换算13

Antigravity

3.26%
按下载量换算6

安全审计

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

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills