| name | yux-pm-triage |
| description | Triage Linear inbox issues with AI classification. Triggers on "pm triage", "triage inbox", "classify issues", "process inbox", "处理反馈". |
| allowed-tools | Read, Write, Glob, Grep, Bash(git:*), Bash(gh:*), mcp__linear__* |
PM Triage
Process inbox issues: classify type, set priority/effort, structure descriptions, and move to Backlog.
Prerequisite: .claude/linear-config.json must exist. If missing, show:
"Please run /yux-linear-init first."
Workflow
Step 1: Load Config and Labels
Read .claude/linear-config.json
mcp__linear__list_issue_labels(team: "<team.id>")
Parse labels into categories:
- Type labels: Feature, Bug, Epic, Chore, Improvement
- Func labels: Frontend, Backend, API, Extension, ML
Step 2: Fetch Inbox
mcp__linear__list_issues(
project: "<project.id>",
state: "Triage",
limit: 20,
orderBy: "createdAt"
)
If empty, report clean inbox and stop.
Display inbox summary table (ID, title, created date) and ask user to process all or select specific items.
Step 3: AI Analysis
For each selected issue, analyze these factors:
Type Detection (keyword-based):
- Bug: "crash", "error", "fail", "broken", "崩溃", "错误", "失败"
- Feature: "add", "new", "support", "希望", "能不能", "新增"
- Improvement: "improve", "better", "optimize", "优化", "改进"
- Chore: "update", "upgrade", "migrate", "更新", "升级"
If multiple types match, prefer: Bug > Feature > Improvement > Chore.