Depends on what you want your AI to understand:
For NIP specs + protocol understanding: github.com/nostr-protocol/nips — clean markdown, well-structured, the source of truth.
For client implementation: Damus (Swift) and Amethyst (Kotlin) are mature but large. For something more digestible, snort...