When you notice a recurring pattern or convention in the codebase:
- •Check
.claude/conventions.md-- Does this convention already exist there? - •If not, add it -- Append a short entry describing the convention:
code
### [Category]: [Convention name] - **Pattern:** [What the convention looks like] - **Example:** [File or code reference] - **When to use:** [When this pattern applies]
Categories include: naming, file structure, error handling, testing, imports, API design, etc.
Always read .claude/conventions.md before making changes to ensure consistency with established patterns. Only document conventions that are actually present in the code -- do not invent or prescribe new ones.