Reimagining the documentation experience
- Overview
- From developer experience to agent experience
- Problems with product skills
- Roles for tech writers with product skills
- Mining users' AI chat sessions: gaps and forensics
- Reimagining the documentation experience
Lesson 6 of 6
Tech writers should also play a role in reimagining documentation experiences. Remember that skills are just pointers to the documentation. The documentation is doing the bulk of the work for the skill. The skill is just like a rudder on a boat, guiding the agent to the right section of the documentation.
I’ll admit up front that this topic drifts beyond product skills proper — but the drift is the point. If the skill is just the rudder, then everything else the agent experience demands of us happens in the boat: the documentation the skill routes to. A perfectly curated skill pointing at scattered, untested, human-only documentation doesn’t accomplish much. So the question this topic takes up is the one product skills leave you holding: once your docs have an agent audience, and a skill routing that audience through them, what should the docs themselves become? Each deliverable below is something a product skill can route to, generate, or verify — new destinations for the rudder to steer toward.
Currently, most tech writers are treading water in place, generating the same documentation they’ve always created. They might be doing it faster or in a more automated way, especially if their teams have shrunk and they’re doing the work of 2 or 3 writers now.
However, tech writers need to go beyond just producing the same documentation experience as before the emergence of AI. Instead, we need to reimagine the possibilities of documentation. For example, tech writers might create new deliverables not previously done. Here are a few examples.
API tree diagrams
Browsing the reference documentation for APIs can be tedious and hard to follow, especially if the documentation is scattered across many different pages, or if the documentation consists of a series of stacked tables, with one object defined in the next table down, and its objects defined in the next table down, and so on.
API tree diagrams show all objects in the API at a glance. The diagrams link to each documentation page to provide more detail as well. Overall, the API diagrams provide a quick reference guide to both users and agents. They provide a holistic view of the API and its capabilities while also providing jumping-off points to dive more deeply into each element.
These tree diagrams can be generated through scripts and other tools, but large API diagrams are beyond the capabilities of human creation and maintenance without agent assistance. I’ve explored this technique before. See Task decomposition and complex tree diagrams in the prompt engineering course, and a worked tree diagram example on my blog.
Since then, I’ve made API diagrams a standard deliverable for every API I support. I have roughly 20 of them on my doc site now, and I update them with every API change. That wouldn’t have been sustainable without AI. Even with AI, the diagrams got large enough to cause trouble: some contain 350+ elements in a complex hierarchical structure, and the AI frequently botched them or introduced errors that were tedious to correct and hard to spot. I eventually moved to some insanely complex Python scripts that regenerate them more predictably.
Even with that overhead, the diagrams have elevated my documentation in a noticeable way. Partners and PMs love them. I use them myself every time I want to quickly identify the reference content for a particular API element.
Tree diagrams also make natural routing targets for a product skill. Rather than describing your API’s surface inside the skill itself, where the description will drift out of date, the skill can point the agent at the diagram. That gives the agent a consolidated, holistic map, which is exactly the kind of coherent context agents prefer over fragmented pages.
Reference content editing
Another ripe area for technical writers to reimagine is their involvement in reference content. All too often, tech writers abdicate their role in reference content to engineers, who do only a marginal job with the comments there. Technical writers can make sure that the reference content reflects the conceptual content and vice versa. Writers can make style edits to align with source code conventions, not only fixing cosmetic errors related to grammar, spelling, terminology, and links, but also clarifying confusing concepts and making sure the conceptual documentation harmonizes with the reference documentation.
Tech writers should play key roles in setting up, configuring, and generating reference documentation for the APIs they support. The setup and configuration can be simplified through skills that automate much of the complexity of this setup. This will put tech writers in a much more immersive and hands-on role with reference docs. (The course project in the first chapter, a Javadoc editing skill, is exactly this kind of involvement.)
I generate the reference docs for all the APIs I support, and it’s been a game changer for me. When I meet tech writers who don’t generate their own reference docs, I find it odd. If someone else runs the generation, the reference content starts to feel like someone else’s deliverable. It also makes it much harder to get your hands dirty with edits in the source files.
Tech writers who only accept the output from engineers are at a major disadvantage when it comes to harmonizing the content, making changes, and feeling a sense of ownership over the reference material. Think about it: the reference content gets mixed in with your other docs and becomes a flagship artifact on your doc portal. That’s something you want more control over.
Automating release notes
Another role writers can play to reimagine the documentation experience is to automate release notes. Release notes are where changes are introduced into the documentation corpus. Release cycles are only speeding up, with active products having biweekly or weekly releases. Each release requires tech writers to scan the docs and identify how the change affects other pages. This corpus scanning is too tedious for writers to do regularly, but they can develop skills that instruct agents on the right process to examine all pages that might need to be updated.
Tech writers can also use file diffs between releases to identify all the changes that are being made with each release, without having to track down engineers and interview them about the changes being released. When tech writers generate the API documentation, they can easily see diffs in the API documentation that reflect changes in the code. It’s extremely unlikely to make changes to an API without affecting how the generated reference documentation appears. Those diffs provide a map for all the changes. (I walk through this diff-based technique in Using file diffs for better release notes in reference docs in the prompt engineering course.)
By keeping close watch on the file diffs between releases, writers can prevent documentation drift and stale or outdated documentation. This kind of granularity in identifying and tracking all changes from week to week isn’t practical without AI tools to do the heavy lifting.
This is also where the two chapters of this course meet. The corpus-scanning and diff-analysis skills described here are internal authoring skills of the kind covered in the first chapter, and they maintain the very documentation your product skill routes agents to. Internal skills keep the docs current, the product skill keeps agents pointed at them, and drift prevention protects both from the second source of truth problem.
Documentation testing
Another way tech writers might reimagine documentation is by incorporating documentation testing. Consider that documentation consists of a series of assertions. For example, documentation for an API might assert that an object contains a number of child elements. Or that a method returns certain information. Or even that by following a tutorial, you will achieve a certain end result. How do you know if each assertion is true? (This idea has a name — docs as tests — and Manny Silva has developed it into a book-length methodology in Docs as Tests & AI: A Strategy for Self-Healing Technical Documentation.)
Tech writers can construct tests for documentation to analyze the accuracy of their instructions. Usually, constructing such tests is beyond the bandwidth and capability of most tech writers, but with AI, more testing is possible. Tech writers can construct tests that can be run regularly, not only identifying problems with the API products but also within the documentation itself. If this sounds familiar, it should. It’s the same with-versus-without evaluation machinery from Problems with product skills, pointed at the documentation instead of the skill. A team that builds eval infrastructure for its product skills has already built most of what documentation testing needs.
Writers can also develop personas that embody specific types of users (for example, Windows users versus Linux users, or users on v1 versus v2 of your platform) and test the documentation against that user variant. The automated tests provide a way to view and analyze your documentation with a different, unfamiliar perspective.
Cross-product comparisons
Another way tech writers can reimagine documentation is by providing more high-level cross-product comparisons. Have you ever gone to a documentation portal and seen 30 to 50+ different APIs and SDKs, with little explanation about when and why you would use them, or how they might be used together or in particular workflows? The reason is usually that tech writers have specific products they support, and tend to draw a line in the sand around those products.
For example, one writer might document ACME API variant A for a specific industry and use case, and another writer might document ACME API variant B for a different industry and use case, and there is likely no information comparing and contrasting the two variants, presumably because of the walled audiences.
Using AI tools, you can easily take massive documentation sets and compare and contrast them against each other. Then you can present high-level comparison charts to users as they navigate and decide on which products they need.
Cross-product comparisons also fill a hole that product skills expose. If your company publishes a skill per product, which is the dominant pattern, something still has to help an agent choose which product’s skill to reach for. A portfolio-level comparison is precisely the content a hub skill needs to route against, and today it mostly doesn’t exist. Without it, agents inherit the same which-of-these-50-APIs confusion your human users have always had. The difference is that agents will confidently pick one anyway.
Wrapping up
Product skills are a small artifact — a rudder, not the boat. But owning them pulls tech writers into the larger currents this chapter has covered: eval loops, chat log analysis, forensics, and reimagined deliverables. The writers who get involved in these areas won’t just be serving a new machine audience; they’ll be defining what documentation becomes next.
This concludes the Product skills chapter. If you haven’t worked through the first chapter on building your own agent skills, start there.
About Tom Johnson
I'm an API technical writer based in the Seattle area. On this blog, I write about topics related to technical writing and communication — such as software documentation, API documentation, AI, information architecture, content strategy, writing processes, plain language, tech comm careers, and more. Check out my API documentation course if you're looking for more info about documenting APIs. Or see my posts on AI and AI course section for more on the latest in AI and tech comm.
If you're a technical writer and want to keep on top of the latest trends in the tech comm, be sure to subscribe to email updates below. You can also learn more about me or contact me. Finally, note that the opinions I express on my blog are my own points of view, not that of my employer.