一键导入
linear
Execute Linear GraphQL operations via the injected linear_graphql tool; use for issue state transitions, workpad comments, and PR attachment.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Execute Linear GraphQL operations via the injected linear_graphql tool; use for issue state transitions, workpad comments, and PR attachment.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create a well-formed git commit from current changes using session history for rationale and summary; use when asked to commit, prepare a commit message, or finalize staged work.
Land a PR by monitoring conflicts, resolving them, waiting for checks, and squash-merging when green; use when asked to land, merge, or shepherd a PR to completion.
Pull latest origin/main into the current local branch and resolve merge conflicts (aka update-branch). Use when Codex needs to sync a feature branch with origin, perform a merge-based update (not rebase), and guide conflict resolution.
Push current branch changes to origin and create or update the corresponding pull request; use when asked to push, publish updates, or create a pull request.
| name | linear |
| description | Execute Linear GraphQL operations via the injected linear_graphql tool; use for issue state transitions, workpad comments, and PR attachment. |
The linear_graphql tool is injected into your session. Use it for all Linear operations — one GraphQL operation per call. Treat top-level errors arrays as failures. Keep requests narrowly scoped.
Fetch team workflow states first — never hardcode state IDs:
query TeamStates($teamId: String!) {
team(id: $teamId) {
states { nodes { id name } }
}
}
Then transition:
mutation UpdateIssue($id: String!, $stateId: String!) {
issueUpdate(id: $id, input: { stateId: $stateId }) {
success
issue { id state { name } }
}
}
mutation CreateComment($issueId: String!, $body: String!) {
commentCreate(input: { issueId: $issueId, body: $body }) {
success
comment { id }
}
}
mutation UpdateComment($id: String!, $body: String!) {
commentUpdate(id: $id, input: { body: $body }) {
success
comment { id updatedAt }
}
}
mutation AttachPR($issueId: String!, $url: String!) {
attachmentLinkGitHubPR(issueId: $issueId, url: $url) {
success
attachment { id }
}
}
Start with the issue key (e.g., EC-42):
query Issue($id: String!) {
issue(id: $id) {
id identifier title state { id name } description
}
}
When unsure of field names or mutation shape, use introspection:
{ __schema { mutationType { fields { name } } } }
linear_graphql for all Linear operations — never shell curl to Linear APIs.commentUpdate, not a new commentCreate.## Codex Workpad comment as a single persistent comment per issue.