rocm/therock/rocm-pr-quality

Claude Code and agent skill by rocm/therock

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Author, review, merge-gate, or check attestation of a ROCm library PR so it is traceable, tested, and safe to merge. Use when preparing or reviewing a PR or judging merge-readiness. Library-agnostic; overlays extend it.

Install

npx vskill@latest install rocm/therock/rocm-pr-quality

SKILL.md

The same SKILL.md was published earlier as rocm/therock/rocm-pr-quality.

ROCm PR Quality (base)

This is the library-agnostic base skill for PR quality across ROCm. It exposes four actions the user invokes with a single sentence; the skill does the legwork through the tools already on the desk (gh, the repo, and Jira/GitHub MCPs when available).

  • Author assist — "help me write a PR worth reviewing."
  • Review assist — "help me review this PR well."
  • Pre-merge gate — "is it actually safe to press merge right now?"
  • Check attestation — "has this PR been reviewed by the skill?"

Pick the action from the user's request. If it is ambiguous, ask which one they want.

Detailed rubric tables, the PR description template, change classes, the test-level map, waiver codes, and the MUST set live in reference.md in this directory. Read it before running an action. The style guide for written artifacts (PR descriptions, review comments, handoffs) lives in prose-style-context.md, also in this directory. Read it before drafting or rewriting any prose.


Operating principles

  1. Paved road, not compliance cop. The goal is to make the high-quality path the easy

path. Be the helpful senior reviewer, not the gate guard. "Easy = used" is the point.

  1. Never write to external systems without explicit human approval. Do not post PR

descriptions, review comments, issue/ticket comments, labels, or merges to GitHub or Jira on your own. Draft the text, show it, and wait for the user to approve or edit. This applies even when the user says "review the PR" — you produce the review, the human posts it.

  1. Advisory first. This skill raises the floor; it does not approve and it does not

block a merge by itself. Hard enforcement (a required CI status check, a merge queue) is a separate, DevOps-owned lane. Do not assume it exists.

  1. Conform to the machine gate; it outranks this skill. The repo's contributing guide is the

source of truth for PR policy, but when a machine gate enforces it — a policy bot, a required status check that parses the branch/title/description, a merge queue — that gate is the hoop a PR must actually clear, so make the PR conform to it before anything else. Both the guide and the gate outrank this skill; it defers to them and never works around the gate. A machine gate honors none of this skill's waivers or self-evident exemptions, so where they disagree the gate wins. When you advise the author to do something solely to satisfy the gate that is not in the contributing guide, say so explicitly so they know the requirement came from the gate, not the guide.

  1. Follow the repo's own standards. When a component repo ships its own

testing/contributing/standards docs (e.g. CONTRIBUTING.md, a docs/testing*.md, a per-repo best-practices file), read and apply them rather than inventing guidance. The skill checks that repo standards are followed; it does not replace them. In particular, ROCm components are rolling out a standard `TESTING.md` — a per-component testing-strategy doc (piloted by hipBLASLt: projects/hipblaslt/TESTING.md and projects/hipblaslt/tensilelite/TESTING.md in rocm-libraries) naming what actually gates a merge versus what is informational, its test tiers, and its known gaps. Where one exists — check the repo root, then walk up from each changed path to the nearest component-level copy — it is the canonical source for testing questions on that component; see "Discover the component's TESTING.md first" in reference.md. Its absence is not a blocker (rollout in progress); fall back to CI-config discovery and this skill's generic guidance instead.

  1. Discover, do not hardcode. Supported architectures, CI labels, test lanes, and

tracker prefixes drift. Discover them from the repo and CI config at run time.

  1. Evidence over assertion. Ground every finding in a file:line, a CI link, a diff

hunk, or a resolved tracker. Do not invent test results or completed runs.


How overlays extend this base

Each ROCm library may publish a thin overlay skill (e.g. hipblaslt-pr-quality) that depends on this base. Overlays may add rules, tighten thresholds, and bind rules to component paths. Overlays may not weaken a base MUST-rule. On any conflict, the base MUST-rule wins.

When invoked through an overlay, read this base first, then apply the overlay's supplements on top.


Shared concepts (used by all four actions)

Change classification (extensible; multiple tags allowed)

Map touched paths + intent to one or more change classes. A PR may carry more than one tag (e.g. defect-fix + kernel/tuning). When ambiguous, pick the stricter class.

Base classes: new-public-api, new-op/dtype/path, heuristic/default-selection, kernel/tuning, build/ci, docs, revert, defect-fix, regression-test-only, other. Overlays may add component-specific classes. The class drives the test/flag bar (see reference.md).

The MUST set (M1–M5, non-overridable by overlays)
  • M1 Defect-fix PRs include a regression test, or a tracked two-PR known-bug plan.
  • M2 Product-code changes carry tests, a safe-default flag, or a written waiver.
  • M3 Never disable, skip, or weaken tests solely to green CI. (hard MUST — no waiver.)
  • M4 Non-trivial PRs carry work tracking (ticket, public issue, or credible no-tracker reason).
  • M5 PRs link the artifacts they relate to (work-tracking item, the defect they fix,

directly related PRs), and those links must resolve.

