rocm/therock/therock-pr-quality
Claude Code and agent skill by rocm/therock
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
TheRock supplements to the ROCm PR quality base skill. Build-repo rules apply to PRs touching the superbuild, submodules, artifact descriptors, or reusable CI. Review mode (review.md) applies to every TheRock PR, including self-review; use it for "review PR #N" or a TheRock PR URL. Adds and tightens base rules.
Install
npx vskill@latest install rocm/therock/therock-pr-qualitySemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as rocm/therock/therock-pr-quality.
TheRock PR Quality (overlay)
Dependency (mandatory — do this first)
Read and apply the rocm-pr-quality base skill before anything below. It lives in this same repo: `SKILL.md` and `reference.md`. The extends and argument-hint keys above are repo conventions that not every agent runtime interprets, which is why this section tells you to load the base explicitly. The supplements here only ADD rules or TIGHTEN thresholds; they never relax a base MUST-rule. On any conflict, the base MUST-rule wins.
This overlay is for the build-repo concerns that the library overlays (e.g. hipblaslt-pr-quality) do not cover: the superbuild itself, submodules and patches, artifact descriptors, and the reusable CI workflows that every downstream build depends on.
Scope
Apply this overlay (in addition to the base) when a PR touches any of:
- The superbuild / build system: root
CMakeLists.txt,cmake/,THEROCK_ENABLE_*options,
component CMakeLists.txt under math-libs/, ml-libs/, comm-libs/, compiler/, etc.
- Submodules and patches:
.gitmodules(root and nested),third-party/, patch sets applied to
subprojects.
- Artifact descriptors:
artifact-*.toml,BUILD_TOPOLOGY.toml, and the artifact
fetch/install tooling (build_tools/**, install_rocm_from_artifacts.py).
- Reusable CI:
.github/workflows/**(especially reusableworkflow_callworkflows and their
callers) and build_tools/github_actions/**.
Changes outside these areas follow the base bar only. Review mode (below) is the exception: it applies to every TheRock PR.
Review mode
For review (base Action 2), also read and apply `review.md`. Unlike the supplements below, it applies to every TheRock PR, and it works for self-review before requesting review as well as for reviewing someone else's PR. It adds a non-destructive review setup, de-duplication against existing review threads, a title and description accuracy check, verification discipline, a file-ordered findings layout, and a whole-PR design pass.
Canonical TheRock references
Consult and cite these when reviewing TheRock PRs:
- Build system overview:
docs/development/build_system.md. - Testing strategy: `TESTING.md`, the repo-root
TESTING.mdthe base skill
discovers first. Its per-feature-area "Limitations and known gaps" sections name what CI cannot cover on every PR. As of this writing, only pre-commit and Unit Tests Summary are required checks; the full TheRock CI build/test lanes are not, because of their long time to signal and flaky GPU-runner tests. Confirm the current set with gh pr checks <PR> --required.
- Style guides:
docs/development/style_guides/—
python, cmake, bash, github_actions.
- Formatting:
.pre-commit-config.yaml. When authoring, runpre-commit run --files <changed files>
(the hooks can rewrite files; commit the result). When reviewing, do not modify the PR's checkout (the base review contract is read-only): run the hooks in a throwaway checkout of the PR head, or read the PR's own pre-commit check result, and report any formatter diff as a finding. Avoid --all-files, which can rewrite files the PR never touched.
Cite the specific guide section for a style finding.
PR-policy gate
The source of truth for TheRock's contributing policies is the repo's `CONTRIBUTING.md` — follow it first. In practice those policies are enforced by an automated gate (therock_pr_bot), which is the hoop every PR must actually clear before it can be reviewed. Treat that gate as authoritative: conform the PR to it before author or pre-merge sign-off, it overrides this skill's waivers and self-evident exemptions, and the skill never works around it. This overlay only points at the gate; it does not restate the gate's rules, so if the gate is later corrected to match CONTRIBUTING.md, the overlay needs no change.
When you advise the author to do something solely to clear the gate that is not stated in CONTRIBUTING.md, say so explicitly — name it as a gate requirement, not a guide requirement — so the author knows where it came from (for example: "the bot requires a resolving ISSUE ID / JIRA ID line even though the contributing guide doesn't, so add one"). skills/therock_pr_bot/FAQ.md explains how to clear a specific failure.
Supplements
Adds — change classes (bind to TheRock paths)
On top of the base classes, tag TheRock PRs with:
submodule-bump— advancing a submodule pointer (and/or its patch set).superbuild-cmake— changes to superbuild options / component wiring.artifact-descriptor— changes toartifact-*.toml/BUILD_TOPOLOGY.toml.reusable-ci— changes to a reusable workflow or its callers.dependency-add— adding a new third-party dependency or subproject.
Adds — submodules & patches review checks
- A submodule pointer bump is a real change: the PR must say what moved and why (the target
commit/range and its purpose), and link the upstream PR/commit. An unexplained pointer move is an M5 gap.
- Pointer bumps and patch-set edits must be intentional and isolated — flag an incidental
pointer move bundled into an unrelated PR (the "undeclared submodule drift" smell).
- Patches under a subproject must still apply cleanly against the new pointer; a patch that no longer
applies (or is now upstreamed and redundant) is BLOCKING.
- New/changed patches need a one-line rationale and, where it exists, a link to the upstreaming
effort so the patch can later be dropped.
Adds — superbuild vs sub-project CMake
- Distinguish superbuild-level changes (root
CMakeLists.txt,cmake/,THEROCK_ENABLE_*) from
sub-project CMake; a change in the wrong layer is a maintainability finding.
- A new
THEROCK_ENABLE_*(or similar) option needs a sane default, a help string, and a note on
how it interacts with existing components. See docs/development/build_system.md and the CMake style guide for conventions.
- Enabling a component by default (or changing a default) is a behavior change → treat as the base
heuristic/default-selection class (safe default + flag/tracker).
Adds — artifact descriptor checks
- No duplicate component ownership: a given component/file should be claimed by exactly one
artifact-*.toml. Flag two descriptors claiming the same thing.
- TOML components must match what the build actually provides — the components listed line up with
the therock_provide_artifact() (or equivalent) calls that produce them.
- Stale-descriptor-after-split: when a component is split/moved, the old descriptor must be
updated, not left pointing at the pre-split layout.
BUILD_TOPOLOGY.tomlstays consistent with the descriptors and component graph (no orphaned or
dangling entries).
- Changes to artifact fetch/install flags (
install_rocm_from_artifacts.pyand friends) keep the
documented flags and defaults in sync.
Adds — reusable CI workflow wiring
- When a reusable (
workflow_call) workflow's interface changes, inspect every caller. Callers
are updated in the same PR only where the change breaks them or changes their intended behavior (a removed or renamed input, a changed output, a new required input); a caller left on a breaking interface is BLOCKING. An added optional input with a behavior-preserving default needs no caller edit. Callers outside this repo, or pinned to a version, cannot be edited here: state the migration obligation in the PR instead.
- Reusable-workflow inputs are read via
inputs.*, notgithub.event.inputs.*(that only exists for
workflow_dispatch); flag the mismatch.
runs-onfor self-hosted/specialized runners is pinned to the intended label set, not a generic
default that will mis-route the job.
- Multi-checkout wiring (TheRock + a submodule/sibling repo) is correct: paths, fetch depth, and
submodule flags are set for what the job actually needs.
- No complex inline
bashembedded in YAML — non-trivial logic belongs in a script under
build_tools/ (per the GitHub Actions style guide), where it is testable and lintable.
- Any script a workflow calls has its runtime dependencies declared/available on the runner.
Adds — CI labels on TheRock PRs
Apply the base "CI labels (quality policy)" (reference.md), choosing and checking labels with the pr-ci-labels skill (its reference has the TheRock label conventions). On top of that:
- Never narrow a submodule-bump PR. Bumps carry
ci:run-all-archsandci:asanbecause a bump
is the first place many GPU families see the new code. A narrowing label on a bump is BLOCKING.
- Never narrow a `reusable-ci` change past the workflows it edits. The run has to exercise the
edited workflow on the platforms and families that call it; narrowing below that is BLOCKING.
Adds — dependency / subproject additions
A dependency-add PR must state: the build-time and binary-size impact (with a before/after metric where feasible), the license and its compatibility, and the maintenance owner. A new dependency with none of these is IMPORTANT at minimum, BLOCKING if it lands on a default/shipping path.
Tightens — stale-base on high-coupling build files
Make the base pre-merge stale-base check concrete for TheRock. High-coupling files: root CMakeLists.txt, cmake/**, .gitmodules, artifact-*.toml, BUILD_TOPOLOGY.toml, and reusable workflows under .github/workflows/. Overlap with the base branch on any of these since the PR diverged → mandatory rebase + re-run (base default is strong-recommend), because these break combinations that neither PR's own CI can see.
The helper implements this list: run it with --profile therock so overlap on these files is reported as BLOCKING. The default base profile has no high-coupling list and will not flag it.
What the overlay cannot do
Drop the regression/test obligations (M1/M2), allow disabling tests to green CI (M3), or skip work tracking/linking (M4/M5). Those are base MUSTs; this overlay can only make them stricter or bind them to TheRock build paths.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/therock-pr-quality/SKILL.md
Popularity
- Repository stars
- 1,118
- Repository forks
- 273
- 7-day trend score
- 35
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
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
[](https://verified-skill.com/skills/rocm/therock/therock-pr-quality)