Community研究与数据分析github.com

ComposioHQ/issue-triage

通过Composio CLI对Linear或Jira的待处理工单进行分诊和Bug扫描。批量获取问题、去重、重新标记、重新分配、发布摘要——全部在终端中完成,无需点击界面。

issue-triage 是什么?

该技能使AI Agent能够通过Composio CLI直接与Linear和Jira交互,执行高效的工单分诊和Bug扫描任务。它可以批量获取待处理工单,通过标题相似度和标签进行去重聚类,然后在一个循环中应用更新(如添加标签、修改优先级、分配负责人)。此外,它还能为重复工单添加评论并关联主工单,最后将变更摘要发布到Slack等协作工具。该技能支持Linear和Jira两种平台,并提供了跨工具联动示例(如Sentry→Linear)以及优化建议(如应对频率限制)。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComposioHQ/awesome-codex-skills/tree/main/issue-triage

Installed? Explore more 研究与数据分析 skills: affaan-m/uspto-database, affaan-m/scholar-evaluation, affaan-m/literature-review · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

问题分诊(Linear / Jira)

通过Composio CLI驱动Linear或Jira的分诊会话和Bug扫描。拉取待处理工单、聚类重复项、应用标签,然后将干净整洁的列表交给团队。

何时使用

  • 每周分诊:“哪些工单未分配、已过时或缺少优先级?”
  • 发布后的Bug扫描:“将所有P1/P2 Bug聚类、去重、分配负责人。”
  • 跨工具同步:Sentry → Linear,PagerDuty → Jira。

前置条件

curl -fsSL https://composio.dev/install | bash
composio login
composio link linear        # 或:composio link jira

发现工具

composio search "list issues" --toolkits linear
composio search "search issues" --toolkits jira
composio tools list linear
composio tools list jira

常用标识(使用 --get-schema 验证):

Linear

  • LINEAR_LIST_ISSUES
  • LINEAR_CREATE_ISSUE
  • LINEAR_UPDATE_ISSUE
  • LINEAR_CREATE_COMMENT

Jira

  • JIRA_SEARCH_FOR_ISSUES_USING_JQL
  • JIRA_CREATE_ISSUE
  • JIRA_EDIT_ISSUE
  • JIRA_ADD_COMMENT
  • JIRA_ASSIGN_ISSUE

分诊工作流

  1. 拉取待处理工单切片:
    # Linear
    composio execute LINEAR_LIST_ISSUES -d '{
      "filter": { "state": { "type": { "eq": "unstarted" } }, "assignee": { "null": true } },
      "first": 100
    }'
    
    # Jira
    composio execute JIRA_SEARCH_FOR_ISSUES_USING_JQL -d '{
      "jql": "project = APP AND statusCategory != Done AND assignee is EMPTY ORDER BY updated DESC",
      "maxResults": 100,
      "fields": ["summary","priority","labels","updated","reporter"]
    }'
    
  2. 聚类:根据标题相似度和标签进行聚类。Agent在本地对可能的重复项进行分组。
  3. 一次性应用更新(标签、优先级、负责人):
    composio execute LINEAR_UPDATE_ISSUE -d '{
      "id":"abc-123","priority":2,"labelIds":["label-bug","label-p1"],"assigneeId":"user-42"
    }'
    
    composio execute JIRA_EDIT_ISSUE -d '{
      "issueIdOrKey":"APP-482",
      "fields":{"priority":{"name":"High"},"labels":["bug","p1"]}
    }'
    
  4. 关联重复项:通过评论引用主工单。
  5. 发布摘要:将变更情况发布到Slack,让团队了解扫描结果。

Bug扫描(发布后)

# Jira:过去7天内提交的所有Bug,按严重性排序
composio execute JIRA_SEARCH_FOR_ISSUES_USING_JQL -d '{
  "jql":"type = Bug AND created >= -7d ORDER BY priority DESC, created ASC",
  "fields":["summary","priority","labels","reporter","components"]
}' | jq -r '.issues[] | "\(.fields.priority.name)\t\(.key)\t\(.fields.summary)"'

工作流文件

scripts/triage-linear.ts,使用 composio run --file scripts/triage-linear.ts 运行:

const { nodes: issues } = await execute("LINEAR_LIST_ISSUES", {
  filter: { state: { type: { eq: "unstarted" } }, assignee: { null: true } },
  first: 100
});

const stale = issues.filter(i => {
  const age = (Date.now() - new Date(i.updatedAt).getTime()) / 86400000;
  return age > 14;
});

for (const i of stale) {
  await execute("LINEAR_CREATE_COMMENT", {
    issueId: i.id,
    body: "自动分诊:已过时14天以上。请分配或关闭。"
  });
}

await execute("SLACK_SEND_MESSAGE", {
  channel: "triage",
  text: `每周分诊:已提醒 ${stale.length} 个过时问题。`
});

跨工具:Sentry → Linear

composio run '
  const hot = await execute("SENTRY_LIST_A_PROJECTS_ISSUES", {
    organization_slug:"acme", project_slug:"api",
    query:"is:unresolved", sort:"freq", limit:5
  });
  for (const s of hot) {
    await execute("LINEAR_CREATE_ISSUE", {
      teamId: "TEAM_ID",
      title: `[Sentry] ${s.title}`,
      description: `${s.permalink}\n出现次数: ${s.count}`,
      labelIds: ["label-bug","label-from-sentry"]
    });
  }
'

故障排除

  • 未知字段名 → composio execute <SLUG> --get-schema 显示确切的筛选条件结构(Linear使用嵌套对象;Jira使用JQL字符串)。
  • Linear返回 403 → 使用正确的Workspace重新运行 composio link linear。
  • Jira自定义字段缺失 → 在 fields 数组中显式请求它们。
  • 批量编辑触发频率限制 → 在 composio run 循环中插入250ms延迟;不要使用 --parallel。

完整CLI参考文档:docs.composio.dev/docs/cli

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ComposioHQ/-21risk-automation

Automate 21risk tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/-2chat-automation

Automate 2chat tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/ably-automation

Automate Ably tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abstract-automation

Automate Abstract tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abuselpdb-automation

Automate Abuselpdb tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abyssale-automation

Automate Abyssale tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/accelo-automation

Automate Accelo tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/accredible-certificates-automation

Automate Accredible Certificates tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/acculynx-automation

Automate Acculynx tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/active-campaign-automation

Automate ActiveCampaign tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/addresszen-automation

Automate Addresszen tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adobe-automation

Automate Adobe tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adrapid-automation

Automate Adrapid tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adyntel-automation

Automate Adyntel tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/aeroleads-automation

Automate Aeroleads tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/aero-workflow-automation

Automate Aero Workflow tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/affinda-automation

Automate Affinda tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/affinity-automation

Automate Affinity tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/agencyzoom-automation

Automate Agencyzoom tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/agent-deep-links

Build, validate, and troubleshoot deep links for Codex, Cursor, VS Code, Visual Studio, and similar tools. Use when users ask for clickable links (especially in Slack) that open threads, files, folders, or app settings.

相关技能