.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
--body-file (except short hardcoded verdicts in gh pr review --approve / --request-changes)<!-- qwen-triage stage=N --> marker in comments: exit/triage: 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