200+ battle-tested AI coding prompts that actually work.
Design a microservices architecture for [SYSTEM]. Include:
- Service boundaries and responsibilities
- Communication patterns (sync vs async)
- Data ownership per service
- Failure handling and circuit breakers
- Deployment strategy
Provide a diagram in ASCII and explain trade-offs.
Perform a security audit of this [LANGUAGE] code:
[CODE]
Check for: injection vulnerabilities, auth flaws,
data exposure, misconfiguration, dependency vulns.
Rate each finding: Critical / High / Medium / Low.
Provide fixed code for each issue found.
"Refactor this function to be pure with no side effects: [CODE]"
"Write property-based tests for [FUNCTION] using [FRAMEWORK]"
"Convert this REST API to GraphQL schema with resolvers"
"Add comprehensive error handling to: [CODE]"