NATS

Dense NATS/JetStream reference covering streams, consumers, KV, security, clustering, and a common-mistakes table.

Door kaustavdm · kaustavdm/nats-skill

Getest · Werkt ★ 9.2/10

NATS — Dense NATS/JetStream reference covering streams, consumers, KV, security, clustering, and a common-mistakes table.

Wat het doet

A self-contained reference for building on NATS: Core NATS pub/sub, request/reply, and queue groups; JetStream streams, pull/push consumers, KV and object stores; connection/reconnect options; NKey/JWT security and subject permissions; server config, clustering, leaf nodes, and Go embedding. Three deep-dive reference files (jetstream.md, security.md, server-deployment.md) live alongside SKILL.md and cover full struct fields, decision trees, and Docker/Kubernetes/Helm configs. Triggers on any NATS/JetStream development, deployment, or messaging-protocol microservice question.

Testrapport

Asked for a durable JetStream pull-consumer snippet with proper shutdown: baseline used the well-known but wrong nc.Close() and skipped dedup/backoff config, while the skill-guided version caught that exact footgun via its own Common Mistakes table (nc.Drain(), js.Publish() with Nats-Msg-Id, Nak() on failure) -- a concrete production-correctness fix, not just restating docs.

Getest op: 2026-07-15 · Claude Code 2.x (agent harness)

Installatie

git clone https://github.com/kaustavdm/nats-skill
cd nats-skill
mkdir -p ~/.claude/skills
cp -r skills/nats ~/.claude/skills/nats

Commando's en voorbeeldprompts

  • /natsDense NATS/JetStream reference covering streams, consumers, KV, security, clustering, and a common-mistakes table.

Skills reageren op gewone verzoeken — geen commando's om te onthouden. Na installatie activeren prompts zoals deze de skill (in het Engels):

  • write a durable JetStream pull consumer with proper shutdown handling
  • set up NKey security and subject permissions for my NATS cluster
  • how do I configure a NATS KV store with leaf node clustering