Open Sourcing the Twilio Docs AI Buddy Prompts: Empowering Technical Writers with Smarter AI Tools

December 17, 2025
Reviewed by
Farah Aly
Twilion
Paul Kamp
Twilion

At Twilio, we believe great documentation accelerates developer success, but producing it can be hard, repetitive, and time-consuming. Twilio's Docs AI Buddy, a suite of AI-powered documentation assistants, has been helping our writers, engineers, and product managers draft, refactor, and review technical documentation more efficiently.

Today, we're open-sourcing the AI prompt templates that power Docs AI Buddy so you can use them in your own workflows, extend them for your stack, and help us push the state of AI documentation tools forward. Discover the Docs AI Buddy Prompt Library.

If you've been experimenting with AI prompts for technical writing, consider this your starter kit of production-tested, model-agnostic prompt templates for docs.

What we're open-sourcing

We're releasing a curated library of AI prompt templates for documentation, designed for reliability, reproducibility, and team workflows. These are the same prompts some of us use internally at Twilio, organized and documented so you can adopt them quickly.

Tasks covered

  • Auto Edit Document: Review docs against style guides and quality rubrics for consistent quality
  • Generate Alt Text: Create concise, informative image descriptions to improve accessibility. Read more about how it works here
  • Simplify Jargon: Identify and revise complex technical language, making content more accessible
  • Generate Metadata: Produce SEO-appropriate meta descriptions and titles for documentation pages
Side-by-side comparison of original and edited text in an auto-edited document on a software interface.

OpenAI-powered design

  • Uses OpenAI’s AI models: o3 for editing documents, gpt-4o for generating metadata, simplifying jargon, and creating alt text.
  • Prompts designed to follow Twilio’s documentation standards and quality guidelines.
  • Agent-based design with role separation for consistent, reliable results
Screenshot of an interface showing a meta description and options for generating SEO metadata.

Although the web app itself is not open source, we are sharing all the prompts used within the app with the public.

Why this matters for developers

Whether you maintain SDK docs, build internal platforms, or ship public APIs, better documentation boosts adoption and reduces support load. These AI prompt templates can help you:

  • Improve technical documentation with AI while maintaining voice and accuracy
  • Automate repetitive editing tasks so you can focus on content substance
  • Create consistent examples across languages and frameworks

Inside the repository

Here's how the repo is organized:

open-source-prompts/
├── prompts/              # Four core prompt templates
│   ├── simplify-jargon.mdx
│   ├── generate-alt-text.mdx
│   ├── auto-edit-document.mdx
│   └── generate-metadata.mdx
├── schema/               # JSON schema for prompt validation
│   └── prompt.schema.json
├── .github/              # GitHub templates for issues and PRs
│   ├── ISSUE_TEMPLATE/
│   └── PULL_REQUEST_TEMPLATE.md
├── CONTRIBUTING.md       # How to contribute
├── CHANGELOG.md          # Version history
├── LICENSE               # CC-BY 4.0 license
└── README.md             # Project overview

What's in each prompt file

Each prompt template includes:

  • Instructions and variables to guide the AI
  • Evaluation notes for quality assessment
  • Recommended model parameters (temperature, max tokens, etc.)

Quickstart

You can try the templates in minutes with your preferred model.

  1. Clone the repository
  2. Browse the prompts/ folder and choose a prompt (e.g., auto-edit-document.mdx)
  3. Set your model provider credentials as environment variables
    • Integrate the prompt with your LLM provider's SDK (OpenAI, Anthropic, etc.)
    • Adapt the system instructions to your style guide and use case

Example usage

Here's a quick example using the Simplify Jargon prompt with the OpenAI SDK (you can sign up and get an OpenAI API key here):

import OpenAI from "openai";
const openai = new OpenAI({ apiKey: process.env.OPENAI_API_KEY });
const simplifyJargon = async (text) => {
  const response = await openai.chat.completions.create({
    model: "gpt-4o",
    temperature: 0.7,
    max_tokens: 500,
    messages: [
      {
        role: "system",
        content: `Your role is to assist contributors working on documentation:
- Automatically identify and highlight complex technical language.
- Process text to pinpoint jargon-heavy terms and phrases.
- Use the style guide for context only without including sections in your output.
- Provide full form for acronyms on first use.
- Widely known acronyms (e.g., REST API, HTTP, HTML, SQL) need no explanation.
- Give me the revised final version of the text with the heading "Revised Text:"
- Give me the terms that you flagged along with their explanations under the heading "Flagged Content:"`,
      },
      { role: "user", content: text },
    ],
  });
  return response.choices[0]?.message?.content;
};

How to contribute

We’d love if you tried out the Docs AI Buddy prompts – and we welcome all contributions! Whether you're fixing a typo, refining a prompt, or submitting an entirely new template, your input helps the community (and us here at Twilio).

Please see CONTRIBUTING.md for detailed contribution guidelines.

Conclusion

Strong developer docs come from good processes. By open-sourcing our Docs AI Buddy's prompt templates, we're aiming to give teams a practical foundation to improve technical documentation with AI – without starting from scratch. Use them as-is, tailor them to your voice, and help us make documentation AI tools more reliable and useful for everyone.

Try the open-source prompt templates today. Clone the repository, run a prompt on your docs, share your feedback, and contribute! Join the community, and help shape the future of AI-assisted technical writing.


Ana Maria Benites Rodriguez is a Developer Educator at Twilio. She is passionate about the intersection of docs and code—constantly looking for ideas to make the user onboarding process easier and smoother. If not reviewing docs or code, you can find her drinking a coffee in any cool coffee shop in Berlin. She can be reached at arodriguez [at] twilio.com or https://github.com/anitabenites.

Maria Bermudez is a Developer Educator at Twilio. She is passionate about solving technical problems in a pragmatic and practical fashion—lately, this involves a lot of AI for scalability and productivity wins. She can be reached at mbermudez [at] twilio.com or https://github.com/bermudezmt .

Farah Aly is a Developer Educator at Twilio. She is passionate about breaking down complicated concepts into clear, accessible documentation that help developers build confidently. When not working, you can find her at a local cinema! She can be reached at faly [at] twilio.com or https://github.com/farah-aly .