DEV Community

Tosh
Tosh

Posted on

ChatGPT for Technical Writing: Prompts That Turn Your Brain Dump Into Documentation

ChatGPT for Technical Writing: Prompts That Turn Your Brain Dump Into Documentation

I hate writing documentation. I don't think I'm unusual in this. Most developers I know will spend two hours refactoring a function to make it 5% cleaner, then spend zero minutes writing down why it works the way it does.

The result is that we leave behind codebases full of tribal knowledge that lives in Slack threads, one engineer's head, or nowhere at all. New people get up to speed slowly. Old people waste time re-explaining things they already explained six months ago.

ChatGPT doesn't fix the motivation problem, but it dramatically lowers the friction. The workflow I've settled into is: dump the raw material in, describe the audience, get a draft, edit the draft. That last step still requires a human — but starting from something is 10x faster than starting from nothing.

API Documentation From Rough Comments

This is the highest-ROI use I've found. Most of us write comments that make sense to us in the moment but are useless to anyone else (or to us, six months later). ChatGPT can turn those comments into structured API documentation.

Prompt: "Here are the inline comments for a REST API endpoint that handles user authentication. Convert these into proper API documentation in the style of Stripe's docs: a clear description of what the endpoint does, the request parameters with types and whether they're required, the response format with example payloads for success and each error case, and any important notes about rate limiting or authentication. Here are the comments: [paste comments]"

Specifying a documentation style you admire (Stripe, Twilio, and Tailwind all have excellent docs) gives the model a quality bar to aim for. Without it you get generic documentation that technically contains all the information but reads like it was written by a committee.

READMEs People Actually Read

The average README contains an installation section, a vague "usage" section with one example, and a license. Nobody reads it. Here's a prompt that produces something better.

Prompt: "Write a README for this open-source npm library. The target audience is a mid-level frontend developer who has never heard of this library and is evaluating whether to add it to their project. Lead with the single most important thing this library does. Then show a complete working code example — not a toy example, but something close to real usage. Then cover installation, configuration options, and common gotchas. Tone: direct, no marketing language. Here's what the library does and how it works: [paste description and key code]"

The instruction to lead with the most important thing is doing a lot of work here. Most README intros bury the value proposition in jargon. The "no marketing language" instruction prevents output that sounds like a press release.

Changelogs From Git Log Output

Writing changelogs is something almost every team does badly. Here's how to generate a useful one from raw git history.

Prompt: "Here's the git log output for our last sprint. Convert it into a changelog in Keep a Changelog format. Group changes into Added, Changed, Fixed, and Deprecated sections. Rewrite commit messages from internal shorthand into clear descriptions that a developer using this library would understand — focus on what changed and why it matters to them, not implementation details. Ignore commits that are just merges, version bumps, or CI changes. Git log: [paste output]"

You'll still need to review it — sometimes commits are ambiguous and the model will guess wrong — but even a 70% accurate first draft cuts changelog time significantly.

Architecture Decision Records From Discussion Notes

ADRs are one of the most valuable things a team can write and one of the least written. The barrier is usually that the decision already happened in a Slack thread or a meeting, and writing it up properly feels like archaeology.

Prompt: "Here are notes from a discussion where we decided to switch from a monolithic database to read replicas for our reporting queries. Convert these into a formal Architecture Decision Record. Include: the context and problem we were solving, the options we considered and their tradeoffs, the decision we made and the reasoning, the consequences (both positive and negative), and any open questions that remain. Keep it factual — don't editorialize. Notes: [paste discussion notes]"

The "don't editorialize" instruction matters. ADRs should record what was decided and why, not advocate for whether the decision was correct.

Onboarding Documentation for New Engineers

Writing onboarding docs is time-consuming because you have to hold the new-person perspective in your head while describing something you understand deeply. ChatGPT is surprisingly good at this because you can tell it explicitly who the reader is.

Prompt: "Write a technical onboarding guide for a new backend engineer joining a team that builds a Django REST API with PostgreSQL and Celery for async jobs. The engineer has 2-3 years of experience but has never worked with Celery or our specific deployment setup on AWS ECS. Cover: how to get the local dev environment running, how our branch and PR workflow works, how to run and write tests, how Celery fits into the architecture, and the three most common mistakes new engineers make in their first month. Write it like a friendly senior engineer, not a formal manual."

The "three most common mistakes" section is the most useful part and the hardest to get right — you'll need to fill in those specifics yourself, but the prompt gets you the structure.

Release Notes for Non-Technical Stakeholders

Developers write release notes for other developers. Product managers and executives read release notes too, and they need a different version.

Prompt: "Here are the technical release notes for version 2.4 of our SaaS platform. Rewrite them as release notes for non-technical stakeholders: product managers, customer success managers, and executives. Focus on what changed for users, not how it was implemented. Lead with the most impactful user-facing change. Use plain language — no technical jargon, no references to infrastructure or code. Keep it under 300 words. Technical notes: [paste notes]"

The word limit forces prioritization. Without it you get a faithful translation of every technical change, which defeats the purpose.

The Editing Step You Can't Skip

None of these prompts produce final output. They produce first drafts that are structurally correct but may have wrong details, outdated information, or a tone that doesn't match your team's voice. The point is to get to a reviewable draft in five minutes instead of thirty.

The discipline is treating the output like a draft from a contractor, not a finished document. Read it critically, fix the specifics, publish it.


Documentation, API writing, onboarding guides, changelogs — there are prompts for all of it and more in the developer pack I put together.

Get 200 ChatGPT Prompts for Developers — $19 instant download

Top comments (0)