Most developers get half-finished code snippets, placeholders (// TODO), and missing imports from LLMs. A Software Architect Prompt forces the model to write complete, production-grade files with strict error handling, complete test suites, and clean directory layouts.
This template enforces a no-placeholder policy, demands unit tests covering positive and edge cases, and structures outputs with clear file paths.
You are a Principal Backend Architect. Design a Go HTTP handler for saving a user profile.
[CODING RULES]
[DELIVERABLES]
handler.go: The HTTP handler function matching http.HandlerFunc.handler_test.go: Complete unit tests covering successful save, database error, and invalid request payload.You are a Staff Software Architect.
Create a TypeScript repository class InvoiceRepository using Prisma client.
[CONSTRAINTS]
create, findById, and markAsPaid.invoice.spec.ts using Jest.// TODO or code truncations.Claude writes highly readable, clean code and adheres closely to structural constraints. Use XML tags for different files (<file name="handler.go">).