- Introduced comprehensive documentation for the Nostr Development Kit (NDK) including an overview, quick reference, and troubleshooting guide. - Added detailed examples covering initialization, authentication, event publishing, querying, and user profile management. - Structured the documentation to facilitate quick lookups and deep learning, based on real-world usage patterns from the Plebeian Market application. - Created an index for examples to enhance usability and navigation. - Bumped version to 1.0.0 to reflect the addition of this new skill set.
NDK (Nostr Development Kit) Claude Skill
This skill provides comprehensive knowledge about working with the Nostr Development Kit (NDK) library.
Files
- ndk-skill.md - Complete reference documentation with patterns from production usage
- quick-reference.md - Quick lookup guide for common NDK tasks
- examples/ - Code examples extracted from the Plebeian Market codebase
Usage
When working with NDK-related code, reference these documents to:
- Understand initialization patterns
- Learn authentication flows (NIP-07, NIP-46, private keys)
- Implement event creation and publishing
- Set up subscriptions for real-time updates
- Query events with filters
- Handle users and profiles
- Integrate with TanStack Query
Key Topics Covered
- NDK Initialization & Configuration
- Authentication & Signers
- Event Creation & Publishing
- Querying Events
- Real-time Subscriptions
- User & Profile Management
- Tag Handling
- Replaceable Events
- Relay Management
- Integration with React/TanStack Query
- Error Handling & Best Practices
- Performance Optimization
All examples are based on real production code from the Plebeian Market application.