99+ ChatGPT Prompts for technical writers

⚡ TL;DR — Key Takeaways

  • What it is: A curated library of 99+ ChatGPT prompts organized by technical writing task type, with model-specific guidance for GPT-5.2, GPT-5.5, Claude Sonnet 4.6, and Gemini 3.1 Pro Preview.
  • Who it’s for: Senior technical writers, developer advocates, and doc engineers who use LLMs daily and want to move beyond basic rewrites into structured prompt orchestration.
  • Key takeaways: Effective prompts require role, source material, audience, and output format; structured outputs reduce editing time; prompt caching can cut repeated-context costs by up to 90% on Anthropic and OpenAI platforms.
  • Pricing/Cost: Model costs range from GPT-5.2 at $1.25/$10 per million tokens to GPT-5.5 at $5/$30, Claude Sonnet 4.6 at $3/$15, and Gemini 3.1 Pro Preview at $2/$12 per million tokens.
  • Bottom line: In 2026, prompt engineering is a core technical writing skill — this library gives you production-ready prompts for API docs, SDK references, authentication guides, and more, matched to the right model.
Get 40K Prompts, Guides & Tools — Free

✓ Instant access✓ No spam✓ Unsubscribe anytime

Why technical writers need a prompt library in 2026

The job changed. A senior technical writer in 2024 spent maybe 30% of their time on raw drafting. By Q1 2026, that number is closer to 8%, according to Write the Docs community survey data circulated in February. The remaining 92% is structure, accuracy review, API spec reconciliation, screenshot pipelines, and — increasingly — prompt orchestration across multiple LLMs.

That last category is where most writers are still flailing. They have ChatGPT open. They type “rewrite this to be clearer” and accept whatever comes back. That’s not prompt engineering — that’s autocomplete with extra steps.

This article is a working library: 99+ prompts organized by the actual tasks technical writers perform, with notes on which model handles each task best. The model landscape matters here. GPT-5.2 and Claude Sonnet 4.6 behave differently on the same prompt. Gemini 3.1 Pro Preview handles 1M-token context windows that let you paste an entire monorepo’s README files in one shot. Pricing varies by an order of magnitude. Knowing which prompt to send to which model is now part of the craft.

A few ground rules before the prompts. First, every prompt below assumes you give the model a clear role, the source material, the audience, and the output format. Vague prompts produce vague output — there is no exception to this rule. Second, structured outputs (JSON schema, XML tags) drastically reduce post-editing. Third, prompt caching on Anthropic and OpenAI cuts repeated-context costs by up to 90%, which matters when you’re running the same style guide across 200 docs.

The current state of the toolchain: GPT-5.2 sits at $1.25/$10 per million tokens with strong instruction following, GPT-5.5 launched April 24 at $5/$30 with a 1.05M context window per the OpenAI release notes, Claude Sonnet 4.6 is the default workhorse for long-form prose at $3/$15, and Gemini 3.1 Pro Preview runs $2/$12 per million tokens with the largest reliable context window on the market. Use them accordingly.

If you want the practical implementation details, see our analysis in 99+ Best ChatGPT Prompts for Technical Writing to Boost Y…, which walks through the production patterns engineering teams actually ship.

Prompts for API and SDK documentation (1–25)

API docs are where technical writing meets compiler-grade precision. A wrong parameter name in a tutorial breaks every reader’s first attempt. The prompts below are tuned for accuracy over style — pair them with Claude Opus 4.7 or GPT-5.2-Codex when the source is real code.

Reference documentation generation

  1. Endpoint reference from OpenAPI spec: “You are a technical writer for a developer audience familiar with REST. Given the OpenAPI 3.1 spec below, generate reference documentation for each endpoint with: HTTP method, path, description, parameters table (name, type, required, description), request body schema, response codes with example payloads, and one realistic curl example. Use Markdown. Do not invent fields not in the spec.”
  2. SDK method docs from source: “Read the TypeScript class below. For each public method, produce: signature, one-paragraph description, parameter list with types, return type, possible thrown errors, and a usage snippet. Skip private methods. Flag any method missing a JSDoc comment.”
  3. Authentication guide: “Write an authentication guide for an API that supports OAuth 2.0 PKCE flow and API key fallback. Audience: backend developers integrating for the first time. Include sequence diagram described in text, code samples in Python and Node.js, and a troubleshooting section covering the 5 most common 401/403 causes.”
  4. Webhook documentation: “Document a webhook system that delivers JSON payloads with HMAC-SHA256 signatures. Cover: event types table, payload schema, signature verification code in 3 languages, retry policy (exponential backoff to 24h), and idempotency guidance.”
  5. Rate limit explainer: “Explain a token-bucket rate limiter with 1000 req/min and burst of 100. Include: what the response headers look like, how to detect throttling, how to implement client-side backoff, and what the 429 retry-after header means in practice.”
  6. Error code reference table: “Generate an error code reference table for the codes listed below. Columns: code, HTTP status, meaning, common cause, recommended developer action. No marketing language. If a code is ambiguous, flag it.”
  7. Pagination patterns: “Compare cursor-based and offset pagination for the same endpoint. Show request/response for both. Recommend one based on a 10M-row dataset and explain why.”
  8. SDK changelog from git diff: “Given the git log below, write a SDK changelog entry in Keep-a-Changelog format. Group as Added, Changed, Deprecated, Removed, Fixed, Security. Mark breaking changes with ⚠️.”

