Back to cookbook

AI Prompt to Triage and Prioritize Engineering Issues Using Linear's MCP Server

2 views Published

Make this prompt yours

Share

This Linear MCP prompt helps engineering leads, team leads, and project managers use an AI assistant connected to Linear's Model Context Protocol server to triage a backlog of open issues, flag what's stale or mislabeled, and propose a prioritized order the team can act on immediately. It's built for anyone who manages a Linear workspace with ChatGPT, Claude, or Gemini and wants the model to read live issue data through the MCP connection rather than copy-pasting ticket lists by hand.

The prompt gives the model a clear triage rubric (severity, customer impact, age, blocked status) so it doesn't just summarize the backlog but actually ranks it and explains its reasoning for each recommendation. It also asks the model to flag issues with missing labels, no assignee, or conflicting priority fields, which is the kind of workspace hygiene problem that's tedious to catch manually across dozens or hundreds of tickets.

Because a full backlog pulled through an MCP connection can run into thousands of tokens of issue titles, descriptions, and comment threads, this is also a good candidate for trimming before you run it repeatedly. If your Linear exports are large, running the filled-in prompt through the Token Optimizer first can cut the context down and lower the cost of each triage pass without losing the fields the model needs to rank issues correctly.

Prompt template

Make this prompt yours

prompt-template
351 tokens
ROLE You are an engineering triage assistant with access to a Linear workspace through its MCP server integration. CONTEXT Team or project: [TEAM_OR_PROJECT_NAME] Time window: issues updated or opened in the last [TIME_WINDOW] Priority scale in use: [PRIORITY_SCALE_DEFINITION] Current sprint or cycle goal: [SPRINT_GOAL] TASK 1. Pull all open issues matching the team, project, and time window above through the Linear MCP connection. 2. Group the issues into: blocked, in progress, and not started. 3. For each issue, assess severity using this rubric: [SEVERITY_RUBRIC], customer or revenue impact, how long it has been open, and whether it blocks other issues. 4. Flag any issue missing a priority, assignee, or label, and list it separately as a hygiene issue rather than ranking it. 5. Produce a prioritized list of the top [NUMBER] issues the team should work on next, with a one-line justification for each ranking. 6. Note any issues that appear to duplicate each other or contradict the stated sprint goal. CONSTRAINTS - Do not invent issue data that is not present in the Linear workspace; if a field is missing, say so explicitly. - Keep each justification to one sentence. - Do not take any write actions (status changes, reassignments) unless I explicitly confirm each one. OUTPUT FORMAT 1. Hygiene issues (missing priority, assignee, or label) - bullet list 2. Blocked issues - bullet list with blocker noted 3. Prioritized list of top [NUMBER] issues - numbered, with one-line justification each 4. Possible duplicates or conflicts with sprint goal - bullet list

Want it sharper? Optimize this prompt with Prompt Optimizer, check it with the Prompt Debugger or shorten it with the Token Optimizer.

Example input

example-input
361 tokens
ROLE You are an engineering triage assistant with access to a Linear workspace through its MCP server integration. CONTEXT Team or project: Checkout Platform Time window: issues updated or opened in the last 30 days Priority scale in use: P0 = production outage or data loss, P1 = major feature broken for many users, P2 = minor bug or edge case, P3 = cosmetic or nice-to-have Current sprint or cycle goal: Reduce checkout error rate before the Q4 sale TASK 1. Pull all open issues matching the team, project, and time window above through the Linear MCP connection. 2. Group the issues into: blocked, in progress, and not started. 3. For each issue, assess severity using this rubric: P0-P3 as defined above, customer or revenue impact, how long it has been open, and whether it blocks other issues. 4. Flag any issue missing a priority, assignee, or label, and list it separately as a hygiene issue rather than ranking it. 5. Produce a prioritized list of the top 8 issues the team should work on next, with a one-line justification for each ranking. 6. Note any issues that appear to duplicate each other or contradict the stated sprint goal. CONSTRAINTS - Do not invent issue data that is not present in the Linear workspace; if a field is missing, say so explicitly. - Keep each justification to one sentence. - Do not take any write actions unless I explicitly confirm each one. OUTPUT FORMAT 1. Hygiene issues - bullet list 2. Blocked issues - bullet list with blocker noted 3. Prioritized list of top 8 issues - numbered, with one-line justification each 4. Possible duplicates or conflicts with sprint goal - bullet list

