# Send MQTT to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "mqtt",
    "name": "MQTT",
    "source": "tencent",
    "type": "skill",
    "category": "通讯协作",
    "sourceUrl": "https://clawhub.ai/ivangdavila/mqtt",
    "canonicalUrl": "https://clawhub.ai/ivangdavila/mqtt",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/mqtt",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=mqtt",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "mqtt",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T12:09:43.133Z",
      "expiresAt": "2026-05-07T12:09:43.133Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=mqtt",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=mqtt",
        "contentDisposition": "attachment; filename=\"mqtt-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "mqtt"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/mqtt"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/mqtt",
    "downloadUrl": "https://openagent3.xyz/downloads/mqtt",
    "agentUrl": "https://openagent3.xyz/skills/mqtt/agent",
    "manifestUrl": "https://openagent3.xyz/skills/mqtt/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/mqtt/agent.md"
  }
}
```
## Documentation

### Security Traps

Default Mosquitto allows anonymous connections — bots scan constantly, always configure auth
TLS mandatory for external access — credentials travel plaintext otherwise
Duplicate client IDs cause connection fights — both clients repeatedly disconnect each other
ACLs should restrict topic access — one compromised device shouldn't read all topics

### QoS Misunderstandings

Effective QoS is minimum of publisher and subscriber — broker downgrades if subscriber requests lower
QoS 1 may duplicate messages — handlers must be idempotent
QoS 2 has significant overhead — only use for commands where duplicates cause problems
QoS applies per-message — can mix within same topic

### Topic Design Pitfalls

Starting with / creates empty first level — home/temp not /home/temp
Wildcards only work in subscriptions — can't publish to home/+/temperature
# matches everything including nested — home/# gets home/a/b/c/d
Some brokers limit topic depth — check before designing deep hierarchies

### Connection Management

Clean session false preserves subscriptions — messages queue while disconnected, can surprise
Keep-alive too long = delayed dead client detection — 60s is reasonable default
Reconnection logic is client responsibility — most libraries don't auto-reconnect by default
Will message only fires on unexpected disconnect — clean disconnect doesn't trigger it

### Retained Message Traps

Retained messages persist until explicitly cleared — old data confuses new subscribers
Clear retained with empty message + retain flag — not obvious from docs
Birth/will pattern: publish "online" retained on connect, will publishes "offline"

### Mosquitto Specifics

persistence true survives restarts — without it, retained messages and subscriptions lost
max_queued_messages prevents memory exhaustion — one slow subscriber shouldn't crash broker
listener 1883 0.0.0.0 binds all interfaces — use 127.0.0.1 for local-only

### Debugging

Subscribe to # sees all traffic — never in production, leaks everything
$SYS/# exposes broker metrics — client count, bytes, subscriptions
Retained messages persist after fixing issues — explicitly clear them
mosquitto_sub -v shows topic with message — essential for debugging
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: ivangdavila
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-30T12:09:43.133Z
- Expires at: 2026-05-07T12:09:43.133Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/mqtt)
- [Send to Agent page](https://openagent3.xyz/skills/mqtt/agent)
- [JSON manifest](https://openagent3.xyz/skills/mqtt/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/mqtt/agent.md)
- [Download page](https://openagent3.xyz/downloads/mqtt)