Triage issues

From allenhutchison/obsidian-gemini · View interactive version

Triage issues is an AI agent skill from the GitHub repository allenhutchison/obsidian-gemini. Walk every open issue with no labels and apply appropriate labels via `gh`. Conservative — never closes, reassigns, or invents labels; only adds existing ones. Use when the user asks to "triage issues", "label issues", "do issue triage", "label the unlabeled issues", "clean up the issue tracker", or

How to use this skill

Skill file

Triage open issues

obsidian-gemini's issue tracker accumulates issues from users, contributors, and the maintainer. Many land without labels, which makes filtering and reporting harder later. This skill works through the unlabeled backlog and applies labels from the repo's existing label vocabulary based on the issue's content.

This skill is deliberately conservative:

Workflow

1. Load the repo's label vocabulary

gh label list --repo allenhutchison/obsidian-gemini --limit 100 \
  --json name,description

Hold this list in working memory. Do not invent labels. If the issue genuinely needs a label that doesn't exist, flag it in the report and let the human decide whether to create it (label creation is out of scope for this skill).

The repo currently has two practical label families. Check the live list each run; the exact set drifts:

2. List unlabeled open issues

gh issue list --repo allenhutchison/obsidian-gemini \
  --state open --search "no:label" \
  --limit 100 \
  --json number,title,body,author,createdAt

If the result is empty, write a one-line "no unlabeled issues" report and stop. This is the common case on a well-tended tracker.

If the count is unusually large (>20 in a single run), still process them, but flag the pile-up in the report — it usually means triage hasn't run recently, or new issues are arriving faster than expected.

3. Read and classify each issue

For each issue:

  1. Read the title and body in full. Don't classify from the title alone — bug reports and feature requests can look identical at a glance.
  2. Decide the intent label (exactly one):
  1. Decide area label(s) (zero or more, additive):
  1. Hold the proposed labels in memory. Don't apply yet — apply in step 4 so the report reflects what was actually requested.

Calibration:

4. Apply the labels

For each issue with at least one proposed label, apply them:

gh issue edit <NUMBER> --repo allenhutchison/obsidian-gemini \
  --add-label "<label1>" --add-label "<label2>"

gh issue edit --add-label is idempotent — re-running on an already-labeled issue is a no-op. The "no:label" filter in step 2 should already exclude these, but the idempotency is a useful safety net if a previous run was partial.

Capture each application as (issue_number, [labels_applied], one-line-rationale) for the report.

If gh errors on a particular issue (rate limit, transient failure), capture the error, continue with the next issue, and surface the failed issue in the report. A failed run partway through is worse than a complete-with-warnings run.

5. Report

Print a structured summary so the caller (a human, or the daily-update meta-skill) can audit:

Triage report — YYYY-MM-DD

Issues processed: N
Issues labeled: M
Issues abstained: K (left unlabeled, see below)
Errors: E

Labeled:
- #710 bug + tool-execution — "tool call hangs after model returns empty function-call array"
- #715 enhancement + agent-config — "let me share an agent profile via deep link"
- ...

Abstained (need human review):
- #720 — "this is great" (no actionable content)
- ...

Suggested new labels (issue mentioned a category that doesn't exist):
- "ios-mobile" suggested by 3 issues; not currently a label
- ...

Errors:
- #722 — gh returned 502; retry needed

When invoked by daily-update, this report becomes the "triage-issues" line in the day's PR body — the meta-skill paraphrases the structured form into prose for the PR, but should preserve the issue numbers and applied labels verbatim so a reviewer can audit.

What not to do

Calibrating scope

A healthy tracker accumulates 0–3 unlabeled issues per day. A run that processes that many is the steady state. A run that finds >10 means the backlog has grown — flag it so the maintainer knows to look. A run that finds 0 is a no-op; report and stop.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.