/agents-skills:gh-issue-labelsfrom agents-skills
Defines the GitHub label taxonomy for multi-agent orchestration: agent-model, agent-effort, agent-claimed, do-not-dispatch, do-not-rebase, and ready-to-dispatch. Consult before any dispatch or claim decision.
Ships in agents-skills. 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.
Read when SKILL.md points to them; scripts run unread.
A small set of GitHub labels forms the persistent, auditable control plane between human operators and orchestrating agents. Labels survive across sessions, are visible to every concurrent operator, and are machine-readable in pre-dispatch filters — properties that chat instructions and issue comments do not have. This skill defines the full taxonomy: what each label means, who sets it, who consumes it, and the resolution rules when signals conflict.
Companion skills: issue selection and the dispatch brief live in the
dispatching-subagents skill; the claim/lock/release protocol behind agent-claimed
lives in the gh-issue-locking skill; the slot loop that reads these labels every round
lives in the orchestrating-slots skill; PR-side mechanics behind do-not-rebase live
in the driving-prs-to-merge skill. The Jira equivalent (Jira fields/labels instead of
GitHub labels) is the jira-issue-fields skill.
Adopting projects define these values in their own CLAUDE.md. Refer to them by placeholder everywhere below.
| Binding | Meaning | Example |
|---|---|---|
<workhorse-model> | Default model for all code-writing dispatches | sonnet |
<cheap-model> | Model for narrow mechanical tasks only — deliberately has NO label | haiku |
<premium-models> | Operator-gated high-attention models (one label each) | opus, fable |
<integration-branch> | Branch PRs target (affects close-on-merge, see gh-issue-locking) | dev |
<repo-slug> | org/repo for --repo flags in label REST calls; see gh-issue-filing for the canonical definition | acme/widgets |
<auto-rebase-automation> | Whatever workflow/bot rebases open PRs onto <integration-branch> | a scheduled auto-rebase workflow |
<operator-logins> | GitHub logins of humans running orchestrators concurrently — resolved at runtime; assignees are set via gh api user --jq .login | resolve dynamically |
<lock-comment-format> | Parseable lock-comment marker paired with agent-claimed — full spec in gh-issue-locking | <!-- claude-lock: ... --> |
Create the labels themselves with scripts/bootstrap-labels.sh (see "Bootstrapping a
new repo" below). The label names (agent-model:*, agent-effort:*,
agent-claimed, do-not-dispatch, do-not-rebase, ready-to-dispatch) are portable
as-is; only the model identifiers inside agent-model:* are project-specific.
Label-name matching is case-sensitive in jq filters. Whatever casing the bootstrap
script creates is the only casing your queries may assume — e.g. index("do-not-dispatch")
must match the bootstrapped name exactly. GitHub label uniqueness is case-insensitive,
but the string comparison in jq is not.
| Label | Lives on | Who sets it | Who consumes it | Effect |
|---|---|---|---|---|
agent-model:<workhorse-model> | Issues | Operator | Orchestrator, at dispatch | Pin this issue to the workhorse model (defends against future default changes) |
agent-model:<premium-model> (one label per premium model) | Issues | Operator only | Orchestrator, at dispatch | Authorize AND force the premium model — counts as the operator's explicit instruction |
agent-effort:low|medium|high|max | Issues | Operator | Orchestrator, at dispatch | Effort level; translated into a prose directive inside the dispatch prompt (no API param exists) |
agent-claimed | Issues | Orchestrator | Every orchestrator/operator | Active lock: this issue is being worked. Always paired with assignee + parseable lock comment (gh-issue-locking skill) |
do-not-dispatch | Issues | Operator only | Every orchestrator | Hard hold: never claim, never dispatch, never recon-into-implementation. Operator removes it when the hold lifts |
do-not-rebase | PRs | Orchestrator or operator | <auto-rebase-automation> | Skip auto-rebase for this PR to stop CI-cancellation starvation |
ready-to-dispatch | Issues | Triage/grooming pass | Orchestrator, at issue selection | Advisory "this issue is groomed and dispatchable" signal. Never authoritative — re-verify before locking |
How each maps onto the dispatch mechanics:
agent-model:* maps directly to the model parameter on the Agent/Task
tool call (agent-model:opus → model: "opus").agent-effort:* has no corresponding API parameter. If you do not translate it
into prose inside the dispatch prompt, the operator's effort instruction is silently
dropped. See "Effort labels" below for the verbatim directives.Read labels at issue-selection time, before resolving model/effort:
gh issue view <N> --json labels
When writing labels, do not trust exit codes. gh issue edit / gh pr edit can
exit 0, print a "Projects (classic) is being deprecated" GraphQL warning, and persist
nothing — the whole mutation rolls back silently. Observed in practice, this
left a required check red and auto-merge silently disabled on a PR. After any label
mutation that matters (a claim, a hold, a do-not-rebase), verify with
gh issue view <N> --json labels / gh pr view <N> --json labels, or apply via the
REST API directly:
gh api repos/<owner>/<repo>/issues/<N>/labels -f "labels[]=do-not-rebase"
(The REST endpoint works for PRs too — PRs are issues in the API.)
Resolve the model for every dispatch from three sources, highest precedence first:
agent-model:*) — the persistent per-issue control.<workhorse-model> for anything that writes or modifies code;
<cheap-model> only for narrow mechanical tasks where errors are immediately
visible (file-path lookups, running a fixed command and parsing output, listing
issues, summarizing a diff).If the choice is still ambiguous after all three sources, default to the workhorse and proceed — pausing to ask the operator stalls the whole orchestration round on a decision that has a safe default.
Why this shape: it gives the operator a transient knob (chat) and a persistent per-issue knob (label) without the orchestrator ever exercising its own judgment about model spend. The label is deliberate, auditable, and survives across orchestration sessions; the chat instruction handles the one-off exception.
Premium models are operator-gated: never dispatch on one from your own initiative, and never infer one from your own "this is complex" read of the issue. The reason is cost discipline learned from real incidents — self-judged escalation inflates spend, and the operator is the only party with the budget context to decide per dispatch.
That gate creates an apparent tension with labels, resolved like this: setting
agent-model:<premium-model> on an issue counts as the operator saying so. The
operator placed that label deliberately; honor it. The symmetric failures are both
anti-patterns:
Evidence observed in practice (a PR-review thread): three consecutive cheap-model rounds shipped non-passing "fixes" — incomplete fixes, mis-scoped edits, ignored brief constraints — before a single workhorse-model agent diagnosed the root cause. The token savings were smaller than the rework cost. Hence: the workhorse model is the default for all code-writing dispatches (implement, refactor, fix, write/repair tests, edit configs, modify workflows), and the cheap tier is reserved for tasks where a wrong answer is obvious at a glance.
There is deliberately no agent-model:<cheap-model> label. The label family is
one-directional: it exists to grant or pin spending authority (pin the workhorse,
authorize a premium tier), not to let anyone force a code-writing task onto a model
proven to ship subtle bugs. A cheap-tier label on an issue would be an invitation to
repeat exactly the rework failure mode that set the policy. The cheap model remains a
tool-task choice the orchestrator makes for mechanical sub-steps, never an
escalation/de-escalation knob on issues.
For maximum token savings, <cheap-model> is each platform's cheapest native model — Haiku 4.5 on Claude Code, Raptor Mini / GPT-mini on Copilot, the free Auto tier on Cursor (see MODEL-DEFAULTS.md) — and mechanical sub-steps run as a cheap-tier subagent that returns a distilled, caveman answer rather than spending the orchestrator's context (see the dispatching-subagents skill).
agent-effort:* is consumed by writing an effort directive into the dispatch prompt
(the dispatching-subagents skill owns the full prompt template). There is no API
parameter, so the translation step is load-bearing:
| Label | Directive to include in the dispatch prompt |
|---|---|
agent-effort:max | "Work at maximum effort: be exhaustive, verify every acceptance criterion, do not take shortcuts." |
agent-effort:high | "Work carefully and multi-step: verify each acceptance criterion before moving on." |
agent-effort:medium | Normal multi-step work — no special directive needed beyond the standard brief. |
agent-effort:low | "This is a quick, mechanical change — keep it minimal." |
Effort resolution follows the same precedence as model: chat instruction > label >
default (normal, no special directive). An explicit chat instruction like "max
effort" overrides an agent-effort:low label for that dispatch.
If an issue carries agent-model:<premium-model> and your current session cannot
actually dispatch on that model (no access or entitlement), do not silently
downgrade and do not sit on the issue:
agent-claimed, unassign yourself, and retract or
expire the lock comment per the gh-issue-locking skill.agent-model:* label in place.Why: the label is an explicit operator instruction for that model. Silently downgrading violates the precedence contract — the operator chose that model deliberately, possibly because cheaper attempts already failed. Holding the claim while unable to act starves the issue. Releasing while preserving the label routes the work to an operator who can honor the instruction, without losing it.
agent-claimed: the active-lock markeragent-claimed marks an issue as actively being worked by an orchestrator. It is one
of three required signals — label + GitHub assignee + parseable lock comment —
because different audiences read different channels: humans scan assignees at a
glance, scripts grep for the lock-comment marker, and the label drives list filters.
Any one alone gets missed by someone. The full claim/release protocol, stale-expiry
window, and multi-operator etiquette live in the gh-issue-locking skill; the rule that
belongs here is: lock before dispatching, never after — the window between
dispatch and lock is exactly when concurrent orchestrators double-claim.
do-not-dispatch: the operator holddo-not-dispatch is a hard, operator-owned hold. Never claim, dispatch, or
recon-into-implementation an issue carrying it, regardless of priority, staleness,
or how confident you are about the fix. Only the operator removes it.
Why it must be a label and not a comment: in practice, four explicit
"do not implement" comments on an issue failed to stop a sibling orchestrator from
shipping a PR — which broke the deploy for roughly two hours on a missing
cross-account prerequisite the operator had been holding for. Comments are prose
that a busy orchestrator skims past; a label is machine-readable in the pre-dispatch
filter and cannot be missed by a correctly written query. Your issue-selection query
must exclude both agent-claimed and do-not-dispatch:
gh issue list --state open --json number,labels,assignees \
--jq '[.[] | select((.labels | map(.name) | index("agent-claimed") or index("do-not-dispatch")) | not)]'
If you discover an issue was dispatched in error against a hold: stop the agent, revert anything pushed, and re-state the hold in a comment defensively (label stays).
do-not-rebase: breaking auto-rebase starvationIf the project runs <auto-rebase-automation> that rebases open PRs whenever
<integration-branch> moves, a starvation pattern emerges: sibling PRs merging every
few minutes + a CI suite that takes longer than the merge cadence = every CI run
cancelled by a new base SHA before it finishes. In production one
PR accumulated 5 consecutive cancelled runs in ~50 minutes. do-not-rebase opts a PR
out of the automation so one run can complete.
This label is opt-in and reactive — never auto-applied. Most projects don't run an auto-rebase automation at all; if yours doesn't, the label is unused and you never touch it.
Operational rules (only when <auto-rebase-automation> actually exists):
gh pr edit silent-rollback hazard — this exact label was the context in which the
workaround was established).ready-to-dispatch: advisory only — never authoritativeA grooming or triage pass may apply ready-to-dispatch to mark an issue as
well-specified and unblocked (the gh-issue-filing skill covers what "groomed"
means). The orchestrator may use it to rank candidates. It must never be used to
authorize a claim, because the label lies: it persists after another operator
claims the issue. In practice, stale ready-to-dispatch labels caused
four double-locked issues in one session.
The only authoritative claim gate is the assignee field. Immediately before locking — not at selection time, immediately before — re-verify:
gh issue view <N> --json assignees --jq '.assignees | length == 0'
If non-empty, someone else owns it; move on. See the gh-issue-locking skill for the full pre-lock checklist.
Run the bundled script once per repository. On a repo with pre-existing labels of
the same names, --force overwrites their color/description — the script echoes
"updating existing label <name>" when it detects this.
scripts/bootstrap-labels.sh [-R owner/repo] workhorse-model premium-model ...
# Example:
scripts/bootstrap-labels.sh -R acme/widgets sonnet opus fable
Model identifiers are required positional arguments. The first is the workhorse
tier; any others are premium tiers. Pass only the workhorse and premium identifiers
you actually use — the script creates one agent-model:* label per identifier. The
script cannot detect which tier is your cheap model; the convention (no cheap-tier
label) is your responsibility to enforce by omitting that identifier from the
argument list.
It creates the full taxonomy with descriptions and colors:
agent-model:<each model you pass>, agent-effort:{low,medium,high,max},
agent-claimed, do-not-dispatch, do-not-rebase, ready-to-dispatch.
After bootstrapping, record the bindings table (top of this skill) in the project's CLAUDE.md so every orchestrator session resolves the same values.
Model defaults, the slot cap, and queue ceremonies change repeatedly as the operator tunes them (the cheap-model default was fully inverted once; the slot cap changed eight times in one observed deployment). Treat the mechanism in this skill — the label families, precedence order, and consumption rules — as stable, but treat the specific tier assignments and defaults as operator policy the project's CLAUDE.md may override. When this skill and the adopting project's CLAUDE.md disagree on a binding value, the project's CLAUDE.md wins.
This skill runs in high-volume, repetitive orchestration loops where tokens compound across many rounds and many agents. Operate in caveman mode (load the caveman skill) to cut token use on all working output — status, reasoning, slot tables, completion reports, dispatch and coordination chatter.
Caveman compresses prose only. It must NEVER alter machine-precise content, which stays byte-exact: lock-comment markers, the RECON OK / RECON-ERROR contract lines, JQL, gh / Atlassian-MCP commands, label and field names/values, file:line references, code blocks, and acceptance-criteria checklists. Compress the narration, never the protocol.
Durable prose a human reads later — issue/ticket bodies and PR descriptions — is the exception: write those through the humanizer skill (see the issue-filing skill), not in caveman.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
32 skills in this plugin
/browser-diagnosisReproduce and root-cause a front-end bug in a real browser using whichever browser MCP is connected — Chrome (claude-in-chrome), Playwright, Cypress, or Chrome DevTools — not just one. Drive the page as the signed-in user, watch the network and console, capture the failing request/response, shim/mock to isolate the fault, and record a repro, then hand the evidence to the issue being filed. Use whenever a symptom needs live-browser evidence (the toast says failed but it saved, a column shows zero, a click 404s) and from the /…-use-browser command family (and the engine-pinned /…-use-chrome, /…-use-playwright, /…-use-cypress variants), the /…-use-aws-browser commands, and the diagnostician agent. Picks the available MCP automatically and degrades gracefully when none is connected./cavemanUltra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested./ci-flake-huntingThe authoritative method for hunting, root-causing, and fixing CI flakes so the merge queue stops ejecting correct PRs and churn drops. A flake is a test that fails then passes on retry with NO code change explaining it — every red speculative merge-queue build ejects a correct PR and disarms its auto-merge, so a live flake taxes every PR behind it. Encodes the loop — MINE CI history for real flakes → REPRODUCE harsher-than-CI → ROOT-CAUSE the real mechanism (hydration/render race, settle race, mock-order, loading-state race, click-through fragility) → FIX FORWARD (test or component, never mask) → VERIFY by re-running many times → UNSTICK the PRs the flake stranded → REPEAT. And how to tell a true code flake from transient INFRA (CDN/mirror outage, expired token mid-suite, rate-limit/WAF, external-service cap, cloud state-lock, CI-provider billing/outage, upstream bump) which must NOT be code-fixed. Use whenever chasing CI instability, "deflake this spec", "CI keeps ejecting my PR", "is this a flake or real", a shard that intermittently reds the queue, or running the ci-flake-hunter lane. Distinct from ci-speed-hunting (which owns slow-but-green jobs — flake never touches timing/sharding)./ci-speed-huntingThe authoritative method for hunting, diagnosing, and fixing CI SLOWNESS so the merge queue drains faster and throughput rises — the target is wall-clock latency, NOT correctness (a job that is GREEN but slow). Encodes the loop — MINE CI timing for the real long poles → DIAGNOSE the bottleneck class (under-sharded matrix, cold cache, missing/too-broad path-filter tier, serial needs-chain, redundant rebuild) → PROVE the fix keeps identical coverage → FIX FORWARD → VERIFY the before/after delta at unchanged coverage → REPEAT. And the hard line — speed comes from doing the same work faster or skipping PROVABLY irrelevant work, NEVER from deleting tests, narrowing greps, dropping shards, or removing a gate. Use whenever chasing CI latency, "CI is too slow", "speed up the checks", "why does the merge queue take so long", re-sharding an E2E matrix, adding or fixing a cache, tuning changed-paths tiering, or running the ci-speed-hunter lane. Distinct from ci-flake-hunting (which owns failures and flakes — speed never touches a red job)./deploy-watchingSingle-lane interval watcher that keeps the integration environment's deploys healthy by fixing FORWARD — the deploy-health lane of a multi-agent fleet. Each tick it reads the newest deploy run, locates the red (deploy step vs post-deploy smoke), classifies it transient (concurrent-deploy state-lock race, CI-infra blip, known smoke transient) or real (deterministic IaC error, ordered co-deploy race, regression from a merged commit, contention inside the shared environment), re-runs the former, and mints a forward-fix PR for the latter that preserves the offending commit's intent — never a revert, never a skipped test. Loops on an interval ("/loop <interval> start"). Use when running a deploy lane, when the dev/staging deploy went red after a merge, when deciding whether a red deploy needs a re-run or a code fix, when the environment may be running stale code, or when `pr-checks` hands over a failure rooted in the integration branch rather than a PR's diff./dispatching-subagentsTurn a groomed tracker issue into a running implementation sub-agent and a merged PR — issue selection (priority, file-disjointness, bundling), model/effort resolution from chat > labels > defaults, the eight-section dispatch brief (worktree, toolchain prefix, pre-push hygiene, scope, git discipline, PR procedure, return contract), parallel dispatch under a concurrency cap, stalled-agent worktree salvage, and verify-then-trust completion checks. Use whenever you are about to spawn a sub-agent (Agent/Task tool call) to implement, fix, refactor, test, or otherwise write code from a tracker issue — even if the user only says "work the next issues", "fix these bugs", "run the loop", or "send an agent at #N" without saying "dispatch"; also use when a dispatched agent stalls, is watchdog-killed, returns status:failed, or reports completion and you must decide whether to salvage its worktree, re-dispatch, or verify its PR.npx claudepluginhub skyfox675/agents-skills --plugin agents-skillsOther plugins' skills for the same job