一键导入
triage
Triage GitHub issues — prioritize, reprioritize, and identify consolidation candidates using the strategic goals matrix
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Triage GitHub issues — prioritize, reprioritize, and identify consolidation candidates using the strategic goals matrix
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Swap between local n-dx development build and published npm version
Capture a requirement, feature idea, or task from conversation context
View or change n-dx configuration with guided assistance
Analyze the codebase and propose PRD updates
Restructure the PRD hierarchy — regroup epics, change levels, merge overlaps, create new containers
Pick up a task from the PRD and begin working on it
| name | triage |
| description | Triage GitHub issues — prioritize, reprioritize, and identify consolidation candidates using the strategic goals matrix |
Triage open GitHub issues against the project's strategic goals matrix. Prioritize unprioritized issues, flag misprioritized ones, and identify issues that should be merged or consolidated.
Load the strategic goals matrix from .claude/skills/triage/goals.json. This file defines:
project — GitHub org, repo, and project board numberstrategic_goals — weighted themes with keyword lists (higher weight = higher strategic importance)label_weights — how issue labels factor into scoring (bugs score higher than enhancements)priority_levels — the P0/P1/P2 scale used on the GitHub Project boardFetch all data in parallel where possible:
gh issue list --repo {owner}/{repo} --state open --json number,title,body,labels,comments,createdAt,updatedAt --limit 200gh project item-list {project_number} --owner {owner} --format json --limit 200 to get current P0/P1/P2 assignments and statusesFor each open issue, compute a relevance score:
For each strategic goal, check if the issue's title + body + comment text contains any of the goal's keywords (case-insensitive). The match score for a goal = goal.weight * number_of_distinct_keywords_matched. Sum across all goals for the total goal-alignment score.
Use semantic judgment, not just literal keyword matching — an issue about "ndx init fails on Windows" aligns with both "user-onboarding" and "platform-support" even if it doesn't use the exact keyword "onboarding."
Sum the label_weights values for each label on the issue.
Issues open longer than 30 days get a small bump (+1). Longer than 90 days get +2. This prevents old issues from being perpetually deprioritized.
Issues labeled bug that describe data loss, corruption, or security issues get an additional +3 on top of the label weight.
These thresholds are guidelines — use judgment. A low-scoring issue that blocks a P0 issue should be escalated. A high-scoring issue that's purely speculative/aspirational can be downgraded.
Group issues by their dominant strategic goal theme. Within each group, look for:
For each consolidation candidate, note:
Always generate a self-contained HTML file at /tmp/triage-report.html and open it in the browser (open /tmp/triage-report.html). Do not dump the full report as text into the conversation.
The HTML report should be a dark-themed, tabbed interface with these sections:
Show key stats: total open issues, current P0/P1/P2 counts, unprioritized count.
Each consolidation group as a card showing:
Grouped by recommended priority (P0, P1, P2). Each issue shows:
Split into "Upgrade" and "Downgrade" groups. Each issue shows:
Summary counts of aligned issues per priority level. Also surface any goal gaps detected (clusters of issues not matching any strategic goal).
https://github.com/{owner}/{repo}/issues/{number}After the user reviews and confirms:
Consolidation: For approved merges, add a comment on the issue being closed referencing the surviving issue, then close it. Use:
gh issue comment {number} --repo {owner}/{repo} --body "Consolidated into #{surviving}"gh issue close {number} --repo {owner}/{repo}Priority changes: For approved priority assignments/changes, update the project board field:
gh project item-list {project_number} --owner {owner} --format json and find the itemgh project item-edit --project-id {project_id} --id {item_id} --field-id {priority_field_id} --single-select-option-id {priority_option_id}Report a summary: how many issues were prioritized, reprioritized, and consolidated.
gh issue close, gh issue comment, gh project item-edit, or any other write command against GitHub unless the user explicitly says to apply specific changes (e.g., "apply all", "apply the P0 changes", "go ahead and close #72"). A general "looks good" or "yeah" in response to the report is NOT permission to write — the user must specifically direct you to apply.