一键导入
nats
Read and publish clan events on the NATS bus with the `nats` CLI
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Read and publish clan events on the NATS bus with the `nats` CLI
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| 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