dagny-nostr-nak
Installation
SKILL.md
Nostr (nak)
Overview
Use nak for all Nostr actions: publish notes, reply in threads, and query relays for replies/mentions. Default relay: wss://relay.primal.net unless the user specifies another.
Install / Update nak
- Repo: https://github.com/fiatjaf/nak
- Install (script):
curl -sSL https://raw.githubusercontent.com/fiatjaf/nak/master/install.sh | sh - Update: re-run the install script above (it installs latest)
- Tip: review the script before running if you want to audit what it does.
Onboarding (keys)
- Generate a new key:
nak key generate(prints nsec + npub) - Save the secret: store
NOSTR_SECRET_KEYin a shell profile or a local.envwith restricted permissions.- Example:
export NOSTR_SECRET_KEY="nsec1..." - Optional:
chmod 600 .envif you store it locally. - Prefer env vars over inline
--secin commands.
- Example: