Token导航 LogoToken导航

Agent Skill · 研究检索

wix-cli-embedded-script(WIX CLI embedded Script CLI)

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

wix-cli-embedded-script 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证为 MIT,暂无第三方扫描结果,按安装量在研究检索类的 73,675 个 Skill 里排第 52,870。

总安装 544周安装 22GitHub Stars 公开资料未说明下载 171核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

AgentSkills.tonpx skills
npx skills add wix-incubator/skills --skill "wix-cli-embedded-script"

这个 Skill 是做什么的

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

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

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

来源仓库内路径:skills/wix-cli-embedded-script

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

wix-cli-embedded-script 怎么安装?

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

wix-cli-embedded-script 支持哪些 AI 工具?

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

wix-cli-embedded-script 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

wix-cli-embedded-script 是免费的吗?

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

wix-cli-embedded-script 用的人多吗?

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

wix-cli-embedded-script 安全吗?

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

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

值得选的地方

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

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

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

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 要求有安全扫描结论才肯安装的团队。
  • 需要厂商级技术支持和 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-embedded-script

WIX CLI embedded Script CLI · 本页

544—接触敏感数据MIT未收录

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

SKILL.md 原文

name
wix-cli-embedded-script
description
Use when adding tracking code, advertising pixels, third-party integrations, custom popups, or client-side JavaScript to sites. Triggers include embed, inject, tracking, analytics, pixel, popup, modal, chat widget, third-party integration, DOM injection, consent banner.
compatibility
Requires Wix CLI development environment.

Wix Embedded Script Builder

Creates embedded script extensions for Wix CLI applications. Embedded scripts are HTML code fragments that get injected into the DOM of Wix sites, enabling integration with third-party services, analytics tracking, advertising, and custom JavaScript functionality.

Quick Start Checklist

Follow these steps in order when creating an embedded script:

  1. [ ] Create script folder: src/site/embedded-scripts/<script-name>/
  2. [ ] Create embedded.html with config element, styles, and script logic
  3. [ ] Create extensions.ts with extensions.embeddedScript() and unique UUID
  4. [ ] Create dashboard config page: src/dashboard/pages/<script-name>-settings/
  5. [ ] Implement config page with embeddedScripts API from @wix/app-management
  6. [ ] Update src/extensions.ts to import and use both extensions
  7. [ ] Run npx tsc --noEmit to verify TypeScript compiles
  8. [ ] Run npx wix build and npx wix preview to test

Non-Matching Intents

Do NOT use this skill for:

  • Dashboard admin interfaces → Use wix-cli-dashboard-page
  • Database/collection schemas → Use wix-cli-cms-collection
  • Backend API endpoints → Use wix-cli-backend-api
  • Service plugins (eCommerce SPIs) → Use wix-cli-service-plugin
  • Custom site widgets with settings panel → Use wix-custom-element

Script Types

Embedded scripts must declare a type for consent management:

TypeDescriptionUse Cases
ESSENTIALCore functionality crucial to site operationAuthentication, security features
FUNCTIONALRemembers user choices to improve experienceLanguage preferences, UI customization
ANALYTICSProvides statistics on how visitors use the siteGoogle Analytics, Hotjar, Mixpanel
ADVERTISINGProvides visitor data for marketing purposesFacebook Pixel, Google Ads, retargeting

Selection rule: If a script falls into multiple types, choose the option closest to the bottom of the list (most restrictive). For example, a script with both Analytics and Advertising aspects should be typed as ADVERTISING.

Placement Options

PlacementDescriptionBest For
HEADBetween <head> and </head> tagsAnalytics, early initialization
BODY_STARTImmediately after opening <body> tagCritical functionality, noscript
BODY_ENDImmediately before closing </body> tagNon-blocking scripts, performance

Selection guidelines:

  • Analytics/tracking → HEAD (initialize early)
  • Advertising pixels → BODY_END (non-blocking)
  • Critical functionality → HEAD or BODY_START
  • Non-critical features → BODY_END (better performance)

Dynamic Parameters and Dashboard Configuration

Every embedded script requires a companion dashboard page to configure its parameters. Site owners use the dashboard page UI to set values, which are then passed to the embedded script as template variables.

Architecture Flow

Dashboard Page (React UI)
    │
    │  embeddedScripts.embedScript({ parameters: {...} })
    ▼
Wix App Management API
    │
    │  Stores parameters, injects as template variables
    ▼
Embedded Script (HTML)
    │
    │  {{parameterKey}} → actual value
    ▼
Site DOM

Related skill: Use wix-cli-dashboard-page to create the configuration UI for your embedded script.

Parameter Types

TypeDescriptionDashboard Component
TEXTSingle-line textInput
NUMBERNumeric valueInput type="number"
BOOLEANTrue/false toggleToggleSwitch, Checkbox
IMAGEImage from media managerImagePicker
DATEDate onlyDatePicker
DATETIMEDate with timeDatePicker + TimeInput
URLURL with validationInput
SELECTDropdown optionsDropdown
COLORColor valueColorPicker

Template Variable Syntax

Embedded scripts support parameterization using template variable syntax {{variableName}}. These parameters are configured through the dashboard and passed as template variables that should be used in your HTML/JavaScript code.

Usage Instructions:

  1. Template Variable Syntax:

- Use {{parameterKey}} syntax to insert parameter values into your HTML - Template variables work in HTML attributes - They will be replaced with actual values when the script is injected

  1. HTML Attributes (REQUIRED):

- Store ALL parameter values in data attributes on a configuration element - Template variables can ONLY be used here, not directly in JavaScript - Example: <div id="config" data-headline="{{headline}}" data-text="{{text}}"></div>

  1. JavaScript Access:

- JavaScript must read parameter values from the data attributes - Use getAttribute() or the dataset property - Examples:

     const config = document.getElementById("config");
     const headline = config?.getAttribute("data-headline");
     // OR using dataset:
     const { headline, text } = config.dataset;
  1. Type Safety:

- Be aware of parameter types when using them in JavaScript - NUMBER types: convert with Number() or parseInt() - BOOLEAN types: compare with 'true' or 'false' strings - DATE/DATETIME: parse with new Date()

  1. Required vs Optional:

- Required parameters will always have values - Optional parameters may be empty - handle gracefully - Provide fallback values for optional parameters

  1. Relevant Parameter Usage:

- Only use dynamic parameters that are relevant to your current use case - Ignore parameters that don't apply to the functionality you're implementing - Each parameter you use should serve a clear purpose in the script's functionality - It's perfectly fine to not use all parameters if they're not applicable

Example Patterns:

Pattern 1 - Configuration in Data Attributes:

<div
  id="script-config"
  data-api-key="{{apiKey}}"
  data-enabled="{{enabled}}"
  data-color="{{primaryColor}}"
></div>
<script>
  const config = document.getElementById("script-config");
  const apiKey = config.getAttribute("data-api-key");
  const enabled = config.getAttribute("data-enabled") === "true";
  const color = config.getAttribute("data-color");

  if (enabled && apiKey) {
    // Initialize with configuration
  }
</script>

Pattern 2 - Using dataset Property:

<div
  id="script-config"
  data-headline="{{headline}}"
  data-message="{{message}}"
  data-image-url="{{imageUrl}}"
></div>
<script>
  const config = document.getElementById("script-config");
  const { headline, message, imageUrl } = config.dataset;

  // Use the variables in your script logic
  if (headline) {
    document.querySelector("#headline").textContent = headline;
  }
</script>

Pattern 3 - Conditional Logic:

<div
  id="config"
  data-mode="{{activationMode}}"
  data-start="{{startDate}}"
  data-end="{{endDate}}"
></div>
<script>
  const config = document.getElementById("config");
  const mode = config.getAttribute("data-mode");

  if (mode === "timed") {
    const startDate = new Date(config.getAttribute("data-start"));
    const endDate = new Date(config.getAttribute("data-end"));
    const now = new Date();

    if (now >= startDate && now <= endDate) {
      // Show content
    }
  } else if (mode === "active") {
    // Show content immediately
  }
