Skip to content
linear-incident-runbook logo

Linear Incident Runbook

linear-incident-runbook

Production incident response procedures for Linear integrations. Use when handling production issues, diagnosing outages, or responding to Linear-related incidents. Trigger with phrases like "linear incident", "linear outage", "linear production issue", "debug linear production", "linear down".

SKILL.md

Full skill instructions

Linear Incident Runbook

Overview

Step-by-step procedures for handling production incidents with Linear integrations.

Prerequisites

  • Production access credentials
  • Monitoring dashboard access
  • Communication channels configured
  • Escalation paths defined

Incident Classification

SeverityDescriptionResponse TimeExamples
SEV1Complete outage< 15 minutesAPI unreachable, auth broken
SEV2Major degradation< 30 minutesHigh error rate, slow responses
SEV3Minor issues< 2 hoursSome features affected
SEV4Low impact< 24 hoursCosmetic issues, warnings

Immediate Actions

Step 1: Confirm the Issue

# Check Linear API status
curl -s https://status.linear.app/​api/​v2/​status.json | jq '.status'

# Quick health check
curl -s -H "Authorization: $LINEAR_API_KEY" \
  -H "Content-Type: application/​json" \
  -d '{"query": "{ viewer { name } }"}' \
  https://api.linear.app/​graphql | jq

# Check your application health endpoint
curl -s https://yourapp.com/​api/​health | jq

Step 2: Gather Initial Information

// scripts/​incident-info.ts
import { LinearClient } from "@linear/​sdk";

async function gatherIncidentInfo() {
  const client = new LinearClient({ apiKey: process.env.LINEAR_API_KEY! });

  console.log("=== Linear Incident Information ===\n");

  // 1. Test authentication
  console.log("1. Authentication:");
  try {
    const viewer = await client.viewer;
    console.log(`   Status: OK (${viewer.name})`);
  } catch (error) {
    console.log(`   Status: FAILED - ${error}`);
  }

  // 2. Check teams access
  console.log("\n2. Team Access:");
  try {
    const teams = await client.teams();
    console.log(`   Accessible teams: ${teams.nodes.length}`);
  } catch (error) {
    console.log(`   Status: FAILED - ${error}`);
  }

  // 3. Test issue creation (dry run)
  console.log("\n3. Write Capability:");
  try {
    const teams = await client.teams();
    const result = await client.createIssue({
      teamId: teams.nodes[0].id,
      title: "[INCIDENT TEST] Delete immediately",
    });
    if (result.success) {
      const issue = await result.issue;
      await issue?.delete();
      console.log("   Status: OK (created and deleted test issue)");
    }
  } catch (error) {
    console.log(`   Status: FAILED - ${error}`);
  }

  console.log("\n=== End Information ===");
}

gatherIncidentInfo();

Runbook: API Authentication Failure

Symptoms

  • All API calls returning 401/​403
  • "Authentication required" errors
  • Sudden spike in auth errors

Diagnosis

# Test API key directly
curl -I -H "Authorization: $LINEAR_API_KEY" \
  https://api.linear.app/​graphql

# Check for key format issues
echo $LINEAR_API_KEY | head -c 8
# Should output: lin_api_

# Verify key in secrets manager
vault read secret/​data/​linear/​production
# or
aws secretsmanager get-secret-value --secret-id linear/​production

Resolution Steps

  1. Verify API key is loaded correctly

    # Check env var is set (don't print actual key)
    [ -n "$LINEAR_API_KEY" ] && echo "Key is set" || echo "Key is NOT set"
    
  2. Check if key was rotated/​revoked

    • Log into Linear dashboard
    • Navigate to Settings > API > Personal API keys
    • Verify key exists and is active
  3. Generate new API key if needed

    • Create new key in Linear dashboard
    • Update secrets manager
    • Restart affected services
  4. Rollback if recent deployment

    # Check last deployment
    git log --oneline -5
    
    # Rollback to previous version
    git revert HEAD
    

Runbook: Rate Limiting Issues

