Onboard an AI assistant to your codebase's conventions
Quando usar: First session on a new repo, or after a big refactor that changed conventions.
Pré-requisitos
- drift installed — uvx drift or install globally
Fluxo
-
Run the initial scanRun drift scan on this repo. Tell me what patterns you detected around error handling, module structure, and naming.✓ Copiado→ Concrete convention summary with examples
-
Record decisions you want preservedRecord these team decisions: we use Result<T,E> not exceptions, one controller per feature folder, snake_case for file names. Tag them 'conventions'.✓ Copiado→ Confirmation; entries queryable later
-
Verify future sessions pick it upIn a new session: what conventions does this repo follow?✓ Copiado→ Claude recites the decisions you recorded
Resultado: Every future AI session starts with your team's conventions loaded — fewer corrections, more productive chats.
Armadilhas
- Patterns are inferred from existing code, including bad code — Review the initial scan and delete any 'conventions' that are actually tech debt you're trying to escape
- Decision memory drifts from reality if you forget to update it — Treat memory entries like docs — review quarterly