Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Linear GraphQL Patterns

БесплатноБез исполняемых скриптовНе проверен

This skill should be used when writing or reviewing GraphQL queries against the Linear API — selecting fragments, navigating connection types, batching, and…

TheLobbiот TheLobbi★ 22 звезды на GitHub

Об этом скилле

Linear GraphQL Patterns

Reference: https://studio.apollographql.com/public/Linear-API/variant/current/schema/reference

Connection pattern (cursor pagination)

Every list query in Linear returns a Connection type:

{
  issues(first: 50, after: $cursor, filter: {...}, orderBy: updatedAt) {
    pageInfo { hasNextPage endCursor }
    nodes { id identifier title state { name } }
  }
}

Always select pageInfo { hasNextPage endCursor } for cursors. Use first: 50-100 typically; max 250.

Fragment library

Define re-usable fragments in lib/queries/fragments.graphql.ts:

fragment IssueCore on Issue {
  id
  identifier
  title
  priority
  estimate
  dueDate
  url
  state { id name type }
  team { id key name }
  assignee { id email displayName }
  parent { id identifier }
  cycle { id name }
  project { id name }
  labels { nodes { id name color } }
}

Mutation patterns

Mutations return a Payload with success + the entity:

mutation {
  issueCreate(input: { ... }) {
    success
    issue { ...IssueCore }
    lastSyncId
  }
}

Always check success before treating the entity as created.

Sync IDs

Each mutation returns lastSyncId. Pass on subsequent reads (syncId arg) to ensure consistency in eventual-consistency scenarios. Webhook payloads include dataSyncId you can match.

Avoiding the N+1 trap

Use nodes connections aggressively to fetch labels/assignees in one query rather than per-issue resolves.

Deprecation handling

  • Schema: https://linear.app/developers/deprecations
  • The linear-graphql-expert agent inspects PRs touching lib/queries/ and warns on @deprecated fields
  • Common deprecations to watch: legacy archivedAt (now trashed), state string (now state { id name type })

Complexity-aware queries

Установить Linear GraphQL Patterns в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Grep
Glob
Bash

FAQ

Что делает скилл Linear GraphQL Patterns?

This skill should be used when writing or reviewing GraphQL queries against the Linear API — selecting fragments, navigating connection types, batching, and avoiding deprecated fields. Activates on "linear graphql", "linear query", "linear api", "linear schema".

Как установить скилл Linear GraphQL Patterns?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Linear GraphQL Patterns запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Linear GraphQL Patterns с