Skip to content

Migration from other brokers โ€‹

Because ConnectMQ is standard MQTT, moving to it means changing the host, credentials and client ID in your clients, plus whatever your old broker did beyond MQTT. The open-source MQTT broker migration skills for AI agents give your AI coding agent the playbook of an MQTT migration engineer for that work.

Migration skills for AI agents โ€‹

Each repository holds two skills for agents that read SKILL.md (Claude Code, Claude.ai and others) plus Python scripts. The agent audits your current setup, converts ACLs and permissions, plans the migration, bridges both brokers, moves clients in waves and rolls back if needed.

Migrating fromSkills repository
HiveMQ (CE, Enterprise, Cloud)connectmq/hivemq-migration-skills
Eclipse Mosquittoconnectmq/mosquitto-migration-skills
EMQXconnectmq/emqx-migration-skills
VerneMQconnectmq/vernemq-migration-skills
AWS IoT Coreconnectmq/aws-iot-core-migration-skills
Azure IoT Hubconnectmq/azure-iot-hub-migration-skills

All repositories are MIT licensed.

Install the skills โ€‹

Claude Code (plugin) โ€‹

text
/plugin marketplace add connectmq/hivemq-migration-skills
/plugin install hivemq-migration-skills@connectmq-hivemq-migration

Replace hivemq with mosquitto, emqx, vernemq, aws-iot-core or azure-iot-hub for the other platforms.

Claude Code (manual) โ€‹

Copy the folders in skills/ to ~/.claude/skills/ (all projects) or .claude/skills/ (one project):

bash
git clone https://github.com/connectmq/hivemq-migration-skills
cp -r hivemq-migration-skills/skills/* ~/.claude/skills/

Claude.ai โ€‹

Zip a skill folder (for example skills/hivemq-migration-planner) and upload it under Settings โ†’ Capabilities โ†’ Skills.

Other agents โ€‹

Each skill is a self-contained folder with a SKILL.md (YAML front matter and instructions), references/ and scripts/. Agents that support the Agent Skills format load the folders directly; for others, add the SKILL.md content to the agent's instructions.

The scripts need Python 3.9+ and, for the MQTT ones, pip install "paho-mqtt>=2.0".

The two skills in every repository โ€‹

SkillWhat it does
โ€ฆ-migration-plannerAudits the old broker's configuration, users and permissions, inventories clients, measures the workload against ConnectMQ plan limits, converts permissions to ACL rules, maps client IDs and writes migration/plan.md.
โ€ฆ-migration-executorVerifies your ConnectMQ broker, sets up the bridge or relay, copies retained messages, compares the message flow on both brokers, moves clients in waves with go/no-go gates, rolls back if needed and decommissions the old broker. Keeps migration/log.md.

Shared scripts in every repository:

ScriptPurpose
client_id_map.pyOld client IDs โ†’ <ISSUED_ID>_<old-id>, flags unsafe characters and collisions.
verify_connectmq.pySmoke test of your ConnectMQ broker: TLS connect, QoS 0/1/2, retained, Last Will, persistent session, ACL denies.
copy_retained.pyCopies retained messages to ConnectMQ (or exports them as JSON).
compare_streams.pySubscribes on both brokers and compares topics, counts and payloads.
relay.pyExternal two-way bridge with loop protection, for when the old broker cannot bridge itself.

How a migration runs โ€‹

  1. Plan: audit the old broker, measure the workload, map credentials, client IDs and permissions, replace broker-specific features, choose waves.
  2. Parallel run: a bridge or relay forwards device topics to ConnectMQ and commands back, so both brokers see the same traffic.
  3. Consumers first: back ends, dashboards and replacement services read from ConnectMQ while devices are still on the old broker.
  4. Devices in waves: a canary group first, then growing waves, each with a go/no-go check and a rollback plan.
  5. Cutover: remove the bridge, keep the old broker for the rollback window, then decommission it.

ConnectMQ facts the skills plan around โ€‹

  • Credentials are created in the console and come with an issued client ID; devices connect as <ISSUED_ID>_<suffix> (Client IDs).
  • Authentication is username and password over TLS: no client certificates, no broker plugins or extensions, no external auth back ends.
  • There is no broker-side rule engine, device shadow or jobs service: retained topics and small subscriber services replace them.
  • Per-topic ACL and shared subscriptions are on the Basic and Scale plans.
  • Each plan caps connections, session minutes, connection rate, message size, retained messages and session expiry. See Plans & broker limits and the pricing page.

Example prompts โ€‹

  • "Audit our current broker config and list everything that does not map to ConnectMQ."
  • "Convert our ACL file to ConnectMQ access control rules."
  • "Size the ConnectMQ plan for our workload."
  • "Set up a relay between the old broker and ConnectMQ for telemetry and commands."
  • "Run wave 2 of the migration plan and check that nothing is lost."
  • "Devices get 0x97 on publish after the switch. Why?"

Fully managed MQTT broker for connected devices.