---
name: triage-issues
description: >-
  Investigate bug reports and review pull requests, including re-reviews and batches. Validate the premise, reproduce defects, and assess product fit before recommending fixes or approval. Use when given a bug report, issue, or error report to investigate, or a pull request to review or re-review.
title: triage-issues
canonical_url: https://skilld.dev/gh/webpro/skills/triage-issues
last_updated: 2026-11-12T12:18:23.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [references/batch-reviews.md](https://skilld.dev/api/skills-raw/webpro/skills/triage-issues/references/batch-reviews.md).
>
> If the user asked to install this Skill, run `npx skilld install webpro/skills/triage-issues`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/triage-issues`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/webpro/skills/triage-issues) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/triage-issues`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/triage-issues --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/triage-issues --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Investigate issues and review pull requests

For a queue of issues or PRs, also read [Batch reviews](https://skilld.dev/api/skills-raw/webpro/skills/triage-issues/references/batch-reviews.md).

## Reuse context and evidence

- Pin the base and head, using a stacked PR's actual base; save the metadata, discussion and diff once and work from those files.
- Check workspace `.agents/reviews/` for prior reviews of the same PR or code; reuse their findings and test results only when the tested code and setup still match.
- Cite a link only after opening it; store the source and the claim it supports with the evidence.

## Establish the premise first

Read the report, discussion, and original fixtures. Before judging the implementation or proposing fixes, establish what fails, for whom, and why it violates the intended contract. State this and the evidence limits in the first substantive update and the verdict; if unproven, withhold endorsement.

- For issues, RFCs, and pull requests, first establish the practical need and whether solving it justifies the added complexity. If that is not shown, ask for a representative use case or recommend declining before assessing the solution.
- For bugs, reproduce the failure on a pinned baseline and rule out correct-by-design behavior. For features, establish intended behavior and product fit.
- If discussions or guidance conflict with the project's implementation or API, agree on the intended behavior with the maintainer before judging the change against it.
- Type-check or run fixtures with the relevant compiler, runtime, or format checker, including files outside the test's assertions. Repair invalid inputs minimally, keeping original and corrected evidence distinct.
- Use required settings, defaults, and an ordinary supported case as controls to separate an opt-in edge case from a general failure.
- When a representative fixture establishes the defect and scope, do not request a project link or flag its absence.
- Create a minimal reproduction when none exists, and label synthetic cases; proving behavior or finding matching syntax elsewhere does not establish prevalence or project impact.

For StackBlitz: `pnpx stackblitz-zip https://stackblitz.com/edit/{name} {filename}.zip`.

## Assess the solution

- Trace the failing input or changed behavior through callers; for PRs, read the whole diff.
- Use documentation, tests, and history to identify existing policy and the layer that owns the behavior. Logic placed outside that layer is a design finding even when it works.
- Compare identical valid inputs on pinned base and head. Preserve original acceptance cases, verify the added path, and inspect complete results; fallbacks can hide untested machinery.
- Assess whether the proposed solution satisfies the intended contract, including edge cases. Weigh demonstrated benefits against complexity, maintenance cost, and simpler alternatives; recommend declining when the added complexity is not justified.
- Judge correctness and design necessity separately: passing tests do not justify added shared state, services, caches, or abstractions.
- Challenge changes to shared infrastructure made solely to accommodate one component's special case. Look for a solution within that component or the existing extension points first.
- Separate regressions, incomplete intended behavior, and inherited limitations. Before recommending broader scope, explain the affected workflow and consequence.
- For JavaScript or TypeScript performance concerns, use the measurement guidance in the optimize-javascript skill when available.

## Reach a verdict

- Report defects, test gaps, and design questions distinctly, with severity, trigger, consequence, location, and evidence. Rank findings by user impact.
- Duplicated or misplaced logic that a change adds to core code is a required fix, not an optional suggestion. Keep later rounds narrow by limiting new edge-case requests, not by lowering code quality. Check co-author trailers; when a weak model wrote core logic, say so in the review and read the code more critically.
- When a material design trade-off remains unresolved, explain the options, benefits, costs, and limits. Recommend a direction and let the user decide.
- In a first round, raise structural requests and leave helper or style choices until the structure is settled. Structural rewrites belong before merge, by the author or as a fix-up on their branch; never offer "merge now, refactor later".
- For a stalled contribution, offer a maintainer fix-up on the author's branch as an alternative to another round.
- A pull request without check runs, because it conflicts or awaits approval for a first-time contributor, is untested: run its checks locally on the head.
- Recommend closing a pull request as superseded only after the replacement has landed, citing the commit. For a duplicate, recommend closure with a pointer to the preferred pull request.
- Approval requires a verified premise, product fit, justified design, correct behavior, and relevant checks. State unresolved design concerns in the verdict, ahead of secondary test improvements.
- On re-review, refresh revisions and record each prior material concern, including the user's, as open, resolved with evidence, or deferred by the user. Explain downgrades and reuse valid checks.
- Verify reviewer claims and proposed fixes; agreement is not evidence. Before recommending an alternative fix, compare it with the base on the same and adjacent cases, including inputs it newly excludes. Save bulk logs as files and return conclusions with verification limits.
- Store reports and evidence under the workspace `.agents/reviews/` with the issue or PR id and date in the path, as in `pr-2151.md` or `batch-2086-2090/2086/`, so the next round finds the prior review by id. Sessions share these names: check that the path does not exist and give each re-review its own.
