AgentSkillsCN

linear:notifications

管理Linear通知收件箱。当您需要列出、筛选或归类Linear通知时,此工具将助您快速定位关键信息。

SKILL.md
--- frontmatter
name: linear:notifications
description: Managing Linear notifications inbox. Use when listing, filtering, or triaging Linear notifications.
allowed-tools:
  - mcp__linear
  - Bash

Linear Notifications

<!-- TODO: Switch to `linear api` when the CLI api subcommand lands (https://github.com/bendrucker/claude/issues/353) -->

Manage the Linear notifications inbox via GraphQL. Use query.ts from the linear:linear skill for ad-hoc queries until the Linear CLI gains an api subcommand.

Listing

bash
bun ${SCRIPTS}/query.ts 'query {
  notifications(first: 50, filter: { readAt: { null: true } }) {
    nodes {
      id type readAt archivedAt
      ... on IssueNotification {
        issue { identifier title url state { name } }
        comment { body }
      }
    }
  }
}'

Where ${SCRIPTS} is the scripts/ directory from the linear:linear skill.

Notification Types

TypeDescription
IssueAssignedToYouIssue assigned to you
IssueCommentMentionMentioned in a comment
IssueStatusChangedStatus change on subscribed issue
IssuePriorityUrgentIssue marked urgent

Actions

Archive:

graphql
mutation { notificationArchive(input: { id: "..." }) { success } }

Mark all read:

graphql
mutation { notificationMarkAllAsRead(input: {}) { success } }

Filtering

Add filters to the query:

graphql
notifications(first: 50, filter: { type: { eq: "IssueAssignedToYou" } })
notifications(first: 50, filter: { archivedAt: { null: true } })