Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

nihao

БесплатноБез исполняемых скриптовНе проверен

Nostr identity setup and health-check CLI. Creates a complete Nostr identity (keypair, profile, relay list, lightning address, Cashu wallet) in one command…

dergigiот dergigi1 994 установки в других каталогах

Об этом скилле

nihao 👋

Nostr identity setup and health-check CLI. Single binary, non-interactive, agent-friendly.

Source: https://github.com/dergigi/nihao

Capabilities Disclosure

This skill installs a single Go binary (nihao) that:

  • Generates Nostr keypairs — random Ed25519 key generation via crypto/rand
  • Publishes events — kind 0 (profile), kind 3 (follows), kind 1 (note), kind 10002 (relay list), kind 10050 (DM relays), kind 17375 (wallet), kind 10019 (nutzap info)
  • Makes HTTP requests — NIP-05 verification, LNURL resolution, Cashu mint validation, relay NIP-11 probes, image HEAD checks
  • Connects to Nostr relays — WebSocket connections to publish and query events

It does not:

  • Store keys on disk (prints nsec to stdout; use --nsec-file to write to a file or --nsec-cmd to pipe to a command)
  • Run as a daemon or background process
  • Access local files beyond the binary itself
  • Require any accounts, API keys, or KYC

Prerequisites

  • Go 1.21+ — required to compile the binary from source. Check with go version.
    • Install: https://go.dev/dl/ or via your package manager (brew install go, apt install golang, etc.)

Install

nihao is distributed as source code compiled locally via Go's standard toolchain. No pre-built binaries are downloaded — the code is fetched from GitHub, compiled on your machine, and placed in your $GOPATH/bin.

go install github.com/dergigi/nihao@latest

Verify: nihao version

The source is fully auditable at https://github.com/dergigi/nihao.

On Install

When an agent installs this skill:

Step 1: Install Binary

go install github.com/dergigi/nihao@latest

Step 2: Create Identity

nihao --bot --name "<AGENT_NAME>" --about "<AGENT_BIO>" --nsec-file ./nsec.key --json --quiet

This generates a keypair, publishes the identity, and securely writes the nsec to ./nsec.key with 0600 permissions. Parse the JSON output to extract npub, pubkey, and relays.

⚠️ The nsec cannot be recovered if lost. Always use --nsec-file or --nsec-cmd to persist it securely.

Step 3: Report to User

Tell the user:

  • Their agent's npub
  • Their agent's lightning address (default: <npub>@npub.cash)
  • Remind them to back up the nsec

Step 4: (Optional) Follow Owner

If the user provides their npub, the agent should follow them. nihao doesn't handle follows of specific npubs — use nak or another tool for that.

Setup — Create a New Identity

nihao --bot --name "AgentName" --about "I do things" --json

What this does:

  1. Generates a Nostr keypair (or uses --sec/--stdin)
  2. Publishes profile metadata (kind 0)
  3. Publishes relay list (kind 10002) with NIP-65 read/write markers
  4. Publishes DM relay list (kind 10050) per NIP-17
  5. Publishes follow list (kind 3)
  6. Sets up a NIP-60 Cashu wallet (kind 17375 + kind 10019)
  7. Sets lightning address to <npub>@npub.cash
  8. Posts a first note with #nihao hashtag

Setup Flags

Flag Purpose
--name <name> Display name (default: "nihao-user")
--about <text> Bio
--bot Self-identify as a bot via NIP-24 ("bot": true in kind 0)
--picture <url> Profile picture URL
--banner <url> Banner image URL
--nip05 <user@domain> NIP-05 identifier
--lud16 <user@domain> Lightning address (default: [email protected])
--relays <r1,r2,...> Override default relay list
--discover Discover relays from well-connected npubs
--dm-relays <r1,r2,...> Override DM relay list (kind 10050)
--no-dm-relays Skip DM relay list publishing
--mint <url> Custom Cashu mint (repeatable)
--no-wallet Skip wallet setup
--sec, --nsec <nsec|hex> Use existing secret key
--stdin Read secret key from stdin
--nsec-file <path> Write nsec to file (0600 perms) for secure storage
--nsec-cmd <command> Pipe nsec to shell command (alias: --nsec-exec)
--json JSON output for parsing
--quiet, -q Suppress non-JSON, non-error output

Key Management

nihao never writes keys to disk by default. Secret keys are handled securely:

  • --nsec-file <path> — writes nsec to a file with 0600 permissions (recommended for automation)
  • --nsec-cmd <command> — pipes nsec to a command's stdin (e.g., a password manager), never as a CLI argument
  • --stdin — reads an existing key from stdin, avoiding shell history and process list exposure
  • --json output — includes nsec in structured output for programmatic parsing

⚠️ Avoid passing raw nsec values as CLI arguments (e.g., --sec nsec1...) in shared environments, as arguments are visible in process listings. Prefer --stdin or --nsec-cmd instead.

# Generate and save securely
nihao --bot --name "Bot" --nsec-file ./bot-nsec.key --json

# Pipe to password manager
nihao --bot --name "Bot" --nsec-cmd "pass insert -m nostr/nsec" --json

# Use exi
Полный SKILL.md на ClawHub

Установить nihao в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл nihao?

Nostr identity setup and health-check CLI. Creates a complete Nostr identity (keypair, profile, relay list, lightning address, Cashu wallet) in one command. Audits existing npub health with a 0–8 score. Single Go binary, non-interactive, agent-friendly.

Как установить скилл nihao?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл nihao запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить nihao с