Lobsters6 min readintro
Markdown in /src
Summary
The essay argues that Markdown should be treated as source code and checked into a /src/md directory alongside the implementation it describes. Keeping intent in diffable, reviewable Markdown lets teams generate code and tests from it while preserving locality for both humans and AI agents.
- Store high‑level intent in Markdown files under /src/md alongside code.
- Treat those Markdown files as the primary specification; generate code and tests from them.
- Keep /src/md content human‑authored; avoid using agents to write it.
- Organize /src/md with README, TODO, OVERVIEW, and optional feature/data/api subfolders for locality.
Engineers using LLM‑assisted coding need a stable, reviewable source of truth, and this approach offers a practical way to capture and version intent.
5/10


