Skip to content

integrate-supportkori-widget

An agent skill for auditing or integrating a single, theme-consistent SupportKori trigger on websites and browser extensions.

Role
Agent workflow design and automation engineering
Scope
Frontend quality, deterministic validation, and portable distribution
Status
Published npm package v0.1.0
One theme-matched support trigger on a website and in an extension panel

Problem

A support widget can load without errors and still clash with a site's design, mount more than once, violate the Content Security Policy, or fail inside a browser extension. Because the widget is part of the product interface, each of these problems reaches users directly.

Constraints

  1. C1

    Integration must use the repository's established SupportKori contract rather than inventing a generic embed.

  2. C2

    Websites and extensions have different lifecycle, CSP, permission, and iframe boundaries.

  3. C3

    Remote configuration and publication remain outside an ordinary local integration request.

Architecture

The skill first audits the host surface and any existing integration, then mounts a lifecycle-safe trigger and panel. A final pass verifies CSP, extension behavior, visual fit, and runtime behavior.

01

Discovery

Discovery identifies the framework lifecycle, existing widget code, theme tokens, CSP, and extension constraints.

02

Integration

This layer mounts one native-looking trigger and preserves the established embedded-panel contract.

03

Verification

Verification checks for duplicate mounts, cleanup, focus, responsive placement, CSP, and runtime behavior.

Decisions

D1

Integrate at the lifecycle boundary

Initialization and cleanup sit where the host framework can guarantee a single active widget instance, which is what prevents duplicate mounts.

D2

Match the host interface

Reusing local tokens and interaction patterns makes support feel like part of the product rather than an add-on with its own styling.

D3

Treat extensions as a separate environment

Manifest permissions, CSP, and extension-page behavior are validated directly, because website rules cannot be assumed to apply there.

Contribution

  • Codified SupportKori-specific discovery and integration rules.
  • Defined safeguards for lifecycle handling and duplicate mounts.
  • Documented CSP and browser-extension constraints.
  • Added portable packaging and contract tests.

Outcomes

  • Agents can audit or integrate SupportKori without replacing an existing valid setup.
  • The widget follows the host's visual and interaction conventions.
  • Extension-specific security boundaries stay explicit.
  • Verification covers both rendered behavior and integration safety.

Verified stack

  • Agent Skills
  • JavaScript
  • Node.js
  • npm
  • Content Security Policy
  • Browser Extensions
  • GitHub Actions
  • CI/CD

Working through something similar?

Share your challenge, scope, and timeline to start a focused conversation.