Skip to main content

Databricks Voices content is authored and published by Databricks employees that want to share their own individual learnings and Databricks knowledge. This content supplements the official Databricks product documentation found in other sections of this site.

How we use AI on Databricks to write documentation

Peter Lu · Senior Staff Content Engineer

What does technical writing become in the age of AI? Our team didn't wait to find out. AI systems run on instructions, and writing clear instructions is our craft. This is how our team of technical writers went from artisan sentence-crafters to the managers of a documentation factory powered by AI.

Documentation has a context problem. The context is split between the people who build a feature and the people who explain it. At the pace of AI-driven development, the old way of knowledge transfer in one-on-one discussion no longer scales.

So our writers built a factory that encodes our questions, style, and knowledge into its structure, and the people with the context feed their inputs into it. Most of it runs on the Databricks products we document.

How we built the factory, one step at a time​

Encode taste in a writing agent​

A basic model writes fine, but it doesn't write like a professional. Our first job was to teach our agents to write like us. Four pieces do most of that work. Think of them like the training manual you'd receive on your first day on the job.

Book icon. The style guide and word lists

For example:

  • Write in present tense and active voice.
  • Use contractions such as "don't" and "it's" to keep the tone conversational.
  • Use sentence case for headings, and use the Oxford comma.
  • Break a long sentence into two instead of using a semicolon.
  • Don't imply that a task is easy. Avoid words such as "simply" and "just."

Compass icon. A docs project primer

Teaches an agent the docs project's site structure, technical implementation, and content types. For example:

  • Navigation: how the sidebar for each cloud organizes pages, so an agent knows where a new page goes.
  • Conventions: page frontmatter, directives for cloud-specific content, and replacement tokens for product names.
  • Content types: overview, tutorial, concept, how-to, and reference pages, and what each one is for.

Books icon. A golden corpus

A short index of best-in-class examples of our content types. We use them as few-shot examples for the agent:

  • Overviews
  • Landing pages
  • Tutorials and quickstarts
  • And so on

Pencil icon. Drafting rules and anti-AI slop filters

For example:

  • Write for the reader performing the task, not the engineer who built the feature.
  • State what a feature is or does directly, and link to related pages.
  • A humanizer removes filler phrases, such as "in order to."

These skills live as "primers" that our agent reads whenever the project loads, so it starts from the same context each time.

Now we have a simple content writer. It writes in our style, but it knows nothing about the product.

Give it the right context​

The best source of context for a new feature is the person who built it, so intake is designed for busy engineers. It accepts a context dump of information from engineers, so they can let the agent work in the background.

Then a research step digs through source code, pull requests, design documents, Slack, Jira, and Confluence to find the answers that a technical writer would ask.

All of this runs on governed infrastructure. Our agents reach Claude and GPT models from Foundation Model APIs through Unity Gateway with workspace identity, and connect to services such as GitHub, Glean, and Slack through a mix of Unity Catalog connections and Model Context Protocol (MCP) servers, including Databricks-provided MCPs.

Now we have a writing agent with good taste and access to the right context.

Verify against the code​

AI can still get things wrong, and context can change, so the agent must verify before it writes.

Our rule is that code is ground truth. The agent checks every claim against the source code and gives it one of three statuses:

  • High confidence: The code directly supports the claim.
  • Low confidence: The claim appears only in a design document or pull request description.
  • Conflicts with code: The code contradicts the claim.

The verified facts go into a docs spec, and drafting continues from that spec instead of the raw sources.

After drafting, an agent attempts to run instructions from the docs changes against a live Databricks workspace.

Add final reviews​

A verified draft can still have a broken anchor or an unanswered reader question, so we add multiple rounds of reviews.

  • Self-review: Our first line of defense. A fast gate with more than 20 checks for clear blocking issues.
  • Generative engine optimization (GEO): Edits that help people and AI assistants find and retrieve chunks on the page.
  • Full review: Gets called for significant changes. A deeper pass with more verification steps.
  • Review as a user: Gets called for changes that cross multiple pages and need to be explored the way a reader would, to find deeper issues.

We also benchmark how AI assistants answer questions our docs should cover. The results land in a Unity Catalog volume and a Delta table, so we can compare runs over time.

Now we have a writing agent that can look things up and check its own work.

Make it a composable workflow​

We could have built one long pipeline. Instead, we have multiple workflows made up of smaller composable skills for planning, drafting, review, and change management. Because workflows share building blocks, one skill fix improves them all.

Our main workflow, the docs factory, takes someone from "I shipped a feature" to an open pull request in five phases. The workflow is intelligent: it skips steps based on how complex the change is.

The docs factory workflow in five phases from left to right: 1. Intake, where an engineer dumps any context they already have, like pull requests, documents, and design specs. 2. Research and code verification, which searches the codebase, internal docs, and Slack to fill in gaps and verify claims. 3. Docs spec, a formalized specification template describing what the factory attempts to document. 4. Content generation, which uses our writing skills encoded with our voice, style, and syntax. 5. Pull request and review gates, which creates a templated pull request description.

See the full docs factory workflow

Flowchart of the docs factory in five phases. 1, Intake: tell the factory about the change, share what you already have, confirm the key facts, and size the change to plan the research. 2, Research and code verification: gather the context, check the facts against the code, rate each fact as high confidence, low confidence, or conflicts with code, and find the people to review it. 3, Docs spec: write the spec from a fixed template to produce the verified docs spec. 4, Content generation: plan the content, then draft the pages, while the factory files the docs ticket at the same time. 5, Pull request and review gates: open the pull request, then make the writing sound human, help AI assistants find the page, and describe the pull request. The result is a pull request ready for human review.