When to use it

  • Running a weekly or sprint-start backlog grooming session across a shared Linear team
  • Onboarding a new engineering lead who needs a fast, ranked view of what's actually urgent
  • Auditing a backlog after a product pivot to find issues that no longer match current priorities
  • Catching data-hygiene problems like unassigned, unlabeled, or duplicate issues before planning

Best practices

  • Give the model your team's actual priority definitions (P0-P3 or whatever scale you use) instead of letting it invent its own severity scale
  • Scope the triage to one team or project per run so the ranked list stays short enough to act on in one sitting
  • Ask for the reasoning behind each ranking, not just the final order, so you can spot-check and override calls you disagree with
  • Re-run the triage on a fixed cadence (weekly or biweekly) so priority drift gets caught early instead of piling up

Common mistakes

  • Feeding in the entire backlog at once instead of a single team or sprint, which produces vague, unranked summaries
  • Not specifying what counts as 'blocked' or 'stale' in your workspace, leaving the model to guess
  • Treating the output as final instead of a draft ranking for a human to review and adjust
  • Skipping a check on whether the MCP connection actually has write access, then being surprised it can't update priority fields directly

FAQs

Does the AI need write access to my Linear workspace to triage issues?

No. Read access through the MCP connection is enough to pull issues, labels, and statuses for triage. Write access is only needed if you want the assistant to update priorities or assignees directly, and the prompt above explicitly withholds write actions unless you confirm each one.

Can this prompt work with ChatGPT, Claude, and Gemini the same way?

Yes, the prompt itself is written in plain role-context-task-constraints structure that works across models. What differs is how each model's client connects to Linear's MCP server, since MCP client support and setup steps vary by platform and are still evolving.

How is this different from just asking the AI to summarize my Linear backlog?

A plain summary request tends to produce a flat description of what exists. This prompt forces a ranking against an explicit severity rubric, separates data-hygiene problems from real prioritization, and asks for a one-line justification per ranked item, so the output is something a team can act on rather than just read.

What should I do if the triage results look off or inconsistent?

Check whether your priority scale and severity rubric were specific enough in the prompt. Vague definitions are the most common cause of inconsistent rankings, and tightening the rubric language usually fixes it faster than re-running the same prompt repeatedly.

Which Cuelara tool can help me tighten this prompt before running it on a real backlog?

Prompt Debugger — scans the triage prompt for vague constraints, like an undefined severity rubric, before you run it against live issue data. Intelligence Score — grades the overall clarity and specificity of the filled-in prompt so you can catch weak spots before relying on its output for planning.

Found this prompt useful? Share it.

Share

More in Engineering

Engineering

AI Prompt to Triage Production Incidents Using Datadog's MCP Server

This AI prompt is built for on call engineers who need to triage a production incident fast, using Datadog's MCP server to pull live metrics…

ROLE: You are an on-call engineering assistant helping triage a live production incident.

CONTEXT:
- Service(s) affected: [SERVICE NAMES]
- Triggered monitor(s): [MONITOR NAME(S) AND ALERT MESSAGE(S)]
- Time incident started: [TIMESTAMP]
- Relevant metrics/logs: [PASTE RECENT ERROR RATES, LATENCY, OR LOG EXCERPTS FROM DATADOG]
- Recent changes: [LIST DEPLOYS, CONFIG CHANGES, OR INFRA CHANGES IN THE LAST 24 HOURS WITH TIMESTAMPS]

TASK:
1. Identify the pattern connecting the triggered alert(s) to the symptoms in the metrics/logs.
2. List the top 3 most likely root causes, ranked by how well each fits the timing and symptoms.
3. For each hypothesis, state what additional data would confirm or rule it out.
4. Recommend the single next diagnostic step to run first.

CONSTRAINTS:
- Do not recommend a rollback or fix until at least one hypothesis has supporting evidence beyond timing correlation.
- Flag explicitly if the available data is insufficient to form a confident hypothesis.

OUTPUT FORMAT:
- One-line incident summary
- Ranked list of root-cause hypotheses with supporting/against evidence for each
- Single recommended next diagnostic step
- Open questions still unresolved

Make this prompt yours

Engineering

AI Prompt to Write a Load Testing Plan for a REST API Endpoint

This prompt has ChatGPT, Claude, or Gemini draft a concrete load testing plan for a REST API endpoint before you run a single test. It's for…

You are a performance engineer designing a load test for a production API endpoint.

Context:
- Endpoint: [METHOD AND PATH, e.g. POST /api/v1/orders]
- Expected traffic: [REQUESTS PER SECOND AT PEAK, e.g. 150 rps average, 600 rps peak]
- Downstream dependencies: [LIST, e.g. PostgreSQL, Redis cache, payment gateway API]
- Load testing tool in use: [TOOL NAME, e.g. k6, Locust, JMeter]
- Current known constraints: [e.g. database connection pool size, rate limiter config]

Write a load testing plan with the following requirements:
1. Define a steady-state ramp test (target rps, ramp-up duration, hold duration) sized to the expected traffic above
2. Define a separate spike test that exceeds the expected peak by a specified margin
3. List the metrics to capture during both tests, prioritizing p95/p99 latency and error rate over averages
4. Identify which downstream dependency from the list above is most likely to be the first bottleneck, and why
5. Propose specific pass/fail thresholds for latency and error rate, agreed before the test runs
6. Note any test environment differences from production that could invalidate the results

Output format:
- A short test plan summary (one paragraph)
- The steady-state and spike test parameters as a table
- The metrics and thresholds as a table
- A short risk note on the likely first bottleneck and the environment caveat

Make this prompt yours

Engineering

AI Prompt to Write a Feature Flag Rollout and Cleanup Plan

A feature flag rollout plan lays out how a new capability ships behind a flag, moves through stages of exposure, and eventually gets removed…

You are a senior platform engineer helping plan a feature flag rollout.

Context:
- Feature/change controlled by the flag: [FEATURE DESCRIPTION]
- Flag name: [FLAG NAME]
- Systems or services affected: [AFFECTED SYSTEMS]
- Traffic segments available (e.g. internal, beta list, percentage buckets): [TRAFFIC SEGMENTS]
- Key risk if this goes wrong: [PRIMARY RISK]
- Current monitoring/metrics available: [AVAILABLE METRICS]

Task:
1. Propose a staged rollout sequence (minimum 3 stages) from lowest to highest exposure, with a suggested duration for each stage.
2. For each stage, list the specific metrics to watch and the exact threshold that should trigger a pause or rollback.
3. Define who should approve advancing to the next stage.
4. Write a rollback procedure: the steps to disable the flag and the maximum acceptable time to recovery.
5. Write a cleanup plan: the condition that signals the feature is stable enough to remove the flag, the code paths to delete, and a target removal date relative to full rollout.

Constraints:
- Do not recommend going straight to 100% rollout for any change affecting [AFFECTED SYSTEMS].
- Keep each stage's exit criteria measurable, not subjective.
- Flag any step that depends on information not provided above.

Output format:
- A numbered rollout table (Stage | Exposure % | Duration | Watch Metrics | Rollback Trigger)
- A short rollback procedure
- A short cleanup plan with a target date

Make this prompt yours