with one click
nats
Read and publish clan events on the NATS bus with the `nats` CLI
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Read and publish clan events on the NATS bus with the `nats` CLI
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | nats |
| description | Read and publish clan events on the NATS bus with the `nats` CLI |
You can read from and publish to the clan's NATS message bus with the nats
CLI (already on your PATH). NATS_URL and NATS_NKEY are preset in your
environment, so commands need no connection flags.
The broker enforces a per-persona ACL: subscribing or publishing to any subject outside your grant is rejected. Ask the broker what your grant is:
nats req '$SYS.REQ.USER.INFO' '' --raw
The JSON reply's data.permissions lists your subjects: publish.allow /
subscribe.allow are what you may use; publish.deny / subscribe.deny
override them. Subjects may contain wildcards (* = one token, > = the rest).
Core NATS keeps no history — you only receive messages published after you
subscribe, so always bound the read with --count and/or --wait:
# the next single message on one of your readable subjects
nats sub --count 1 "<subject>"
# up to 5 messages, or give up after 30s of silence
nats sub --count 5 --wait 30s "<subject>"
nats pub "<subject>" '{"example":"compact single-line JSON"}'
Use compact single-line JSON payloads.
nats request "<subject>" '{"q":"..."}' --timeout=5s