Repository navigation
Description
Description
A Cursor agent skill (.cursor/skills/issue-triage/) that performs a full triage of all open GitHub issues in the current repo. When invoked, it collects all open issues, milestones, labels, and existing sub-issue relationships, then analyzes each issue across multiple dimensions and presents a decision matrix with grouped suggestions. All mutations (milestone assignment, label changes, sub-issue linking, new milestone/parent issue creation) require explicit user approval.
Problem Statement
Issues accumulate rapidly during development -- from working on other tasks, brainstorming sessions, and ad-hoc discoveries. Currently there is no structured process to:
- Classify issues by area, priority, effort, SemVer impact, or dependencies
- Group related issues into parent/sub-issue hierarchies
- Assign issues to SemVer milestones (e.g.
0.3,0.4) - Identify gaps (orphaned issues, missing milestones, unlabeled items)
The result is 16 open issues with only 2 assigned to a milestone, no priority labels, and no sub-issue structure. Manual triage is tedious and falls behind.
Proposed Solution
Cursor agent skill at .cursor/skills/issue-triage/SKILL.md with a supporting label-taxonomy.md reference file. The skill instructs the agent to:
- Collect -- Fetch all open issues, open PRs (for context), milestones, labels, and existing sub-issue relationships via
ghCLI andgh api - Analyze -- Score each issue across 7 dimensions:
- Type (feature, bug, question, task, refactor)
- Area/component (CI/CD, container image, workspace tooling, developer workflow, docs, testing)
- Priority (blocking, high, medium, low, backlog)
- Effort (small, medium, large)
- SemVer impact (MAJOR, MINOR, PATCH)
- Dependencies/blockers (which issues depend on or block others)
- Release readiness (needs design, ready to implement, in progress, done)
- Present decision matrix -- A formatted table showing all issues with their suggested classifications
- Group -- Suggest parent/sub-issue relationships using GitHub's native sub-issues API (
gh api repos/{owner}/{repo}/issues/{issue_number}/sub_issues) - Milestone -- Suggest milestone assignments (SemVer-based:
0.3,0.4, etc.), including creating new milestones if needed - Apply -- Execute approved changes one-by-one after user confirmation
Label taxonomy predefined in label-taxonomy.md:
priority:blocking,priority:high,priority:medium,priority:low,priority:backlogarea:ci,area:image,area:workspace,area:workflow,area:docs,area:testingeffort:small,effort:medium,effort:largesemver:major,semver:minor,semver:patch
The skill creates any missing labels on first run (with user approval).
Sync manifest update: scripts/sync_manifest.py (and the corresponding requirements.yaml) will need to be updated to include the new .cursor/skills/issue-triage/ directory in the workspace sync process, ensuring the skill is propagated to assets/workspace/ alongside existing commands and rules.
Alternatives Considered
- Cursor command (
.cursor/commands/) -- Older Cursor pattern, less discoverable. Skills are the modern approach and better suited for complex, multi-step workflows. - External script -- A standalone Python script could do the analysis, but would lose the interactive suggest-and-approve loop that makes agent-driven triage valuable.
- GitHub Projects board -- Useful for visualization but doesn't provide the automated analysis and suggestion engine.
Additional Context
- Depends on [TASK] Reconcile issue template labels with repository labels #80 -- The label taxonomy defined here relies on the repo labels being reconciled first. Issue [TASK] Reconcile issue template labels with repository labels #80 (Reconcile issue template labels with repository labels) must be resolved so the triage skill can use a consistent, complete set of labels for grouping and classification.
- Sub-issues use the GitHub REST API (
POST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues). TheghCLI does not yet have native sub-issue flags (Addgh issuesupport for parent issues / sub-tasks cli/cli#10298), so the skill usesgh apidirectly. - Milestones follow SemVer (e.g.
0.3,0.4,1.0) matching the project's release cycle documented indocs/RELEASE_CYCLE.md. - The skill should be invoked explicitly (not auto-triggered).
- Interaction model: suggest everything, user approves each action.
Impact
- All project contributors benefit from structured backlog management
- No breaking changes -- purely additive (new skill + new labels)
- Backward compatible with existing issues and milestones
Changelog Category
Added
Activity
gerchowl commentedon Feb 18, 2026
Design: Issue Triage Agent Skill
Overview & Architecture
A Cursor agent skill at
.cursor/skills/issue-triage/SKILL.mdthat, when explicitly invoked, performs a full triage of all open GitHub issues. It:ghCLITrigger: Only when user explicitly asks (e.g. "triage issues", "backlog grooming").
Interaction model: Suggest everything, user approves each action. No mutations without confirmation.
Files:
Additionally,
scripts/sync_manifest.py/requirements.yamlupdated to sync.cursor/skills/toassets/workspace/.cursor/skills/.Label Taxonomy
Predefined in
label-taxonomy.md. The skill checks for missing labels on first run and asks user to approve creation.priority:blocking#b60205(red)priority:high#d93f0b(orange)priority:medium#fbca04(yellow)priority:low#0e8a16(green)priority:backlog#c5def5(light blue)area:ci#1d76dbarea:image#1d76dbarea:workspace#1d76dbarea:workflow#1d76dbarea:docs#1d76dbarea:testing#1d76dbeffort:small#c2e0c6effort:medium#fef2c0effort:large#f9d0c4semver:major#b60205semver:minor#fbca04semver:patch#0e8a16Existing labels (
bug,feature,question,documentation, etc.) remain as-is and serve as the type dimension.Decision Matrix & Hierarchy
Grouping logic
Matrix format
Grouped tables, one per cluster, with ungrouped section at the end:
Column definitions
Pfor parent,└for sub-issuefeature,bug,question,task, etc.ci,image,workspace,workflow,docs,testingblocking,high,medium,low,backlogsmall,medium,largemajor,minor,patchneeds design,ready,in progress,done0.3,0.4,backlogUser review actions
gh apiEach action type presented as a batch: "Approve all / pick individually?"
Workflow Steps
Phase 1: Collect
gh issue list --state open --limit 200 --json number,title,labels,milestone,assignees,bodygh pr list --state open --json number,title,headRefName,labels,milestonegh api repos/{owner}/{repo}/milestones --jq '.[] | {number,title,state,open_issues,closed_issues}'gh label list --json name,description,colorgh api repos/{owner}/{repo}/issues/{n}/sub_issuesandgh api repos/{owner}/{repo}/issues/{n}/parent(batch, skip 404s).github_data/issues/for local contextPhase 2: Check label taxonomy
label-taxonomy.mdgh label create "priority:high" --color "d93f0b" --description "..."Phase 3: Analyze & build decision matrix
Phase 4: Present & approve
Phase 5: Apply (batched by action type)
Batch 1 — New parent issues:
gh issue create --title "..." --label "..." --body "..."Batch 2 — Sub-issue links:
gh api repos/{owner}/{repo}/issues/{parent}/sub_issues -f sub_issue_id={child_node_id}Batch 3 — Label assignments:
gh issue edit {n} --add-label "priority:high,area:ci,..."Batch 4 — Milestone assignments: Create new milestones if needed (
gh api repos/{owner}/{repo}/milestones -f title="0.4"), thengh issue edit {n} --milestone "0.3"Batch 5 — Summary: Print all changes made, note unchanged issues
Error handling
Testing strategy
This is a skill (markdown instructions), not code. Validation is manual: invoke the skill on the actual repo and verify the triage output is sensible. The label taxonomy file can be validated by checking that all labels are parseable (name, color, description).
gerchowl commentedon Feb 18, 2026
Implementation Plan
label-taxonomy.mdreference file with all predefined labelsSKILL.mdwith the full triage skill instructions.cursor/skills/entry to the sync manifest inscripts/sync_manifest.pyjust sync-workspaceand verify the skill is propagated toassets/workspace/CHANGELOG.mdUnreleased sectionfeat: add issue triage agent skill with label taxonomy
chore: add .cursor/skills/ to sync manifest
chore: sync issue-triage skill to workspace template
docs: add issue triage skill to CHANGELOG
refactor: migrate cursor commands to skills and fix stale links
gerchowl commentedon Feb 18, 2026
Implemented in PR #68 on branch
feature/67-declarative-sync-manifest.Commits:
feat: add issue triage agent skill with label taxonomychore: add .cursor/skills/ to sync manifestchore: sync issue-triage skill to workspace templatedocs: add issue triage skill to CHANGELOGrefactor: migrate cursor commands to skills and fix stale linksfeat: add PR analysis, file-based matrix, and parent milestone conven…
chore: add 'agent' to allowed commit message scopes
chore: add 'agent' to allowed commit message scopes
chore: release 0.3.0 (#270)