test-driven-development
OBobra/superpowers299k近 7 天新增 2,675 个 star
Use MQTTX CLI for MQTT connections, publishing and subscriptions, MQTT 5 features, TLS and SCRAM authentication, payload codecs and schemas, benchmarks, built-in or custom data simulation, configuration, installation and troubleshooting. Use when operating or testing MQTT through the mqttx command. Does not operate MQTTX Desktop or administer a broker.
mqttx, read mqttx --version, then inspect mqttx <command> --help for the task. Treat installed help as authoritative; release channels can differ. If missing or a required feature is unavailable, follow the repository's root INSTALL.md, or its standalone installation guide when this skill has been copied elsewhere. Do not update a working CLI on every invocation.mqtt, mqtts, ws, wss), MQTT version, credentials, topic and intended operation from the user's context. Ask only for missing information that affects execution. Use the requested broker; do not substitute a public broker after a failure.~/.mqttx-cli/config, which can supply default host, port, protocol and credentials. Do not print its secrets or overwrite it for a one-off task. Explicit CLI arguments override defaults; --load-options loads command-specific JSON/YAML options, with explicitly supplied CLI arguments taking precedence. See configuration and utility commands for initialization, saving and loading.The CLI command registration in this repository (1.13.0) does not offer general --timeout, --max-messages, --json or --output jsonl flags. Do not invent them. Recheck help for other versions. --reconnect-period 0 disables reconnection; it is not an overall deadline. conn stays connected after success and sub keeps listening until stopped.
This skill covers every command registered in the repository's CLI 1.13.0, including command-specific limitations. Read only the references relevant to the task. Coverage describes how to operate available features; it does not make unsupported combinations work or guarantee every broker implements them.
| Task | Read |
|---|---|
conn, pub, sub, bounded checks and round trips | Basic workflows |
| Transport, TLS/mTLS, WebSocket headers, credentials, SCRAM | Connections and authentication |
| MQTT 3/5, QoS, retained messages, sessions, wills, request/response, subscription properties | MQTT features |
| Text/binary input, interactive line mode, files, codecs, Protobuf/Avro, random payloads | Payloads and files |
bench conn, bench pub, bench sub, simulate, ls --scenarios, custom generators | Benchmarks and simulation |
init, check, help/version, INI defaults, JSON/YAML options | Configuration and utilities |
| Exact flag availability by command and version-specific caveats | Capability map |
| Failures and diagnosis | Troubleshooting |
Read workflows for executable examples of a bounded connection check, one-message publish, bounded subscription, and end-to-end verification.
conn, capture diagnostics, and stop after observing Connected or reaching the deadline. Report MQTT connection success separately from publish/subscribe permissions.pub for a single message. Prefer --file-read or --stdin for complex payloads. Honor the requested QoS; use QoS 1 for a diagnostic round trip when unspecified. A publish success is not evidence that a subscriber or application processed the message.sub with the requested topic filters and a bounded observation window. Preserve topic, QoS and relevant payload evidence. Quote wildcard filters in the shell. Never infer that a topic does not exist from an empty observation window.Subscribed to ... confirmation, then publish a unique marker and match the exact topic and marker. Do not use a fixed sleep as proof of subscription readiness. Use distinct client IDs and stop both processes on every completion path.For binary payloads, select a reversible representation such as base64 with --format base64 when subscribing; default text decoding can lose information. --format json controls the payload format, not the CLI output format. Read the payload guide before combining formats, schema decoding and output modes.
sub --output-mode clean emits consecutive, pretty-printed JSON objects containing topic, payload and packet. This is a JSON value stream, not JSONL or a single JSON array. Use a streaming JSON parser such as jq, not one JSON.parse call over the whole session or one parse per line. The payload can itself be a string containing JSON.
In the repository's current implementation, clean mode suppresses connection/subscription readiness and some errors, and its payload output bypasses the Protobuf/Avro-decoded result. Use the default output for readiness checks, schema decoding and diagnosis. Some connection-error paths end without explicitly setting a nonzero exit code, so neither exit code 0 nor empty clean output alone proves success. Collect stdout and stderr; parsing failures and missing success evidence are inconclusive or failed checks, not success.
-P can expose passwords through process arguments; prefer an existing protected options file where practical. Shell environment expansion into -P still exposes the resulting argument. --save-options can persist credentials, so do not use it as automatic setup.Report the target (without credentials), operation, observed evidence, outcome and limitations. Distinguish connection established, subscription accepted, publish acknowledged at the chosen QoS, and the matching message actually observed. Mention timeouts and cleanup results when relevant.
OBobra/superpowers299k近 7 天新增 2,675 个 star
MAmattpocock/skills290k近 7 天新增 10,235 个 star
AFaffaan-m/ECC279k近 7 天新增 4,056 个 star
AFaffaan-m/ECC279k近 7 天新增 4,056 个 star
FIfirecrawl/firecrawl191k近 7 天新增 2,014 个 star