AgentSkillsCN

linear-integration

在生成项目更新、状态报告,或面向利益相关方的沟通内容时,可使用此技能。

SKILL.md
--- frontmatter
name: linear-integration
description: Use this skill for requests related to Linear issues, projects, sprints, and team workload. This skill provides guidance on how to effectively query and interact with Linear data.

Linear Integration Skill

Overview

This skill provides instructions for accessing and working with Linear data through the Linea agent. Use this when the user asks about:

  • Issues, tickets, or bugs
  • Sprint/cycle status
  • Project progress
  • Team workload
  • Blockers and stalled work

Available Tools

Query Tools (Read-Only)

ToolPurposeWhen to Use
get_linear_issuesFetch issues with filtersGeneral issue queries, blockers, stalled work
get_linear_issue_detailsGet full issue detailsWhen you need specifics about one issue
search_linear_issuesText search across issuesWhen user mentions specific keywords
get_linear_project_statusProject health and progressProject status questions
get_linear_team_workloadWorkload distributionCapacity and workload questions
get_linear_cycle_statusSprint/cycle progressSprint status questions

Action Tools (Explicit Request)

ToolPurposeWhen to Use
create_linear_issueCreate a new issueUse when the user explicitly asks to file/create a ticket
add_linear_commentAdd comment to issueUse when the user wants to add context or questions
update_linear_ticketUpdate issue fieldsUse when the user wants to change priority, assignee, etc. (confirm if unclear)

Instructions

1. Understand the Request Type

Categorize the user's request:

  • Status Query: "How's the sprint?", "What's blocking us?" → Use query tools
  • Specific Lookup: "What's issue ABC-123 about?" → Use get_linear_issue_details
  • Search: "Find issues about authentication" → Use search_linear_issues
  • Action Request: "Update the priority" → Use action tools (require approval)
  • Create Request: "Create a ticket for X" → Use create_linear_issue with required fields

2. Choose the Right Filter

For get_linear_issues, use appropriate filters (and optional assignee filtering):

  • "my_issues": Current user's assigned issues
  • assignee: "Full Name" (or email) to filter by assignee
  • assigneeId: "user-id" to filter by assignee ID (preferred when known)
  • "team_issues": All team issues
  • "blockers": Issues marked as blocked
  • "stalled": Issues with no activity for 7+ days
  • "recent": Recently updated issues

3. Provide Actionable Summaries

When presenting Linear data:

  1. Lead with what matters - Blockers first, then risks, then status
  2. Use ticket identifiers - Always include IDs like "ABC-123"
  3. Show assignees - "@name" format for quick identification
  4. Suggest next steps - Don't just report, recommend

4. Handle Missing Data Gracefully

If Linear returns no results:

  • Check if the integration is connected
  • Suggest the user verify their Linear workspace
  • Offer alternative queries

Example Workflows

Sprint Status Check

  1. Call get_linear_cycle_status to get current sprint
  2. If completion < expected, call get_linear_issues(filter: "stalled")
  3. Summarize: completion %, blockers, at-risk items
  4. Suggest actions for blockers

Blocker Investigation

  1. Call get_linear_issues(filter: "blockers")
  2. For each blocker, note: assignee, age, dependencies
  3. Identify who can unblock (check mentions, related issues)
  4. Offer to add comments or escalate

Workload Analysis

  1. Call get_linear_team_workload
  2. Identify overloaded team members (>50% above average)
  3. Check for unassigned high-priority issues
  4. Suggest rebalancing if needed

Best Practices

  1. Be proactive - Don't just answer, anticipate follow-ups
  2. Show context - Include relevant links and IDs
  3. Respect privacy - Don't judge individual performance
  4. Confirm actions - Always get approval before modifying data