Skip to main content

Rethinking Docs in the Age of AI

From Technical Writer to Context Engineer.

Updated 3 min readMarkdown
Rethinking Docs in the Age of AI

Large Language Models (LLMs) write faster—and often cleaner—first drafts than we do. When it comes to documenting software applications, the traditional bread-and-butter of technical writing, AI has fundamentally changed the baseline.

If a machine can generate clear prose in seconds, what happens to the human technical writer?

We don't disappear; we evolve. We stop being manual drafters and become librarians, editors, and Context Engineers.

Delegating the Draft, Owning the Truth

When we delegate initial drafting to AI, our primary responsibility shifts to reviewing, organizing, and governing information. We become the guardians of accuracy, conciseness, and structural integrity.

Crucially, we must continue creating documentation designed for humans. Because LLMs are trained on human-readable formats, writing clearly for people simultaneously optimizes the context for AI agents. High-signal, low-noise documentation serves both audiences equally well.

To make this human-AI collaboration scalable, the documentation workflow needs a few non-negotiable pillars:

1. Context as Code (Git-Backed Docs)

For AI to reliably read, update, and reason over your product knowledge, documentation cannot live in siloed wikis or locked proprietary databases. Context must be treated as code. Storing documentation directly in Git alongside the codebase allows version control, automated testing, pull-request reviews, and seamless ingestion by AI coding assistants.

2. Choosing the Right Format: Prose vs. Strict Specs

Markdown has become the lingua franca of modern documentation and AI context. While Markdown is great for conceptual guides and general prose, it isn't always the best tool for the job.

When expressing strict behavioral specifications or edge-case logic, unstructured prose leaves too much room for ambiguity—for both human developers and LLMs. For strict idea expression, we should lean into structured, deterministic formats like Gherkin (Given / When / Then). Pairing narrative Markdown with rigid specification formats gives AI unambiguous guardrails.

3. Leveraging Agent "Skills"

As AI tooling matures, we shouldn't reinvent the wheel for every documentation workflow. A growing ecosystem of pre-built Skills (reusable prompt instructions, linters, and agent workflows) already exists to automate routine tasks—from generating API references from OpenAPI specs to checking tone and clarity. A modern Context Engineer curates and chains these Skills together rather than manually prompting from scratch.

4. Architectural Rigor: Style Guides and Frameworks

If you let an LLM generate documentation without constraints, you will quickly drown in inconsistent, bloated content. Consistency is what makes a knowledge base trustworthy and machine-parseable. To keep both AI outputs and human edits aligned, anchor your repository to established standards:

  • Information Architecture: Adopt a proven framework like Diátaxis (splitting content cleanly into Tutorials, How-to guides, Reference, and Explanation) so every piece of context has a clear purpose and predictable structure.
  • Style & Voice: Enforce a strict editorial standard, such as the Google Developer Documentation Style Guide, ensuring uniform terminology, active voice, and scannable formatting across every file.

The New Mandate

The era of spending hours wrestling with blank pages to describe a UI workflow is over. The technical writer of today is an architect of knowledge systems. By combining Git-backed workflows, structured specification formats, reusable AI Skills, and rigorous style frameworks, we ensure that the context powering both our users and our AI tools remains accurate, consistent, and deeply useful.

OOlivia11h ago

The docs-as-code point really landed for me — keeping docs in Git next to the code is the one change that's actually kept ours current. Pairing Markdown with Gherkin specs as guardrails for AI-written prose is a neat idea I hadn't considered.

Keeping the docs close to your code is very powerful, especially when AI can read your code and update the docs accordingly. I have my doubts about Gherkin; I believe in a stricter structure than Markdown, but AI is really good at understanding, so I would keep it practical and not enforce a rigid structure.