Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

dagny-nostr-nak

bởi edwardbickerton

DevOps & Cloud
433Lượt tải do clawskills.sh công bố
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Manage Nostr posting and engagement via the nak CLI.

Mô tả

Kỹ năng này làm gì

Manages Nostr activity through the nak CLI tool. Handles publishing notes, replying in threads with correct root/reply tagging, and querying relays for replies and mentions. Requires a Nostr secret key for signing and publishing events.

nak handles the low-level event signing and relay communication that would otherwise require manual JSON construction and WebSocket management.

Khi nào nên dùng

  • Post a new note to a Nostr relay
  • Reply to a thread with proper root and reply tags
  • Check who mentioned your pubkey on a relay
  • Monitor replies to a specific note
  • Tag other users by npub when publishing events

Quy trình ví dụ

ĐẦU VÀO

User asks: reply to a Nostr thread and check for any new mentions

AGENT
  1. 1

    Read NOSTR_SECRET_KEY from environment

  2. 2

    Fetch the root and reply event IDs from the thread

  3. 3

    Publish a reply event with correct root and reply e-tags using nak event

  4. 4

    Query the relay for mentions of the user's pubkey using nak req -p

ĐẦU RA

Reply published to wss://relay.primal.net and a list of recent mention events returned

Yêu cầu

  • NOSTR_SECRET_KEY environment variable (nsec private key)
  • nak CLI installed via install script from github.com/fiatjaf/nak

Cài đặt

clawhub install edwardbickerton/dagny-nostr-nak

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết