I kept rewriting the documentation the AI produced.
The technical facts were correct, but the drafts felt generic. The tone didn’t match ours. The examples could have belonged to any product. The explanations missed details that mattered to our users.
I was asking it to write documentation without giving it the information it needed.
What we put in the context file
We now keep a Markdown context file in the repository. Before asking an AI assistant to write, I provide that file alongside the task and relevant source material.
It covers five areas:
The product: What it does, the problems it addresses, and terminology we use to describe it.
The readers: Who they are, what they already know, and what they’re trying to accomplish.
The writing: Tone, conventions, phrases to avoid, and examples from our existing docs.
Common workflows: The tasks people use the product for, so examples reflect something recognizable.
Relevant technical context: Where the source material lives, how the repository is organized, and any constraints that affect the documentation.
The writing examples matter. “Be clear and concise” leaves a lot open to interpretation. An actual paragraph shows the level of detail, vocabulary, and tone I’m looking for.
What a more useful draft looks like
Here’s the kind of difference I want.
A generic introduction:
Welcome to Biel.ai! We’re excited to help you get started with our amazing AI chatbot platform.
A task-focused introduction:
This guide shows how to add Biel.ai to your documentation site so readers can ask questions about your product.
The second opening tells readers what they’ll do and why. It also gives me something more useful to review than a paragraph of welcome copy.
The context file supplies the background for those choices. The individual request still needs to specify the task: which guide we’re writing, what it should cover, and what sources to use.
Keep it useful as the product changes
We version the file with the code. When a draft misses the mark, I check whether the correction belongs in the shared context or only in that draft.
A recurring terminology mistake may need a rule. A weak example in one tutorial may just need rewriting. Adding every correction to the file would make it harder to use.
Where an assistant supports project instructions, the file can be connected to that mechanism. The setup depends on the tool, so check how it loads instructions rather than assuming any Markdown file will be read automatically.
A reference for the team, too
The file became useful beyond AI requests. New engineers read it to understand how we describe the product. Writers use it for consistency, and product managers refer to it when explaining features.
Writing down the context also made it available to colleagues who previously had to pick it up through conversations and review comments.