For prompts 1–8, route to GPT-5.2-Codex or Claude Opus 4.7. Both score above 70% on SWE-bench Verified and reliably parse code without hallucinating method signatures. Gemini 3.1 Flash is fine for the simpler reference tasks at one-fifth the cost.

Tutorials and conceptual guides

  1. Quickstart in under 5 minutes: “Write a quickstart for [product] targeting a developer who has never used it. Hard constraint: a competent reader must reach ‘hello world’ output in under 5 minutes. Include exactly: install command, minimal config, runnable example, expected output. No prerequisites section longer than 2 lines.”
  2. Concept explainer with mental model: “Explain [concept] to a developer who knows adjacent tools but not this one. Lead with a one-sentence mental model. Use one analogy maximum. Then show what the concept looks like in code. Then list 3 common misconceptions.”
  3. Migration guide v1 → v2: “Write a migration guide from v1 to v2 of the SDK. Sections: breaking changes table (before/after code), non-breaking improvements, deprecation timeline, automated codemod commands if applicable, manual steps with effort estimate per step.”
  4. Decision guide between two features: “Build a decision guide for choosing between [Feature A] and [Feature B]. Lead with a flowchart described in text. Then a comparison table: use case, throughput, cost, complexity, when not to use. End with 3 worked scenarios.”
  5. Architecture overview: “Write an architecture overview for [system]. Audience: senior engineers evaluating adoption. Cover data flow, component responsibilities, failure modes, observability hooks, and security boundaries. Avoid marketing claims; cite specific numbers for throughput and latency.”
  6. Recipe-style task doc: “Write a recipe for [task]. Format: Problem (1 sentence), Solution (numbered steps with code), Why this works (2 sentences), Variations (2-3 alternatives), Pitfalls (bulleted).”
  7. Glossary entry: “Write a glossary entry for [term]. 1 sentence definition. 1 sentence on why it matters. Example in code or config. Related terms with cross-references. Maximum 80 words total.”

Sample code generation

  1. Multi-language sample matrix: “Generate the same API call in Python (requests), Node.js (fetch), Go (net/http), and curl. Include error handling for 429 and 5xx. Use identical variable names across languages.”
  2. Async pattern example: “Show a streaming response handler for the API below in Python using async/await and httpx. Include backpressure handling and graceful cancellation on SIGINT.”
  3. End-to-end working example: “Build a complete, runnable example that calls 3 endpoints in sequence: auth, create resource, poll status. Include all imports, error handling, and a teardown step. Code must run without modification.”

For a closer look at the tools and patterns covered here, see our analysis in Best ChatGPT Prompts for automation, which covers the practical implementation details and trade-offs.

Prompts for editing, restructuring, and style consistency (26–55)

Get Free Access to 40,000+ AI Prompts

Join 40,000+ AI professionals. Get instant access to our curated Notion Prompt Library with prompts for ChatGPT, Claude, Codex, Gemini, and more — completely free.

Get Free Access Now →

No spam. Instant access. Unsubscribe anytime.

The hardest part of a technical writer’s job is not writing — it’s keeping 400 pages of docs consistent when 12 engineers contribute monthly. The prompts in this section handle the unglamorous editorial labor: voice normalization, terminology audits, link rot, and structural cleanup.

