Triage issues

From microsoft/fluentui · View interactive version

Triage issues is an AI agent skill from the GitHub repository microsoft/fluentui. Triage newly-filed GitHub issues on the Fluent UI repo (microsoft/fluentui) following the Shield triage guidelines. Fetches open issues labeled `Needs: Triage :mag:` via the `gh` CLI, classifies each (bug vs feature, product area, partner ask, repro quality, a11y), recommends label changes and area-

How to use this skill

Skill file

Triage Fluent UI Issues (Shield Workflow)

Your job is to walk the current Needs: Triage :mag: queue on microsoft/fluentui, classify each issue against the Shield triage rules, and apply the right labels / assignee after the user approves.

This skill operates in recommend-then-apply mode: never mutate issues until the user has approved the batch. A wrong label is cheap to add and annoying to remove, so lean on the approval step.

The triage queue

gh issue list --repo microsoft/fluentui \
  --search 'is:open is:issue label:"Needs: Triage :mag:"' \
  --limit 50 \
  --json number,title,author,labels,createdAt,body,comments

Sort oldest-first — the guidelines prioritize the longest-waiting issues.

The decision each issue needs

For every issue, you're producing a recommendation with these fields:

| Field | Possible values |

| ---------------------- | ------------------------------------------------------------------------------------ |

| classification | bug, feature, question, a11y, needs-repro, duplicate, not-an-issue |

| product | v9, v8, web-components, charting, unknown |

| is_partner_ask | true / false (see references/partner-orgs.md) |

| priority_signal | p1, normal, help-wanted, good-first-issue |

| add_labels | list of label names to add |

| remove_labels | list of label names to remove (always includes Needs: Triage :mag: once triaged) |

| assignee | GitHub login of the area owner (see routing table below) |

| comment | optional message to leave for the author (required if asking for more info) |

| validation_candidate | true / false — does this bug warrant a playwright-cli repro check before triage? |

| needs_human_followup | anything you're unsure about — surface it, don't paper over it |

Don't invent labels. Every label you recommend must exist in the repo — see references/triage-labels.md for the allow-list.

Classification rules (from Shield guidelines)

Read references/shield-guidelines.md for the full rules. The short version:

  1. Questions → convert to a GitHub Discussion; don't triage as an issue.
  2. Bug with clear repro:
  1. Bug without a reliable repro → recommend Needs: Repro + Needs: Author Feedback, draft a comment asking for a minimal reproduction (StackBlitz preferred).
  2. Feature request:
  1. Accessibility-related (mention of screen readers, WCAG, keyboard nav, aria-\*, focus order, contrast, etc.) → add Area: Accessibility and assign smhigley alongside the area owner.
  2. Duplicate → Resolution: Duplicate + comment linking the original. Before claiming a duplicate, actually search: gh issue list --repo microsoft/fluentui --search '<keywords>' --limit 10.
  3. Spam / not-an-issue → Resolution: Not An Issue, close.

Area-owner routing

Route to people first, then to teams. Teams are in docs/team-routing.md and .github/CODEOWNERS is the source of truth for package ownership.

| Area | Assignee | Trigger |

| ---------------------------------------------------------------- | ----------------------------------------- | ------------------------------------------------------------------------ |

| Web Components (@fluentui/web-components, Fluent UI WC (v3)) | chrisdholt | Any web-components label, or title mentions fluent-* custom elements |

| Charting (@fluentui/charts) | AtishayMsft | Package: charting, chart component names |

| Date/Time pickers | ermercer | DatePicker, Calendar, TimePicker |

| Accessibility (any product) | smhigley | a11y keywords; also assigned in addition to product owner |

