git-plugin/skills/github-labels/SKILL.md
Discover and apply GitHub labels via gh CLI. Use when asked to label a PR/issue, list available labels, or create new labels for a repository.
npx skillsauth add laurigates/claude-plugins github-labelsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Reference for discovering and applying labels to GitHub PRs and issues.
| Use this skill when... | Use something else when... | |------------------------|---------------------------| | Listing available labels in a repo | Creating or managing milestones | | Adding or removing labels on PRs/issues | Managing GitHub Projects boards | | Creating new labels with colors | Bulk-editing many issues at once | | Inheriting labels from issue to PR | Setting PR reviewers or assignees |
# List all labels with details
gh label list --json name,description,color --limit 50
# Search for specific labels
gh label list --search "bug"
# Output as simple list
gh label list --json name -q '.[].name'
# Single label
gh pr create --label "bug"
# Multiple labels (repeat flag)
gh pr create --label "bug" --label "priority:high"
# Comma-separated
gh pr create --label "bug,priority:high"
# Add to existing PR
gh pr edit 123 --add-label "ready-for-review"
# Create with labels
gh issue create --label "bug,needs-triage"
# Add to existing issue
gh issue edit 123 --add-label "in-progress"
# Remove label
gh issue edit 123 --remove-label "needs-triage"
| Category | Examples |
|----------|----------|
| Type | bug, feature, enhancement, documentation, chore |
| Priority | priority:critical, priority:high, priority:medium, priority:low |
| Status | needs-triage, in-progress, blocked, ready-for-review |
| Area | frontend, backend, infrastructure, testing, ci-cd |
When creating a PR from an issue:
gh issue view N --json labelsgh pr create --label "label1,label2"This maintains traceability and consistent categorization.
| Context | Command |
|---------|---------|
| List all labels (machine-readable) | gh label list --json name,description,color --limit 50 |
| Get label names only | gh label list --json name -q '.[].name' |
| Add label to PR silently | gh pr edit $PR --add-label "label" |
| Check current issue labels | gh issue view $ISSUE --json labels -q '.labels[].name' |
| Inherit labels from issue to PR | gh issue view $ISSUE --json labels -q '[.labels[].name] | join(",")' | xargs -I{} gh pr edit $PR --add-label {} |
testing
Verify accumulated bug claims at upstream HEAD and dedup against trackers before filing issues. Use when filing upstream reports from backlogs, audit docs, or git-history findings.
documentation
Gate outward-bound text (upstream issues, docs, PR bodies) through isolated haiku fresh-reader critique before publishing. Use when an artifact must survive a reader with zero project context.
tools
Suggest improvements to SKILL.md content, descriptions, or tool config from eval results. Use when raising pass rates, fixing triggering, or iterating on a skill after evaluation.
tools
deadbranch CLI for stale-branch cleanup — dry-run preview, TUI or non-interactive delete, protects main/develop/WIP. Use when asked to clean up branches, prune branches, or remove stale branches.