M2, M4, M5 are escape-hatch MUSTs: waiver-able with an explicit written reason that a reviewer adjudicates. M1 is waiver-able only via the tracked two-PR plan. M3 has no waiver.

Waivers (author-declared, reviewer-adjudicated)

An exception is never a silent self-override. The author declares a waiver code + a one-to- two-sentence reason (and any required approver); the reviewer accepts (APPROVED, with the waiver recorded) or rejects a weak one (CHANGES REQUESTED). A bare "N/A" is not a waiver — "why" is mandatory even when the rule is waived. Higher-risk waivers need a named approver. Waiver codes are in reference.md.

Waivers govern the human review floor only. They do not override a machine-enforced policy gate (see "Conform to the machine gate" in the operating principles): conform to that gate regardless of any waiver this skill would otherwise allow.

Test substance — the mutation question (and the "why")

Presence of tests is not enough. For 2–3 sampled tests ask: what specific change to the source would make this test fail? If the answer is hand-wavy, it is coverage padding. Smell scan: assert-callable-only, hasattr-guarded bodies, lone is not None/.called assertions, copy-paste that should be parametrized, mock-only assertions that pass against a no-op, and phantom methods that do not exist in the source. A smell is a prompt to inspect behavior, not a verdict: it is BLOCKING only when it demonstrates a missing guarantee (the test passes against a no-op, asserts nothing about behavior, or cannot fail). Duplication or a missing rationale alone is SUGGESTION; see reference.md.

Also ask for the rationale behind non-obvious test choices: where did this tolerance value come from, why this parameter combination and not another? A short paper trail prevents the "author is long gone, nobody knows why this test exists" problem. Prompt the author to record it; flag its absence on non-obvious numeric tolerances or parameter sets.

Blast radius & device/architecture coverage

Judge from what the diff actually changes, not the file's path. Decide whether the change is architecture-independent (wiring/plumbing with no kernel-selection/default/support-surface change → standard CI is enough), behavior-shifting (defaults/dispatch → multi-arch run warranted), arch-scoped (only the affected devices), or support-surface-expanding (full sweep). Kernel/device code generally needs cross-device coverage; host-only code often does not. Discover the supported architecture/label set from the repo's CI config; do not hardcode it. Do not over-escalate: an arch-independent change covered by passing CI needs no sweep, and saying so is a valid outcome.

CI labels: what is acceptable

CI labels decide what CI actually runs, so they are part of a PR's testing. Choosing and checking them is the job of the standalone `pr-ci-labels` skill, which owns the label sources, the selection rules, and the tool that shows which labels each run used. This skill sets the quality bar:

  • Minimal safe CI. A PR should carry the smallest label set that still covers everything the

diff can reach, plus whatever GPU families it needs. Too much CI is a cost, not a defect.

  • Labels are not tests. They never satisfy M2, and narrowing CI so a red run turns green

violates M3.

  • Narrowing moves risk to the author. If a narrowed PR breaks the base branch, a downstream

project, or a downstream submodule bump, the author owns the revert: revert first, then fix.

  • Record the choice. The PR description lists the labels with a one-line reason for each.

Review severities and the pre-merge bypass rule are in "CI labels (quality policy)" in reference.md.

Risk level (1–5)

Take any user-provided hint, then independently evaluate the diff. 1 = docs/comments/metadata only; 2 = narrow low-blast-radius change, good coverage; 3 = core subsystem / new feature path / schema-API addition / dispatch-build-test infra; 4 = broad behavior change, compat-sensitive public API, perf-critical path, incomplete coverage; 5 = cross-project/architectural, default behavior change in a critical path, ABI break, large unproven refactor, known unresolved failures. Residual coverage gaps (a required sweep that has not passed) raise the level.

Pick the level through the seven-factor risk-dimension lens in reference.md (component criticality, historical regression risk, blast radius, sensitive-path exposure, code churn, test-coverage delta, release-phase timing). The required validation floor for that level should come from the component's discovered TESTING.md first — its own documented tiers and what actually gates — falling back to the generic floor table in reference.md only when no TESTING.md covers the touched component.

Interlinking — every PR is an entry point

A PR should never be a dead end. From any artifact a reader should follow links outward to the why, the fix, the dependencies, and the predecessors. Forward links should resolve into reverse edges (GitHub back-references; Jira dev-panel auto-linking when the issue key is in the branch/PR title). M5 makes the core links mandatory; broader context (design docs, loosely related PRs) is a SHOULD.

Review attestation (approvals only)

When Action 2 concludes APPROVED, append the machine-checkable attestation block (see reference.md) to the drafted approval comment. Never attach it to CHANGES REQUESTED / REJECTED, and never to a PR description. It is part of the text the human posts; the skill still never posts on its own (operating principle 2). Take the Attestation digest from tools/pr_quality_check.py output; never compute or type it by hand. Explain the block in plain language when you add it: what it is, that it is tied to this PR (not to a commit, so later pushes are fine), and that a pre-review gate can key on it. If an approval was already posted without a block, hand the user the one-line paste form instead of the full block.

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1,445
Repository forks
375
7-day trend score
35

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 25 Oct 2026, a month ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/rocm/therock/rocm-pr-quality/badge)](https://verified-skill.com/skills/rocm/therock/rocm-pr-quality)

Something wrong with this skill or its page? Tell us.