Do you use spec driven development or what? I'm currently experimenting with "writing" the app in excruciating detail in markdown (but using real function signatures and names) and having the AI fill in the details. For example: ``` ## `async fn create_relay(...) -> Response` - Serves `POST /relays/:id` - Authorizes admin and relay owner - Creates a new relay using `self.repo.create_relay` - If relay is a duplicate by subdomain, return a `422` with `code=subdomain-exists` - Return `data` is a single relay struct. Use HTTP `201`. ```

Replies (2)

Yes use a lot of spec driven development. Before that I probably talk with Claude in a chat window for a good day or two about the whole idea and get into the nitty gritty. Produce a document from that that I review before adding to a repo with CC. then spend time refining it at a technical level with CC. For the coding I let it write the code but in discrete enough blocks that I can easily review and direct
I like your approach to giving it the structure. One of the things I’ve disliked is that you’re dealing with code that doesn’t “feel” like yours. Defining the signatures must really help with the mental model