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,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 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
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-core-workflow-a

Issue lifecycle management with Linear: create, update, transition, relate, comment, and organize issues through the SDK and GraphQL API. Trigger: "linear issue workflow", "linear issue lifecycle", "create linear issues", "update linear issue", "linear state transition", "linear sub-issues", "linear comments".

2,266 Updated today
jeremylongshore
AI & Automation Solid

linear

Manage Linear issues, projects, and teams via the GraphQL API. Create, update, search, and organize issues. Uses API key auth (no OAuth needed). All operations via curl — no dependencies.

173,893 Updated today
NousResearch
API & Backend Listed

linear

Manages Linear issues, teams, and projects via CLI. Lists issues, creates tasks, views details, links issues, and runs GraphQL queries. Must use for "my Linear issues", "create Linear task", "link issues in Linear", "Linear API query", or any Linear project management request.

335 Updated today
aiskillstore
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
Data & Documents Listed

linear-workspace

Linear issue management — routes work to specialized agents and slash commands. Use when: creating, updating, searching, bulk-editing, cleaning up, syncing Linear. TRIGGERS: "linear", "ticket", "issue", "create issue", "update issue", "search issues", "my issues", "bulk", "cleanup", "sync", "log bug", "file issue", "report bug", "new ticket", "add task", "open ticket", "open issue", "throw this in linear", "track this in linear", "capture as issue", "put on the backlog".

5 Updated yesterday
Elnora-AI