</script>

Validation Requirements:

  • Only use dynamic parameters that are relevant to your specific use case
  • Ignore parameters that don't apply to the functionality being implemented
  • Template variables {{parameterKey}} must match the exact key names from the parameter definitions
  • Handle both required and optional parameters appropriately
  • Provide sensible default behavior when optional parameters are not set
  • Ensure type-appropriate usage (don't use NUMBER parameters as strings without conversion)

Common Parameters

Every embedded script should have at minimum an enable/disable toggle parameter:

ParameterTypePurpose
enabledBOOLEANAllow site owner to activate/disable
apiKeyTEXTThird-party service credentials
trackingIdTEXTAnalytics/pixel identifiers
headlineTEXTCustomizable display text
colorCOLORUI customization

Output Structure

A complete embedded script implementation requires two parts:

1. Embedded Script Extension

src/site/embedded-scripts/
└── {script-name}/
    ├── embedded.html     # HTML/JavaScript code to inject
    └── extensions.ts     # Metadata (scriptType, placement)

2. Dashboard Configuration Page (Required)

src/dashboard/
├── withProviders.tsx     # WDS provider wrapper (required)
└── pages/
    └── {script-name}-settings/
        ├── extensions.ts  # Extension registration (REQUIRED)
        └── page.tsx       # Configuration UI using embeddedScripts API

Note: The dashboard page requires its own extensions.ts file. Without this file, the dashboard page will not appear in the Wix dashboard.

WARNING: The dashboard page uses DIFFERENT field names than embedded scripts:

  • Dashboard pages use title, routePath, component
  • Embedded scripts use name, source, placement, scriptType

Do NOT apply embedded script field names to dashboard page registrations.

See wix-cli-dashboard-page skill for dashboard page implementation details and the extension registration pattern.

Implementation Pattern

<!-- Configuration element with template variables -->
<div id="my-config" data-api-key="{{apiKey}}" data-enabled="{{enabled}}"></div>

<!-- Container for dynamic content -->
<div id="my-container"></div>

<style>
  /* Scoped styles for the embedded content */
  #my-container {
    /* styles */
  }
</style>

<script type="module">
  // Get configuration from data attributes
  const config = document.getElementById("my-config");
  if (!config) throw new Error("Config element not found");

  const { apiKey, enabled } = config.dataset;

  // Exit early if disabled (use throw at module scope, not return)
  if (enabled !== "true") {
    throw new Error("Script disabled");
  }

  // Implement functionality in a named function (return is allowed here)
  async function initialize() {
    try {
      // Your implementation
    } catch (error) {
      console.error("Script error:", error);
    }
  }

  // Initialize when DOM is ready
  if (document.readyState === "loading") {
    document.addEventListener("DOMContentLoaded", initialize);
  } else {
    initialize();
  }
</script>

Examples

Analytics Tracking

Request: "Add Google Analytics tracking to my site"

Output:

  • Script type: ANALYTICS
  • Placement: HEAD
  • Template variables: {{trackingId}}
  • Implements: gtag.js initialization, page view tracking

Popup/Modal

Request: "Create a coupon popup that shows when cart value exceeds $50"

Output:

  • Script type: FUNCTIONAL
  • Placement: BODY_END
  • Template variables: {{couponCode}}, {{minimumCartValue}}, {{enablePopup}}
  • Implements: Cart value detection, popup display logic, localStorage for "don't show again"

Third-Party Chat Widget

Request: "Integrate Intercom chat widget"

Output:

  • Script type: FUNCTIONAL
  • Placement: BODY_END
  • Template variables: {{appId}}, {{userEmail}}, {{userName}}
  • Implements: Intercom SDK initialization, user identification

