No slash command · from git-plugin
Discovers and applies GitHub labels using the gh CLI with a build:/area:/needs: taxonomy. Use when labeling PRs/issues, checking repo labels, or creating labels.
Ships in git-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Reference for discovering and applying labels to GitHub PRs and issues, and for the prefix taxonomy a repository may follow.
| 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 |
Choosing a build:, area:, core: or needs: label | Bulk-editing many issues at once |
| Inheriting labels from issue to PR | Setting PR reviewers or assignees |
| Provisioning or auditing a repo's label taxonomy | Linking issues by dependency (git-issue-hierarchy) |
The labels a repository has are its vocabulary. Apply those, and read them before choosing:
.github/issue-labels.json when it exists. It is the repo's taxonomy
file: its build: and area: labels, and the paths and title scopes that
select each one.gh label list --limit 500 --json name,description,color
# Search for specific labels
gh label list --limit 500 --search "bug"
gh label list returns 30 labels unless --limit says otherwise, so on a
larger repo a label that exists reads as missing.
| Label | Says | Defined in |
|---|---|---|
bug, enhancement, chore, docs, security, refactor | Type: the kind of change. One per issue or PR | The standard set shared by the owner's repos |
build:<name> | The build in a monorepo it belongs to: one firmware, app or package among several | The repo's taxonomy file |
area:<name> | A toolchain or subsystem that cuts across builds | The repo's taxonomy file |
core:<name> | Repo machinery: core:ci, core:quality, core:agent, core:build, core:components, core:docs | The standard set |
needs:hardware, needs:decision, needs:human, blocked | What stops the issue being picked up | The standard set |
An issue carries one type label and at least one routing label (build:,
area: or core:). A repository that does not use these prefixes is labelled
with whatever gh label list shows.
To add a build: or area: label, add an entry to the taxonomy file; the
provision subcommand creates it. A label from the standard set is added
wherever the owner manages that set (often infrastructure as code), because a
gh label create for one of them drifts from it. Ask before creating any other
label.
| Label | Set by | Cleared by |
|---|---|---|
needs:hardware | An agent or the maintainer, when the next step needs physical hardware: a bench check, a test print, a measurement | The maintainer, or an agent recording the maintainer's result in a comment. Automation leaves it alone |
needs:decision | An agent stopping on a call that is the maintainer's, with a comment giving the options and a recommendation | Whoever records the decision in a comment |
needs:human | An agent, when the work needs a live session, credentials, local data or a scheduled run | The maintainer, or the agent that lands the work |
blocked | Together with a blocked_by dependency link when the blocker is an issue; by hand when it is a PR or an upstream change | The unblock subcommand for linked issues; by hand otherwise |
The dependency link is the record and blocked shows it on the issue list.
Add the link with the git-issue-hierarchy skill (--blocked-by <N>), then
the label. A blocked label with no link behind it is cleared by a person,
since nothing records what it waits for.
The REST write is POST repos/<owner>/<repo>/issues/<n>/dependencies/blocked_by
with the blocker's integer id (-F issue_id=<id>, not its number), as
GitHub's REST reference documents it. The two read endpoints
(dependencies/blocked_by, dependencies/blocking) were checked against the
live API on 2026-11-10; the write call is pending verification against it.
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/issue-labels.py" <subcommand> --repo <owner>/<repo>
| Subcommand | Does | Writes |
|---|---|---|
provision | Creates the taxonomy file's missing build: and area: labels, updates colour and (when the entry gives one) description, renames through renamed_from. Refuses any other name, and a rename from a type, core:, needs:, blocked, merge:* or dependencies label; an unprefixed label may be renamed. Deletes nothing. An absent taxonomy file is taxonomy_missing, an empty one taxonomy_empty. --dry-run prints the actions | Labels |
classify --issue <N> or --pr <N> | Prints the labels the item's title, body and changed files point at, as JSON (add). A prefix that already has a label is skipped. It does not set security | Nothing |
validate --issue <N> --labels-file <file> | Filters labels a model proposed: type labels and build:/area:/core:/needs: names that exist in the repo. A needs: label is kept only with a quote found in the issue, and of two type labels only the first | Nothing |
unblock --issue <N> | After issue N closes, removes blocked from each open issue it was blocking whose blocked_by issues are all closed | Removes blocked |
audit | Lists open issues with no type label, no routing label, blocked without a link, an open blocked_by link without blocked, or a needs: label older than --needs-stale-days (30) | Nothing |
apply-audit | Adds blocked for open_link_not_blocked, removes it for blocked_resolved; never adds a label the repo lacks. --dry-run | Adds or removes blocked |
backfill | Lists open issues missing a type or routing label, oldest first, with classify's labels, up to --max-issues (25). Ones it derives nothing for are listed apart and do not count. --json | Nothing |
classify reads a title in three forms:
| Title | Type | Scope looked up in the taxonomy |
|---|---|---|
[Bug] parser: crashes on empty input | bug | parser |
fix(parser): handle empty input | bug | parser |
parser: crashes on empty input | none | parser |
[DNS]: add a record | none | dns (the bracket word) |
A type word (docs, ci, fix, ...) leading a conventional title is not a
scope when a parenthesised scope follows it, so docs(parser): ... selects
parser and not core:docs. Set "type_words_as_scope": true at the top of
the taxonomy file to offer it as one. A bare type word with no parenthesised
scope (docs: ..., ci: ...) is the title's only scope and is offered either
way. A word inside the parentheses, or before the colon after a bracket
([Chore] ci: ...), is always a scope. A bracket word that is not a type word
is a scope too, so an issue form's [GitHub Repo]: ... title is routed by a
taxonomy entry with the scope github repo. [Bench] and hw(...) map to
enhancement, [Task] and task(...) to chore. A feedback(<plugin>): ...
title maps to no type: feedback-plugin's feedback-session sets bug,
enhancement or positive-feedback itself when it files the issue.
An issue with no routing label from its title scope is routed by the repo paths
its body quotes; a scope whose label the repo lacks counts as no scope. A PR
takes the labels its changed files match, up to "max_routing_labels" routing
labels in all (default 3): the title's count first, then the labels matching
the most files; the rest are listed under capped.
A body token is a path only when it has a / or a .: docs/ and
./justfile are paths, the words "docs" and "justfile" are not. classify and validate only print labels;
apply them with gh issue edit <N> --add-label. audit findings come back as
STATUS=WARN with exit 0, and a failed read as STATUS=ERROR with exit 1.
# Single label
gh pr create --label "bug"
# Multiple labels (repeat flag)
gh pr create --label "bug" --label "area:parser"
# Comma-separated
gh pr create --label "bug,area:parser"
# Add to existing PR
gh pr edit 123 --add-label "core:ci"
# Create with labels
gh issue create --label "bug,build:firmware"
# Add to existing issue
gh issue edit 123 --add-label "needs:decision"
# Remove label
gh issue edit 123 --remove-label "needs:decision"
When creating a PR from an issue:
gh issue view N --json labelsgh pr create --label "label1,label2"The needs: and blocked labels describe the issue's state and stay on the
issue.
| Context | Command |
|---|---|
| List all labels (machine-readable) | gh label list --limit 500 --json name,description,color |
| Get label names only | gh label list --limit 500 --json name -q '.[].name' |
| Derive labels for an issue | python3 "${CLAUDE_PLUGIN_ROOT}/scripts/issue-labels.py" classify --repo $REPO --issue $ISSUE |
| Sweep open issues for label gaps | python3 "${CLAUDE_PLUGIN_ROOT}/scripts/issue-labels.py" audit --repo $REPO |
| 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' |
What SKILL.md sets; muted values are Claude Code's defaults
52 skills in this plugin
/deadbranchdeadbranch 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./external-pr-trustAuthorship as a precondition of merging — bot vs stranger classification, what a merge executes, the merge-guard hook. Use when bulk-merging PRs, or when a merge is denied for a non-self author./gh-cli-agenticgh CLI commands with JSON output for agents. Use when querying PRs, issues, runs, or repo metadata; inspecting PR checks; fetching failed CI logs; or mapping a github.com URL to an API call.npx claudepluginhub laurigates/claude-plugins --plugin git-pluginOther plugins' skills for the same job