Github issue triage

From sunholo-data/ailang · View interactive version

Github issue triage is an AI agent skill from the GitHub repository sunholo-data/ailang. Triage open GitHub issues on sunholo-data/ailang by verifying each one against the current code on origin/dev, then closing (with evidence), labelling, transferring or escalating it. Use when the user asks to "check issues", "triage issues", "sync issues", "what issues are open", "clean up the issue

How to use this skill

Skill file

GitHub Issue Triage

Every verdict must come from the issue read against the code on origin/dev, not from a keyword match. The scripts only say where to start.

Measured 2026-09-28, against 100 issues verified one by one:

Current State

Workflow

1. Auth

This repo is worked as sunholo-voight-kampff, the bot account; check_auth.sh compares against github.expected_user in ~/.ailang/config.yaml. MarkEdmondson1234 is the human's account, and rw-markedmondson is a different project. If the wrong one is active, run gh auth switch --user sunholo-voight-kampff.

2. Starting-point report

.claude/skills/github-issue-triage/scripts/triage_report.sh --output <scratchpad>/triage.md

It gives counts, close candidates (unverified), issues missing a priority label, needs-decision, doc references and stale issues. All of it is read from origin/dev, never the working tree, because a worktree may sit on an old branch.

What the candidate list is worth:

3. Verify every issue against the code (the actual triage)

Split the open issues into groups of about 20 and give each group to a read-only agent, running in parallel, using CODE0. Each agent:

An empty search is a claim, not a fact: an agent should try a second phrasing before concluding "not fixed".

Each agent returns exactly one verdict per issue:

| Verdict | Meaning | Action |

|---|---|---|

| CLOSE-FIXED | Fixed on origin/dev | Close with the commit SHA, PR or release, and how it was verified |

| CLOSE-OBSOLETE | Premise moot, or the week or feature is gone | Close with the evidence |

| CLOSE-DUPLICATE | Same defect as #X | Close in favour of the sharper, current one (see below) |

| TRANSFER | The fix belongs in another repo | gh issue transfer N sunholo-data/<repo> |

| KEEP-PLANNED | Real, and a planned doc covers it | Label it; note the doc |

| KEEP-ORPHAN | Real, no doc | Label it with a priority; a doc if P0/P1 |

| NEEDS-DECISION | Needs a maintainer ruling | Label needs-decision; state the decision in one line |

Show the user the combined verdict list, and get approval before closing, transferring or relabelling anything.

4. Act, with evidence

5. Labels: priority plus area, and never a coordinator-watched label

| Label | Meaning |

|---|---|

| priority:P0 | Soundness, security or data loss; fix before new features |

| priority:P1 | A real bug hurting users or agents now |

| priority:P2 | Worth doing, not urgent |

| priority:P3 | Nice to have |

| needs-decision | Blocked on a maintainer ruling |

| area:* | effects ifc test-runner bytecode language verify iface cli pkg ai mission ci serveapi runtime messaging |

Don't add bug, feature or from:* to existing issues. They are the coordinator's default watch_labels (internal/coordinator/agent_config.go), so adding one can import an old issue as a new task. The labels above are not watched.

After a pass, gh issue list -l priority:P0 is the fix-first list.

6. Sync the design-doc tree

7. Security alerts: check they're stale before acting

Dependabot evaluates GitHub's dependency graph, which can lag behind go.mod. On 2026-09-28, 30 of 40 alerts were for versions no file pinned anymore. For each alert:

Scripts

| Script | Purpose |

|---|---|

| check_auth.sh [--quiet] | Active gh account matches github.expected_user |

| list_open_issues.sh [--json] [--labels L] [--limit N] | Open issues with labels and age (default limit 1000; gh truncates silently at the limit) |

| triage_report.sh [--output F] [--stale-days N] [--ref R] | Starting-point report (step 2) |

| find_closable.sh [--json] [--ref R] | Close candidates only: fixes #N commits, and implemented docs naming #N in their header. It cannot close. |

| match_design_docs.sh [--planned\|--implemented] [--json] [--ref R] | Which docs reference each issue, by exact #N or an M-ID filename match. A match means "mentioned", not "covered". |

All of them read docs and history from --ref (default origin/dev, fetched first) and fail loudly if the fetch fails.

Gotchas

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.