One-click install
npx skills add https://github.com/PlebeianApp/market --skill nostr-plebeianapp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nostr
Source: https://github.com/PlebeianApp/market/tree/main/.claude/skills/nostr
Command: npx skills add https://github.com/PlebeianApp/market --skill nostr-plebeianapp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill provides comprehensive guidance on the Nostr protocol for developers building clients and relays, covering event structures, cryptographic operations, and relay interactions to enable secure, interoperable decentralized applications.

Core Features & Use Cases

  • Complete NIPs reference and event lifecycle guidance to implement robust clients and relays.
  • Cryptographic operations and signing praxis (Schnorr on secp256k1), event ID calculation, and verification workflows.
  • WebSocket messaging patterns (EVENT/REQ/OK/EOSE) and filter query construction for efficient real-time data.
  • Relay discovery and metadata handling (NIP-11, NIP-65) for reliable multi-relay deployments.

Quick Start

Ask for a concise Nostr protocol primer or a hands-on example to implement a basic note listener and relay interaction.

Frequently Asked Questions about nostr

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a Nostr client to listen for events over WebSocket?

To build a Nostr client, you establish a WebSocket connection to a relay and send REQ messages with filters to subscribe to events, receiving EVENT messages back. The protocol uses specific messaging patterns like EVENT, REQ, OK, and EOSE for real-time data exchange.

What is the event lifecycle in the Nostr protocol?

The Nostr protocol event lifecycle includes regular, replaceable, ephemeral, and parameterized replaceable events. Each event type has specific rules for creation, signing, and relay propagation, dictating how long events persist and how updates are handled across the network.

How does Schnorr signature verification work for Nostr events?

Schnorr signature verification for Nostr events involves validating the event signature against the event ID using the secp256k1 curve. The event ID is calculated by hashing the serialized event data, ensuring cryptographic integrity and authenticating the publisher.

What are NIPs and which core NIPs do I need to implement for Nostr relay management?

NIPs (Nostr Implementation Possibilities) define protocol features like relay discovery and metadata handling. For relay management, implementing NIP-11 for relay information and NIP-65 for relay lists is essential for reliable multi-relay deployments and client interoperability.

What is the best way to manage cryptographic keys in a Nostr application?

The best way to manage Nostr keys is following safe key management practices to protect the private key used for Schnorr signing. Secure storage and handling prevent unauthorized event creation and signature forgery, maintaining application security.

How do I construct filter queries for Nostr events?

You construct Nostr filter queries by defining criteria such as event IDs, authors, kinds, and timestamps within a REQ message sent over WebSocket. This allows clients to efficiently query and subscribe to specific real-time data streams from relays.