Use cases
Engineering
Change branches from pull requests, diagnose failures, triage incidents and schedule review digests.
Merlin recipes for engineering teams. Turn review feedback into a branch change from a pull request, diagnose a failing check, investigate behavior from a Linear issue, triage an incident from Slack, keep a review checklist in a skill and schedule the digests nobody wants to assemble by hand.
How engineering prompts work
Engineers already run Claude Code or Codex on their own machines. The recipes below let work reach those agents from where it is discussed: a pull request comment, a Linear issue or an engineering channel. Each prompt is a message in that place. Merlin posts progress in the same thread and the result lands there too. What comes back is named by each recipe: a changed branch, a diagnosis with evidence, a Linear issue, a scheduled report.
What you need
| Requirement | Why it matters here |
|---|---|
| An eligible runtime with the repository | Merlin works in the checkout on that machine, with the device owner's Git credentials. |
gh CLI signed in on that machine | The agent reads CI logs through it and uses it when Merlin's GitHub tools cannot do the job. |
| GitHub App installed for the repository | Pull request and issue mentions start work and receive the answer. |
| Linear connected, identity linked | Issues can be delegated, and Slack-born work can create or update issues. |
| Merlin in the engineering channel | Incident triage, questions and automations run where the discussion already is. |
Open Agent in the web app to see which runtimes are available and which skills and MCP tools each one exposes.
Merlin's own GitHub tools open pull requests, comment and review as the person who asked, and git pushes with the device owner's credentials. Install the GitHub CLI on the runtime machine and run gh auth login so the agent can also read check logs and fall back to gh when a Merlin tool cannot do the job. Merlin's GitHub App credentials never reach the machine.
Prompts to paste
Turn review feedback into a change
A reviewer asks for a change, and the requester would rather not context-switch. Mention Merlin in the pull request with the outcome, the constraint and the verification you expect.
@Merlin add rate limiting to the webhook endpoint in this pull request. Reuse the limiter in
/lib/ratelimit, add regression coverage and do not add a dependency.
Naming the existing helper and the "no new dependency" rule keeps the diff in the shape the reviewer will accept. Merlin prepares the checkout on the selected runtime and, when you have write access to the repository, pushes to the branch, keeping a progress comment current. When the reviewer adds a constraint later, mention Merlin again in the same thread:
@Merlin keep the public response shape unchanged and include the existing integration test in verification.
Keep a separate change in a separate pull request so its checkout and conversation stay distinct.
Diagnose a failing check without changing code
A branch fails a job that passes on main, and nobody wants to read the whole log. Ask for the first failing step and the evidence, and say that code must not change.
@Merlin the integration job fails on this branch but passes on main. Identify the first failing step, the likely cause and the evidence. Do not change code.
"Do not change code" makes it a diagnosis, so the answer is a comment you can act on rather than a surprise commit. With gh signed in, the agent reads the job log itself instead of asking you to paste it. Ask for the fix in a follow-up once the cause is agreed.
To have Merlin push the fix too, see it step by step.
Investigate behavior from a Linear issue
Product or engineering needs to know how something works today before deciding what to change. Delegate the issue with a clear completion condition.
Trace how session expiry is enforced today. Name the decision point, the background job and the user-visible behavior. Return file references and open questions. Diagnosis only.
The answer lives in the issue's agent session, next to the decision it informs. Add "separate current behavior from historical plan documents" when the repository keeps old design docs that no longer match the code.
To have Merlin fix a bug from its issue, see it step by step.
Triage an incident from Slack
A stack trace lands in the on-call channel. Ask for the code path and the change that likely introduced it, and have Merlin draft the handoff.
@Merlin from the pasted stack trace, find the code path and the commit that most likely introduced it. Draft a Linear issue with the evidence and a suggested owner.
Merlin can find, create or update Linear issues from Slack when the workspace connector is live. The workspace's issue-creation policy decides when task work is represented in Linear. Asking for "most likely" and "evidence" keeps uncertainty visible instead of turning a guess into a ticket title.
Review a migration for safety
Before a schema change merges, have Merlin apply the questions the database owner always asks.
@Merlin review the migration in this pull request for locks, backfill cost and rollback. List each risk with the line that causes it.
When the team has a written checklist, put it in a skill so the review is the same every time:
@Merlin review this pull request with the migration-safety skill and report only the items it flags.
A skill discovered on one member's machine can be shared to the workspace catalog and installed on other runtimes.
Keep documentation honest
A README describes what the code used to do. Ask for the update and for a list of what could not be verified.
@Merlin the README describes the old queue. Update it to match what
packages/jobsdoes today and list every claim you could not verify from code.
The "could not verify" list is what a reviewer reads first.
Schedule the digests nobody assembles by hand
When the team checks the same things every morning, schedule the post instead of asking each time. Scheduled automations deliver to a Slack channel and run on behalf of their creator.
@Merlin every weekday at 9am, post the pull requests waiting on review for more than a day, grouped by reviewer.
Other scheduled automations engineering teams keep: a weekly summary of merged changes grouped by area, a dependency check against the pinned policy, a flaky-test report from the last week's CI runs. Fixed times run in the workspace timezone for a channel automation and in your personal timezone for a direct-message automation. Keep an eligible runtime connected when the run is due.
Save conventions to channel memory
When memory is on, Merlin reads facts saved in a public channel in later conversations across the workspace, and facts saved in a private channel only in that channel. Save the things reviewers keep repeating.
@Merlin remember for this channel:
packages/coreimports nothing from the workspace, every migration ships with its README update, and the deploy window is Tuesday to Thursday.
Keep entries short. Long procedures belong in a skill, and lasting defaults such as "always run the typecheck before reporting done" belong in workspace custom instructions.
Limits
Merlin's GitHub App access does not give the local machine Git credentials. Checkout or push fails visibly when the device owner lacks repository access.
The local agent can use everything its runtime can reach. Making a runtime public is a broader execution decision than granting repository access to the GitHub App. Review it before sharing a machine with build secrets on it.