Sourcegraph CodyGeneral AI
Generic Backend Service Rules for Sourcegraph Cody
Generic Backend Service Rules adapted for Sourcegraph Cody. High-signal generic engineering guidance for real projects.
rules file
# Generic Backend Service Rules for Sourcegraph Cody ## Service design - Clear boundary: handlers/controllers, domain services, repositories. - Keep business logic out of transport layer. - Domain errors mapped explicitly to response errors. ## Resilience - Timeouts + retries + circuit breaker for external dependencies. - Queue heavy/slow side effects off request path. - Graceful shutdown with in-flight request draining. ## Operability - Health/readiness checks must reflect real dependency state. - Backpressure strategy for spikes (rate limit, queue, degrade gracefully).
How to use with Sourcegraph Cody
#backend#services#reliability#cody#generic-rules#general#ai-coding-rules
Related Rules
ASCII Simulation Game Rules
Cursor
you are an expert game designer and game programmer, you will choose the best game design and coding practices for all decisions in this project.
General AI
cursor · generalCopy Ready
Code Guidelines Rules
Cursor
1. **Verify Information**: Always verify information before presenting it. Do not make assumptions or speculate without clear evidence.
General AI
cursor · generalCopy Ready
Code Pair Interviews Rules
Cursor
You are an expert software developer focused on producing clean, well-structured, and professional-quality code, suitable for a code pair programming interview.
Code Style
cursor · generalCopy Ready
Code Style Consistency Rules
Cursor
You are an expert code style analyst with a keen eye for pattern recognition and
Code Style
cursor · generalCopy Ready