Skip to content

sumsub/agent-skills / skills/sumsub-integrate-dint-standalone

sumsub-integrate-dint-standalone

Verified

Add Sumsub Device Intelligence (the Fisherman JS module) to your own web pages where there is NO Sumsub verification widget — login, signup, password reset, 2FA, checkout, or any high-value action you want fraud-screened. TRIGGER when the user asks to "add device intelligence to login / signup", "fingerprint the device on a custom page", "use Fisherman standalone / self-hosted", "ongoing monitoring of platform events", "pre-KYC device check", "detect multi-accounting at signup", or "send a financial transaction with the captured device". Covers the whole loop — behavior access token, @sumsub/fisherman init + fingerprint, confirming the event (platform event / financial transaction / create-applicant), reading results, sandbox, go-live. SKIP when the page already embeds the Sumsub WebSDK — Device Intelligence rides along inside it, use `sumsub-integrate-dint-websdk`.

FileKindSize
README.mdmarkdown4.8 KB
SKILL.mdskill md16.6 KB
examples/behavior-token.shscript2.1 KB
examples/fisherman-react.tsxother2.6 KB
examples/fisherman-vanilla.htmlother2.4 KB
examples/submit-platform-event.shscript3.7 KB
references/standalone-flow.mdmarkdown3.9 KB
scripts/preflight.shexecutablescript7.0 KB

examples/fisherman-vanilla.html

View on GitHub
<!doctype html>
<!--
  Standalone Device Intelligence on a plain login form.
  Captures the device when the user submits, then confirms the event to your
  backend. DI is best-effort: a Fisherman failure must never block login.
-->
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>Login with Device Intelligence</title>
  </head>
  <body>
    <form id="login-form">
      <input name="email" type="email" required />
      <input name="password" type="password" required />
      <button type="submit">Log in</button>
    </form>

    <script type="module">
      import { init, destroy } from 'https://esm.sh/@sumsub/fisherman'

      // 1. behavior token from your backend (signs sessionId; see behavior-token.sh)
      async function getToken() {
        const r = await fetch('/api/di/token', { method: 'POST' })
        if (!r.ok) throw new Error('token mint failed')
        // backend forwards Sumsub's response; the JWT is the `token` field, not `accessToken`
        return (await r.json()).token
      }

      let fisherman
      try {
        fisherman = await init({
          token: await getToken(),
          baseUrl: 'https://api.sumsub.com',
          accessTokenUpdateHandler: getToken, // refresh near expiry
          onError: () => destroy(),
        })
      } catch (e) {
        console.error('fisherman init failed (continuing without DI)', e)
      }

      document.getElementById('login-form').addEventListener('submit', async (ev) => {
        ev.preventDefault()
        try {
          if (fisherman?.isDeviceIntelligenceEnabled) {
            await fisherman.fingerprint({})
            // Migration path only: generate a deviceBindingId, pass it to
            // fingerprint({ deviceBindingId }), and forward it to the backend
            // so the confirm call can echo it. Default flow: omit entirely —
            // the behavior token's sessionId handles correlation.
          }
        } catch (e) {
          console.error('fingerprint failed (continuing)', e) // fail open
        }

        // 2. perform the real login
        await fetch('/api/login', {
          method: 'POST',
          headers: { 'Content-Type': 'application/json' },
          body: JSON.stringify({ /* email, password */ }),
        })

        if (fisherman) destroy() // init may have failed → fisherman undefined; don't blow up the redirect
        // redirect on success...
      })
    </script>
  </body>
</html>
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 196kUpdated Claude CodeCodexVerifiedInstall