Style guide enforcement

  1. Voice and tense pass: “Review the doc below against this style guide: second person, active voice, present tense for current behavior, imperative mood for instructions. List every violation with line number and suggested fix. Do not rewrite the doc — produce a diff-style report.”
  2. Terminology audit: “Scan the document for inconsistent terminology. Our canonical terms: ‘API key’ not ‘apikey’; ‘webhook’ not ‘web hook’; ‘sign in’ (verb) vs ‘sign-in’ (adjective). Output a table: line, current text, canonical replacement.”
  3. Reading level check: “Estimate the Flesch-Kincaid grade level of this doc. Flag any paragraph above grade 14. For each flagged paragraph, suggest a rewrite that lowers the score without losing technical precision.”
  4. Banned-word scan: “Find every instance of the following words and suggest alternatives: simply, easily, just, obviously, clearly, basically. These are passive-aggressive to the reader. Output a replacement list.”
  5. Sentence-length variance: “Identify paragraphs where every sentence is 25+ words. Suggest splits. Identify paragraphs with 5+ consecutive sentences under 8 words. Suggest combining for rhythm.”
  6. Heading hierarchy audit: “Check that heading levels are sequential (no H2 → H4 skips). Check that every H2 has at least 100 words of body content before the next heading. Output violations.”
  7. Code-block formatting check: “Verify every code block has a language hint, every inline code uses backticks not italics, every CLI command starts with a $ prompt indicator, and no code block exceeds 40 lines without a comment explaining a logical block.”

Structural rewrites

  1. Reorganize for skim-readability: “Restructure this doc so a developer skimming only the H2s and bold text can answer: what does this do, who is it for, when should I use it, what does it cost. Move content accordingly without losing information.”
  2. Convert dense prose to structured format: “Convert this 800-word prose explanation into: 1 summary sentence, 1 comparison table, 3 bulleted use cases, 1 code example. Preserve every fact.”
  3. Inverse the doc: “This doc explains the feature top-down (concept → details → example). Invert it: lead with the example, then explain why each part exists, then generalize. Same content, different scaffolding.”
  4. Extract a quickstart from a long guide: “From this 4000-word guide, extract a 400-word quickstart that gets a user to first success. The quickstart must stand alone.”
  5. Split monolithic doc: “This single doc covers 4 distinct user journeys. Propose a split into 4 docs with titles, scope statements, and cross-references between them.”

Comparison: which model for which editing task

TaskBest model (2026)WhyApprox cost per 10k-word doc
Voice/tense passClaude Sonnet 4.6Best instruction adherence on style rules; rarely rewrites when asked to flag$0.06
Terminology auditGPT-5.2-miniCheap, deterministic table output$0.02
Reading-level analysisGPT-5.2Reliable Flesch scoring; good rewrite suggestions$0.08
Structural rewriteClaude Opus 4.7Holds 50k+ token context without losing thread; preserves facts$0.42
Cross-doc consistency (100+ pages)Gemini 3.1 Pro Preview1M context lets you load entire docs site at once$0.18
Final proofreadClaude Sonnet 4.6Lowest false-positive rate on grammar flags$0.06

Source for current pricing: OpenAI model docs and Anthropic model reference, accessed April 2026.

Cross-doc consistency

  1. Link-rot scan: “Given the list of internal links below, identify any that point to deleted, renamed, or redirected pages. Output: source page, broken link, suggested replacement.”
  2. Duplicate content finder: “Across the docs below, identify paragraphs that say substantially the same thing. Output: page A, page B, similarity score (1-10), recommendation (consolidate, cross-reference, or keep distinct).”
  3. Versioning consistency: “Find every place this doc references a version number, SDK version, or API version. Flag any that don’t match the current stated version of v3.7.2.”
  4. Code sample drift: “Compare these 6 code samples that all demonstrate the same auth flow. Identify drift in variable names, error handling patterns, and import statements. Propose a canonical version.”
  5. Outdated screenshot detection: “Given the image alt text and surrounding paragraphs, flag any screenshots likely outdated based on described UI elements that no longer match the current product (described below).”

Translation and localization prep

  1. Pre-translation cleanup: “Prepare this doc for translation. Flag: idioms that won’t translate, ambiguous pronoun references, culture-specific examples, and any sentence longer than 30 words. Do not translate — only prepare.”
  2. Locale-specific examples: “Replace US-specific examples (dates as MM/DD/YYYY, dollar amounts, US addresses) with locale-neutral equivalents using ISO 8601 dates and generic currency placeholders.”
  3. Glossary for translators: “Extract every domain-specific term in this doc into a glossary with: term, definition, do-not-translate flag (yes/no), and any preferred translations for Spanish, Japanese, and German if you know standard industry usage.”

Prompts for release notes, changelogs, and developer communication (56–80)

