Daniel Marcovici

The Codebase as a Knowledge Source

Product craftAI for PMs

There's a module in Robotmaster product that has lots of hidden features.

Context menus, keyboard shortcuts, hidden controls — features that exist, work, but aren't easily discoverable or thoroughly documented. Every time someone needs to understand it, the answer tends to live in someone's head.

Last week we wanted to create a tutorial on it. The usual path: set up a call with the developer of the feature, extract his know-how, take notes, convert into a user-facing doc. This would have taken a couple of days, a few meetings, and the involvement of several team members.

In April I wrote about code as a source of truth — how AI removed the last barrier between domain knowledge and what's actually in the codebase. So the natural thought: why not extract the documentation from the same place?

I cloned the repo, launched GitHub Copilot, structured the context — what the feature does, a rough workflow, a couple of screenshots to locate it — and asked it to map everything. It scanned the codebase and produced a full reference document. Context menus and shortcuts, all properly documented.

Then I asked Copilot to draft user-facing tutorials. It scanned the UI, asked a few clarifying questions on the intended audience, and delivered a thorough step-by-step tutorial.

About 30 minutes. The names matched the UI strings exactly — because it read them from the source.

Documentation has always been an extraction problem, not a writing problem. The knowledge lives somewhere — in the code, in someone's head — and the work is getting it out in a form others can use.

The codebase is always more current than the person you'd call.