Skip to content

新增 update-triage SKILL,以及对应的 Github Workflow,解决 triage issue 的仓库级别 SKILL 的自进化 #134

Description

@Terry-Mao

update-triage 是一个 triage 自我改进流程:从最近被 triage 过的 issue 里收集 maintainer 的后续修正信号,然后把稳定、重复的模式沉淀到 repo-local triage 规则里。

它主要更新:

  • .agents/skills/triage-issue-repo/SKILL.md
  • 必要时更新 .github/issue-triage/config.json

不会改:

  • .agents/skills/triage-issue/SKILL.md
  • .agents/skills/dedupe-issue-repo/SKILL.md
  • 其他 core skill

流程大概是:

  1. 确认 gh auth status 可用。
  2. 跑聚合脚本:

python3 .agents/srcipts/aggregate_triage_feedback.py

  1. 脚本默认看最近 7 天,找带 triaged label 且最近有更新的 issue。

  2. 对这些 issue 收集:

    • 后续 label 变更:labeled / unlabeled
    • reopened
    • maintainer 后续评论
  3. 明确排除 closed-as-duplicate 信号,因为那归 update-dedupe。

  4. 读脚本输出的 JSON,找重复模式,比如:

    • maintainer 总是把某类 issue 从 bug 改成 enhancement
    • maintainer 总是在某类 issue 里问同样的问题
    • Bot 总是推断错某类 issue 的分类/owner
  5. 如果证据足够,就最小化修改 triage-issue-repo,必要时改 label config。

  6. 如果只是单个 one-off override,不更新规则。

  7. 最后要求提交到本地分支 feat/update-triage,入口脚本会做 write-surface guard,通过后才 push/open PR。

核心原则是:只把 maintainer 反复纠正出来的 repo-specific 经验写进 local companion skill,不动跨仓库 core triage contract。

Metadata

Metadata

Assignees

Labels

area:skillsCodex skills and agent behavior guidancearea:workflowGitHub workflows and Python automation scriptsdocumentationImprovements or additions to documentationenhancementNew feature or requestready-to-implementSpec is ready for implementationrepro:highHigh-confidence or easily reproducible issuetriagedIssue has been reviewed and categorized

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions