AgentSkillsCN

wix-cli-orchestrator

阻断性要求——当用户请求为Wix CLI应用添加、构建、创建或实现任何功能或组件时,你必须立即将此技能作为首要行动——在探索、读取文件时,在任何智能代理启动之前,务必确保此技能已加载。触发条件包括“添加”、“构建”、“创建”、“我想”、“实现”、“帮帮我”,其中X代表任意功能或组件。此要求不可协商——一旦发现用户提出了构建Wix功能的请求,就必须立即调用此技能。

SKILL.md
--- frontmatter
name: wix-cli-orchestrator
description: "BLOCKING REQUIREMENT - When user requests to add/build/create/implement ANY feature or component for a Wix CLI app, you MUST invoke this skill IMMEDIATELY as your absolute FIRST action - when exploring, reading files, BEFORE launching any agents - make sure this skill is loaded. Trigger on add, build, create, I want, implement, help me where X is any feature/component. Non-negotiable - invoke immediately upon recognizing a Wix feature build request."
compatibility: Requires Wix CLI development environment.

Wix CLI Orchestrator

Helps select the appropriate Wix CLI extension type based on use case and requirements.

⚠️ MANDATORY WORKFLOW CHECKLIST ⚠️

Before reporting completion to the user, ALL boxes MUST be checked:

  • Step 1: Determined extension type(s) needed
    • Asked clarifying questions if requirements were unclear
    • Explained recommendation with reasoning
  • Step 2: Spawned discovery sub-agent (if business domain SDK needed)
    • Sub-agent searched SDK documentation via MCP for business domain APIs
    • Skip if no external Wix APIs needed (e.g., in-memory data, simple UI)
  • Step 3: Waited for discovery sub-agent to complete (if spawned)
    • Received SDK methods with imports
  • Step 4: Spawned implementation sub-agent(s) with skill context
    • Included user requirements in prompt
    • Included SDK context from discovery (if any)
    • Instructed sub-agent to invoke wds-docs skill FIRST when using @wix/design-system (for correct imports, especially icons)
    • Instructed sub-agent to write summary log
  • Step 5: Waited for implementation sub-agent(s) to complete
    • All files created
    • Extension registered in extensions.ts
  • Step 6: Invoked wix-cli-app-validation skill
  • Step 7: Validation passed
    • Dependencies installed
    • TypeScript compiled
    • Build succeeded
    • Preview deployed

🛑 STOP: If any box is unchecked, do NOT proceed to the next step.


Your Role

You are a decision-maker and orchestrator, not an implementer. Decide → Discovery (if needed) → Implementation Sub-Agent(s) → Validation. Ask clarifying questions if unclear; recommend extension type using the decision content below; spawn discovery sub-agent only for business domain APIs; spawn implementation sub-agents; run validation.


❌ ANTI-PATTERNS (DO NOT DO)

❌ WRONG✅ CORRECT
Writing implementation code yourselfSpawning a sub-agent to implement
Invoking implementation skills directlySpawning sub-agent with skill context
Discovering extension SDK (dashboard, etc.)Extension SDK is in skill reference files
Reporting done without validationAlways run wix-cli-app-validation at the end
Reading/writing files after invoking skillsLet sub-agents handle ALL file operations

CRITICAL: After this planner skill loads, you should ONLY:

  • Spawn sub-agents (for discovery and implementation)
  • Invoke wix-cli-app-validation skill at the end

You should NEVER: Read, Write, Edit files for implementation yourself

Quick Decision Helper

Answer these questions to find the right extension:

  1. What are you trying to build?

    • Admin interface → Dashboard Extensions
    • Backend logic → Backend Extensions
    • Site component → Site Extensions (app projects only)
  2. Who will see it?

    • Admin users only → Dashboard Extensions
    • Site visitors → Site Extensions
    • Server-side only → Backend Extensions
  3. Where will it appear?

    • Dashboard sidebar/page → Dashboard Page or Modal
    • Existing Wix app dashboard → Dashboard Plugin
    • Anywhere on site → Site Widget
    • Wix business solution page → Site Plugin
    • During business flow → Service Plugin
    • After event occurs → Event Extension

Decision Flow (Not sure?)

  • Admin: Need full-page UI? → Dashboard Page. Need popup/form? → Dashboard Modal. Extending Wix app dashboard? → Dashboard Plugin. Modal constraint: Dashboard Pages cannot use <Modal />; use a separate Dashboard Modal extension and dashboard.openModal().
  • Backend: During business flow (checkout/shipping/tax)? → Service Plugin. After event (webhooks/sync)? → Event Extension. Custom HTTP endpoints? → Backend Endpoints.
  • Site: User places anywhere? → Site Widget. Fixed slot on Wix app page? → Site Plugin. Scripts/analytics only? → Embedded Script.

