## Checking known coding pitfalls before writing code

Look up documented gotchas first, then draft new entries when you hit an undocumented bug.

When assigned a development task, search the knowledge database for documented caveats, outdated patterns, and repo-specific fixes before writing code. Apply any confirmed insights to your solution. If you encounter an undocumented gotcha or the developer corrects your code, draft a structured knowledge unit describing the problem and fix. Ask for explicit approval before publishing, sending, or deleting any entries in the shared database.

Approvals:

- Publishing entries in the shared knowledge database
- Sending entries from the shared knowledge database
- Deleting entries from the shared knowledge database

Source: BotBento use case https://botbento.com/usecases/managing-shared-programming-gotchas-across-developer-tools/ (CC BY 4.0).
