linear-hello-world

Featured

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

AI & Automation 2,944 stars 440 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 Hello World ## Overview Create your first issue, query teams, and explore the Linear data model using the `@linear/sdk`. Linear's API is GraphQL-based -- the SDK wraps it with typed models, lazy-loaded relations, and pagination helpers. ## Prerequisites - `@linear/sdk` installed (`npm install @linear/sdk`) - `LINEAR_API_KEY` environment variable set (starts with `lin_api_`) - Access to at least one Linear team ## Instructions ### Step 1: Connect and Identify ```typescript import { LinearClient } from "@linear/sdk"; const client = new LinearClient({ apiKey: process.env.LINEAR_API_KEY! }); // Get current authenticated user const me = await client.viewer; console.log(`Hello, ${me.name}! (${me.email})`); // Get your organization const org = await me.organization; console.log(`Workspace: ${org.name}`); ``` ### Step 2: List Teams Every issue in Linear belongs to a team. Teams have a short key (e.g., "ENG") used in identifiers like `ENG-123`. ```typescript const teams = await client.teams(); console.log("Your teams:"); for (const team of teams.nodes) { console.log(` ${team.key} — ${team.name} (${team.id})`); } ``` ### Step 3: Create Your First Issue ```typescript const team = teams.nodes[0]; const result = await client.createIssue({ teamId: team.id, title: "Hello from Linear SDK!", description: "This issue was created using the `@linear/sdk` TypeScript SDK.", priority: 3, // 0=None, 1=Urgent, 2=High, 3=Medium, 4=Low }); if (result.success) { const i...

Details

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

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category