Skip to content

fcakyon/claude-codex-settings / plugins/reusable-app-components/skills/opendesk-support

opendesk-support

Verified

This skill should be used when user asks to "add OpenDesk support chat", "migrate from Tawk", "theme a support widget", "configure an OpenDesk AI bot", "sync chatbot knowledge", or "inspect OpenDesk chats through API or MCP". Covers self-hosted deployment, signed identity, product workspaces, AI answers, knowledge automation and support operations.

references/integration.md

View on GitHub
# Widget integration

## Signed identity

Create a same-origin endpoint such as `/api/support/identity`. Authenticate it with the app's existing server session. Guests return `204`. Signed-in users return only:

```json
{"user_id":"verified-account-id","user_hash":"hex-hmac-sha256","name":"Display name","email":"verified@example.com"}
```

Compute `createHmac('sha256', widgetSecret).update(user.id).digest('hex')` on the server. The secret belongs to that widget. Never sign a caller-supplied user ID, trust an email from the browser, or expose the secret. Return `Cache-Control: private, no-store`. Authentication outages must not silently become a different signed-in identity.

The native session API supports those identity fields, not arbitrary Tawk custom attributes. Keep clinical content, answers, access tokens and private account metadata out of identity and chat context. The SDK can send the page URL, so inspect query parameters as well as the message payload.

## React adapter

Copy both assets together. Mount one owner in the app shell:

```tsx
<OpenDeskSupport
  url={support.url}
  widgetKey={support.widgetKey}
  identityUrl="/api/support/identity"
  accountKey={user?.id ?? null}
  language={locale}
  hidden={isPrivateRoute}
/>
```

Derive `accountKey`, `language` and `hidden` from the app's actual auth and router state. An app with locale-prefixed API routes must provide its current identity URL. Adapt the framework-neutral `supportWidget` function for non-React apps.

The adapter loads `${url}/widget/v1.js` with `data-key` and `data-lang`, refreshes identity on focus and opening, and serializes SDK replacement. The SDK's `identify` merges fields and does not clear an existing conversation. Account changes and logout must call `shutdown` and recreate the SDK before identifying the next account. `shutdown` revokes the visitor token. Do not replace this sequence with `identify({})`.

The current SDK has `open`, `close`, `toggle`, `locale`, `identify`, `shutdown` and `on`. It has no public hide/show API. The adapter closes the panel and hides `[data-opendesk-widget]` for private routes. Review that selector when upgrading the SDK. Language updates use the native `locale` command, including RTL languages.

## Migration checks

Remove the old loader, component imports and provider-specific identity route after their OpenDesk replacements work. Update the app's privacy disclosure for self-hosted chat and the AI processor. Verify one widget and no old-provider requests on a production build.

Exercise guest → account A → account B → logout with separate conversation histories. Test a delayed identity request during logout and unmount, hidden → visible routes, focus refresh, EN/TR/AR, narrow viewports, and provider or identity failures. Reject invalid HMAC signatures and non-allowlisted origins through the real server. A foreign-workspace visitor token may create a new empty guest session rather than return an error, so assert isolation rather than a guessed status code.

Production extraction: MuviSafe, Fast & Rational and My AI Patient migrated on 2026-11-08. The assets model their lifecycle adapter. They do not replace app-specific server authentication, route policy or production integration checks.
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 322kUpdated Claude CodeCodexVerifiedInstall
xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release.Stars: 118kUpdated Claude CodeCodexVerifiedInstall