There are other workflows for specific content types, like release notes, and for specific products, but they all use the same base skills.

We manage skills like software. We have skills organized into versioned plugins. Each workflow records which plugins and skills it ran. Context-heavy steps, such as researching the codebase, run in sub-agents that return only their result.

This follows Anthropic's guidance on Agent Skills. Because ours are small and discoverable, agents can also choose which skills to load and compose their own workflows.

Call workflows from anywhere​

A workflow only helps if people can reach it, so we expose the factory through several surfaces.

  • Skills invoked by an engineer's coding agent: Engineers install our plugins, and their agents choose when to invoke our skills.
  • A Slack bot: A dedicated Slack channel lets anybody in the company suggest doc fixes. An always-on bot responds to requests and creates PRs autonomously.
  • Email and tickets: Feedback emails land and tickets get triaged on a scheduled basis.

Here's an illustration of the Slack bot fixing a report.

Mockup of the Slack desktop app with a thread from the docs-feedback channel open in the main view. Nina asks Docs bot to open a PR because the supported regions on the Analyze files in volumes with a Genie Agent page don’t match how it actually works, and attaches a docs ticket. Docs bot replies that it’s adding Asia Pacific (Tokyo) to the regions that use cross-Geo processing. Fifty minutes later, it reports that it opened a fix, links to the pull request and to docs previews for each cloud, and notes that it looped in the feature team.

Now we have an automated factory that plugs in anywhere.

Scale it with parallel sessions​

The next limit was running enough agents at the same time.

Most of our team now runs their agent work in Omnigent. Omnigent gives us:

  • One view to manage parallel tasks: An interface that lets us manage multiple parallel conversations.
  • Multiple coding agents: A supervisor agent splits a task across coding agents such as Claude Code, Codex, and Pi.
  • Cross-vendor review: A model from a different vendor reviews each change, which catches mistakes that the first model family repeats.
  • Automation scheduling: We can automate scheduled tasks like automatically updating llms.txt or generating release notes.

Here's an illustration of our Omnigent board on a typical day.

Mockup of the Omnigent project board for a Docs factory project, showing a docs team running many agent sessions at the same time. Five columns sort the sessions by status: Draft (2), Needs attention (2, including a spec waiting on review questions and a PR review that found a blocker), Working (5 running sessions, such as a consistency sweep scanning hundreds of pages), Unread (3, including December release notes drafted from merged PRs), and Done (4, including a humanize and GEO pass on an overview page). A sidebar on the left lists the team’s projects and recent sessions.

Several agent sessions on one laptop slow each other down, so we run them on Databricks Sandbox, which provides isolated serverless compute. Omnigent launches each task on its own sandbox, which stops automatically after inactivity.

Now the factory can run many tasks in parallel.

Report on it with Genie​

To improve our factory, we need observability. Skill usage is logged in a central Databricks workspace, so we can ask Genie One natural-language questions and report on the adoption and impact of our docs factory.

prompt

For example, we asked Genie One how our pull request volume has changed:

Show me how docs PR volume has grown over the past year, broken down by who’s writing them: Content Engineering, engineers and PMs, the Slack bot, and other bots.

Here's an illustration of what Genie returned.

Mockup of a Genie One chat. A user asks how docs pull request volume has grown over the past year, broken down by who’s writing them. Genie replies that volume has grown 2.9x year over year and that engineers and PMs now write 71% of docs pull requests. A stacked bar chart shows merged docs PRs per month from October 2025 to November 2026, rising from 480 to 1,249, with engineers and PMs taking a growing share and a Slack bot appearing in the last three months. Three summary cards read: 1,249 merged docs PRs in November 2026; engineer and PM share up from 30% to 71%; and 6.3x growth in engineer and PM pull requests year over year.

Improve the factory with a feedback loop​

We use pull request review comments to improve our skills. A feedback-analysis skill reads the comments on merged pull requests, traces recurring problems back to the skill that caused them, and proposes a fix. A person approves every change before it ships.

Now we have a docs factory that gets better with every review.

What our day-to-day looks like​

  • We no longer write our own pull requests. Engineers, product managers, and automated processes create them.
  • We review the pull requests that the factory and the Slack bot open.
  • We run several Omnigent sessions in parallel, each on its own sandbox.
  • We spend our time increasing quality, improving skills, adding observability and metrics, automating more pipelines, and finding ways to reduce human approval and review.

What we learned​

  • Prototype fast and start building: In the world of AI, no one really knows what's possible or what the best practices are. The best way to learn is to start building things and gather data as you go. The cost of iteration is low with AI development tools, so you don't have to be committed to every decision you make.
  • Treat context as its own entity: Figure out which person or which agent has the right context for each step and work backwards from there.
  • Make skills small, composable, and centralized: Centralize your skills so that all of your writers work with the same tools. This makes it much easier to identify what works consistently.
  • Build separately, then consolidate: It's okay for people to build things on their own. It's the fastest way to explore. But you need a consolidation phase to rein in duplicate work.
  • Adopt engineering AI tools, but make them your own: Most coding agents are built for coding, and writing is a different practice. It takes time to figure out how to adapt developer tools for writing.

The tools we use​