SuperAPI AI 工具集

triage

通用与其它

查看项目

更新于 10-15 20:14

技能介绍

用途:为当前仓库的 GitHub issue 打标签,按 type(类型)、effort(工作量)、priority(优先级)、area(领域)四类标签进行分类,并在隔离上下文中运行,避免污染主对话。

主要能力:先读取仓库上下文(当前仓库、开放 issue 数量、已有标签),再按参数确定处理范围:空参数只处理未打标签的 issue,unlabeled 只处理无任何标签的 issue,all 处理全部开放 issue,N 处理指定编号,N-M 处理编号区间。对每个 issue 读取标题与完整正文,必要时用 Glob、Grep、Read 探索代码库,然后分类为一个 type、一个 effort、一个 priority 和一个或多个 area,并记录与其他 issue 的关系(重复、相关、阻塞)。最后用 gh issue edit {number} --add-label "type,effort/level,P#,area.domain" 添加标签,并输出分类汇总表与关系表。

使用方式:依赖 gh CLI,命令包括 gh repo view --json nameWithOwner -q .nameWithOwner、gh issue list --state open --json number --jq 'length'、gh label list --json name -q '.[].name'、gh issue view {number} --json number,title,body,labels、gh issue edit {number} --add-label "..."。

规则与限制:不硬编码标签,始终先获取当前标签;不删除已有标签,只补充缺失类别;已完整标注(type+effort+priority+area)的 issue 跳过,部分标注的只补缺失类别;标题不足以判断时需查看正文;不确定的 issue 在汇总中标注而非猜测。具体标签体系与仓库配置相关,资料未提供固定标签清单。