linear-security-basics

Featured

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".

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 Security Basics ## Overview Secure authentication patterns for Linear integrations: API key management, OAuth 2.0 with PKCE, token refresh (mandatory for new apps after Oct 2025), webhook HMAC-SHA256 signature verification, and secret rotation. ## Prerequisites - Linear account with API access - Understanding of environment variables and secret management - Familiarity with OAuth 2.0 and HMAC concepts ## Instructions ### Step 1: Secure API Key Storage ```typescript // NEVER hardcode keys // BAD: // const client = new LinearClient({ apiKey: "lin_api_xxxx" }); // GOOD: environment variable import { LinearClient } from "@linear/sdk"; const client = new LinearClient({ apiKey: process.env.LINEAR_API_KEY!, }); ``` **Environment setup:** ```bash # .env (never commit) LINEAR_API_KEY=lin_api_xxxxxxxxxxxxxxxxxxxxxxxxxxxx LINEAR_WEBHOOK_SECRET=whsec_xxxxxxxxxxxx # .gitignore .env .env.* !.env.example # .env.example (commit for documentation) LINEAR_API_KEY=lin_api_your_key_here LINEAR_WEBHOOK_SECRET=your_webhook_secret_here ``` **Startup validation:** ```typescript function validateConfig(): void { const key = process.env.LINEAR_API_KEY; if (!key) throw new Error("LINEAR_API_KEY is required"); if (!key.startsWith("lin_api_")) throw new Error("LINEAR_API_KEY has invalid format"); if (key.length < 30) throw new Error("LINEAR_API_KEY appears truncated"); } validateConfig(); ``` ### Step 2: OAuth 2.0 with PKCE ```typescript import express from "express"; import...

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-webhooks-events

Configure and handle Linear webhooks for real-time event processing. Use when setting up webhooks, handling issue/project/cycle events, or building real-time integrations with Linear. Trigger: "linear webhooks", "linear events", "linear real-time", "handle linear webhook", "linear webhook setup", "linear webhook payload".

2,266 Updated today
jeremylongshore
AI & Automation Featured

linear-common-errors

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".

2,266 Updated today
jeremylongshore
AI & Automation Featured

linear-prod-checklist

Production readiness checklist for Linear integrations. Use when preparing to deploy, reviewing production requirements, or auditing existing Linear deployments. Trigger: "linear production checklist", "deploy linear", "linear production ready", "linear go live", "linear launch".

2,266 Updated today
jeremylongshore
AI & Automation Listed

linear

Managing Linear issues, projects, and teams. Use when working with Linear tasks, creating issues, updating status, querying projects, or managing team workflows.

108 Updated 1 months ago
wrsmith108