Best Practices

  • Always create a dashboard page: Every embedded script needs a configuration UI
  • Include enable/disable toggle: Let site owners control activation without removing the script
  • Performance: Minimize impact - scripts should be lightweight and non-blocking
  • Security: Avoid inline event handlers, validate data, escape user input
  • Error handling: Fail silently when appropriate - don't break the site
  • Module scope early exits: Use throw new Error() for early exits at module scope, not return. Rollup (used by Astro) doesn't allow return statements at module scope. Wrap main logic in a named async function where return is valid.
  • Type conversions: Parameters are always strings - convert in JavaScript as needed
  • API calls: Only create fetch() calls to /api/\* endpoints that exist in the API spec
  • Scoping: Prefix CSS classes and IDs to avoid conflicts with site styles
  • Cleanup: Remove event listeners and intervals when appropriate

Complete Example: Coupon Popup

1. Define Parameters

Parameters for "cart-coupon-popup":
- couponCode (TEXT, required) - The coupon code to display
- popupHeadline (TEXT, required) - Headline text
- popupDescription (TEXT, required) - Description text
- minimumCartValue (NUMBER) - Minimum cart value to show popup
- enablePopup (BOOLEAN, required) - Enable/disable toggle

2. Embedded Script (embedded.html)

<div
  id="popup-config"
  data-coupon-code="{{couponCode}}"
  data-popup-headline="{{popupHeadline}}"
  data-minimum-cart-value="{{minimumCartValue}}"
  data-enable-popup="{{enablePopup}}"
></div>
<div id="popup-container"></div>

<script type="module">
  // Get configuration from data attributes
  const config = document.getElementById("popup-config");
  if (!config) throw new Error("Config element not found");

  const { couponCode, popupHeadline, minimumCartValue, enablePopup } =
    config.dataset;

  // Exit early if disabled (use throw at module scope, not return)
  if (enablePopup !== "true") {
    throw new Error("Popup disabled");
  }

  // Main logic in a function (return is allowed here)
  async function initializePopup() {
    const minValue = Number(minimumCartValue) || 0;
    // ... popup implementation
  }

  // Initialize when DOM is ready
  if (document.readyState === "loading") {
    document.addEventListener("DOMContentLoaded", initializePopup);
  } else {
    initializePopup();
  }
</script>

3. Dashboard Page (See wix-cli-dashboard-page skill)

Uses embeddedScripts API from @wix/app-management:

import { embeddedScripts } from "@wix/app-management";

// Load parameters
const script = await embeddedScripts.getEmbeddedScript();
const params = script.parameters; // { couponCode: "...", ... }

// Save parameters (all values must be strings)
await embeddedScripts.embedScript({
  parameters: {
    couponCode: "SAVE20",
    minimumCartValue: "50", // Number as string
    enablePopup: "true", // Boolean as string
  },
});

Extension Registration

Extension registration is MANDATORY and has TWO required steps.

Step 1: Create Script-Specific Extension File

Each embedded script requires an extensions.ts file in its folder:

import { extensions } from "@wix/astro/builders";

export const embeddedscriptMyScript = extensions.embeddedScript({
  id: "{{GENERATE_UUID}}",
  name: "My Script",
  source: "./site/embedded-scripts/my-script/embedded.html",
  placement: "BODY_END",
  scriptType: "FUNCTIONAL",
});

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 "a1b2c3d4-e5f6-7890-abcd-ef1234567890".

PropertyTypeDescription
idstringUnique static UUID v4 (generate fresh)
namestringDisplay name for the script
sourcestringRelative path to the HTML file
placementenumHEAD, BODY_START, or BODY_END
scriptTypeenumESSENTIAL, FUNCTIONAL, ANALYTICS, ADVERTISING

Step 2: Register in Main Extensions File

CRITICAL: After creating the script-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 embedded script will not be deployed to the site.

Verification

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

平台分布

Claude Code

30.56%
按下载量换算52

windsurf

23.18%
按下载量换算40

trae

17.59%
按下载量换算30

OpenCode

13.75%
按下载量换算24

Codex

8.83%
按下载量换算15

Antigravity

3.75%
按下载量换算6

安全审计

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

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

继续浏览同类 Skills