Quick Reference Table

Extension TypeCategoryVisibilityUse WhenSkill
Dashboard PageDashboardAdmin onlyFull admin pageswix-cli-dashboard-page
Dashboard ModalDashboardAdmin onlyPopup dialogswix-cli-dashboard-modal
Dashboard PluginDashboardAdmin onlyExtend Wix app dashboards(none yet)
Dashboard Menu PluginDashboardAdmin onlyAdd menu items(none yet)
Service PluginBackendServer-sideCustomize business flowswix-cli-service-plugin
Event ExtensionBackendServer-sideReact to events(none yet)
Backend EndpointsBackendAPICustom HTTP handlerswix-cli-backend-api
Site WidgetSitePublicStandalone widgetswix-cli-site-widget
Site PluginSitePublicExtend Wix business solutionswix-cli-site-plugin
Embedded ScriptSitePublicInject scripts/analyticswix-cli-embedded-script

Key constraint: Dashboard Page cannot use <Modal />; use a separate Dashboard Modal and dashboard.openModal(). Site plugins (CLI) not supported on checkout; use Wix Blocks.

Backend Extensions

Server-side logic, events, and integrations with Wix business solutions.

Service Plugins

Extension Comparison

Site Widget vs Site PluginDashboard Page vs ModalService Plugin vs Event
Widget: user places anywhere. Plugin: fixed slot in Wix app.Page: full page. Modal: overlay; use for popups.Service: during flow. Event: after event.

Decision & Handoff Workflow

Follow the checklist; steps below add detail.

Step 1: Ask Clarifying Questions (if needed)

If unclear: placement, visibility, configuration, integration. Wait if the answer changes extension type; otherwise proceed and say you can add optional extension later.

Step 2: Make Your Recommendation

Use Quick Reference Table and decision content above. State extension type and brief reasoning (placement, functionality, integration).

Step 3: Spawn Discovery Sub-Agent (Business Domain SDK Only)

Spawn a discovery sub-agent only when the user's requirements need business domain APIs (Wix Data, Wix Stores, Wix Bookings, third-party integrations, etc.).

Skip discovery when:

  • Requirements only need APIs already in skill reference files (Wix Data, Dashboard SDK, SPIs)
  • Requirements only need UI components (covered by extension skills)
  • No external Wix APIs or business solution integrations needed

DO NOT discover SDK already in reference files — these are documented in the extension skills:

  • Dashboard API → wix-cli-dashboard-page/references/DASHBOARD_API.md
  • Wix Data SDK → wix-cli-dashboard-page/references/WIX_DATA.md
  • Service Plugin SPIs → wix-cli-service-plugin/references/*.md

When to spawn discovery:

User RequirementDiscovery Needed?Reason
"Display store products"✅ YESWix Stores API not in reference files
"Show booking calendar"✅ YESWix Bookings API not in reference files
"Send emails to users"✅ YESWix Triggered Emails not in reference files
"Get member info"✅ YESWix Members API not in reference files
"Store data in a collection"❌ NOCovered by WIX_DATA.md
"Show toast / navigate"❌ NOCovered by DASHBOARD_API.md
"Settings page with form inputs"❌ NOUI only, no external API
"Dashboard page with local state"❌ NONo external API needed

MCP Tools the sub-agent should use:

  • mcp__wix-mcp-remote__SearchWixSDKDocumentation - SDK methods and APIs (Always use maxResults: 5)
  • mcp__wix-mcp-remote__ReadFullDocsArticle - Full documentation when needed (only if search results need more detail)

Discovery sub-agent prompt template:

code
Discover SDK methods for [BUSINESS DOMAIN REQUIREMENT].

Search MCP documentation (use maxResults: 5):
- Search SDK documentation for [SPECIFIC API] with maxResults: 5
- Only use ReadFullDocsArticle if search results need more context

DO NOT search for these (already in skill reference files):
- Wix Data API (WIX_DATA.md)
- Dashboard SDK (DASHBOARD_API.md)
- Service Plugin SPIs (wix-cli-service-plugin/references/*.md)

Return ONLY a concise summary in this format:

## SDK Methods & Interfaces

| Name                      | Type   | TypeScript Type                              | Description       |
| ------------------------- | ------ | -------------------------------------------- | ----------------- |
| `moduleName.methodName()` | Method | `(params: ParamType) => Promise<ReturnType>` | Brief description |

**Import:** `import { methodName } from '@wix/sdk-module';`

Also include any gotchas or constraints discovered.

If discovery is spawned, wait for it to complete before proceeding to Step 4.

Step 4: Spawn Implementation Sub-Agent(s)

⚠️ BLOCKING REQUIREMENT ⚠️

You MUST spawn sub-agent(s) for implementation. Do NOT invoke implementation skills directly. Do NOT write code yourself.

Spawn an implementation sub-agent with the skill context:

The sub-agent prompt should include:

  1. The skill to load (e.g., wix-cli-dashboard-page)
  2. The user's requirements
  3. The SDK context from the discovery sub-agent
  4. Instruction to invoke the wds-docs skill only when needed (e.g. when looking up WDS component props or examples)

Implementation sub-agent prompt MUST include:

  1. ✅ The skill to load (full path or name)
  2. ✅ The user's original requirements (copy verbatim)
  3. ✅ SDK methods discovered (with imports and types) — only if discovery was performed
  4. ✅ Instruction to invoke wds-docs skill FIRST when using @wix/design-system (critical for correct imports, especially icons)
  5. ✅ Any constraints or gotchas discovered
  6. ✅ Instruction to write a summary log file

Implementation sub-agent prompt template:

code
Load and follow the skill: wix-cli-[skill-name]

User Requirements:
[EXACT user request - copy verbatim]

[ONLY IF DISCOVERY WAS PERFORMED:]
SDK Context:
[Methods with imports from discovery]

Constraints:
[Any gotchas or limitations from discovery]

⚠️ MANDATORY when using WDS: Before using @wix/design-system components, invoke the wds-docs skill FIRST to get correct imports (icons are from @wix/wix-ui-icons-common, NOT @wix/design-system/icons).

After implementation, write a summary log to: implementation-agent-{hash}.log
Include: files created, features implemented, verification results.

Implement this extension following the skill guidelines.

PARALLEL EXECUTION: When multiple independent extensions are needed, spawn ALL sub-agents in parallel:

Extension CombinationParallel?Reason
Dashboard Page + Site Widget✅ YESIndependent UI contexts
Dashboard Page + Dashboard Modal✅ YESModal code is independent from page
Dashboard Page + Backend API✅ YESFrontend vs backend
Site Widget + Embedded Script✅ YESDifferent rendering contexts
Service Plugin + Event Extension✅ YESIndependent backend handlers

Sequential execution required:

  • When one extension imports types/interfaces from another
  • When user explicitly says "first X, then Y"

Extension Type to Skill Mapping:

Extension TypeSkill to Load
Dashboard Pagewix-cli-dashboard-page
Dashboard Modalwix-cli-dashboard-modal
Dashboard PluginNo skill available yet
Dashboard Menu PluginNo skill available yet
Service Pluginwix-cli-service-plugin
Event ExtensionNo skill available yet
Backend API / Endpointswix-cli-backend-api
Site Widgetwix-cli-site-widget
Site Pluginwix-cli-site-plugin
Embedded Scriptwix-cli-embedded-script

Wait for sub-agents to complete before proceeding to Step 5.

Step 5: Run Validation

⚠️ BLOCKING REQUIREMENT ⚠️

After ALL implementation sub-agents complete, you MUST run validation by invoking the wix-cli-app-validation skill.

Do NOT report completion to the user until validation passes.

If validation fails:

  1. Review the errors
  2. Spawn a new implementation sub-agent to fix the issues
  3. Run validation again
  4. Repeat until validation passes

Step 6: Report Completion

Only after validation passes, report to the user:

  • What was created
  • How to test it (preview commands)
  • Any next steps

Summary: Discovery = business domain SDK only (Wix Data, Stores, Bookings, etc.) — skip for extension SDK. Implementation = load extension skill; invoke wds-docs FIRST when using WDS (for correct imports). Validation = wix-cli-app-validation.

Cost Optimization

  • Skip discovery when APIs are already in reference files or no external APIs needed.
  • maxResults: 5 for all MCP SDK searches when discovery is needed.
  • Discovery: focused business domain API searches only; use ReadFullDocsArticle only when needed.
  • Never discover extension SDK — it's already in skill reference files.
  • Implementation: pass only relevant SDK context (if any); invoke wds-docs first when using WDS (prevents import errors).
  • Parallelize independent sub-agents; reuse discovery when modifying existing extensions.
  • Targets: discovery output 500-1000 tokens; implementation prompt minimal; each search under 2000-3000 tokens.

Documentation

For detailed documentation on all extension types, see references/DOCUMENTATION.md.