mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-10-05 19:28:25 +00:00
AI agents were hand-rolling their own hex/npub/nprofile/NIP-05 resolvers (e.g. a bespoke `resolveObserver` with its own well-known fetch and JSON parse) instead of using `resolveUserHexOrNull` in `quartz/nip05DnsIdentifiers/`, which already handles every identifier form. Add discoverable explainers so the canonical functions surface before an agent reaches for a hand-rolled version: - New reference `references/nip05-identifiers.md`: full API surface (`resolveUserHexOrNull`, `Nip05Client`, `Nip05Id`, `Nip05Parser`, `KeyInfoSet`, Namecoin `.bit`, `OkHttpNip05Fetcher`) plus the hand-rolled anti-pattern to avoid and the ✅ replacement. - SKILL.md: new "Resolving User Input to a Pubkey" section, a When-to-Use bullet, Bundled Resources + Quick Reference rows, and the identifier-resolution trigger added to the skill description. - nip-catalog.md: fix the stale NIP-05 entry (referenced a nonexistent `Nip05Verifier.kt`) to point at `UserHexResolver.kt` / `Nip05Client.kt`. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Bb8txetygxSnLXHJhPZSwH