🧪 Skills
Nostr Nak
--- name: nostr-nak description: General purpose skill for using the Nostr Army Knife (nak) CLI tool with PTY support. --- # nostr-nak General purpose skill for using the Nostr Army Knife (nak) CLI t
v1.0.2
Description
name: nostr-nak description: General purpose skill for using the Nostr Army Knife (nak) CLI tool with PTY support.
nostr-nak
General purpose skill for using the Nostr Army Knife (nak) CLI tool.
Critical Technical Note (PTY Requirement)
nak hangs in non-interactive environments due to stdout buffering.
Always wrap nak commands in script to force a pseudo-TTY:
script -q -c "nak req ..." /dev/null | cat
Relay Logic
By default, use discovery relays if no relay is specified:
wss://relay.damus.iowss://relay.primal.netwss://relay.nostr.band
If the user specifies a relay, override these defaults.
Identity Handling
- Querying: Use
npub...or hex pubkey with the-aflag. - Posting: Use
nsec...or hex private key with the--secflag.
Usage Examples
Fetch last 5 notes:
script -q -c "nak req -k 1 -a <npub> <relays> -l 5" /dev/null | cat
Reviews (0)
Sign in to write a review.
No reviews yet. Be the first to review!
Comments (0)
No comments yet. Be the first to share your thoughts!