skills/customware-support-widget/SKILL.md
Use this skill when adding, placing, configuring, or fixing the Customware support chat widget in the Customware React Router client-only SPA template. It covers root.tsx/root document script loading, route/layout placement, required org/project ids, bubble versus full mode, optional metadata and style options, page-operation support, and constraints for MITB-style code generation.
npx skillsauth add customware-ai/skills customware-support-widgetInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill when the Customware React Router client-only SPA template needs a Customware support chat entry point.
The widget is a third-party browser custom element. In this template, load the widget script in root.tsx or the equivalent React Router root file/component where the HTML document structure is defined, and render <customware-chat> only in the route or layout where support should appear. The widget owns its Shadow DOM UI, chat runtime, service calls, tool badges, speech input, and page-operation behavior.
For all React code examples, script loading patterns, JSX typing, bubble/full mode examples, metadata, and style options, read references/component-usage.md.
<customware-chat>.chat-bubble mode for a floating launcher/dialog.full mode for a sidebar, rail, drawer, or split-pane chat region.meta DOM property.styleOptions or style-options.For the exact React implementation patterns, use references/component-usage.md.
orgId or projectId cannot be determined. Fail the task with a clear reason that the required Customware org/project id is missing.<customware-chat>.org-id and project-id.https://app.customware.ai/support-widget/customware-chat.js once from root.tsx or the template's equivalent React Router root document shell unless an existing app-level loader already does this.meta only for optional visitor identity: email and/or name.styleOptions, or style-options for sizing. Do not use the native DOM style property as widget configuration.orgId and projectId.chat-bubble for a floating support launcher/dialog.full for an embedded rail, drawer, split pane, or fixed chat region.root.tsx or the React Router root file/component that defines the HTML document <head>, unless it already exists..d.ts file when the template does not already know <customware-chat>.<customware-chat> with org-id and project-id in the specific route or layout that needs support.meta and styleOptions through a typed React ref when needed.z-index.npm run check when available.Use references/component-usage.md for complete code examples for each mode.
orgId && projectId so it never renders with placeholders.meta; pass only optional email and name.development
Strict execution instructions for product tasks, app implementation tasks, bugfixes, verification tasks, and full-stack coding tasks. Use when Codex must work through ordered phases that start with mandatory task-workflow artifact reset before any source inspection or edit, then codebase research, implementation passes, scored gates, interactive Playwright verification, E2E coverage, and final signoff.
development
Strict execution instructions for Builder-style product tasks, app implementation tasks, bugfixes, verification tasks, and full-stack coding tasks. Use when Codex must work through ordered phases that start with mandatory task-workflow artifact reset before any source inspection or edit, then codebase research, implementation passes, scored gates, interactive Playwright verification, E2E coverage, and final signoff.
development
This skill is strict implementation instruction, not advisory reference text. The skill treats the HTML as discovery-only input, forces interactive Playwright route/state capture, then moves through scored gates for source acceptance, implementation planning, authored UI reproduction, implementation integrity, visual verification, and adversarial proof before signoff.
development
Use this skill for Customware existing-project migration tasks that move uploaded customer apps from other builders into the standard Customware stack while preserving the source product's routes, workflows, UI, UX, and styling with no intentional user-facing changes while replacing only the runtime foundation. This skill covers both `Migration build` and `Migration verify` and includes self-grading quality gates that must pass before the task can complete.