Symptoms

  • HTTP 429 responses
  • "Rate limit exceeded" errors
  • Degraded performance

Diagnosis

# Check current rate limit status
curl -I -H "Authorization: $LINEAR_API_KEY" \
  -H "Content-Type: application/​json" \
  -d '{"query": "{ viewer { name } }"}' \
  https://api.linear.app/​graphql 2>&1 | grep -i ratelimit

# Check application metrics
curl -s http://localhost:9090/​api/​v1/​query?query=linear_rate_limit_remaining | jq

Resolution Steps

  1. Identify rate limit cause

    # Check request patterns
    grep "linear" /​var/​log/​app/​*.log | grep -E "[0-9]{4}-[0-9]{2}-[0-9]{2}" | wc -l
    
  2. Implement emergency throttling

    // Emergency rate limiter
    const EMERGENCY_MODE = true;
    const MIN_DELAY_MS = 5000;
    
    async function emergencyThrottle<T>(fn: () => Promise<T>): Promise<T> {
      if (EMERGENCY_MODE) {
        await new Promise(r => setTimeout(r, MIN_DELAY_MS));
      }
      return fn();
    }
    
  3. Disable non-critical operations

    • Stop background sync jobs
    • Disable polling (if using)
    • Queue non-urgent requests
  4. Wait for rate limit reset

    • Linear resets every minute
    • Monitor X-RateLimit-Reset header

Runbook: Webhook Failures

Symptoms

  • Events not being received
  • Webhook signature validation failing
  • Processing timeouts

Diagnosis

# Check webhook endpoint is reachable
curl -I https://yourapp.com/​api/​webhooks/​linear

# Check recent webhook logs
tail -100 /​var/​log/​webhooks.log | grep linear

# Verify webhook secret
echo $LINEAR_WEBHOOK_SECRET | wc -c
# Should be > 20 characters

Resolution Steps

  1. Verify endpoint health

    app.get("/​api/​webhooks/​linear/​health", (req, res) => {
      res.json({ status: "ok", timestamp: new Date().toISOString() });
    });
    
  2. Check signature verification

    // Debug signature verification
    function debugVerifySignature(payload: string, signature: string): boolean {
      const secret = process.env.LINEAR_WEBHOOK_SECRET!;
      const expected = crypto.createHmac("sha256", secret).update(payload).digest("hex");
    
      console.log("Debug: Received signature:", signature);
      console.log("Debug: Expected signature:", expected);
      console.log("Debug: Secret length:", secret.length);
    
      return signature === expected;
    }
    
  3. Recreate webhook if needed

    • Go to Linear Settings > API > Webhooks
    • Delete existing webhook
    • Create new webhook with same URL
    • Update webhook secret in secrets manager

Communication Templates

Initial Incident Announcement

**INCIDENT: Linear Integration Issue**
Severity: SEVX
Status: Investigating
Impact: [Description of user impact]
Start Time: [UTC timestamp]

We are investigating issues with our Linear integration. Updates will follow.

Status Update

**UPDATE: Linear Integration Issue**
Status: [Investigating/​Identified/​Mitigating/​Resolved]
Time: [UTC timestamp]