Release notes get more reader engagement than any other doc type — they’re the first thing developers read after an upgrade fails. Yet they’re often written last, in a hurry, by someone who didn’t ship the feature. The prompts here turn that around.

Release notes generation

  1. From PR titles: “Below are 47 merged PR titles since the last release. Group them into: Features, Improvements, Bug Fixes, Breaking Changes, Security, Internal. Write user-facing summaries — never use PR titles verbatim because they’re written for reviewers, not users.”
  2. From commit messages with squash: “Parse these conventional commits. Squash related commits (e.g., 3 fixes to the same module become one line). Output release notes grouped by semver impact (major/minor/patch).”
  3. Breaking change deep-dive: “For each breaking change below, write a migration note with: what changed, why, exact before/after code, automated migration command if available, and effort estimate for a typical integration.”
  4. Security advisory: “Write a security advisory for CVE-2026-XXXX. Severity: high. Sections: summary, affected versions, impact, attack vector, mitigation, patched version, credits, timeline. Tone: factual, no minimization, no panic.”
  5. Deprecation announcement: “Announce deprecation of [feature]. State the sunset date (12 months out), the recommended replacement, migration effort, and what happens if the user does nothing. Do not apologize or use hedging language.”
  6. Beta feature announcement: “Announce [feature] in public beta. Cover: what it does, who should try it, known limitations, how to enable, SLA status (no SLA in beta), and feedback channels. Make clear this is not production-ready.”
  7. GA announcement from beta: “Convert this beta announcement to GA. Add: production SLA, supported regions, pricing, enterprise support tier availability, and what’s changed since beta based on the changelog below.”

Developer-facing communication

  1. Incident postmortem: “Draft a blameless postmortem for an incident with these facts: [facts]. Sections: summary, impact (users affected, duration, error rate), timeline (UTC), root cause, contributing factors, resolution, action items with owners and dates. No passive voice in the timeline.”
  2. Status page update: “Write a status page update for an ongoing degradation. 3 versions: initial detection, mid-incident update, resolved. Each under 60 words. No speculation.”
  3. Email to enterprise customers about breaking change: “Notify enterprise customers of a breaking change shipping in 90 days. Tone: respectful of their time. Include: business impact, technical impact, what we’re doing to help, calendar of office hours, escalation contact.”
  4. RFC for community feedback: “Format the proposal below as an RFC. Sections: summary, motivation, detailed design, drawbacks, alternatives considered, prior art, unresolved questions. Specifically call out where you want feedback.”
  5. Office hours summary: “Below is a transcript of developer office hours. Extract: questions asked, answers given, action items for the docs team, and feature requests. Anonymize all questioner names.”

For the engineering trade-offs behind this approach, see our analysis in 99+ ChatGPT Prompts for marketers, which breaks down the cost-vs-quality decisions in detail.

Prompt caching strategy for release-cycle work

Release notes are the canonical use case for prompt caching. Your style guide, product taxonomy, and target-audience description don’t change between releases — only the diff does. Both Anthropic and OpenAI offer cached input pricing at roughly 10% of standard input rates after the first cache hit, with a 5-minute TTL on Anthropic (extendable to 1 hour) and a 5–10 minute default on OpenAI. For a docs team shipping weekly notes, this drops monthly model spend on this workflow by 60–80%.

# Example: cached system prompt for release notes (Anthropic SDK)
import anthropic
client = anthropic.Anthropic()

CACHED_STYLE_GUIDE = open("style-guide.md").read()  # ~12k tokens
PRODUCT_TAXONOMY = open("taxonomy.md").read()       # ~8k tokens

response = client.messages.create(
    model="claude-sonnet-4-6",
    max_tokens=4096,
    system=[
        {
            "type": "text",
            "text": CACHED_STYLE_GUIDE + "nn" + PRODUCT_TAXONOMY,
            "cache_control": {"type": "ephemeral"}
        }
    ],
    messages=[
        {"role": "user", "content": f"Generate release notes from these PRs:n{pr_list}"}
    ]
)

Prompts for diagrams, tables, and structured artifacts (81–99+)

Technical writers in 2026 don’t just write — they generate diagrams from prose, tables from logs, and JSON schemas from natural-language specs. The prompts below treat the model as a structured-data engine.

