Repository navigation
Conversation
Adds .claude/skills/create-pr: a SKILL.md that turns CONTRIBUTE.md's PR rules, .github/pull_request_template.md and aiter-bot's PR Self-Review checks into one procedure, and validate_pr_body.py, which runs the bot's own validate_author_answers() from origin/main against a draft description before it is posted. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: fsx950223 <[email protected]>
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: |
NOT READY FOR HUMAN REVIEWPR Self-ReviewRevision Waiting for the PR author. The readiness report will appear after the self-review answers are complete for this revision. Questions to answer in the PR description
Edit the Missing or invalid answers
Shadow mode reports what would block but keeps the status successful. Set |
…icates (#7208) Adds a rocm-aiter marketplace (.claude-plugin/marketplace.json) with one plugin, plugins/aiter, whose skills/ links to .claude/skills so each skill keeps a single source. Removes flydsl-kernel-authoring and flydsl-kernel-code-cleanup, which duplicate skills maintained in ROCm/FlyDSL, and repoints the FlyDSL Copilot instructions to those. Signed-off-by: fsx950223 <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
plugins/aiter/skills links to .claude/skills. Black follows the symlink and matches extend-exclude against the link's path, so the existing /\.claude/ exclude did not cover it and 14 review-bot tooling files failed the style check under plugins/aiter/skills/. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: fsx950223 <[email protected]>
| python .claude/skills/create-pr/validate_pr_body.py body.md # head SHA = local HEAD | ||
| python .claude/skills/create-pr/validate_pr_body.py body.md --pr 1234 # head SHA + changed op_tests from GitHub |
|
|
||
| ```bash | ||
| git push -u origin HEAD | ||
| gh pr create --repo ROCm/aiter --base main --title "<title>" --body-file body.md |
| ap.add_argument("--ref", default="origin/main", help="where to read the bot script") | ||
| args = ap.parse_args() | ||
|
|
||
| source = run("git", "show", f"{args.ref}:.github/scripts/pr_self_review.py") |
|
No activity for 15 days, so this is now labelled |

Summary
Adds a
create-prClaude Code skill under.claude/skills/create-pr/. It guides an agent through opening or updating a ROCm/aiter PR that passes aiter-bot's PR Self-Review the first time. It ships withvalidate_pr_body.py, which runs the bot's own validator against a draft description before it is posted.Motivation
aiter's PR rules are spread across three places, and agents writing PRs miss parts of them:
CONTRIBUTE.md→ "Pull Requests": one backend per PR, component tags vs. hand-written type tags, readiness criteria..github/pull_request_template.md..github/scripts/pr_self_review.py(aiter-bot), with its five###self-review headings, word-unit minimums, evidence/unverified-scope regexes, path-selected question, and current-head-SHA rule.The existing repo skills cover reviewing PRs (
review-pr) and validating them on a GPU (validate-kernel-pr); none covers writing one. In practice the bot's rules are discovered only after posting.### Reviewed revisionmust be refreshed after every push; a type tag such as[Perf]is never added automatically; and hand-copied benchmark numbers drift from the raw data.Changes
.claude/skills/create-pr/SKILL.md: the procedure.select_question()picks for each kind of changed path.gh pr create/edit.ci:*labels..claude/skills/create-pr/validate_pr_body.py:.github/scripts/pr_self_review.pyfromorigin/main(overridable with--ref), so it always applies the rules the bot currently runs, not a copy.validate_author_answers()andselect_question().op_tests/files from--pr N(viagh) or from the localHEAD/origin/main...HEAD.OKor the bot's issue list; the exit code is 0 or 1..github/workflow, bot script, template orCONTRIBUTE.mdedit. The skill only reads them..gitignore's.claude/entry, the same way the existing.claude/skills/*are tracked.Testing
aiter.Documentation
The skill is documentation for agents.
CONTRIBUTE.mdremains the source of truth that it points to.Dependencies
The script uses only the standard library plus
gitand, for--pr,gh.Breaking Changes
None.
PR Self-Review
Reviewed revision
013b45e
Behavior and intent
This adds a
create-pragent skill and avalidate_pr_body.pychecker; nothing in theaiterpackage, CI or the bot changes. Previously, PR authors and agents learned aiter-bot's self-review rules only after posting. #7197's first description failed 9 checks, and the rules were scattered acrossCONTRIBUTE.md, the template andpr_self_review.py. The skill puts those rules in one place, and the checker lets the bot's own rules run locally before a PR or edit is published.Validation and unverified scope
Validator runs against the bot script on
origin/main:python .claude/skills/create-pr/validate_pr_body.py <body> --pr 7197on [FlyDSL] pa_decode: peel the last KV tile so only it carries the V tail mask #7197's live description printsOKwith exit 0. The question it selects matches the bot's own comment, and its word-unit counts match the bot's accepted answers.--pr, it read this branch's head013b45e433and selected the generic question for.claude/paths.ruff check(ruff 0.16.0, as pinned in CI) andblack --checkpassed.Not covered or unverified:
csrc/, configs,.github/) have not been tried in practice.validate_pr_body.pyimports the bot script dynamically, so a future change to the signature ofvalidate_author_answersorselect_questionwould break it. The traceback would point at the call site.PR-specific question
The most important failure mode is the checker drifting from the real bot: it would print
OKwhile the bot still reports "NOT READY".The script avoids this by never copying rules. It
git showsorigin/main:.github/scripts/pr_self_review.pyat run time and calls that module's ownvalidate_author_answers()andselect_question(). Thresholds, regexes and question selection are therefore always whatever the bot currently enforces.Evidence: on #7197, the script's verdict and per-section unit counts (102/142/175/25) match the bot's "Author self-review accepted" comment for head
553002cfa0bf.The remaining drift risk is an API change in those two functions. That fails loudly with an exception, not as a false
OK.Changed op tests
None. This PR changes no
op_tests/file; it only adds.claude/skills/create-pr/SKILL.mdandvalidate_pr_body.py.🤖 Generated with Claude Code