pr-labeling

Classify pull requests by analyzing their description and patch against predefined categories.

37.9k|3.3k|Updated Jan 14, 2026
Ready to run
npx skills add https://github.com/vercel-labs/skills --skill pr-labeling-vercel-labs
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: pr-labeling
Source: https://github.com/vercel-labs/skills/tree/main/.automations/pr-labeling/skills/pr-labeling
Command: npx skills add https://github.com/vercel-labs/skills --skill pr-labeling-vercel-labs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Manually reviewing and labeling every pull request is time-consuming for maintainers. This Skill automates the classification process by analyzing PR content and applying appropriate labels based on the type of change. ## Core Features & Use Cases - Automated Classification: Analyzes PR descriptions and code patches to detect whether changes are documentation updates, bug fixes, or enhancements. - Label Preservation: Respects existing labels chosen by maintainers, only adding new labels when the classification is confident. - Use Case: A team receives 50 pull requests per week. Instead of manually reviewing each one to tag as bug, documentation, or enhancement, this Skill automatically classifies them, freeing maintainers to focus on code review. ## Quick Start Trigger this Skill with a pull request number to automatically analyze the changes and add the appropriate label.

Frequently Asked Questions about pr-labeling

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How does the Skill classify pull requests into bug, documentation, or enhancement?▼

It analyzes the PR description, title, and code patch content. Documentation changes modify only explanatory text without altering CLI behavior. Bug fixes correct existing functionality. Enhancements add new or expanded CLI behavior, commands, or agent support.

What happens if a pull request has multiple types of changes?▼

The Skill stops without adding a label if the patch is truncated, mixed, or insufficient to classify confidently. This prevents incorrect labeling and allows maintainers to review ambiguous PRs manually.

Does the Skill override existing labels on pull requests?▼

No. If a PR already has bug, documentation, or enhancement labels, the Skill stops and preserves them. It respects prior decisions by maintainers or earlier automation runs.

Why would the Skill refuse to label a pull request?▼

The Skill stops labeling if the triggering commit no longer matches the head commit (indicating a newer push), if existing labels are present, or if the patch is too truncated or mixed to classify with confidence.

Can this Skill work with repositories other than the skills CLI?▼

The Skill's classification logic is tailored to the skills CLI project structure. Adapting it to other projects would require modifying the label categories and patch analysis rules to match different change types and naming conventions.