| v9 React components | CODEOWNERS owner for the specific package | Everything under packages/react-components/* |

| v8 React components | CODEOWNERS owner for the specific package | Everything under packages/react/* |

For v9/v8 components, look up the package owner. Fast path:

# Example: find the CODEOWNERS entry for react-skeleton
grep -n 'react-skeleton' .github/CODEOWNERS || true

If CODEOWNERS lists a team (e.g., @microsoft/cxe-prg), leave assignee empty and put the team in needs_human_followup — teams can't be assigned on issues via gh, so the user will route manually.

Priority and partner-ask signals

Every issue goes through the same decision tree regardless of author — that's the default. Shield: P1 and Partner Ask are narrow exceptions, not shortcuts around triage.

See references/partner-orgs.md for the framing (what these labels mean, what they _don't_ mean, and how to avoid misusing them).

If the triager has private notes in their Claude memory about tracked partner workstreams and known reporter handles, use that context to tip ambiguous cases. If no such memory exists, treat affiliation as unknown and flag needs_human_followup: "verify partner status" rather than guessing. A wrong Partner Ask label is a worse outcome than a missing one — the label can be added in five seconds later.

Workflow

Step 1 — Fetch

Run the queue query. Show the user the count and a one-line summary per issue (number, title, author, age in days). Don't dump the full JSON.

Step 2 — Classify

For each issue, read the title + body + existing labels. If repro evidence is ambiguous, skim the linked StackBlitz / attached code block — don't mark it needs-repro just because the word "Reproduction" field in the template is empty; check the actual content.

For feature requests that cite v8 behavior, do a targeted investigation before deciding. Look in the relevant package for:

v9 defaults to composition over configuration. An ask like "add a shouldFadeIn prop" usually has an answer like "compose with <Fade>" or "use onLoad + makeStyles keyframes". Surface the v9 pattern in the comment so the reporter isn't left hanging.

When checking for duplicates, search first:

gh issue list --repo microsoft/fluentui \
  --search 'is:issue <keywords>' \
  --limit 10 \
  --json number,title,state

Keep each issue's classification in an in-memory structure (don't write intermediate files).

Step 3 — Present recommendations

Produce a compact table the user can scan. One row per issue. Columns: #, classification, add labels, remove labels, assignee, priority, notes. Put the comment drafts separately below the table, keyed by issue number — comments are long and clutter the table.

If you found duplicates or partner asks, call them out explicitly above the table.

Then propose a validation set. Below the table, list the bugs you flagged as validation_candidate: true with a one-line reason each, and ask the user to confirm. Take the initiative here — don't wait for the user to think of validation. Example:

I'd like to verify these repros with playwright-cli before triaging:
  • #35998 — StackBlitz provided; Link underline visual bug, testable headless
  • #36001 — CodeSandbox provided; Button click handler not firing

Confirm with `validate yes`, `validate all`, a subset like `validate 35998`,
or `skip validation` to move straight to approval.

If there are no validation candidates (all feature requests, all reports with root-cause diffs, etc.), say so explicitly and go straight to Step 4.

How to decide validation_candidate:

true when all of:

false when any of:

Step 3.5 — Validate repros with playwright-cli

Run this step when the user confirms the validation set you proposed in Step 3 (or when they name a different set — validate 35998 35976, validate all, etc.). If the user says skip validation, go straight to Step 4.

Validation is the human-in-the-loop gate on agent initiative: you proposed the set, the human confirmed it, now execute. Do not mutate any issue as a result of validation — evidence feeds back into the recommendation table, and the user still approves in Step 4.

For each confirmed issue:

  1. Prerequisites. Run playwright-cli via npx (same as visual-test, so nothing is installed globally on the user's box). First invocation downloads @playwright/cli@0.1.1 into the npx cache; subsequent calls are cached:

```bash

npx -y @playwright/cli@0.1.1 <command>

```

  1. Pick the target URL. In priority order:
  1. Capture evidence. Don't try to "prove" the bug — just gather what a human needs to decide:

```bash

npx -y @playwright/cli@0.1.1 goto "<repro URL>"

npx -y @playwright/cli@0.1.1 screenshot --filename=/tmp/triage-<num>-screenshot.png

npx -y @playwright/cli@0.1.1 snapshot > /tmp/triage-<num>-dom.txt

# Console errors and warnings — often the most useful signal

npx -y @playwright/cli@0.1.1 console > /tmp/triage-<num>-console.txt

```

If the sandbox has a specific interaction to trigger the bug (click a button, type in a field), follow it using refs from the snapshot.

  1. Classify the result as one of:
  1. Feed evidence back into the recommendation. Only update add_labels as follows:
  1. Clean up. Close the browser, kill any Storybook you started, and delete the evidence files unless the user wants to keep them:

```bash

npx -y @playwright/cli@0.1.1 close

# If you started Storybook:

lsof -i :$SB_PORT -t 2>/dev/null | xargs kill 2>/dev/null

```

The validation-candidate heuristics are in Step 3 — don't re-litigate them here. If the user overrides and asks you to validate something you flagged as not-a-candidate (e.g., the Edge perf issue), do it anyway but prefix the result with a warning about headless limitations so the evidence is interpreted correctly.

Step 4 — Ask for approval

Ask the user: "Apply all / approve specific numbers / skip / edit?". Accept inputs like apply 35976, 35977, skip 36007, or free-form edits. The user can still request additional validation at this point (validate 36007 even if you hadn't proposed it); if they do, loop back through Step 3.5 and then re-present the updated table. Don't proceed to apply until the user has explicitly approved.

Step 5 — Apply approved changes

Use gh issue edit for labels and assignees. Use gh issue comment for drafted comments. Apply one issue at a time and print a one-line result per issue (success or error). Do not retry blindly on failure; stop and ask the user what to do.

# Labels
gh issue edit <num> --repo microsoft/fluentui \
  --add-label "Type: Bug :bug:" \
  --add-label "Fluent UI react-components (v9)" \
  --remove-label "Needs: Triage :mag:"

# Assignee
gh issue edit <num> --repo microsoft/fluentui --add-assignee chrisdholt

# Comment (use heredoc)
gh issue comment <num> --repo microsoft/fluentui --body "$(cat <<'EOF'
Thanks for the report! Could you share a minimal StackBlitz or CodeSandbox that reproduces this? The issue template has a Reproduction field that's currently empty.
EOF
)"

Step 6 — Summarize

After applying, print: X issues triaged, Y still need human follow-up (list them), Z were skipped. Leave the user with a clear handoff.

Anti-patterns (don't do these)

Reference files

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.