linear-install-auth
Install and configure Linear SDK/CLI authentication. Use when setting up a new Linear integration, configuring API keys, or initializing Linear in your project. Trigger with phrases like "install linear", "setup linear", "linear auth", "configure linear API key", "linear SDK setup".
- License 许可
- MIT
- 最近更新
- 2026-05-26
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- linear-install-auth
- author
- Jeremy Longshore <jeremy@intentsolutions.io>
- license
- MIT
- version
- 1.0.0
- description
- Install and configure Linear SDK/CLI authentication. Use when setting up a new Linear integration, configuring API keys, or initializing Linear in your project. Trigger with phrases like "install linear", "setup linear", "linear auth", "configure linear API key", "linear SDK setup".
- allowed-tools
- Read, Write, Edit, Bash(npm:*), Bash(pnpm:*), Bash(yarn:*), Grep
- compatible-with
- claude-code, codex, openclaw
03 SKILL.md 正文
Linear Install & Auth
Overview
Set up Linear SDK and configure authentication credentials for API access.
Prerequisites
- Node.js 18+ (Linear SDK is TypeScript/JavaScript only)
- Package manager (npm, pnpm, or yarn)
- Linear account with API access
- Personal API key or OAuth app from Linear settings
Instructions
Step 1: Install SDK
set -euo pipefail
# npm
npm install @linear/sdk
# pnpm
pnpm add @linear/sdk
# yarn
yarn add @linear/sdk
Step 2: Generate API Key
- Go to Linear Settings > API > Personal API keys
- Click "Create key"
- Copy the generated key (shown only once)
Step 3: Configure Authentication
# Set environment variable
export LINEAR_API_KEY="lin_api_xxxxxxxxxxxx"
# Or create .env file
echo 'LINEAR_API_KEY=lin_api_xxxxxxxxxxxx' >> .env
Step 4: Verify Connection
import { LinearClient } from "@linear/sdk";
const client = new LinearClient({ apiKey: process.env.LINEAR_API_KEY });
const me = await client.viewer;
console.log(`Authenticated as: ${me.name} (${me.email})`);
Output
- Installed
@linear/sdkpackage in node_modules - Environment variable or .env file with API key
- Successful connection verification output
Error Handling
| Error | Cause | Solution |
|---|---|---|
Authentication failed |
Invalid or expired API key | Generate new key in Linear settings |
Invalid API key format |
Key doesn't start with lin_api_ |
Verify key format from Linear |
Rate limited |
Too many requests | Implement exponential backoff |
Module not found |
Installation failed | Run npm install @linear/sdk again |
Network error |
Firewall blocking | Ensure outbound HTTPS to api.linear.app |
Examples
TypeScript Setup
import { LinearClient } from "@linear/sdk";
const linearClient = new LinearClient({
apiKey: process.env.LINEAR_API_KEY,
});
// Verify connection
async function verifyConnection() {
try {
const viewer = await linearClient.viewer;
console.log(`Connected as ${viewer.name}`);
return true;
} catch (error) {
console.error("Linear connection failed:", error);
return false;
}
}
OAuth Setup (for user-facing apps)
import { LinearClient } from "@linear/sdk";
// OAuth tokens from your OAuth flow
const client = new LinearClient({
accessToken: userAccessToken,
});
Resources
Next Steps
After successful auth, proceed to linear-hello-world for your first API call.
04 同仓库更多 Skills
zustand-store-ts
Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state/action separation. Use when building React state management, creating global stores, or implementing reactive state patterns with Zustand.
zustand-store-creator
Zustand Store Creator - Auto-activating skill for Frontend Development. Triggers on: zustand store creator, zustand store creator Part of the Frontend Development skill category.
zero-trust-config-helper
Zero Trust Config Helper - Auto-activating skill for Security Advanced. Triggers on: zero trust config helper, zero trust config helper Part of the Security Advanced skill category.
zapier-integration-helper
Zapier Integration Helper - Auto-activating skill for Business Automation. Triggers on: zapier integration helper, zapier integration helper Part of the Business Automation skill category.
zai-cli
Execute z.AI CLI providing vision, search, reader, and GitHub exploration via CLI and MCP. Use when user needs image/video analysis, OCR, UI-to-code conversion, error diagnosis, real-time web search, web page to markdown extraction, or GitHub code exploration. Trigger with phrases like "analyze this image", "search the web for", "read this page", "explore this repo", or "use zai". Requires Z_AI_API_KEY.
yt-research
Research competitor YouTube channels, niches, and trending topics for your content strategy. Use this skill whenever the user says "research channels", "analyze competitors", "find trending topics", "niche analysis", "competitive research", "what are other creators doing", "scrape YouTube channels", or wants to understand the competitive landscape for a specific tool or topic area. Use when working with yt research. Trigger with 'yt', 'research'.