stream-backend

/stream-backend moves a server-side integration from a legacy hand-written Stream SDK to the generated OpenAPI SDK, in Go, Python, Ruby, PHP, Java or .NET. It reads your codebase, maps every legacy call onto the new API, and is explicit about what changed underneath.

Note:

This is an assisted migration, not an automatic one. Some of the work is mechanical, some needs a judgment about intent, and some has no equivalent at all; the skill separates those three so you know which is which, and a human reviews the diff before it ships. It runs locally against your checkout: no Stream account, credentials or CLI onboarding are involved.

Languages it covers

Language From (legacy) To (generated)
Go stream-chat-go getstream-go
Python stream-chat getstream
Ruby stream-chat-ruby getstream-ruby
PHP get-stream/stream-chat getstream/getstream-php
Java stream-chat-java stream-sdk-java
.NET stream-chat-net getstream-net

Every language runs the same workflow against the same operation mapping, because the same endpoints back every SDK: only the spelling and the request shape change per language.

What you need

  • Your server-side project checked out locally.
  • The toolchain for its language, since the skill compiles the result and runs your tests to verify it.

The generated SDK's source is read from the installed package, or from GitHub when it isn't installed yet.

Example prompts

/stream-backend migrate stream-chat-go to getstream-go
/stream-backend move our Python backend off stream-chat
/stream-backend upgrade my Stream backend SDK, Ruby
/stream-backend which of our stream-chat-php calls change behaviour after migrating?

Behaviour stays the same

The target is the same behaviour on the new SDK: the same requests, return values, errors, logs and client configuration. A call moves to a typed generated method only where that holds. Where it doesn't, the legacy behaviour is kept at a lower layer (the SDK's raw request method, or the legacy client alongside the new one) rather than guessed at.

Every call site lands in exactly one bucket, and everything outside Safe is listed for you by file and line:

Bucket Meaning
Safe Same behaviour, different spelling.
Kept The typed call would change behaviour, so the legacy behaviour stays at a lower layer.
Changed No layer reproduces the legacy behaviour and one reading exists; the closest call is used.
Decision More than one reading exists, or the endpoint is gone. The call fails loudly, never silently.

How it works

  1. Inventory. It finds the legacy dependency and every reference to it: call sites, type references, client construction, option functions and exported constants, so nothing hides in a file nobody opened.
  2. Classify. Each call is confirmed against the generated SDK's source or the official documentation, then placed in one of the four buckets above.
  3. Plan. It shows the bucket counts and every non-Safe entry before applying anything, which is your chance to say "leave that path alone".
  4. Apply in reviewable slices. A like-for-like port, one area at a time, with no refactoring and no new comments mixed into the diff.
  5. Verify. The language's own build and type checks, then your test suite, then a behaviour diff: the legacy client and the migrated client are each driven against a local recording server, and the two recordings are compared request by request.
  6. Report. Dependency change, counts per bucket, every decision by file and line, edits outside code, failing tests, and what each check does and doesn't cover.

Which products this covers

The legacy SDKs are Chat SDKs, so a migration from one covers Chat plus chat-era moderation, because that is the entire surface there is to migrate.

Video and Feeds in the generated SDK are new capability rather than migration targets: there is no legacy code calling them. Adopting them is separate work, and /stream-docs is the quickest way into the current API. Feeds v2 to v3 is different again, and /stream-feeds-migration handles it.

What it does not do