A colleague joins, a client takes it over, or you go on holiday. Somebody who is not you now has to work on the thing, and the first question they ask is one you cannot answer, which is where the practice becomes visible to other people.
What makes handover hard here?
That the usual handover is a conversation about why things are the way they are. Somebody who built something deliberately can explain the decisions; somebody who described it can explain the intent and not the implementation, and the gap between those is where the questions land.
The handover is also the moment the project stops being yours to decide about. Somebody taking it on will make their own judgement about whether it is worth keeping, and preparing well is what makes that judgement fair rather than a reaction to being handed a mystery.
What should you prepare?
- What it does. In behaviour terms, which you can write.
- What it connects to. Services, credentials, external accounts.
- How to run it. Locally and in deployment.
- What is known to be shaky. Which is the most useful item.
- What has broken before. And what fixed it.
Recording which parts you have actually read is worth including too, since it tells the next person where the unexamined material is.
Why is the shaky list the most valuable?
Because it is the thing only you know. Somebody reading the code can work out what it does; nobody can work out that a particular part fails intermittently on large inputs unless you tell them.
Withholding that to avoid embarrassment costs the next person days.
Should you say how it was built?
Yes, plainly. Somebody who knows a project was largely generated reads it differently: they expect duplication, they check assumptions rather than trusting conventions, and they do not waste time looking for the reasoning behind an odd choice.
Letting them discover it themselves is a worse experience and damages trust more than the disclosure would have.
How do you produce documentation you cannot write?
Generate it from the code and then verify the parts you know. A description of structure and behaviour produced by reading the project is usually broadly accurate, and you can confirm the behavioural claims against what the application actually does.
Read this project and write documentation for somebody who has to maintain it: what it does, how it is arranged, what each main part is responsible for, what it depends on externally, and what looks fragile or inconsistent.
Why ask for what looks fragile?
Because that section is frequently the most accurate part of the document. Duplication, inconsistent handling and missing checks are exactly what a fresh reading finds, and they are what the next person will hit first.
What should you do before handing over?
Read the risky parts yourself, so you can answer at least the questions about what touches data and what runs unattended. Being unable to answer anything is a considerably worse position than being unable to answer most things.
What if it is a client?
The obligations are different rather than merely social. Delivering something you cannot support, without saying so, is a problem regardless of how it was built, and clients reasonably expect somebody to be able to explain what they paid for.
What if the next person wants to rewrite it?
Frequently the correct call, and worth hearing rather than defending against. A developer looking at a small generated project and proposing to rebuild it is usually making an accurate assessment of which is cheaper.
What is worth preserving in that conversation is the behaviour rather than the code. The thing you built encodes a set of decisions about what the software should do, and those were expensive to arrive at. Handing over a clear description of the behaviour, and letting the implementation go, gets you the value of both.
What is the lesson for next time?
Anything that might be handed over should not be built this way, and most things might be. The projects that stay personal are a smaller category than they appear at the start.