linear-data-handling

Featured

Data synchronization, backup, and consistency patterns for Linear. Use when implementing data sync, creating backups, exporting data, or ensuring data consistency between Linear and local state. Trigger: "linear data sync", "backup linear", "linear export", "linear data consistency", "sync linear issues".

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 Data Handling ## Overview Implement reliable data synchronization, backup, and consistency for Linear integrations. Covers full sync, incremental webhook sync, JSON/CSV export, consistency checks, and conflict resolution. ## Prerequisites - `@linear/sdk` with API key configured - Database for local storage (any ORM — Drizzle, Prisma, Knex) - Understanding of eventual consistency ## Instructions ### Step 1: Data Model Schema ```typescript // src/models/linear-entities.ts import { z } from "zod"; export const LinearIssueSchema = z.object({ id: z.string().uuid(), identifier: z.string(), // e.g., "ENG-123" title: z.string(), description: z.string().nullable(), priority: z.number().int().min(0).max(4), estimate: z.number().nullable(), stateId: z.string().uuid(), stateName: z.string(), stateType: z.string(), teamId: z.string().uuid(), teamKey: z.string(), assigneeId: z.string().uuid().nullable(), projectId: z.string().uuid().nullable(), cycleId: z.string().uuid().nullable(), parentId: z.string().uuid().nullable(), dueDate: z.string().nullable(), createdAt: z.string(), updatedAt: z.string(), completedAt: z.string().nullable(), canceledAt: z.string().nullable(), syncedAt: z.string(), }); export type LinearIssue = z.infer<typeof LinearIssueSchema>; ``` ### Step 2: Full Sync Paginate through all issues, resolve relations, and upsert locally. ```typescript import { LinearClient } from "@linear/sdk"; interface SyncStats { tota...

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 Featured

linear-hello-world

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

2,266 Updated today
jeremylongshore
AI & Automation Featured

linear-performance-tuning

Optimize Linear API queries, caching, and batching for performance. Use when improving response times, reducing API calls, or implementing caching strategies for Linear data. Trigger: "linear performance", "optimize linear", "linear caching", "linear slow queries", "speed up linear", "linear N+1".

2,266 Updated today
jeremylongshore
AI & Automation Featured

linear-sdk-patterns

TypeScript/JavaScript SDK patterns and best practices for Linear. Use when learning SDK idioms, implementing pagination, filtering, relation loading, or custom GraphQL queries. Trigger: "linear SDK patterns", "linear best practices", "linear typescript", "linear API patterns", "linear pagination".

2,266 Updated today
jeremylongshore
AI & Automation Featured

linear-migration-deep-dive

Migrate from Jira, Asana, GitHub Issues, or other tools to Linear. Use when planning a migration, executing data transfer, or mapping workflows between issue tracking tools. Trigger: "migrate to linear", "jira to linear", "asana to linear", "import to linear", "linear migration", "github issues to linear".

2,266 Updated today
jeremylongshore