Index of every page on this site: llms.txt
All skills
jeremylongshore avatar

/intercom-upgrade-migration

@0d57af8
Run it yourself

Upgrade the intercom-client SDK across major versions and handle Intercom API version changes safely. Use when a project is pinned to an old intercom-client release, when the v5 CommonJS API must move to the v6 TypeScript rewrite, or when detecting breaking changes in a new Intercom release before shipping. Trigger with phrases like "upgrade intercom", "intercom migration", "intercom breaking changes", "update intercom SDK", "intercom API version".

Use this Skill: https://skilld.dev/gh/jeremylongshore/tons-of-skills-marketplace/intercom-upgrade-migration

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesexamples.md

≈576 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Worked Examples

End-to-end walkthroughs composed from the operations documented in references/migration-guide.md. Each shows the trigger, the commands run, and the expected result.

Example 1: Detect the current SDK and API version

$ npm list intercom-client
my-app@1.0.0
└── intercom-client@5.4.0

$ npm view intercom-client version
6.4.0

$ curl -s -D - -o /dev/null \
    -H "Authorization: Bearer $INTERCOM_ACCESS_TOKEN" \
    https://api.intercom.io/me 2>/dev/null | grep -i intercom-version
intercom-version: 2.11

Result: the project is on v5.4.0 while v6.4.0 is available — a major upgrade crossing the TypeScript rewrite boundary, so breaking changes are expected.

Example 2: Migrate a user-creation call from v5 to v6

Starting code flagged by npx tsc --noEmit:

// Before (v5) — TS error: Property 'users' does not exist
const Intercom = require("intercom-client");
const client = new Intercom.Client({ token: process.env.INTERCOM_ACCESS_TOKEN });
await client.users.create({ email: "test@example.com" });

Migrated code:

// After (v6) — unified contacts API with explicit role
import { IntercomClient } from "intercom-client";
const client = new IntercomClient({ token: process.env.INTERCOM_ACCESS_TOKEN });
await client.contacts.create({ role: "user", email: "test@example.com" });

Result: tsc --noEmit passes for this call; the leftover users/leads references are resolved the same way using the cheat sheet.

Example 3: Full upgrade run on a branch

$ git checkout -b upgrade/intercom-client-v6
$ npm install intercom-client@latest
$ npx tsc --noEmit 2>&1 | grep "intercom"
src/inbox.ts(12,20): error TS2339: Property 'users' does not exist on type 'IntercomClient'.
src/inbox.ts(30,15): error TS2339: Property 'id' does not exist ...
# fix each per the cheat sheet, then re-run:
$ npx tsc --noEmit 2>&1 | grep "intercom"        # clean
$ npm test                                        # green
$ INTERCOM_ACCESS_TOKEN=$DEV_TOKEN npm run test:integration   # green against dev workspace
$ git add -A && git commit -m "chore: upgrade intercom-client to v6"

Result: a reviewable upgrade branch where TypeScript and the test suite both confirm the migration is complete before the PR opens.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill is safe and provides a structured, security-conscious workflow for upgrading the Intercom SDK. It correctly uses environment variables for authentication and leverages git branches for safe code migration and testing.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 0d57af8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 4 months ago
What it can do
Reads files Edits files Runs commands
version
1.6.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
argument-hint
[current-version] [target-version]
All 5 allowed tools
ReadWriteEditBash(npm:*)Bash(git:*)
Other metadata
tags
[
  "saas",
  "support",
  "messaging",
  "intercom"
]
compatibility
Designed for Claude Code

README badge

README badge for jeremylongshore/tons-of-skills-marketplace/intercom-upgrade-migration