AI Onboarding Context for an Existing Codebase
Onboard AI to a codebase the way you'd onboard a new hire: what it is, how it's built, the rules that aren't written down, and the things never to assume.
Overview
A new engineer gets a walkthrough; AI usually gets nothing and infers the rest. This setup writes the walkthrough for OpsConsole, an internal admin tool used by ~30 staff to inspect accounts and replay failed jobs. The Internal Tool mode keeps the principles pragmatic; you record the unwritten rules (log every destructive action, no PII in shareable URLs) and the team's vocabulary (replay, DLQ, actor). The profile becomes the onboarding doc the AI reads before touching the code — so its first contribution fits the project instead of fighting it.
Workflow
-
Write the walkthrough
Overview, mode, and stack — the orientation a new hire would get on day one.
-
Capture the unwritten rules
The conventions and never-assume lines that live only in people's heads.
-
Onboard the AI once
It reads the profile before contributing, like any new team member.
Why This Works
- Internal Tool mode keeps the guidance pragmatic, not enterprise-grade overkill
- The unwritten rules are the ones AI breaks first — writing them down stops that
- A small, known audience means the profile can be specific and short
Best for
- Existing internal tools and admin panels
- Codebases with tribal knowledge
- Onboarding AI assistants to a working repo
Not for
- Explaining one function or file in depth — use the Code Explanation Prompt
- Greenfield projects with nothing built yet
Use cases
- Existing internal tools and admin panels
- Codebases with tribal knowledge
- Onboarding AI assistants to a working repo