Quick Answer
A knowledge transfer plan for a leaving developer lists every part of the code only they know, names a new owner for each part, and checks that the new owner understands it before the last day. Start the day notice is given: map what they own, hand over access, pair on real changes with roles swapped, write down what lives in one head, and finish with the new owner explaining each part back.
Why Code Knowledge Walks Out the Door
Most of what a developer knows about your app is not written anywhere. Why the deploy script has that one odd step. Which webhook retries and which does not. What the nightly job cleans up. While they are on the team, nobody notices. Once they leave, the first bug in that part waits for someone to learn it from scratch.
Every part that only one person knows has a bus factor of 1. A resignation turns that from a risk into a date.
Step 1: Map What Only They Know
Start with the code itself. Git shows who wrote each folder:
# Authors of a folder, by number of commits
git shortlog -sn HEAD -- src/billing
# Who changed it last, and when
git log -1 --format="%an %ad" --date=short -- src/billing
Keep the HEAD in the first command: without a revision, git shortlog reads from standard input when it is not run in a terminal, such as in a script, and summarizes that input instead of your repository. Folders where the leaving developer is the only or main author are your list. Then ask them one question: what would break, or wait for you, if you were gone tomorrow? Their answer usually adds things git cannot show: cron jobs, a manual step in a release, a vendor account only they log in to.
Step 2: Name a New Owner for Each Part
Every item on the list gets one new owner, not "the team". Put it in a table the whole team can see. This is the whole knowledge transfer template:
| Part | New owner | Access handed over | Written down | Explained back |
|---|---|---|---|---|
| Payments and webhooks | Priya | Yes | Runbook | Not yet |
| Deploy script | Sam | Yes | README section | Yes |
| Nightly cleanup job | Sam | No | Not yet | Not yet |
The last column is the one that matters. A part is handed over when the new owner can explain it, not when a meeting happened.
Step 3: Hand Over Access, Not Only Knowledge
Knowing how the deploy works does not help if only one person can run it. Before the last day, check that the new owners can deploy, reach the cloud and DNS accounts, rotate every key and password the leaving developer could read, and get the alerts they used to get. Then remove the leaving developer's access on their last day.
Step 4: Pair on Real Changes, Roles Swapped
Reading code with someone helps. Changing it helps more. For each part on the list, pick a small real task, a bug or a small feature, and let the new owner write it while the leaving developer reviews. The questions that come up while changing code are the ones a document would not have answered.
Step 5: Write Down What Lives in One Head
Keep it short, close to the code, and focused on the why:
- A one-page
ARCHITECTURE.md: the main parts and how a request moves through them. - A runbook for anything done by hand: releases, restores, key rotation.
- Short notes on decisions that look odd in the code: why the retry waits, why that table is never deleted from.
A handover document nobody opens again is not the goal. The goal is that the next person who asks "why is it like this?" finds an answer next to the code.
Step 6: Check Understanding Before They Go
Ask the new owner to explain each part back in a few sentences: what it does, where it starts, what breaks if it fails. Then ask specific questions about the code. Which function checks a payment? Where does the webhook retry? Which part has no tests? Every question they cannot answer is a gap you still have time to close.
Knowledge Transfer Checklist
Copy this into the handover ticket and tick each line before the last day:
- Every folder, job and manual step only the leaving developer knows, listed from git and from their own answer.
- One named new owner for each item.
- Deploy, cloud, DNS and alert access handed over and tested by the new owner.
- Every key and password the leaving developer could read rotated.
- One real change per item, written by the new owner and reviewed by the leaving developer.
ARCHITECTURE.md, runbooks and decision notes written or updated.- Each item explained back by its new owner.
- The leaving developer's access removed on the last day.
How Know Your Code Helps
VibeDoctor Know Your Code makes those questions for you. Every code scan builds a map of your code, and Know Your Code turns it into short questions about your project: its functions, findings and design.
- Each question shows three answers, one of them right, and a Show where to look button that shows where to look in your code.
- The new owner can pick the module they are taking over, once it has questions, so they answer that part first.
- The project owner sees Who knows what: each area that has questions, against every teammate, and "Nobody knows yet" where no one does. Check it before the last day.
Free accounts get a first set of questions. Paid plans bring more, and let you invite your team.
To try VibeDoctor from Claude Code or Codex, paste this into the agent:
connect to vibedoctor using https://vibedoctor.io/mcp/start
Not a developer? Connect your GitHub repository on vibedoctor.io for a free scan.
FAQ
What is a knowledge transfer plan?
A list of what one person knows that others need, who takes over each part, and how you check the handover worked. For a developer, it covers code, access and the manual steps nobody wrote down.
When should knowledge transfer start?
The day notice is given. Pairing on real changes takes time, and the last week is usually full of goodbyes and open tasks.
What should a developer handover document include?
The parts they own and the new owner of each, the access to hand over, runbooks for manual tasks, and short notes on decisions that look odd in the code.
How do you know knowledge transfer worked?
The new owner can explain each part back and answer specific questions about the code without the leaving developer in the room. A meeting held is not proof; an answer given is.
How do you stop this happening with the next developer?
Do not wait for a resignation. Rotate who changes each part, review each other's code, and keep checking which areas only one person knows. The same habits make developer onboarding faster when someone joins.