BosskuAI IoT Fleets
Use this skill when devices live where you cannot reach them, on networks that drop, running firmware you cannot casually redeploy. A bad update can mean a physical visit per device.
How this differs from nearby skills
bosskuai-data-pipelines: backend ingestion and transformation. This skill covers the device side, the protocol and the update path.
bosskuai-observability-sre: server-side logs, metrics and SLOs. Fleet health signals here come from devices that may be offline.
bosskuai-devops-iac: release strategy for cloud workloads. OTA firmware needs stricter staging and rollback.
bosskuai-cybersecurity-risk: general trust-boundary review; here security means device identity, signed images and revocation.
Workflow
- Model the fleet: device count, hardware revisions, connectivity type, duty cycle, power limits, physical reachability.
- Identity and provisioning: each device gets a unique, revocable identity (X.509 or secure-element keys), never a shared fleet credential. Assume the factory is untrusted; generate keys on the device.
- Telemetry: define topics scoped per device, QoS, bounded edge buffering, upload with original timestamps on reconnect, and server-side dedupe on device id plus sequence. Commands carry a time-to-live and an idempotency id.
- Budget cardinality and bandwidth for the full fleet, not a lab. Aggregate at the edge and sample deliberately.
- OTA design: signed images verified on-device, dual-bank (A/B) partitions, boot-once then confirm health, and bootloader rollback to the last known good image if no healthy check-in arrives in the watchdog window.
- Rollout: canary on real devices across hardware revisions, then widen in stages, each gated on the post-update healthy check-in rate. Halt automatically when a stage falls below target.
- Decide what runs on the device versus in the cloud (latency, bandwidth, offline operation) and how edge software updates safely.
- Observability: firmware version distribution, last-seen gap, post-OTA health, error and reboot telemetry, battery and signal where relevant.
- Plan for the long tail: old firmware stays in the field, so keep protocols backward compatible and plan migration.
Guardrails
- Never push firmware to the whole fleet at once.
- An unsigned update path is a remote code execution risk. Verify signatures on the device.
- Check the current docs for your broker, device SDK and cloud IoT service; features and limits differ.
- Do not start a real rollout, revoke certificates or change production device config without the user's explicit approval.
- Record each device's firmware version from the device's own report, not from the build you meant to ship. Test the update path from every firmware version still in the field, not only the newest.
- On a bench unit with the same hardware revision, bootloader and partition layout as the field devices, test a power cut during the download, during the write, and before the first healthy check-in. The device must come back on a working image. Never cut power on a field device without the user's explicit approval.
- A late or repeated update command must not install an older image over a newer one. Compare versions before you install. The one exception is a deliberate rollback: a separate command that the user has approved and that names a signed target image. The device still refuses any image below its anti-rollback floor, where the hardware has one.
- A device that is offline when a stage starts does not count as updated. Check that it finishes or rolls back when it comes back.
Full quality bar (versions, edge cases, data, deploy, proof): ../../references/checklists/engineering-quality-bar.md.
Output format
Fleet model: [devices, revisions, connectivity]
Identity flow: [keys, registry, revocation]
Telemetry design: [topics, QoS, buffering, dedupe, budget]
OTA plan: [image signing, partitions, stages, health gate, halt rule]
Observability: [signals, alert conditions]
Legacy plan: [old versions, compatibility window]
Adapted from agency-agents/engineering/engineering-iot-fleet-engineer.md (agency-agents, MIT).
1---2name: bosskuai-iot-fleets3description: "Use when designing or operating a fleet of IoT or edge devices: per-device identity and provisioning, MQTT telemetry for flaky networks, signed staged OTA firmware updates with rollback, and fleet observability."4metadata:5 source: https://skillmd.com/skills/wankimmy/bosskuai-iot-fleets6---78# BosskuAI IoT Fleets910Use this skill when devices live where you cannot reach them, on networks that drop, running firmware you cannot casually redeploy. A bad update can mean a physical visit per device.1112## How this differs from nearby skills1314- **`bosskuai-data-pipelines`**: backend ingestion and transformation. This skill covers the device side, the protocol and the update path.15- **`bosskuai-observability-sre`**: server-side logs, metrics and SLOs. Fleet health signals here come from devices that may be offline.16- **`bosskuai-devops-iac`**: release strategy for cloud workloads. OTA firmware needs stricter staging and rollback.17- **`bosskuai-cybersecurity-risk`**: general trust-boundary review; here security means device identity, signed images and revocation.1819## Workflow20211. Model the fleet: device count, hardware revisions, connectivity type, duty cycle, power limits, physical reachability.222. Identity and provisioning: each device gets a unique, revocable identity (X.509 or secure-element keys), never a shared fleet credential. Assume the factory is untrusted; generate keys on the device.233. Telemetry: define topics scoped per device, QoS, bounded edge buffering, upload with original timestamps on reconnect, and server-side dedupe on device id plus sequence. Commands carry a time-to-live and an idempotency id.244. Budget cardinality and bandwidth for the full fleet, not a lab. Aggregate at the edge and sample deliberately.255. OTA design: signed images verified on-device, dual-bank (A/B) partitions, boot-once then confirm health, and bootloader rollback to the last known good image if no healthy check-in arrives in the watchdog window.266. Rollout: canary on real devices across hardware revisions, then widen in stages, each gated on the post-update healthy check-in rate. Halt automatically when a stage falls below target.277. Decide what runs on the device versus in the cloud (latency, bandwidth, offline operation) and how edge software updates safely.288. Observability: firmware version distribution, last-seen gap, post-OTA health, error and reboot telemetry, battery and signal where relevant.299. Plan for the long tail: old firmware stays in the field, so keep protocols backward compatible and plan migration.3031## Guardrails3233- Never push firmware to the whole fleet at once.34- An unsigned update path is a remote code execution risk. Verify signatures on the device.35- Check the current docs for your broker, device SDK and cloud IoT service; features and limits differ.36- Do not start a real rollout, revoke certificates or change production device config without the user's explicit approval.37- Record each device's firmware version from the device's own report, not from the build you meant to ship. Test the update path from every firmware version still in the field, not only the newest.38- On a bench unit with the same hardware revision, bootloader and partition layout as the field devices, test a power cut during the download, during the write, and before the first healthy check-in. The device must come back on a working image. Never cut power on a field device without the user's explicit approval.39- A late or repeated update command must not install an older image over a newer one. Compare versions before you install. The one exception is a deliberate rollback: a separate command that the user has approved and that names a signed target image. The device still refuses any image below its anti-rollback floor, where the hardware has one.40- A device that is offline when a stage starts does not count as updated. Check that it finishes or rolls back when it comes back.4142Full quality bar (versions, edge cases, data, deploy, proof): `../../references/checklists/engineering-quality-bar.md`.4344## Output format4546```text47Fleet model: [devices, revisions, connectivity]48Identity flow: [keys, registry, revocation]49Telemetry design: [topics, QoS, buffering, dedupe, budget]50OTA plan: [image signing, partitions, stages, health gate, halt rule]51Observability: [signals, alert conditions]52Legacy plan: [old versions, compatibility window]53```5455Adapted from agency-agents/engineering/engineering-iot-fleet-engineer.md (agency-agents, MIT).