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.
- Starts whenSomeone mentions
@usemerlin-aion a pull request that changes the API Merlin worksClaude Code or Codex reads the change and updates the API docs it affects through Mintlify, from parameters and responses to examples
- 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-aion the pull request that changes the API and ask for the docs.Claude Code or Codex reads the diff on a teammate's machine and updates the endpoints, parameters, responses and examples it affects through Mintlify, on a new docs branch. It leaves the code alone.
The reply links the docs pull request Mintlify opened and lists each page changed, so the docs are reviewed with the code.
Mention @usemerlin-ai on the pull request that changes the API and ask for the docs.
Claude Code or Codex reads the diff on a teammate's machine and updates the endpoints, parameters, responses and examples it affects through Mintlify, on a new docs branch. It leaves the code alone.
The reply links the docs pull request Mintlify opened and lists each page changed, so the docs are reviewed with the code.
acme/web
Type/to searchLAdd cursor pagination to the invoices API#702Code
Openleewants to merge 3 commits intomainfromfeat/invoice-cursor
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.
- 01Read the API diff
- 02Search the docs for the endpoint
- 03Update the parameter table
- 04Rewrite the response sample
- 05Fix the pagination guide
- 06Update the example request
- 07Preview the docs site
- 08Open a docs pull request
- 09Link it on the API pull request
With Merlin
One mention gets a docs pull request ready before the API pull request merges.
@usemerlin-aion the API pull requestAsked by the author on GitHubUpdates the docs on Lee's MacBookClaude Code reads the diff, Mintlify edits the docs
- 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.
- 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.
- 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.
- 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.
- 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.
publishopens the docs pull request through your project's Git connection, which needs write access to the docs repository. - 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.
Once, when you paste it
- PromptYou paste the prompt to @Merlin
- GuidanceMerlin saves your rules as workspace guidance
Every time someone mentions Merlin on GitHub
- IntegrationThe GitHub app spots the mention
- RuntimeMerlin picks an available machine
- ContextThe run gathers context
- WorkClaude Code or Codex updates the docs through Mintlify
- SteeringYour team steers the work in the thread
- ResultMerlin links the docs pull request and lists the pages
Related use cases
More tasks you can hand to Merlin.
- Integrations
Engineering
Add the missing tests to a pull request
Mention Merlin on a pull request that needs tests. It writes tests for the changed code, runs them and pushes them to your branch.
@usemerlin-aion a pull request that needs testsTests pushed to the branch - IntegrationsYour agent's MCP
Support
Update the help docs for a release
Ask Merlin in Slack before a release goes out. It finds the help articles the release changes, edits them through Mintlify and opens one pull request.
@Merlinin#supportwith the releaseOne docs pull request updating the articles - IntegrationsSkills
Engineering
Review a pull request before your teammates do
Mention Merlin on your pull request before you ask for a review. It checks the diff against your conventions and leaves inline comments, never an approval.
@usemerlin-aion your pull requestInline review comments, never an approval
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.