nostr-patterns

Implement Nostr protocol features with secure event querying and NIP-19 identifiers.

Updated Jan 25, 2026
One-click install
npx skills add https://github.com/feelancer21/nodestr --skill nostr-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nostr-patterns
Source: https://github.com/feelancer21/nodestr/tree/main/.claude/skills/nostr-patterns
Command: npx skills add https://github.com/feelancer21/nodestr --skill nostr-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance and patterns for securely and effectively implementing features within the Nostr decentralized social protocol.

Core Features & Use Cases

  • Nostr Security: Learn to implement robust security measures, especially author filtering, to prevent unauthorized actions and data manipulation.
  • Event Design: Understand Nostr event kinds, tag design principles, and content field best practices for interoperability and efficient querying.
  • Data Fetching & Hooks: Utilize provided hooks like useNostr and useQuery for efficient data retrieval and management.
  • NIP-19 Identifiers: Implement routing and handling for various NIP-19 bech32-encoded identifiers.
  • Use Case: Securely build a Nostr client by understanding how to filter events by author, design custom event kinds with appropriate tags, and handle user profiles and events using NIP-19 identifiers.

Quick Start

Implement Nostr protocol features, query events, publish events, handle NIP-19 identifiers, use hooks, or integrate with the Nostr relay network.

Frequently Asked Questions about nostr-patterns

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

FAQPage Schema
How do I securely query events from a Nostr relay by author?

Nostr event design relies on specific event kinds, tag design principles, and content field best practices to ensure interoperability. Following these patterns allows for efficient querying and seamless integration across the decentralized relay network.

How do I handle NIP-19 identifiers when building a decentralized application?

Nostr security models focus on strict author filtering and validation strategies to prevent unauthorized actions and data manipulation. Understanding these models is essential for implementing robust security measures in decentralized application development.

What is the best way to structure Nostr event tags for interoperability?

Nostr event design relies on specific event kinds, tag design principles, and content field best practices to ensure interoperability. Following these patterns allows for efficient querying and seamless integration across the decentralized relay network.

How do I handle NIP-19 identifiers when building a decentralized application?

Handling NIP-19 identifiers requires implementing specific routing and parsing logic for bech32-encoded data. This Skill offers best practices for managing these identifiers to correctly route and process user profiles and events.

Do I need specific hooks to fetch data from Nostr relays?

Fetching data from Nostr relays is streamlined using provided hooks like useNostr and useQuery. These hooks facilitate efficient data retrieval and management, ensuring robust integration with the decentralized network.