Engineering

Update the docs for an API change

Mention Merlin on a pull request that changes your API. It updates the API docs to match through Mintlify and links a docs pull request to review with the code.

@Merlin from now on, when someone asks you to update the docs on a pull request in this repository, find the pages in our Mintlify docs that the change affects and update the endpoints, parameters, responses and examples to match the code. Make the edits on a new docs branch, publish it as a pull request without merging it and reply with the link and the pages you changed. Don't change the code itself, and ask in the thread if the intended behavior isn't clear from the diff.

acme/web · pull requests
Get started for free
  1. Starts whenSomeone mentions @usemerlin-ai on a pull request that changes the API
  2. Merlin worksClaude Code or Codex reads the change and updates the API docs it affects through Mintlify, from parameters and responses to examples
  3. You getA docs pull request opened through Mintlify and a reply listing the pages updated

Tools

  • GitHub
  • Mintlify

Capabilities

  • Integrations
  • Your agent's MCP

How it works

From an API change to docs that match it.

Mention @usemerlin-ai on the pull request that changes the API and ask for the docs.

acme/web

Type/to searchL
CodeIssues8Pull requests12AgentsActionsProjectsSecurityInsightsSettings

Add cursor pagination to the invoices API#702Code

Openleewants to merge 3 commits intomainfromfeat/invoice-cursor

Conversation 5 Commits 3 Checks 3 Files changed 3+48−6

leecommented 3 hours agoAuthor

GET /v1/invoices now takes cursor and limit instead of page and per_page, and returns next_cursor.

Before and after

API docs change alongside the API, not after it.

Without Merlin

The docs wait for a follow-up that slips, or the author hunts down every page that mentions the endpoint.

  1. 01Read the API diff
  2. 02Search the docs for the endpoint
  3. 03Update the parameter table
  4. 04Rewrite the response sample
  5. 05Fix the pagination guide
  6. 06Update the example request
  7. 07Preview the docs site
  8. 08Open a docs pull request
  9. 09Link it on the API pull request

With Merlin

One mention gets a docs pull request ready before the API pull request merges.

  1. @usemerlin-ai on the API pull requestAsked by the author on GitHub
  2. Updates the docs on Lee's MacBookClaude Code reads the diff, Mintlify edits the docs
  3. Docs pull request, linked in a replyOpened through Mintlify, each page listed

Setup

Connect GitHub and give your agent Mintlify, then ask on any API pull request.

Set these up once and anyone can ask for the docs from the pull request. Merlin never merges the docs pull request, so a person reviews it.

  1. 01Connect a machineRuntimeInstall the Merlin desktop app or CLI on a computer running Claude Code or Codex. You can also use a machine a teammate shares with your workspace.
  2. 02Install the GitHub appIntegrationsPick the repositories Merlin can access. It sees mentions, reads the pull request and replies in the thread. Pushes use the machine owner's own Git access.
  3. 03Add Mintlify to your agentYour agent's MCPConnect the Mintlify MCP server to Claude Code or Codex on the machine that runs this. Its credentials stay on that machine.
  4. 04Connect Mintlify with your own loginYour agent's MCP

    Edits through Mintlify's MCP server need the machine owner's own Mintlify login, not a credential. publish opens the docs pull request through your project's Git connection, which needs write access to the docs repository.

  5. 05Paste the setup promptGuidanceAn owner or admin sends the prompt below to @Merlin once, and it becomes workspace guidance for every future run.

Prompt

Tell Merlin how to update the docs on an API pull request.

@Merlin from now on, when someone asks you to update the docs on a pull request in this repository, find the pages in our Mintlify docs that the change affects and update the endpoints, parameters, responses and examples to match the code. Make the edits on a new docs branch, publish it as a pull request without merging it and reply with the link and the pages you changed. Don't change the code itself, and ask in the thread if the intended behavior isn't clear from the diff.

acme/web · pull requests

Once, when you paste it

  1. PromptYou paste the prompt to @Merlin
  2. GuidanceMerlin saves your rules as workspace guidance

Every time someone mentions Merlin on GitHub

  1. IntegrationThe GitHub app spots the mention
  2. RuntimeMerlin picks an available machine
  3. ContextThe run gathers context
  4. WorkClaude Code or Codex updates the docs through Mintlify
  5. SteeringYour team steers the work in the thread
  6. ResultMerlin links the docs pull request and lists the pages

Bring your coding agents into the tools your team already uses.

Let your whole team hand work to Claude Code and Codex today. Connect one machine and add Merlin to Slack, Linear or GitHub. 14-day free trial, no API keys, no card.