diff --git a/docs/AI_CHAT.md b/.claude/skills/ai-chat/SKILL.md similarity index 98% rename from docs/AI_CHAT.md rename to .claude/skills/ai-chat/SKILL.md index b7019e1..4a8f596 100644 --- a/docs/AI_CHAT.md +++ b/.claude/skills/ai-chat/SKILL.md @@ -1,4 +1,9 @@ -### AI Integration with Shakespeare API +--- +name: ai-chat +description: Build AI-powered chat interfaces, implement streaming responses, or integrate with Shakespeare AI. +--- + +# AI Integration with Shakespeare API Use the `useShakespeare` hook for AI chat completions with Nostr authentication. The API dynamically provides available models, so you should query them at runtime rather than hardcoding model names. diff --git a/docs/NOSTR_COMMENTS.md b/.claude/skills/nostr-comments/SKILL.md similarity index 91% rename from docs/NOSTR_COMMENTS.md rename to .claude/skills/nostr-comments/SKILL.md index 0e99cec..1ca9064 100644 --- a/docs/NOSTR_COMMENTS.md +++ b/.claude/skills/nostr-comments/SKILL.md @@ -1,3 +1,8 @@ +--- +name: nostr-comments +description: Implement Nostr comment systems, add discussion features to posts/articles, or build community interaction features. +--- + # Adding Nostr Comments Sections The project includes a complete commenting system using NIP-22 (kind 1111) comments that can be added to any Nostr event or URL. The `CommentsSection` component provides a full-featured commenting interface with threaded replies, user authentication, and real-time updates. diff --git a/docs/NOSTR_DIRECT_MESSAGES.md b/.claude/skills/nostr-direct-messages/SKILL.md similarity index 98% rename from docs/NOSTR_DIRECT_MESSAGES.md rename to .claude/skills/nostr-direct-messages/SKILL.md index 9513603..26f3ef5 100644 --- a/docs/NOSTR_DIRECT_MESSAGES.md +++ b/.claude/skills/nostr-direct-messages/SKILL.md @@ -1,4 +1,9 @@ -### Direct Messaging on Nostr +--- +name: nostr-direct-messages +description: Implement Nostr direct messaging features, build chat interfaces, or work with encrypted peer-to-peer communication (NIP-04 and NIP-17). +--- + +# Direct Messaging on Nostr This project includes a complete direct messaging system supporting both NIP-04 (legacy) and NIP-17 (modern, more private) encrypted messages with real-time subscriptions, optimistic updates, and a persistent cache-first local storage. diff --git a/docs/NOSTR_INFINITE_SCROLL.md b/.claude/skills/nostr-infinite-scroll/SKILL.md similarity index 90% rename from docs/NOSTR_INFINITE_SCROLL.md rename to .claude/skills/nostr-infinite-scroll/SKILL.md index becee36..c916457 100644 --- a/docs/NOSTR_INFINITE_SCROLL.md +++ b/.claude/skills/nostr-infinite-scroll/SKILL.md @@ -1,4 +1,9 @@ -### Infinite Scroll for Nostr Feeds +--- +name: nostr-infinite-scroll +description: Build feed interfaces, implement pagination for Nostr events, or create social media-style infinite scroll experiences. +--- + +# Infinite Scroll for Nostr Feeds For feed-like interfaces, implement infinite scroll using TanStack Query's `useInfiniteQuery` with Nostr's timestamp-based pagination: diff --git a/AGENTS.md b/AGENTS.md index 0407e35..9590146 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -104,18 +104,6 @@ The project uses shadcn/ui components located in `@/components/ui`. These are un These components follow a consistent pattern using React's `forwardRef` and use the `cn()` utility for class name merging. Many are built on Radix UI primitives for accessibility and customized with Tailwind CSS. -## Documentation - -The project includes a **`docs/`** directory containing specialized documentation for specific implementation tasks. You are encouraged to add new documentation files to help future development. - -- **`docs/AI_CHAT.md`**: Read when building any AI-powered chat interfaces, implementing streaming responses, or integrating with the Shakespeare API. - -- **`docs/NOSTR_COMMENTS.md`**: Read when implementing comment systems, adding discussion features to posts/articles, or building community interaction features. - -- **`docs/NOSTR_INFINITE_SCROLL.md`**: Read when building feed interfaces, implementing pagination for Nostr events, or creating social media-style infinite scroll experiences. - -- **`docs/NOSTR_DIRECT_MESSAGES.md`**: Read when implementing direct messaging features, building chat interfaces, or working with encrypted peer-to-peer communication (NIP-04 and NIP-17). - ## System Prompt Management The AI assistant's behavior and knowledge is defined by the AGENTS.md file, which serves as the system prompt. To modify the assistant's instructions or add new project-specific guidelines: