.qwen/skills/triage/SKILL.md
Run staged admission via gh. Post comment after each stage.
ISSUE_NUMBER/PR_NUMBER env--repo → REPOSITORY → GITHUB_REPOSITORYgh issue view "$NUM" --repo "$REPO" --json number,title,body,author,labels,comments,url
gh pr view "$NUM" --repo "$REPO" --json number,title,body,author,labels,additions,deletions,changedFiles,baseRefName,headRefName,isCrossRepository,isDraft,reviewDecision,url
gh label list --repo "$REPO" --limit 200
welcome-pr, maintainer, help wanted, good first issue)--body-file FILE for gh issue/pr comment,
or gh api -F body=@FILE when the response ID is needed. Never --body @FILE
or gh api -f body=@FILE — those post the path literally.GITHUB_EVENT_NAME=issues or
pull_request_target) + prior <!-- qwen-triage stage=N --> marker in
comments: exitGITHUB_EVENT_NAME=issue_comment or workflow_dispatch):
run all stages, update prior comments in placeGITHUB_EVENT_NAME): run all stages, update prior
comments in placeEvery posted comment must include an invisible marker: <!-- qwen-triage stage=N --> where N is the stage number. The guard matches against this marker, not comment headings.
Bilingual: English first, Chinese in <details>. @mention author when blocking.
These two steps are the most commonly forgotten. Execute them before any other action.
PR workflow: mandatory. Issue workflow: skip (no code reading needed).
enter_worktree(name: "triage")
Save the returned worktreePath. Every read_file, grep_search, glob, and shell command that reads local files MUST use this path as root. gh commands (API calls) do NOT need the worktree.
Exception: tmux real-scenario testing (Stage 2b) runs in the main working tree — it needs the local build environment.
When triage is complete: exit_worktree(action: "remove")
Stage 2 comment must contain the actual tmux capture-pane output pasted inline — not a file path, not "see attached", not a summary. The maintainer reads the comment and makes a decision from it. Without inlined terminal output, the review is incomplete and useless.
references/issue-workflow.mdreferences/pr-workflow.md