pr-status-triage

pr-status-triage: Use scripts/pr-status.js to triage CI failures and PR review comments. Intended for investigating failing CI jobs, flaky tests, or PR review feedback. Covers the "blocking priority" ordering (build > lint > typecheck > tests), matching CI environment variables for local reproduction, and distinguishing known flaky tests. Metadata: internal use: true.

Last repository push
GitHub Stars
143,631
Forks
32,732
Issues / PRs
4,112

Screenshots

A demonstration from skillπ Lab

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "pr-status-triage" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-ba1a7b17026f85f40918893b355ec0a184cb9552149d17d826884196707358c2. Verify the upstream source and version against https://github.com/vercel/next.js before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

pr-status-triage: Use scripts/pr-status.js to triage CI failures and PR review comments. Intended for investigating failing CI jobs, flaky tests, or PR review feedback. Covers the "blocking priority" ordering (build > lint > typecheck > tests), matching CI environment variables for local reproduction, and distinguishing known flaky tests. Metadata: internal use: true.

0 Downloads

Introduction source: third_party · vercel · 1.0.0 Reference

SkillPi interpretation

Tasks
Use this skill when the user asks about PR status, CI failures, or review comments in the Next.js monorepo.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: pr-status-triage
description: >
  Triage CI failures and PR review comments using scripts/pr-status.js.
  Use when investigating failing CI jobs, flaky tests, or PR review feedback.
  Covers blocker-first prioritization (build > lint > types > tests),
  CI env var matching for local reproduction, and the Known Flaky Tests
  distinction.
metadata:
  internal: true

PR Status Triage

Use this skill when the user asks about PR status, CI failures, or review comments in the Next.js monorepo.

Workflow

  1. Run node scripts/pr-status.js --wait in the background (timeout 1 min), then read scripts/pr-status/results/index.md.
  2. Analyze each job-{id}.md and thread-{N}.md file in scripts/pr-status/results/ for failures and review feedback.
  3. Prioritize blocking jobs first: build, lint, types, then test jobs.
  4. Treat failures as real until disproven; check the "Known Flaky Tests" section before calling anything flaky.
  5. Reproduce locally with the same mode and env vars as CI.
  6. After addressing review comments, reply to the thread describing what was done, then resolve it. Use reply-and-resolve-thread to do both in one step, or use reply-thread + resolve-thread separately. See scripts/pr-status/results/thread-N.md files for ready-to-use commands.
  7. When the only remaining failures are known flaky tests and no code changes are needed, retrigger the failing CI jobs with gh run rerun <run-id> --failed. Then wait 5 minutes and go back to step 1. Repeat this loop up to 5 times.

Quick Commands

node scripts/pr-status.js                  # current branch PR
node scripts/pr-status.js <number>         # specific PR
node scripts/pr-status.js [PR] --wait      # background mode, waits for CI to finish
node scripts/pr-status.js --skip-flaky-check  # skip flaky test detection

Thread interaction:

node scripts/pr-status.js reply-thread <threadNodeId> "<body>"           # reply to a review thread
node scripts/pr-status.js resolve-thread <threadNodeId>                  # resolve a review thread
node scripts/pr-status.js reply-and-resolve-thread <threadNodeId> "<body>"  # reply and resolve in one step

References

  • workflow.md — prioritization, common failure patterns, resolving review threads
  • local-repro.md — mode/env matching and isolation guidance

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 针对 CI 失败和 PR 审查评论的分级处理,解决开发流程中的高频刚需场景
  • 提供阻塞优先排序策略,显著提升故障排查效率
Trigger Precision85/100

Highlights

  • 触发词精准覆盖 CI 失败、不稳定测试、PR 审查反馈等核心场景
  • 边界清晰,避免与其他 Skill 重叠
Structure and Standards75/100

Areas to improve

  • 缺少 When to Use 显式章节 Reported severity: Minor

    文档结构完整但未显式标注 When to Use 章节

    Recommendation: 建议在 Workflow 前添加 When to Use 章节以提升可读性

  • 文档过长 Reported severity: Minor

    主文档约 400 行,超出理想长度

    Recommendation: 考虑将部分细节移至引用文档或折叠次要信息

Highlights

  • Workflow 步骤清晰,包含端到端示例和出口条件
  • Quick Commands 提供即用型命令模板
Execution Reliability85/100

Highlights

  • 工具来源明确,参数正确,覆盖主要异常场景
  • 提供重试机制和已知不稳定测试区分,确保执行闭环
Evidence Verifiability (mean of the first four)83/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.