linear-common-errors

Featured

Diagnose and fix common Linear API and SDK errors. Use when encountering Linear API errors, debugging integration issues, or troubleshooting authentication, rate limits, or query problems. Trigger: "linear error", "linear API error", "debug linear", "linear not working", "linear 429", "linear authentication error".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Linear Common Errors ## Overview Quick reference for diagnosing and resolving common Linear API and SDK errors. Linear's GraphQL API returns errors in `response.errors[]` with `extensions.type` and `extensions.userPresentableMessage` fields. HTTP 200 responses can still contain partial errors -- always check the `errors` array. ## Prerequisites - Linear SDK or raw API access configured - Access to application logs - Understanding of GraphQL error response format ## Instructions ### Error Response Structure ```typescript // Linear GraphQL error shape interface LinearGraphQLResponse { data: Record<string, any> | null; errors?: Array<{ message: string; path?: string[]; extensions: { type: string; // "authentication_error", "forbidden", "ratelimited", etc. userPresentableMessage?: string; }; }>; } // SDK throws these typed errors import { LinearError, InvalidInputLinearError } from "@linear/sdk"; // LinearError includes: .status, .message, .type, .query, .variables // InvalidInputLinearError extends LinearError for mutation input errors ``` ### Error 1: Authentication Failures ```typescript // extensions.type: "authentication_error" // HTTP 401 or error in response.errors // Diagnostic check async function testAuth(): Promise<void> { try { const client = new LinearClient({ apiKey: process.env.LINEAR_API_KEY! }); const viewer = await client.viewer; console.log(`OK: ${viewer.name} (${viewer.email})`); } catch (error: any) ...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

linear-install-auth

Install and configure Linear SDK/CLI authentication. Use when setting up a new Linear integration, configuring API keys, OAuth2 flows, or initializing LinearClient in your project. Trigger: "install linear", "setup linear", "linear auth", "configure linear API key", "linear SDK setup", "linear OAuth".

2,266 Updated today
jeremylongshore
AI & Automation Featured

linear-hello-world

Create your first Linear issue and query using the SDK and GraphQL API. Use when making initial API calls, testing connection, or learning basic Linear CRUD operations. Trigger: "linear hello world", "first linear issue", "create linear issue", "linear API example", "test linear".

2,266 Updated today
jeremylongshore
AI & Automation Featured

linear-security-basics

Secure API key management, OAuth best practices, and webhook verification for Linear integrations. Trigger: "linear security", "linear API key security", "linear OAuth", "secure linear", "linear webhook verification", "linear secrets management", "linear token refresh".

2,266 Updated today
jeremylongshore
AI & Automation Featured

linear-sdk-patterns

TypeScript/JavaScript SDK patterns and best practices for Linear. Use when learning SDK idioms, implementing pagination, filtering, relation loading, or custom GraphQL queries. Trigger: "linear SDK patterns", "linear best practices", "linear typescript", "linear API patterns", "linear pagination".

2,266 Updated today
jeremylongshore
AI & Automation Featured

linear-incident-runbook

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

2,266 Updated today
jeremylongshore