plugins/linear-orchestrator/skills/linear-graphql/SKILL.md
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".
npx skillsauth add markus41/claude Linear GraphQL PatternsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Reference: https://studio.apollographql.com/public/Linear-API/variant/current/schema/reference
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.
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 } }
}
Mutations return a Payload with success + the entity:
mutation {
issueCreate(input: { ... }) {
success
issue { ...IssueCore }
lastSyncId
}
}
Always check success before treating the entity as created.
Each mutation returns lastSyncId. Pass on subsequent reads (syncId arg) to ensure consistency in eventual-consistency scenarios. Webhook payloads include dataSyncId you can match.
Use nodes connections aggressively to fetch labels/assignees in one query rather than per-issue resolves.
linear-graphql-expert agent inspects PRs touching lib/queries/ and warns on @deprecated fieldsarchivedAt (now trashed), state string (now state { id name type })X-Complexity)tools
Build Teams-native agents with the Teams SDK (formerly Teams AI Library v2) — App class, activity routing, adaptive cards, streaming, AI-generated labels, feedback, message extensions, Teams-as-MCP-server, and the bring-your-own-AI pattern with Agent Framework.
tools
Run agents on Microsoft Foundry (formerly Azure AI Foundry) Agent Service — prompt agents vs hosted agents, threads/runs and the Responses API, built-in tools (Bing grounding, code interpreter, file search, MCP, OpenAPI, A2A), connected agents, Entra agent identity, SDKs, and observability/evaluations.
tools
Build and host custom engine agents with the Microsoft 365 Agents SDK — AgentApplication, the Activity protocol, channel reach via Azure Bot Service, hosting Agent Framework or Semantic Kernel engines, and the Agents Toolkit/Playground workflow. Successor to the Bot Framework SDK.
tools
Design, govern, and extend Microsoft Copilot Studio agents — topics, generative orchestration, knowledge, tools and MCP, agent flows, autonomous triggers, publishing channels, Copilot Credits pricing, and solution-based ALM on Power Platform.