In a small software team, a lot of important knowledge lives in different places. Some is in the code, some in old chat messages, some in issue discussions, and some only in the heads of the people who built the product.
The code tells us what the software does today. It does not always tell us why a business rule exists, or what the team agreed a workflow should do. This can cause confusion when we change the product, bring someone new into the team, or ask an AI coding assistant to help.
A simple way to keep this knowledge together is a Product Knowledge Base: a set of Markdown documents in the same repository as the code. The documents explain the product from the business side and the technical side. People can read and update them, and coding agents can use them as project context.
What could it look like?
repository/
├── AGENTS.md
├── .github/
│ └── copilot-instructions.md
├── docs/
│ ├── README.md
│ ├── business/
│ │ ├── purpose-and-users.md
│ │ ├── requirements.md
│ │ ├── flows.md
│ │ ├── rules.md
│ │ └── domain.md
│ ├── technical/
│ │ ├── overview.md
│ │ ├── architecture.md
│ │ ├── data-model.md
│ │ ├── integrations.md
│ │ └── operations.md
│ └── changes/
│ ├── README.md
│ └── YYYY-MM-short-description/
│ ├── proposal.md
│ ├── technical-plan.md
│ └── verification.md
├── src/
└── tests/The docs/README.md is the starting point. It links to the other documents and says what each one is for.
The business documents describe who the product is for, what it needs to do, what rules it follows and how the main workflows work. The technical documents explain how the solution is built, how its data is organized, and how it connects to other systems.
The changes/ folder keeps a record of important changes. Each change can have a short proposal explaining the reason and business impact, a technical plan, and a verification note. It should link to the related GitLab issue and merge request. Small fixes can stay documented in GitLab without a separate folder.
I think the business documents should describe the behavior the team has agreed the product should have. The code and tests show what is implemented and checked today. If these two do not match, we should make the difference visible and decide what needs to change. The code by itself does not tell us if the business rule is still correct.
Help the agent find the right information
Putting the documents in the repository gives a coding agent a way to access them. But the agent may not read every document for every task, so it helps to make the important ones easy to find.
The docs/README.md can point to the right business and technical documents. A short AGENTS.md can tell Codex to start there. If the team uses GitHub Copilot, a repository instruction file can point it to the same documentation. When creating a task in GitLab, we can link the relevant requirement or workflow from the issue.
These steps make the documents easier to find, but they do not guarantee the agent will always use the right information. A reviewer should still check which documents were used and whether they are still accurate. We can also add a simple automated check for broken links.
How do we keep the history?
GitLab Issues can hold bug reports and requests. Merge Requests show the proposed code change and the review. Tests and the pipeline help check the result. Git keeps the history of both code and Markdown documents.
If a change affects a business rule or workflow, update the related business document with that change. If it changes the architecture, data or integrations, update the relevant technical document too. Link the issue and merge request where it helps explain the change.
A separate changes/ folder is useful for major decisions, but a small team may not need it for every task. GitLab and Git already keep much of the history. The important thing is that someone can follow the link from a business need to the change that was made.
Use the process that fits the work
The Product Knowledge Base should not depend on one AI tool. A developer can use Codex or GitHub Copilot directly for a small, clear task.
For a bigger change, or one where the requirements are not clear yet, tools like OpenSpec, Spec Kit or BMAD can help the team plan the work and review it in steps. They are optional. The main business and technical knowledge should stay in the Product Knowledge Base, so the team can keep using it even if the tools change.
Why does this matter for a small business?
In a small business, a few people often carry a lot of knowledge about how the product works. When someone is busy or away, the rest of the team may have to ask the same questions again. When a new person joins, they need a simple way to understand the product. An AI assistant has the same problem: it can only work with the information it can find.
The Product Knowledge Base gives business people, developers and AI agents a shared place to look. It does not need to describe every detail. Start with the most important rules and workflows, then update the documents when the product changes.
For me, the goal is simple: keep the important knowledge somewhere the whole team can find it, and make it easier to change the product without losing the reason behind it.
Comments
Post a Comment