label-for-issues
Use when triaging GitHub issues, managing issue labels or decision comments, creating issues or PRs, or starting work on an issue.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- kind
- dev
- name
- label-for-issues
- description
- Use when triaging GitHub issues, managing issue labels or decision comments, creating issues or PRs, or starting work on an issue.
02 资源文件 4
- 参考文档evals/evals.json2.6 KB
- 参考文档references/decision-comments.md4.8 KB
- 参考文档references/github-cli.md3.9 KB
- 参考文档references/routing-cases.md664 B
03 SKILL.md 正文
Label for issues
Help the user decide what happens next on each issue. Labels carry the assessment. Apply this vocabulary to issues, not PRs. Keep one state and one priority per open triaged issue, one type except for Epics, the optional Epic label, and optional impediments.
Requires gh (install); confirm with gh --version
and gh auth status.
Workflow
Step 1: Scope. Resolve the repository and the requested issues. Reviews stay
read-only unless the user requested changes. Creating issues includes labeling them;
creating a PR includes updating its explicitly linked issues, and a PR with no linked
issue needs no label work unless setup was requested. Limit changes to those issues
and directly affected epics; include closed issues only on request. Leave issue and
PR authoring to the caller, and keep implementation, specification rewrites, and
other skills out of a labeling run. Pass --repo OWNER/REPO to repository-scoped
gh commands. For a setup-only request, go to Step 4. Done when
the repository, the issues, and whether writes are authorized are explicit.
Step 2: Inspect. Read the label catalog once per run with
gh label list --limit 200 --json name,color,description, raising the limit if
it returns 200 rows. For an unfiled issue, inspect the supplied draft instead of
running gh issue view. Read each existing issue with
gh issue view <n> --json state,stateReason,body,comments,labels,parent,subIssues,blockedBy,blocking,closedByPullRequestsReferences,
then relevant review records and linked issue and PR states. subIssues,
blockedBy, and blocking are objects: iterate .nodes[] and count .totalCount.
Nodes carry number, state, title, and URL, not labels. They stop at 100, 50, and 50
nodes; page the rest with gh api --paginate when totalCount is higher. Follow
evidence that could change the decision, and leave unrelated code and tickets alone.
Prefer current object states over stale prose, but retain explicit human decisions
unless new evidence warrants revisiting. Done when each requested issue and its links
are read, with every relationship counted against its totalCount.
Step 3: Assess. Form one assessment per issue: desired labels, evidence, unresolved decision or input, recommendation, next actor, and start conditions. Derive from it the label edits, a one-line summary naming the next actor, recommendation, and any blocker, and any requested decision comment. Separate facts from inference and name any uncertainty that could change the recommendation. Stop investigating once the next action is supported; if evidence is insufficient, identify the smallest question or check that would resolve it. For read-only requests, return the label diff, summaries, and any requested decision comment preview, then stop. Done when each issue has its label edits and summary.
Step 4: Reconcile. Read the repository label catalog if Step 2 did not, and
compare it with Labels. For authorized writes, create missing labels
from that JSON before any issue write names them. GitHub creates an unknown label
on the fly, without its color or description, so when no available tool can create
a label, leave it off and report it as missing. Update metadata only when existing
meanings match. Report equivalent names, case variants, and semantic conflicts with
proposed mappings and affected issues. Ask the user whether to migrate and agree
on scope before changing legacy labels; reuse approval within that scope. Rename,
delete, or reinterpret a label only with that approval. Preserve custom labels;
continue unambiguous changes. Missing canonical labels alone need no migration
approval. After metadata writes, reread the catalog and compare with the requested
changes. Treat 4-epic:parent as the old name of 4-epic: rename it, and
never create 4-epic beside it. Treat 4-epic:member as retired: delete it.
These two changes need no approval: apply them whenever the run may write
labels or runs this step for grooming-mode, and report them for any other
read-only request.
Done when each requested metadata change is verified, proposed for a
read-only request, or reported as missing, conflicting, or failed. A setup-only
request ends here after reporting those results.
Step 5: Apply and verify. Reread the issue, labels, comments, and relationships
before writing; revise the assessment if relevant evidence changed. Apply targeted
label and relationship changes with gh issue edit, following GitHub CLI.
Replace only canonical labels in the same family. Read back changed labels, review
records, and relationships; check family exclusivity and epic membership. Publish a
requested decision comment using verified results, then read it back. Without a
comment request, flag an existing decision comment that the new labels contradict as
stale and leave it unedited. If a write times out or fails, reread before retrying
and perform only missing operations. Continue independent issues. Report each
issue's label changes and summary, issue and comment links, conflicts, and partial
failures. Done when each requested change is read back as applied or reported as
failed; call triage complete only when all of them applied.
Decision comments
Write or update an issue comment only when the user explicitly asks for one. Triage, issue creation, PR links, and label changes do not imply a comment. When the user asks for one, including a read-only preview, read references/decision-comments.md before you prepare it.
Classification rules
- State. Use one state label per open triaged issue. Upstream triage names
such as
ready-for-agentmap to their1-names here. Use needs-triage for scope or approach decisions, needs-info for specific missing information, and wontfix for work that will not be actioned. An exploratory idea is not automatically missing information. Pair wontfix with closure only when explicitly authorized - Ready. Validate scope, acceptance criteria, dependencies, and open decisions. Reuse a current review or record reviewer, date, scope, conclusion, and blockers. Choose ready-for-agent for autonomous implementation or ready-for-human when implementation requires a human. Neither authorizes starting work. Check unresolved prerequisites and impediments before execution. Reassess when scope changes
- Agent work. When authorized work begins, including investigation, replace
1-ready-for-agentwith1-wip-by-agent. Reading or triaging alone does not count. On handback, reassess readiness. On authorized closure, remove WIP - Epics. Optional for outcomes spanning independently useful issues; keep small
features standalone outside grooming. During an approved grooming, use
grooming-mode's placement rule. Use
4-epicwith boundaries, completion criteria, and Story links; an Epic needs no type label. Stories retain their bug, feature, or task type. Features contain their own specification - Membership. A Story requires a native parent relationship to an issue
labeled
4-epic. A child of a non-Epic issue is a Sub-task and follows its parent. Native relationship failures are reported, never replaced by text. Membership ends on detachment, not when the parent closes. A merged PR alone proves neither issue nor epic completion - Dependencies. Set native blocked-by links only for real prerequisites, including work that must wait to avoid conflicts in the same source files, generated output excluded. Report a failed native operation. Membership and Rank do not imply a dependency
- Impediments. Use
0-impedimentfor a concrete obstacle preventing progress; explain it in the issue and remove the label when resolved. Preserve the state. Planned dependencies, missing details, and deliberate deferral do not automatically warrant this label. Label an epic only when its own progress is impeded - Priority. Preserve established priorities; default new issues to p2. Change priority from user direction or concrete urgency. Security work is not automatically p0. During approved grooming, use grooming-mode's priority rule. Outside grooming, assess each issue's priority independently
Labels
This JSON owns exact names, colors, and descriptions.
[
{"name": "0-impediment", "color": "d95757", "description": "A concrete obstacle prevents progress; details are recorded in the issue"},
{"name": "1-needs-info", "color": "d4a72c", "description": "Specific information is missing from the issue"},
{"name": "1-needs-triage", "color": "d4a72c", "description": "Scope, approach, or direction needs evaluation"},
{"name": "1-ready-for-agent", "color": "3da66d", "description": "Validated work, sufficiently specified for an autonomous agent"},
{"name": "1-ready-for-human", "color": "3da66d", "description": "Validated work requiring human implementation"},
{"name": "1-wip-by-agent", "color": "1d76db", "description": "An agent has started work on this issue"},
{"name": "1-wontfix", "color": "8b949e", "description": "Will not be actioned"},
{"name": "2-type:bug", "color": "8b949e", "description": "Existing behavior is broken"},
{"name": "2-type:feature", "color": "8b949e", "description": "New or improved functionality; specification lives in the issue"},
{"name": "2-type:task", "color": "8b949e", "description": "Supporting work such as maintenance, documentation, refactoring, or verification"},
{"name": "3-pty:p0", "color": "d95757", "description": "Emergency requiring immediate attention, such as active exploitation or a major outage"},
{"name": "3-pty:p1", "color": "db8b40", "description": "High priority; takes precedence over ordinary planned work"},
{"name": "3-pty:p2", "color": "8b949e", "description": "Normal planned work; default when no priority is established"},
{"name": "3-pty:p3", "color": "8b949e", "description": "Low-priority work that can wait"},
{"name": "4-epic", "color": "8b949e", "description": "Groups Stories around a shared outcome through native sub-issues"}
]
GitHub CLI
gh issue list and gh label list return 30 rows unless given --limit. Before you set a relationship or search issues by relationship, or to reuse a ready-made issue-list filter, read references/github-cli.md. It holds the gh relationship flags, their traps, and the filters.
Use routing cases when changing which file a request reads.
04 同仓库更多 Skills
writing-great-skills
Use when creating, modifying, evaluating a skill.
writing-for-agents
Use when creating, editing, or reviewing a skill, AGENTS.md, CLAUDE.md, or another document agents read.
why
Use for questions about design rationale, the history of regressions or incidents, or the evidence behind thresholds and tradeoffs. Use `how` for runtime behavior. Do not use for plain commit or date lookups.
verify-video-archive
Use when validating the macOS or Linux archive workflow reached by `just convert-video`, including real media, prerequisites, terminal progress, source safety, locking, and recovery.
verify-transcript
Use when validating transcript CLI behavior, locating its verification features, or running the paid YouTube end-to-end check.
verify-skills
Use when verifying `just compile-skills`, `just remote-skills`, `just install-skills`, or `just skills-discover` in the skills repository, such as after changing their scripts or adding, renaming, or moving a skill.