跳到正文
TakoAPI
返回技能列表

dagny-nostr-nak

由 edwardbickerton 提供

DevOps & Cloud
433下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Manage Nostr posting and engagement via the nak CLI.

描述

该技能的功能

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.

何时使用

  • 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

示例工作流

输入

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

智能体
  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

输出

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

前置要求

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

安装

clawhub install edwardbickerton/dagny-nostr-nak

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接