界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
开发与工程 · SKILL.md

pr-labeling

pr-labeling

【开发与工程】Classify a skills CLI pull request from its description and patch, while respecting existing labels.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: pr-labeling description: Classify a skills CLI pull request from its description and patch, while respecting existing labels.

Label a skills CLI pull request

  1. Use read_pull_request with the number in the trigger message. Read the title, description, current labels, and changed file patches. If the head commit no longer matches the triggered commit, stop so a newer run can classify it.
  2. If the pull request already has bug, documentation, or enhancement, stop. Keep labels chosen by maintainers or earlier runs.
  3. Choose one label from the primary change supported by the patch:
    • documentation: changes only documentation, examples, or explanatory text, without changing CLI behavior.
    • bug: corrects existing CLI behavior, including installation, update checks, source parsing, agent detection, or security checks.
    • enhancement: adds or intentionally expands CLI behavior, commands, agent support, or integration support.
  4. If the patch is truncated, mixed, or insufficient to classify confidently, stop without adding a label. Do not infer a label from the title alone.
  5. Use add_label once, with the triggering pull request number and the chosen label.
我的收藏