mqttx-cli
하는 일
mqttx 명령을 실행해 MQTT 메시지를 보내고 받으며, 연결을 확인하고 샘플 데이터를 시뮬레이션합니다. MQTT 메시징으로 일하는 개발자와 테스터를 위한 스킬입니다.
사용하는 경우
- ✓MQTT 토픽의 발행이나 구독을 테스트하고 싶을 때.
- ✓TLS나 로그인을 사용하는 브로커 연결이 작동하는지 확인하고 싶을 때.
- ✓빠른 MQTT 벤치마크를 실행하거나 샘플 메시지를 시뮬레이션하고 싶을 때.
스킬 링크
https://github.com/emqx/MQTTX/blob/main/skills/mqttx-cli/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“테스트 브로커의 sensors/temp 토픽을 구독하고, 메시지가 도착하는 대로 보여 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트가 mqttx 도구와 그 도움말을 확인하고, 브로커 세부 정보를 설정한 뒤 정해진 시간 제한과 함께 명령을 실행합니다. 받은 메시지나 오류를 보고합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
MQTTX CLI
Prepare
- Locate
mqttx, readmqttx --version, then inspectmqttx <command> --helpfor the task. Treat installed help as authoritative; release channels can differ. If missing or a required feature is unavailable, follow the repository's rootINSTALL.md, or its standalone installation guide when this skill has been copied elsewhere. Do not update a working CLI on every invocation. - Establish the broker hostname, port, transport (
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. - Account for
~/.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-optionsloads command-specific JSON/YAML options, with explicitly supplied CLI arguments taking precedence. See configuration and utility commands for initialization, saving and loading. - Set a finite observation deadline for connection/subscription tasks and retain a handle to each process started. Use the agent's process controller or an available OS timeout tool; a tool returning a session handle is not necessarily a deadline. Terminate and wait for owned processes at completion or timeout.
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.
Choose a workflow
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.
- Connection check: use
conn, capture diagnostics, and stop after observingConnectedor reaching the deadline. Report MQTT connection success separately from publish/subscribe permissions. - Publish: use
pubfor a single message. Prefer--file-reador--stdinfor 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. - Observe messages: use
subwith 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. - Verify delivery: start the subscriber first, wait for the expected topic's
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. - Troubleshoot: consult [troubleshooting](references/troub
자주 묻는 질문
MQTT 브로커 자체를 관리하나요?
아니요. 이 스킬은 브로커 관리가 아니라 mqttx 명령으로 MQTT를 다루는 것을 다룹니다.
MQTTX 데스크톱 앱과 함께 작동하나요?
아니요. 스킬은 데스크톱 앱을 조작하지 않는다고 말합니다.
저장된 연결 설정은 어디에 있나요?
홈 디렉터리의 mqttx-cli 폴더 아래 설정 파일에 있으며, 일회성 작업에서는 에이전트가 이를 출력하거나 덮어쓰지 않습니다.
상세 정보
작성자의 원본 설명
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.
repo: emqx/MQTTX
인기도
- GitHub 스타
- 5.1k
- 순위
- #15048
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 1.
댓글
- …
비슷한 스킬
api-connector-builder
280k에이전트가 기존 패턴을 따라 새로운 API 연결을 만들도록 합니다. 새로운 방식을 도입하지 않고 연동을 하나 더 추가할 때 씁니다.
api-design
280k에이전트가 모범 사례에 따라 REST API를 설계하도록 돕습니다. API가 통신하는 방식, 오류를 보여 주는 방식, 데이터를 정리하는 방식을 정하는 데 유용합니다.
backend-patterns
280k에이전트가 서버 쪽 아키텍처 패턴과 데이터베이스 최적화를 다루도록 돕습니다. 서버에서 실행되는 코드를 만들거나 검토할 때 유용합니다.