Sourcegraph CodyGeneral AI
Generic Software Engineering Rules for Sourcegraph Cody
Generic Software Engineering Rules adapted for Sourcegraph Cody. High-signal generic engineering guidance for real projects.
rules file
# Generic Software Engineering Rules for Sourcegraph Cody ## Core principles - Optimize for correctness first, speed second, cleverness never. - Before writing new code, scan existing patterns and follow local conventions. - Prefer small, reversible changes over broad rewrites. - Surface assumptions explicitly. If unsure, leave a clear note in code comments. ## Quality bar - No dead code, no commented-out legacy blocks, no TODO without context. - Every behavior change should include tests (unit or integration). - Keep functions focused: one responsibility, clear inputs, deterministic outputs. - Name things by domain intent, not implementation details. ## Change discipline - Keep diffs reviewable (<400 lines where possible). - Separate refactor commits from feature commits. - Include migration/rollback notes for schema or infra changes.
How to use with Sourcegraph Cody
#general#engineering#best-practices#cody#generic-rules#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