Update: [What we know/​did]
Next Steps: [What we're doing next]
ETA: [If known]

Resolution Notice

**RESOLVED: Linear Integration Issue**
Duration: [X hours Y minutes]
Root Cause: [Brief description]
Impact: [What was affected]

A full post-mortem will follow within 48 hours.

Post-Incident

Immediate Actions

[ ] Verify all systems are healthy
[ ] Clear any queued/​stuck jobs
[ ] Validate data consistency
[ ] Notify stakeholders of resolution

Post-Mortem Checklist

[ ] Timeline of events
[ ] Root cause analysis
[ ] Impact assessment
[ ] What went well
[ ] What could be improved
[ ] Action items with owners

Resources

Next Steps

Learn data handling patterns with linear-data-handling.

More skills from Dicklesworthstone

environment-setup-guide logo
Dicklesworthstone/pi_agent_rust

environment-setup-guide

Guide developers through setting up development environments with proper tools, dependencies, and configurations

1.8K 0
View
exa-policy-guardrails logo
Dicklesworthstone/pi_agent_rust

exa-policy-guardrails

Implement Exa lint rules, policy enforcement, and automated guardrails. Use when setting up code quality rules for Exa integrations, implementing pre-commit hooks, or configuring CI policy checks for Exa best practices. Trigger with phrases like "exa policy", "exa lint", "exa guardrails", "exa be...

1.8K 0
View
documenso-ci-integration logo
Dicklesworthstone/pi_agent_rust

documenso-ci-integration

Configure CI/CD pipelines for Documenso integrations. Use when setting up automated testing, deployment pipelines, or continuous integration for Documenso projects. Trigger with phrases like "documenso CI", "documenso GitHub Actions", "documenso pipeline", "documenso automated testing".

1.8K 0
View
openrouter-model-availability logo
Dicklesworthstone/pi_agent_rust

openrouter-model-availability

Build check model availability and implement fallback chains. Use when building resilient systems or handling model outages. Trigger with phrases like 'openrouter availability', 'openrouter fallback', 'openrouter model down', 'openrouter health check'.

1.8K 0
View
langfuse-enterprise-rbac logo
Dicklesworthstone/pi_agent_rust

langfuse-enterprise-rbac

Configure Langfuse enterprise organization management and access control. Use when implementing team access controls, configuring organization settings, or setting up role-based permissions for Langfuse projects. Trigger with phrases like "langfuse RBAC", "langfuse teams", "langfuse organization"...

1.8K 0
View
cursor-compliance-audit logo
Dicklesworthstone/pi_agent_rust

cursor-compliance-audit

Execute compliance and security auditing for Cursor usage. Triggers on "cursor compliance", "cursor audit", "cursor security review", "cursor soc2", "cursor gdpr". Use when analyzing or auditing cursor compliance audit. Trigger with phrases like "cursor compliance audit", "cursor audit", "cursor".

1.8K 0
View
apollo-ci-integration logo
Dicklesworthstone/pi_agent_rust

apollo-ci-integration

Configure Apollo.io CI/CD integration. Use when setting up automated testing, continuous integration, or deployment pipelines for Apollo integrations. Trigger with phrases like "apollo ci", "apollo github actions", "apollo pipeline", "apollo ci/cd", "apollo automated tests".

1.8K 0
View
python-script logo
Dicklesworthstone/pi_agent_rust

python-script

Create robust Python automation with full logging and safety checks. Use when tasks need complex data processing, authenticated API work, conditional file operations, or error handling beyond simple shell commands.

1.8K 0
View
posthog-multi-env-setup logo
Dicklesworthstone/pi_agent_rust

posthog-multi-env-setup

Configure PostHog across development, staging, and production environments. Use when setting up multi-environment deployments, configuring per-environment secrets, or implementing environment-specific PostHog configurations. Trigger with phrases like "posthog environments", "posthog staging", "po...

1.8K 0
View
ai-agents-architect logo
Dicklesworthstone/pi_agent_rust

ai-agents-architect

Expert in designing and building autonomous AI agents. Masters tool use, memory systems, planning strategies, and multi-agent orchestration. Use when: build agent, AI agent, autonomous agent, tool use, function calling.

1.8K 0
View
insecure-deserialization-checker logo
Dicklesworthstone/pi_agent_rust

insecure-deserialization-checker

Validate insecure deserialization checker operations. Auto-activating skill for Security Fundamentals. Triggers on: insecure deserialization checker, insecure deserialization checker Part of the Security Fundamentals skill category. Use when working with insecure deserialization checker functiona...

1.8K 0
View
path-traversal-finder logo
Dicklesworthstone/pi_agent_rust

path-traversal-finder

Manage path traversal finder operations. Auto-activating skill for Security Fundamentals. Triggers on: path traversal finder, path traversal finder Part of the Security Fundamentals skill category. Use when working with path traversal finder functionality. Trigger with phrases like "path traversa...

1.8K 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View