Engineering Onboarding Context

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.

How to use this resource

  1. Write the walkthrough

    Overview, mode, and stack — the orientation a new hire would get on day one.

  2. Capture the unwritten rules

    The conventions and never-assume lines that live only in people's heads.

  3. 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

FAQ

Where does this project profile go so Cursor actually uses it?

At the repo root, saved as .cursorrules (or .cursor/rules/project.mdc) — the profile's top note says so, so Cursor loads it for every request and every teammate gets the same context. It travels with the code. The project-context-builder generates the profile for OpsConsole; you commit the file, and the AI reads it before touching the code rather than inferring your conventions.

Why capture a glossary and never-assume list instead of just the tech stack?

Because the unwritten rules are the ones AI breaks first. The Glossary defines team vocabulary — Replay, Actor, DLQ — so the model speaks your language, and Never Assume pins rules that live in people's heads: "do not expose internal IDs or PII in shareable URLs" and "reference the migrations or schema file before writing a query." The Internal Tool project type keeps it pragmatic rather than enterprise-grade overkill.

Is this the same as giving the AI a role or persona?

This is project knowledge, not behavior. The AI Usage Notes draw the line: "for a task persona (role, tone, escalation rules), build a System Prompt in the System Prompt Generator," and for continuing an in-progress task in a new chat, use the Context Handoff Builder. This profile is durable project identity — what OpsConsole is, its stack, conventions — not how the AI should act or the current work state.

More resources from Project Context Builder

Resources that pair well

Related tools

Workflows that use this resource

Tip: Save time by exploring related resources and tools that integrate with this resource.