一键导入
meshcore-packet-capture
Capture MeshCore Companion packets via BLE, serial, or TCP.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Capture MeshCore Companion packets via BLE, serial, or TCP.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | meshcore-packet-capture |
| description | Capture MeshCore Companion packets via BLE, serial, or TCP. |
| license | MIT |
| compatibility | Requires Python 3.11+, a MeshCore Companion radio, and the project's runtime dependencies. |
Use this skill when operating, configuring, deploying, or troubleshooting meshcore-packet-capture, especially requests involving Companion radios, BLE/serial/TCP capture, MQTT publishing, LetsMesh, TOML configuration, Docker, systemd, launchd, or NixOS.
This project captures from MeshCore Companion radios only. Do not route repeater or RoomServer capture here; use meshcoretomqtt instead.
ble: direct address, device name, or general scan.serial: one or more serial ports; the runtime uses the first configured port.tcp: host and port, with SDK auto-reconnect enabled by default.meshcore-packet-capture --help
meshcore-packet-capture --debug
For a checkout, use python3 -m meshcore_packet_capture or python3 packet_capture.py.
Verified CLI boundary: the current parser exposes --output, --verbose, --debug, --no-mqtt, and repeatable --config. It does not expose --show-config or a dry-run flag. Run the exact installed binary with --help before documenting or using any other flag; do not invent a configuration-preview command.LOC is a placeholder, not a useful deployment identity.--no-mqtt when isolating radio connectivity. Add MQTT only after the device captures packets locally.Mutation gate: when the request is read-only or plan-only, do not present stop/start/edit/delete/restart commands as actions to perform. Describe future mutations separately, label every example as unexecuted, and require target, scope, and rollback confirmation before the first mutation.
Configuration precedence is highest to lowest:
PACKETCAPTURE_* process environment./etc/meshcore-packet-capture/config.toml, then sorted config.d/*.toml..env.local, then .env in the working/package directory.Use --config PATH more than once to load only the named TOML files in order. Later files override earlier files. TOML broker blocks merge by name; enabled brokers are flattened into sequential PACKETCAPTURE_MQTT<n>_* slots. Keep user overrides in config.d/99-user.toml.
Minimal TOML shape:
[general]
iata = "SEA"
[capture]
connection_type = "serial"
[serial]
ports = ["/dev/ttyUSB0"]
[[broker]]
name = "home"
enabled = true
server = "mqtt.example.com"
port = 1883
transport = "tcp"
[broker.auth]
method = "password"
username = "user"
password = "secret"
Read references/configuration.md for the complete option map, broker authentication, topic templates, packet filters, and precedence edge cases.
MQTT<n>_ENABLED terminates discovery, so do not leave a numbering gap.tcp and websockets; use TLS explicitly for secure transport.username and password..env, or shared Docker Compose file. Prefer a protected key file or secret injection.{IATA}, {IATA_lower}, {PUBLIC_KEY}, and {TOKEN}. Per-broker topics override global topics. RAW is not published unless explicitly configured.LOC for a LetsMesh deployment.Legacy hybrid installs are possible: a systemd or launchd unit may wrap a checkout under a user's home directory and load .env.local, without /opt or /etc TOML files. Inspect the running command, working directory, service unit, and environment/config source before choosing the modern managed-install path.
pipx install meshcore-packet-capture gives the CLI and does not install a background service./opt/meshcore-packet-capture, /etc/meshcore-packet-capture, a virtual environment, and a system service. It installs the latest published release by default; use --tag or --branch to pin.docker compose up -d; serial needs a device mapping, while BLE generally needs privileged: true and may need host networking. Linux is the most reliable container host for hardware access.services.meshcore-packet-capture and rebuild with sudo nixos-rebuild switch.Read references/deployment-and-troubleshooting.md for service commands, Docker hardware access, migration/update behavior, and bounded diagnostics.
Normal mode prints minimal packet information. --verbose adds JSON packet data; --debug adds connection, retry, packet parsing, and MQTT diagnostics. --output PATH writes packet data to a file. Captured records include device identity, timestamp, packet type, route, payload length, raw hex, SNR, RSSI, and a hash.
When troubleshooting, collect evidence in this order:
meshcore-packet-capture --debug --no-mqtt and confirm a real BLE, serial, or TCP connection.--output file.docker compose config, docker compose ps, and docker compose logs.Do not delete the install directory, state directory, or configuration during diagnosis. The uninstaller is interactive and backs up user configuration, but it still performs destructive removal only after confirmation.
Do not use this skill for MeshCore repeater or RoomServer packet capture, generic MQTT administration, or implementing changes inside the upstream repository. For code changes, use the repository's contribution workflow and verify the project tests separately.
| File | Load when |
|---|---|
references/configuration.md | Writing TOML/env configuration, MQTT topics, authentication, or packet filters |
references/deployment-and-troubleshooting.md | Installing, upgrading, running Docker/systemd/launchd/NixOS, or debugging a failed service |
references/source-index.md | Checking source coverage, version markers, or revalidating this skill against upstream |
Stop when the selected transport connects, a packet is observed locally, the intended MQTT topic receives data if MQTT is in scope, and the relevant service/container reports healthy. If hardware, credentials, or broker access is unavailable, report that exact unverified boundary instead of claiming success.
Spec-Driven Development (SDD) methodology for AI software factories — where structured specifications are the input, AI agents generate the code, and quality gates enforce correctness at each pipeline phase. Use when designing a spec → review → decompose → implement → verify pipeline that any AI coding tool (Claude Code, Cursor, Hermes Agent, Devin, OpenHands) can follow.
Query your Jellyfin media server from the terminal — recently added media, search, item details, next-up episodes, library browsing, server info, and stats. Use when the user asks about Jellyfin, media server, movies, TV shows, next episodes, or their media library.
Multi-agent structured debate system. Spawn a panel of expert agents to debate any question, with convergence-aware iteration and typed synthesis output. Run via `agent-council` CLI. Compatible with any AI agent harness that supports agentskills.io skills (Claude Code, Cursor, Hermes Agent, OpenHands, etc.).
Reference for the Agent Skills open format — the directory structure, SKILL.md frontmatter schema, naming conventions, progressive disclosure model, and best practices for creating skills. Use this whenever creating, reviewing, or editing skills in this repository to ensure they follow the standard spec.
Verify work against explicit criteria using evidence, reproducible checks, and clear pass, conditional, or blocked verdicts. Use before declaring an artifact, implementation, or claim complete.
Manage Linear teams, projects, cycles, issues, comments, workflow state, and documents from a terminal through Linear's public GraphQL API. Use when a user asks to list, search, inspect, create, update, move, or comment on Linear work, or to find Linear documents. Do not use to embed a live agent inside Linear or to build an MCP integration.