Yeah, especially with novel things like nostr or Cashu I like to write all my business logic by hand first, then let AI either refactor or build modules around the business logic.
Giving it the business logic as input works super well, as code conveys intent so much better and the AI can learn from it.
I did this today: I built models and services, defined repository interfaces. Then the AI was able to one shot a database implementation as the intent was crystal clear, all schema were defined and the interface was there. That way I saved myself writing hundreds of lines and have adapters for databases I have never even used before