Repository navigation
docs(hipblaslt): add PR prose-style guide to pr-quality skill - #10819
Conversation
Add prose-style-context.md alongside the hipblaslt-pr-quality skill and wire two supplements into SKILL.md: apply the style guide to written artifacts, and recommend a description rewrite on author and review. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
✅ All Checks Passed — Ready for Review
📖 Need help? See the Policy FAQ for details on every check and how to fix failures. |
|
🎉 All checks passed! This PR is ready for review. |
|
David, I think this is solving a real problem. Our PR descriptions have been getting out of hand, and I have definitely noticed that in mine. I tried the guide against a few of my current PRs as a dogfood exercise, and it really does help: clearer opening, less assumed context, and a description that stands on its own better. I have a few adjustments to suggest, but the core goal here is important and I am glad you wrote it down. |
|
David, I wanted to show what this looks like against a real PR once the reader-model / length / cadence tweaks above are in place. I used #10752. Your direction helped a lot: the rewritten version explains TheRock CI before diving into workflow details, and it is much easier for someone outside the component to follow. My first pass under the current hard word limit went too far and cut the live run evidence. With the proposed changes, I think we keep the accessibility you are aiming for without losing the verification detail. Example rewritten descriptionSummary
The setup job still runs for draft pull requests, but Risk AssessmentRisk 2/5. This changes when CI runs, not what it builds or tests. The setup job is never skipped, which avoids depending on GitHub Actions' job-skip propagation for a required check. RelatedDevice / Architecture CoverageNo product or device code changes. The live verification covers the workflow behavior directly; no architecture-specific testing is needed. Testing Summary
Testing Checklist
Flags / GuardrailsNone. Draft pull requests cannot merge, and marking one ready automatically restores normal CI behavior. Technical Changes
|
|
Second example from #10740. Same idea: the style guide's push toward explaining the job before naming files is doing good work here. What I liked most was that the rewrite makes the platform-argument trap obvious without assuming the reader already knows how the reusable workflow is wired. This feels like the best version of what you are aiming for: clearer onboarding, without flattening the technical story. Example rewritten descriptionSummaryThe This change moves that job to the GitHub-hosted Moving the job exposed one important dependency on the original runner: Risk AssessmentRisk 2/5. The reusable workflow runs on many pull requests, but the change is confined to the host used for one matrix-calculation job. Workflow inputs, outputs, GPU selection, and the RelatedDevice / Architecture CoverageNo device code changes. The relevant coverage is that Linux and Windows callers both receive the correct test matrix and that their downstream jobs start normally. Testing SummaryThe PR itself exercises the changed workflow because Automated review identified the missing platform argument in the first version. The current version passes Testing Checklist
Flags / GuardrailsNone. Adjacent Tests ConsideredThe Risk Acceptance / Waivers
Technical Changes
|
|
Third example from #10596. This one is a good stress test for the guide, because the before-and-after reproduction is the heart of the review. I think your evidence rules are exactly right here: keep the inputs, exit codes, and floor values. The rewrite below tries to honor that while still doing the cleaner "what does this tool do, what was unsafe, what changed" opening that your Motivation guidance asks for. If we soften the hard length limit, this is the kind of description I hope the skill keeps rather than compresses away. Example rewritten descriptionJIRA ID : #10591 Motivation
Before this change, Technical Details
A developer may still approve a reduction with the repeatable The remediation message now prints a separate No automated workflow invokes Test PlanUnit tests cover increasing and preserving existing floors, adding a new file, explicitly lowering a named file, rounding below stored precision, sorting refused reductions, and generating remediation commands. The regression case is Command-level tests verify that a refusal writes nothing and exits 1, repeated Test ResultThe defect was reproduced with identical inputs before and after the change. The committed floors were Before the change, the command exited 0 and silently lowered
The recorded Submission Checklist
Risk levelLow (2/5). This affects one CI maintenance command and makes its default behavior stricter. A previously silent reduction now becomes a refusal that identifies the affected files and the explicit command required to approve them. |
Co-authored-by: Tony Davis <tony.davis@amd.com>
…text.md Co-authored-by: Tony Davis <tony.davis@amd.com>
…text.md Co-authored-by: Tony Davis <tony.davis@amd.com>
…text.md Co-authored-by: Tony Davis <tony.davis@amd.com>
tony-davis
left a comment
There was a problem hiding this comment.
I think this will help a lot. Thanks!
docs(hipblaslt): add PR prose-style guide to pr-quality skill (#10819) # This is what this skill would recommend > JIRA ID : ABC-123456 > > Motivation > > The hipBLASLt PR-quality skill is a set of rules that tighten a shared base skill for reviewing pull requests. Until now it covered only structure and process (which files changed, which checks must pass), and said nothing about how to write the PR description itself. As a result, description quality varied by author. This PR adds a written style guide to close that gap. > > Technical Details > > - Adds prose-style-context.md next to the skill's SKILL.md. It defines the target reader, a word limit, a per-sentence checklist, a list of words to avoid, and rules for backing claims with evidence. > - Adds two clauses to SKILL.md: one points the skill at the new file; one requires both the author and review modes to run a description through the checklist and produce a concrete rewrite. Rewrites stay advisory and are never posted without human approval. > - No base skill, sibling skill, or product/device code changes. Two files: SKILL.md (+20), prose-style-context.md (+306, new). > > Test Plan > > Run the skill's author and review modes against she checklist flags non-conforming text and the > rewrite output is well-formed. > > Test Result > > Pre-commit hook ran locally. Automated GitHub checks are pending. Docs-only; no coverage to report. > > Submission Checklist > > - [ ] Look over the contributing guidelines. > > Risk level > > Low (1/5): documentation and skill files only; no executable or device-facing code changes.
#11006
JIRA ID
N/A
Motivation
The hipBLASLt PR-quality overlay presently constitutes a rules-tightening layer superimposed on the library-agnostic base contract, but its remit has historically been confined to the structural and procedural dimensions of merge-readiness adjudication — change-class binding, MUST-set enforcement, stale-base coupling detection, and the validator-versus-validated-data collision surface — while leaving the prose-artifact production pathway effectively unspecified and therefore subject to considerable authorial variance. In the absence of a codified stylistic contract governing the natural-language surface of a pull request, the descriptive artifacts emitted during the author and review phases exhibit non-deterministic quality characteristics that are not presently observable to, or gateable by, any deterministic checkpoint in the pre-merge pipeline, which in turn attenuates the reviewer's capacity to perform a first-pass triage without incurring the cost of a full diff traversal. This change is intended to close that specification gap at the overlay tier.
Technical Details
This PR introduces a prose-and-style context artifact, co-located with the overlay's SKILL manifest, and wires it into the extant supplement enumeration via two additive supplement clauses that are strictly monotonic with respect to the base MUST-set — i.e., they tighten and extend but under no circumstance relax an inherited invariant, consistent with the overlay's established non-relaxation semantics. The first supplement establishes the referential binding between the manifest and the style context, designating the latter as the normative authority for the reader-model calibration, the length-budget envelope, the per-sentence admissibility gate, the proscribed-lexeme enumeration, and the evidentiary-scope discipline. The second supplement promotes the guidance from a passively-referenced corpus to an actionable procedural obligation across both the author-assist and review-assist actuation modes: in the author path, the drafted description is subjected to the sentence-level admissibility gate and the terminal acceptance predicate prior to surfacing; in the review path, the incumbent description is differentially evaluated against the same gate, with any admissibility violation precipitatinndation annotated with the specific failingpredicates. The recommendation pathway is constrained to an advisory posture per the base operating principle governing unattended external mutation, and preserves the repository-manhe tracker-linkage line. No modification is made tothe base contract, to any sibling overlay, or to any production or device-facing code path; the change is confined to the
documentation and skill-specification stratum of the.
Test Plan
Validation is effected by exercising the overlay's modes against a representative corpus of candidatedescriptions and confirming that the admissibility gate discriminates conformant from non-conformant artifacts and that the
rewrite-recommendation pathway emits a well-formed,r artifact under the advisory constraint.
Test Result
The pre-commit affected-tests hook was exercised antion. Broader automated verification is understood to be nominally green. Coverage of the affected specification surface is considered adequate for the documentation stratum.
Submission Checklist
Risk level
Low, inasmuch as the change is confined to the documentation and specification stratum and effects no alteration to any executable code path or device-facing behavior.
This is what this skill would recommend