.mimocode/skills/issue-triage/SKILL.md
Use this skill when the user provides a GitHub issue URL and asks "can this be closed?", "is this already implemented?", "check completion status", or similar triage questions.
gh issue view <N> --repo <owner/repo> --json title,body,state,comments,labels,updatedAt
Read the issue body to understand what was requested. Extract:
Search git history for commits referencing the issue:
git log --oneline --all --grep="<N>" | head -30
Search for related PRs:
gh pr list --search "fixes #<N> OR closes #<N> OR #<N>" --state all --json number,title,state,mergedAt
If the issue mentions specific PRs, check their status:
gh pr view <PR_N> --json state,mergedAt,title
For each linked or related PR that is merged, verify the fix is actually present on the current main branch:
git log --oneline main | grep -i "<keyword>"
# or
git log --oneline main --grep="<PR_N>"
If the issue describes a specific defect, check the relevant code to confirm the fix is in place:
grep -n "<pattern>" crates/<relevant>/src/<file>.rs
For issues with checklists, verify each item individually. If sub-items are tracked as separate issues, check those too:
gh issue view <SUB_N> --repo <owner/repo> --json state
Close with comment:
gh issue close <N> --repo <owner/repo> --comment "<body>"
Comment without closing:
gh issue comment <N> --repo <owner/repo> --body-file /tmp/triage.md
Update issue labels if needed:
gh issue edit <N> --repo <owner/repo> --add-label "completed" --remove-label "needs-triage"
Always use --body-file for multiline content, never inline --body.
When the user asks to check multiple issues (e.g., "check all issues by user X" or "scan backlog for closable issues"):
gh issue list --repo <repo> --author <user> --state open --json number,title,updatedAtState: OPEN / CLOSED Linked PRs: <list with merge status>
rustfs/backlog, use --repo rustfs/backlog.rustfs/rustfs, use --repo rustfs/rustfs.