// TL;DR

When the user types /doc, "documentation", or a similar word — create or update HTML documentation under E:\DOCUMENTATION. Read E:\DOCUMENTATION\readme.md first for context. Write so a developer who has never seen the project can find their way in 5 minutes.

Why the rule exists

Documentation that lives spread across three different formats (Markdown here, Confluence there, a Notion page somewhere) doesn't get maintained. When one person updates one place, the others don't know. E:\DOCUMENTATION is one canonical location. HTML is chosen because it can be opened without tooling and shared directly.

The label "junior-friendly" is forbidden: write for everyone. The level is chosen by the problem, not by an assumed audience.

Trigger words

Trigger
/doc, "documentation", "doc that up", or similar — alone, not as part of a longer message.
Read first
E:\DOCUMENTATION\readme.md
Output
HTML file(s) under E:\DOCUMENTATION\<project>\
Not
Markdown, Word, plain text. HTML.

File structure

E:\DOCUMENTATION\
  index.html                   ← landing page with cards for each project
  design-guide.md              ← shared design guide
  <project>\
    projekt-overblik.html      ← main page for each project
    [more sub-topics if needed]
  <Project> (folder).lnk       ← shortcut to project folder or solution file

What every project must have

  1. A subfolder under E:\DOCUMENTATION\
  2. A projekt-overblik.html in that subfolder
  3. A card on index.html linking to the overview
  4. A .lnk shortcut in the root pointing to the project folder or solution file

Writing style

When documentation is required without a trigger

For projects that go into production (deployed to hosting or shipped with an InnoSetup installer): ask whether further detailed documentation is needed. Production without documentation is a risk — the next agent or developer must be able to take over.

The operations registry

E:\DOCUMENTATION\projects.json is an operations registry that's read live by an admin UI. Maintain it by:

The detailed schema and contract are in E:\DOCUMENTATION\README.md. Don't break the contract — the UI breaks otherwise.


Related rules