Diagram generation

  1. Mermaid sequence diagram: “From the flow description below, produce a Mermaid sequenceDiagram. Include actors, messages with HTTP methods, async indicators (–>>), and notes for retry logic. Keep to one diagram.”
  2. Mermaid flowchart for decision logic: “Convert the if/else logic in the code below into a Mermaid flowchart. Use diamonds for decisions, rectangles for actions, rounded rectangles for terminals. Group related logic in subgraphs.”
  3. Mermaid C4 context diagram: “From the architecture description, produce a Mermaid C4Context diagram with System, Person, and System_Ext elements. Include relationships with technology labels.”
  4. Mermaid state diagram for lifecycle: “Document the state machine for [resource] as a Mermaid stateDiagram-v2. Include entry/exit conditions and any internal transitions that don’t change state.”
  5. Mermaid ER diagram from SQL: “From the SQL schema below, produce a Mermaid erDiagram. Include cardinality, primary keys, and any composite keys. Skip system columns like created_at.”
  6. PlantUML deployment diagram: “From the infrastructure description, produce a PlantUML deployment diagram showing nodes, deployment specs, and network boundaries.”
  7. ASCII architecture sketch: “Sketch a 3-tier architecture in ASCII art suitable for inclusion in a Markdown code block. Fit in 80 columns.”

Tables and structured data

  1. Feature comparison table: “Build a feature comparison table for [products]. Rows: features. Columns: products. Cells: ✓ / ✗ / partial with footnote. Add a ‘Notes’ column at the end for caveats.”
  2. Pricing tier table: “From the pricing page text below, extract a tier comparison table. Columns: tier, monthly price, included quota, overage rate, support SLA. Flag any tier where the included quota or overage isn’t explicitly stated.”
  3. Permission
    Get Free Access — All Premium Content

    🕐 Instant∞ Unlimited🎁 Free

    Frequently Asked Questions

    Which AI model is best for generating API reference documentation in 2026?

    Claude Opus 4.7 and GPT-5.2-Codex are recommended for API and SDK documentation tasks where compiler-grade accuracy matters. GPT-5.2 offers strong instruction following at $1.25 per million input tokens, making it cost-effective for high-volume reference doc generation from real source code or OpenAPI specs.

    How much time do technical writers spend drafting content in 2026?

    According to Write the Docs community survey data from February 2026, senior technical writers spend approximately 8% of their time on raw drafting, down from 30% in 2024. The majority of time now goes to structure, accuracy review, API spec reconciliation, screenshot pipelines, and prompt orchestration across multiple LLMs.

    What context window does GPT-5.5 offer and when did it launch?

    GPT-5.5 launched on April 24, 2026, with a 1.05 million token context window, per OpenAI release notes. It is priced at $5 per million input tokens and $30 per million output tokens, making it suited for large-scale documentation tasks requiring extensive context retention.

    How does prompt caching reduce costs for technical writing workflows?

    Prompt caching on Anthropic and OpenAI platforms can reduce repeated-context costs by up to 90%. For technical writers running the same style guide across hundreds of documents, this makes large-scale LLM-assisted doc generation significantly more economical without sacrificing consistency or model quality.

    Why does Gemini 3.1 Pro Preview suit large documentation projects best?

    Gemini 3.1 Pro Preview offers the largest reliable context window on the market at 1 million tokens, priced at $2/$12 per million tokens. This allows technical writers to paste entire monorepo README files or large API specs in a single request, enabling holistic analysis and documentation generation at scale.

    What four elements should every effective technical writing prompt include?

    Every effective prompt should specify a clear role for the model, provide the source material, define the target audience, and state the required output format. Omitting any of these elements produces vague, unpredictable output. Using structured formats like JSON schema or XML tags further reduces the need for manual post-editing.

Get Free Access to 40,000+ AI Prompts for ChatGPT, Claude & Codex

Subscribe for instant access to the largest curated Notion Prompt Library for AI workflows.

More on this

Gemini 3.1 Pro Automation: How to Analyze Data Hands-Free with AI

Reading Time: 14 minutes
⚡ TL;DR — Key Takeaways What it is: A technical guide to building hands-free data analysis pipelines using Gemini 3.1 Pro Preview’s 1M-token context window, native tool-use loop, Code Execution sandbox, and Files API. Who it’s for: Data engineers, ML…

GPT-5.1 vs Claude Sonnet 4.6: The 2026 Head-to-Head Comparison

Reading Time: 14 minutes
⚡ TL;DR — Key Takeaways What it is: A production-focused technical comparison of GPT-5.1 and Claude Sonnet 4.6, two leading 2026 frontier AI models targeting agentic coding and tool-use workloads. Who it’s for: Engineering teams and architects evaluating which LLM…