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★ 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-expertagent inspects PRs touchinglib/queries/and warns on@deprecatedfields - Common deprecations to watch: legacy
archivedAt(nowtrashed),statestring (nowstate { id name type })
Complexity-aware queries
- Each query has a complexity cost (visible in response headers
X-Complexity) - Keep cost < 1000 per query; split heavy joins across multiple
- See: https://linear.app/developers/rate-limiting
Установить Linear GraphQL Patterns в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobBashFAQ
Что делает скилл 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), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic