Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

classify-review-comment

БесплатноБез исполняемых скриптовНе проверен

Classify GitHub PR review comments by severity and topic. Use when the user wants to categorize, analyze, or understand patterns in code review feedback…

openshift-engот openshift-eng★ 123 звезды на GitHub

Об этом скилле

Classify Review Comments

Classify GitHub pull request review comments into severity and topic categories. Works with a single comment (text), a GitHub comment URL, or an entire PR (classifies all comments).

This enables tracking review feedback patterns: what kinds of issues reviewers catch, how severe they are, and where AI-generated code needs the most improvement.

Labels

Read the labels file before classifying any comments:

config.json (in the same directory as this skill)

The labels file defines the exact set of valid values for severity and topic. You MUST select from these values — do not invent new labels. Each label includes a description and signal words or examples to guide your selection.

Classification rule: For each comment, find the single best-matching severity and single best-matching topic from the labels file. Match based on the label's description, signals/examples, and the comment content. Use unclassified only when no other label fits.

Input Modes

1. Single Comment (text)

Classify a comment provided directly as text.

Input: The raw comment body. Output: A single classification object.

2. Comment URL

Fetch a specific comment by its GitHub URL and classify it.

URL formats supported:

  • https://github.com/{owner}/{repo}/pull/{number}#issuecomment-{id}
  • https://github.com/{owner}/{repo}/pull/{number}#discussion_r{id}
  • https://github.com/{owner}/{repo}/pull/{number}#pullrequestreview-{id}

Fetch with:

# Issue comment
gh api repos/{owner}/{repo}/issues/comments/{id} --jq '{author: .user.login, body: .body}'

# Review comment (discussion)
gh api repos/{owner}/{repo}/pulls/comments/{id} --jq '{author: .user.login, body: .body}'

# Review body comment
gh api repos/{owner}/{repo}/pulls/{number}/reviews/{id} --jq '{author: .user.login, body: .body}'

3. Full PR

Fetch all comments on a PR, filter out noise, and classify each one.

URL format: https://github.com/{owner}/{repo}/pull/{number}

Fetch with:

# Issue-level conversation comments
gh api repos/{owner}/{repo}/issues/{number}/comments --paginate --jq '.[] | {id: .id, author: .user.login, body: .body}'

# Inline review comments
gh api repos/{owner}/{repo}/pulls/{number}/comments --paginate --jq '.[] | {id: .id, author: .user.login, body: .body}'

# Review body comments (approvals, rejections, general review summaries)
gh api repos/{owner}/{repo}/pulls/{number}/reviews --paginate --jq '.[] | select(.body != null and .body != "") | {id: .id, author: .user.login, body: .body}'

Before classifying, filter out noise comments (these carry no review signal):

  • Pure slash commands: body starts with / followed by a command word (e.g., /lgtm, /test e2e-aws, /approve, /retest, /cc)
  • CI bot notifications: authors like openshift-ci-robot, openshift-ci[bot], cwbotbot, or any *[bot] author not listed in the allowed_bots section of config.json
  • Comments matching any pattern in the noise_patterns section of config.json
  • Auto-CC commands: /auto-cc

Do classify comments from:

  • Human reviewers (all comments, including those directing bots)
  • Any bot listed in allowed_bots in config.json (classify their substantive review comments — code issues, suggestions, questions)

Classification Approach

For each comment:

  1. Read config.json to load the valid severity and topic values
  2. Scan the comment body for signal words and patterns that match label descriptions
  3. Select exactly one severity — match the comment's urgency/tone to the severity descriptions and signals
  4. Select exactly one topic — match the comment's subject matter to the topic descriptions and examples
  5. Score confidence using the rubric below
  6. When ambiguous, prefer the more specific label over unclassified
  7. When a comment spans multiple topics, pick the primary one — what is the reviewer's main concern?

Confidence Scoring Rubric

Each classification includes a confidence score (0.00–1.00) indicating how certain the classification is. Accumulate the score from these signals:

Signal Weight Criteria
Signal word match +0.25 Comment contains signal words/phrases from config.json for the chosen severity or topic label
Unambiguous category +0.25 Comment clearly fits one severity and one topic with no viable alternatives
Example pattern match +0.25 Comment closely matches a real-world example in this skill or in config.json
Context reinforcement +0.15 Multiple independent indicators point to the same classification (e.g., tone + keywords + structure all agree)
Single viable label +0.10 No other severity or topic label is a reasonable alternative

Maximum score is 1.00. When multiple signals apply, sum them and cap at 1.00.

Interpretation:

  • >= 0.95 — High confidence: classification can be auto-applied for low-
Полный SKILL.md на GitHub

Установить classify-review-comment в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

config.json

FAQ

Что делает скилл classify-review-comment?

Classify GitHub PR review comments by severity and topic. Use when the user wants to categorize, analyze, or understand patterns in code review feedback — whether for a single comment, a comment URL, or an entire pull request. Triggers on requests like 'classify this comment', 'categorize PR feedback', 'what kind of review comments does this PR have', or 'break down comments by severity'.

Как установить скилл classify-review-comment?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл classify-review-comment запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить classify-review-comment с