github-triage
Use when the user wants to triage GitHub issues through a label-based state machine, prepare issues for an AFK agent, or manage incoming bug or feature-request workflow.
- License 许可
- MIT
- 所属仓库
- max-kharena/nous
- 最近更新
- 2026-04-28
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- github-triage
- risk
- medium
- type
- workflow
- version
- 0.1.0
- description
- Use when the user wants to triage GitHub issues through a label-based state machine, prepare issues for an AFK agent, or manage incoming bug or feature-request workflow.
02 资源文件 2
- 参考文档AGENT-BRIEF.md6.1 KB
- 参考文档OUT-OF-SCOPE.md4.2 KB
03 SKILL.md 正文
GitHub Issue Triage
Triage issues in the current repo using a label-based state machine. Infer the repo from git remote. Use gh for all GitHub operations.
AI disclaimer
Every comment or issue posted to GitHub during triage must include the following disclaimer at the top of the comment body, before any other content:
> *This was generated by AI during triage.*
Reference docs
- AGENT-BRIEF.md — how to write durable agent briefs
- OUT-OF-SCOPE.md — how the
.out-of-scope/knowledge base works
Labels
| Label | Type | Description |
|---|---|---|
bug |
Category | Something is broken |
enhancement |
Category | New feature or improvement |
needs-triage |
State | Maintainer needs to evaluate this issue |
needs-info |
State | Waiting on reporter for more information |
ready-for-agent |
State | Fully specified, ready for AFK agent |
ready-for-human |
State | Requires human implementation |
wontfix |
State | Will not be actioned |
Every issue should have exactly one state label and one category label. If an issue has conflicting state labels (e.g. both needs-triage and ready-for-agent), flag the conflict and ask the maintainer which is correct before doing anything else. Provide a recommendation.
State machine
| Current state | Can transition to | Who triggers it | What happens |
|---|---|---|---|
unlabeled |
needs-triage |
Skill (on first look) | Issue needs maintainer evaluation. Skill applies label after presenting recommendation. |
unlabeled |
ready-for-agent |
Maintainer (via skill) | Issue is already well-specified and agent-suitable. Skill writes agent brief, applies label. |
unlabeled |
ready-for-human |
Maintainer (via skill) | Issue requires human implementation. Skill writes a brief comment summarizing the task, applies label. |
unlabeled |
wontfix |
Maintainer (via skill) | Issue is spam, duplicate, or out of scope. Skill closes with comment (and writes .out-of-scope/ for enhancements). |
needs-triage |
needs-info |
Maintainer (via skill) | Issue is underspecified. Skill posts triage notes capturing progress so far + questions for reporter. |
needs-triage |
ready-for-agent |
Maintainer (via skill) | Grilling complete, agent-suitable. Skill writes agent brief, applies label. |
needs-triage |
ready-for-human |
Maintainer (via skill) | Grilling complete, needs human. Skill writes a brief comment summarizing the task, applies label. |
needs-triage |
wontfix |
Maintainer (via skill) | Maintainer decides not to action. Skill closes with comment (and writes .out-of-scope/ for enhancements). |
needs-info |
needs-triage |
Skill (detects reply) | Reporter has replied. Skill surfaces to maintainer for re-evaluation. |
An issue can only move along these transitions. The maintainer can override any state directly (see Quick State Override), but the skill should flag if the transition is unusual.
Invocation
The maintainer invokes this skill, then describes what they want in natural language. The skill interprets the request and takes the appropriate action.
Example requests:
- "Show me anything that needs my attention"
- "Let's look at #42"
- "Move #42 to ready-for-agent"
- "What's ready for agents to pick up?"
- "Are there any unlabeled issues?"
Workflow: show what needs attention
When the maintainer asks for an overview, query GitHub and present a summary grouped into three buckets:
- Unlabeled issues — new, no labels at all. Never been triaged.
needs-triageissues — maintainer needs to evaluate or continue evaluating.needs-infoissues with new activity — the reporter has commented since the last triage notes comment. Check comment timestamps.
Display counts per group. Within each, oldest first (longest-waiting gets attention first). For each issue, show: number, title, age, and a one-line summary of the issue body.
Let the maintainer pick which issue to dive into.
Workflow: triage a specific issue
Step 1: gather context
- Read the full issue: body, all comments, all labels, who reported it, when.
- If there are prior triage notes (from previous sessions), parse them to understand what has already been established.
- Explore the codebase to build context — domain, relevant interfaces, existing behavior related to the issue.
- Read
.out-of-scope/*.mdfiles; check if this issue matches a previously rejected concept.
Step 2: present a recommendation
Tell the maintainer:
- Category recommendation — bug or enhancement, with reasoning.
- State recommendation — where this issue should go, with reasoning.
- If it matches a prior out-of-scope rejection, surface that: "This is similar to
.out-of-scope/concept-name.md— we rejected this before because X. Do you still feel the same way?" - A brief summary of what you found in the codebase that's relevant.
Then wait for direction. They may:
- Agree and ask you to apply labels → do it.
- Want to flesh it out → start a
domain-modelsession. - Override with a different state → apply their choice.
- Want to discuss → have a conversation.
Step 3: bug reproduction (bugs only)
If the issue is a bug, attempt to reproduce before starting a domain-model session. This varies by codebase, but do your best:
- Read the reporter's reproduction steps (if provided).
- Explore the codebase to understand the relevant code paths.
- Try to reproduce: run tests, execute commands, or trace the logic.
- If reproduction succeeds, report what you found — specific behavior observed, where in the code it originates.
- If reproduction fails, report that — the bug may be environment-specific, already fixed, or the report inaccurate.
- If the report lacks enough detail, note that — strong signal the issue should move to
needs-info.
A confirmed reproduction with a known code path makes a much stronger agent brief.
Step 4: domain-model session (if needed)
If the issue needs to be fleshed out before it's ready for an agent, interview the maintainer to build a complete specification. Use the domain-model skill — it grills the plan, sharpens terminology, and updates CONTEXT.md / ADRs inline.
Step 5: apply the outcome
ready-for-agent— post an agent brief comment (see AGENT-BRIEF.md).ready-for-human— post a comment summarizing the task and why it needs human implementation. Same structure as an agent brief but note the reason it can't be delegated to an agent (judgment calls, external system access, design decisions, manual testing).needs-info— post triage notes with progress so far and questions for the reporter (see Needs Info Output below).wontfix(bug) — post a polite comment explaining why, then close.wontfix(enhancement) — write to.out-of-scope/, post a comment linking to it, then close (see OUT-OF-SCOPE.md).needs-triage— apply the label. Optionally leave a comment if there's partial progress to capture.
Workflow: quick state override
When the maintainer explicitly says "move #42 to ready-for-agent", trust their judgment and apply the label directly.
Still show a confirmation of what you're about to do: which labels will be added / removed, and whether you'll post a comment or close the issue. But skip the domain-model session entirely.
If moving to ready-for-agent without a domain-model session, ask the maintainer if they want to write a brief agent brief comment or skip it.
Needs info output
When moving an issue to needs-info, post a comment that captures the interview progress and tells the reporter what's needed:
## Triage Notes
**What we've established so far:**
- point 1
- point 2
**What we still need from you (@reporter):**
- question 1
- question 2
Include everything resolved during the domain-model session in "established so far" — this work should not be lost. The questions for the reporter should be specific and actionable, not vague ("please provide more info").
Resuming previous sessions
When triaging an issue with prior triage notes:
- Read all comments to find prior triage notes.
- Parse what was already established.
- Check if the reporter has answered any outstanding questions.
- Present an updated picture: "Here's where we left off, and here's what the reporter has said since."
- Continue the
domain-modelsession from where it stopped — do not re-ask resolved questions.
04 同仓库更多 Skills
write-a-skill
Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when the user wants to create, write, or build a new skill.
verification-before-completion
Use when about to claim work is complete, fixed, passing, ready, merged, shippable, reviewed, or verified.
using-nous
Use when a request needs NOUS command routing or personality-driven planning.
using-git-worktrees
Use when NOUS execution needs isolated implementation branches, phase worktrees, parallel worktrees, or safe branch setup before executing a plan.
ubiquitous-language
Use when the user wants to define domain terms, build a glossary, harden terminology, or extract a DDD-style ubiquitous language. Saves to UBIQUITOUS_LANGUAGE.md.
triage-issue
Use when the user reports a bug and wants it investigated and filed as a durable GitHub issue with a TDD-based fix plan.