Automatic PR Labeling

VerifiedSafe

Automatically labels pull requests based on conventional commit types (e.g., feat: → enhancement, fix: → bug). Helps organize and filter PRs by category without manual effort.

Sby Skills Guide Bot
DevelopmentBeginner
1006/2/2026
Claude CodeCursorWindsurfCopilotCodex
#pull-requests#labeling#conventional-commits#github#automation

Recommended for

Our review

Applies labels to GitHub pull requests based on conventional commit types.

Strengths

  • Automates consistent label assignment
  • Handles multiple patterns (commit types, authors, title)
  • Integrates via the gh CLI

Limitations

  • Requires `gh` CLI installed and configured
  • Depends on commit message format
  • GitHub only
When to use it

Use this skill to automatically label your PRs based on the type of change they introduce.

When not to use it

Avoid if your PRs don't follow conventional commits or if you're using a platform other than GitHub.

Security analysis

Safe
Quality score85/100

The skill uses Bash to run 'gh pr edit' for adding labels, which is a benign operation. No arbitrary command execution, data exfiltration, or safety bypass.

No concerns found

Examples

Label PR by commit types
Label pull request #42 using conventional commit types.
Label latest PR automatically
Find the latest open PR and apply labels based on its commit messages.

name: pr-label allowed-tools: Read, Bash description: Apply labels to PRs based on conventional commit types

/pr-label — Label pull requests

Apply labels to PRs based on conventional commit types.

Label Mapping

| Commit Type | Label | |-------------|-------| | feat: | enhancement | | fix: | bug | | docs: | documentation | | chore(deps):, build(deps): | dependencies | | Author: dependabot | dependabot | | Author: renovate | renovate | | Title contains [automerge] | automerge |

Available Labels

Primary: bug, documentation, enhancement

Status: duplicate, invalid, wontfix, question, good first issue, help wanted

Automation: dependencies, dependabot, renovate, automerge, codex, refactor

Usage

gh pr edit <number> --add-label <label>

Guidelines

  • Apply one primary label based on commit type prefix
  • Do not add unrelated labels automatically
  • Labels are provisioned via Pulumi from labels.ts
Related skills