← All recipes
EngineeringB2B SaaSIssue backlog rot

Crash and bug triage to Linear

Turn raw error reports and support reports into triaged Linear issues: deduplicated, severity-rated, with the stack trace, the likely component and a first hypothesis attached. Engineers start at the fix, not the parsing.

SentryLinearClaude APIGitHub

Trigger

A new error group appears in Sentry, or support escalates a bug report.

Required tools & APIs

Sentry API for error groups · Linear for issues · GitHub for code references · Claude API for hypothesis drafting

Built for

B2B SaaS

Time-to-value (typical)

About 1 day

Build size

Quick win

How the agents hand off work

Each step names the agent, what it does, and where the work goes next.

  1. Deduper

    Match the new error against open issues and recent fixes to catch duplicates and regressions.

    Hands either a duplicate link or a fresh group to the Triager.

  2. Triager

    Assign severity from impact and frequency, and tag the likely component from the stack trace.

    Hands the grouped error to the Hypothesis writer.

  3. Hypothesis writer

    Draft a first hypothesis with the relevant files from the stack trace and recent commits.

    Hands the issue draft to the Engineer queue in Linear.

  4. Scribe

    Create or update the Linear issue with trace, severity, hypothesis and links.

    Engineer picks up an issue with context already attached.

Copy the recipe

The SKILL.md runs as-is in Claude Code, OpenCode or Cursor. The workflow JSON is a portable spec that maps onto n8n, Make or Zapier style tools.

---
name: bug-triage-to-linear
description: Deduplicate, severity-rate and contextualize raw errors into Linear issues with a first hypothesis. Use on new Sentry groups or escalated bug reports.
---

# Crash and Bug Triage to Linear

## When to use
- Error groups pile up untriaged in Sentry.
- Support escalations arrive as screenshots without engineering context.

## Inputs
- Error group payload: stack trace, frequency, affected users (required).
- Repo access for file and commit references (required).
- Severity rubric: your definition of sev1 through sev4 (required, stored as config).

## Process
1. Dedupe: search open Linear issues and the last 30 days of fixes for the same signature.
2. Assign severity from the rubric using frequency and affected-user counts, and say which rubric line applied.
3. Tag the likely component from the top frames of the stack trace.
4. Draft a first hypothesis: the frames involved, recent commits touching those files, one sentence of reasoning.
5. Create or update the Linear issue with trace, severity, hypothesis and links. Link duplicates rather than creating siblings.

## Outputs
- Linear issue (or comment on an existing one) with trace, severity, hypothesis, links.
- Duplicate and regression flags where applicable.

## Tools and integrations
- Sentry API: error groups and metadata.
- GitHub: file paths and recent commits for the hypothesis.
- Linear: issue creation and linking.
- Claude API: hypothesis drafting from provided context only.

## Guardrails
- Never guess a fix. The hypothesis is labeled a hypothesis.
- Severity must cite the rubric line it applied.
- Never close or downgrade an existing issue automatically.

## Examples
- "New NullPointer group, 400 events, 120 users." -> sev by rubric, component tagged, issue created with hypothesis.
- "Error matches the issue fixed last Tuesday." -> flagged as a regression, commented on the existing issue.

Locked: the deeper blueprint

Architecture, guardrails, metrics worth watching and the failure modes that break first. Unlock it with your email and we will send the blueprint with the recipe link.

One email per unlock. Unsubscribe by replying to any message.

Want this built for real?

This recipe shows the shape of the work. Turning it into a running system with your data, your tools and review gates is what we build. If this bottleneck is one you live with, book a call and we will scope it.