LI

linear-install-auth

Set up authentication for the Linear SDK using personal API keys or OAuth 2.0.

Install

mkdir -p .claude/skills/linear-install-auth && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/5480" && unzip -o skill.zip -d .claude/skills/linear-install-auth && rm skill.zip

Installs to .claude/skills/linear-install-auth

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Install and configure Linear SDK/CLI authentication.
52 charsno explicit “when” trigger
Intermediate

Key capabilities

  • →Install Linear TypeScript SDK
  • →Configure personal API key authentication
  • →Implement OAuth 2.0 authorization code flow
  • →Handle OAuth token refresh
  • →Validate API key format on startup

How it works

The skill configures the LinearClient using either a personal API key for server-side scripts or an OAuth 2.0 flow with PKCE for user-facing applications.

Inputs & outputs

You give it
API key or OAuth credentials
You get back
Authenticated LinearClient instance

When to use linear-install-auth

  • →Initialize LinearClient in a project
  • →Configure personal API keys for server scripts
  • →Set up OAuth 2.0 authentication for apps

About this skill

Linear SDK Installation and Authentication

Overview

Choose authentication from the operating model, pin the SDK through the repository's lockfile, and prove access with a bounded read-only query.

Prerequisites

  • The target repository, Linear workspace, environment, and accountable owner
  • Current security, privacy, compliance, capacity, and change-control requirements
  • An approved Linear credential only when a bounded live verification is necessary

Tool Discipline

Use Read, Glob, and Grep to inspect code, configuration, and evidence. Use WebFetch only for current first-party Linear documentation and package metadata. Use Write or Edit only for requested implementation with known target files. Never write credentials, customer content, unrestricted environment output, or unredacted GraphQL variables.

Current Contract

  • The official package is @linear/sdk; npm reported 95.0.0 with Node.js >=18.x on 2026-09-11.
  • Personal keys use a raw Authorization value; OAuth tokens use the Bearer scheme. The SDK represents these as apiKey and accessToken.
  • OAuth is recommended for applications used by other people; scheduled automation should use the client-credentials grant when enabled.

Authentication

Use a personal API key only for owner-controlled scripts, OAuth with PKCE for user-delegated applications, or an enabled client-credentials grant for approved automation. Personal keys use Authorization: <API_KEY>; OAuth tokens use Authorization: Bearer <ACCESS_TOKEN>. Store credentials server-side in an approved secret manager.

Treat app approval, team access, scope changes, credential creation, rotation, revocation, and production access as owner-approved actions.

Instructions

  1. Inspect runtime, Node version, manifest, lockfile, existing client construction, and secret provider.
  2. Choose personal key for an owner-controlled integration, authorization-code OAuth for user-delegated access, or client credentials for approved unattended automation.
  3. Pin a compatible SDK range and commit the resolved lockfile; do not silently take an unbounded latest version in CI.
  4. Inject credentials from the approved server-side secret manager and document the variable name without its value.
  5. Run a read-only viewer/team proof and check both transport status and GraphQL errors.
  6. Assign owners for scope review, app approval, rotation, revocation, and emergency disablement.

Approval Boundaries

Do not create, reveal, rotate, or revoke credentials; authorize an OAuth app; change scopes or team access; create, mutate, archive, or delete workspace data; configure or re-enable webhooks; import or export data; change roles, SCIM, or audit streaming; transmit diagnostics; change paid entitlements; or perform another production mutation without explicit approval from the accountable owner. Keep diagnosis read-only unless implementation was requested.

Output

Return the workspace and team scope, auth mode without credential value, files and contracts inspected, exact operation names, evidence collected, validation result, sensitive fields redacted, remaining risk, accountable owner, approval state, and rollback or next action.

Error Handling

ConditionResponse
Node below 18Upgrade through the repository's runtime policy before installing the current SDK.
401Check token type, header form, injection, and revocation state without exposing it.
OAuth redirect mismatchUse an exactly registered callback; do not add a wildcard.
Secret committedRevoke or rotate it, remove retained copies, and audit access.

Examples

Use a compact handoff that makes scope, mutation authority, and verification evidence reviewable.

Input:

runtime=node20; auth=oauth; secret=approved-reference; probe=viewer

Expected handoff:

sdk=resolved-lockfile; auth=bearer; probe=read-only; secret=redacted

Resources

When not to use it

  • →When using non-Node.js environments
  • →When bypassing standard authentication flows

Prerequisites

Node.js 18+Package manager (npm, pnpm, or yarn)Linear account with workspace access

Limitations

  • →API keys must start with lin_api_
  • →OAuth refresh tokens rotate on each refresh

How it compares

This workflow automates the setup of typed client instances and provides specific validation logic for API keys compared to manual configuration.

Compared to similar skills

linear-install-auth side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
linear-install-auth (this skill)12moReviewIntermediate
supabase-developer959moReviewIntermediate
better-auth-best-practices188moNo flagsIntermediate
cloudbase-auth110moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

More by jeremylongshore

View all by jeremylongshore →

analyzing-logs

jeremylongshore

Analyze application logs to detect performance issues, identify error patterns, and improve stability by extracting key insights.

14123

ollama-setup

jeremylongshore

Configure auto-configure Ollama when user needs local LLM deployment, free AI alternatives, or wants to eliminate hosted API costs. Trigger phrases: "install ollama", "local AI", "free LLM", "self-hosted AI", "replace OpenAI", "no API costs". Use when appropriate context detected. Trigger with relevant phrases based on skill purpose.

1167

backtesting-trading-strategies

jeremylongshore

Backtest crypto and traditional trading strategies against historical data. Calculates performance metrics (Sharpe, Sortino, max drawdown), generates equity curves, and optimizes strategy parameters. Use when user wants to test a trading strategy, validate signals, or compare approaches. Trigger with phrases like "backtest strategy", "test trading strategy", "historical performance", "simulate trades", "optimize parameters", or "validate signals".

1071

generating-database-seed-data

jeremylongshore

Process this skill enables AI assistant to generate realistic test data and database seed scripts for development and testing environments. it uses faker libraries to create realistic data, maintains relational integrity, and allows configurable data volumes. u... Use when working with databases or data models. Trigger with phrases like 'database', 'query', or 'schema'.

1033

cursor-codebase-indexing

jeremylongshore

Execute set up and optimize Cursor codebase indexing. Triggers on "cursor index setup", "codebase indexing", "index codebase", "cursor semantic search". Use when working with cursor codebase indexing functionality. Trigger with phrases like "cursor codebase indexing", "cursor indexing", "cursor".

885

testing-mobile-apps

jeremylongshore

Execute mobile app testing on iOS and Android devices/simulators. Use when performing specialized testing. Trigger with phrases like "test mobile app", "run iOS tests", or "validate Android functionality".

810

Search skills

Search the agent skills registry