Checks that a PR against an R/Bioconductor package is focused and ready for review, then drafts its title and description following Bioconductor policy.
Ships in bioc-r-packages. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Prepare a pull request (PR) against an R or Bioconductor package: check that the change is focused, confirm the checks a reviewer will expect, and draft a title and description for the user to approve.
This skill covers what is particular to R and Bioconductor packages. General PR practice (a title that says what the change does, a description of the problem and the approach, linked issues) is assumed. SOURCES.md lists where the guidance comes from and which parts are this skill's own conventions; read it only when updating the skill.
DESCRIPTION) inside a git repositorydevelCONTRIBUTING.md and PR template, if any. Where they conflict with this
skill, they win.Authors@R in DESCRIPTION. A
person with role "cre" or "aut" is a package author. Ask only if they can't be matched.
This decides the reminder in step 5.Report what should be split or dropped and let the user decide. Do not rewrite their history, and do not make these changes yourself while preparing the PR.
git diff -w --ignore-blank-lines) and recommend reverting lines that differ only in whitespace
or blank lines; they hide the real change from the reviewer.RoxygenNote or Config/roxygen2/version bump in DESCRIPTION, and .Rd files that change
only because a newer roxygen2 regenerated them.NAMESPACE or Collate changes beyond what the PR's code needs. Compare the set of
directives or files before and after; a reordering by roxygen2 is noise.Imports, Depends, Suggests, or LinkingTo entries the PR's code doesn't use. Name
the ones it does need in the description (step 6).docs/ site, *.Rcheck/ directories, built
tarballs, or rendered vignette .html files.DESCRIPTION has a RoxygenNote or
Config/roxygen2/version field. If it does, edit the roxygen comments, regenerate man/, and
confirm the generated files are committed. If a newer roxygen2 also changes RoxygenNote or
unrelated .Rd files, revert those (step 2). If it has neither field, the .Rd files are written
by hand: edit them directly and do not run roxygen2, which would overwrite them.R CMD build,
R CMD check, and, for Bioconductor packages, BiocCheck once, following
build-check-bioccheck. To tell new problems from old ones,
compare with the base branch's latest CI results; do not run a second full check on the base
branch for the comparison.A NEWS entry is welcome but not required (this skill's convention), since the maintainer can write NEWS when preparing a release. Offer one when users will notice the change, and draft it with update-r-news, which sets the conventions. For a single bullet written by hand:
update-r-news derives it (e.g. 1.20.0 when devel is at 1.19.4), not a
(development version) heading, as a list element in the file's existing style.(#42, @user) if it has none.Advise against changing Version: in DESCRIPTION, and if the branch already bumps it, recommend
reverting that before the PR is opened. Bioconductor requires a bump of z in x.y.z for each
push to git.bioconductor.org; this skill reads that as the maintainer's push after merging. Bumps inside PRs
collide when several PRs are open, or go stale while a PR waits for review.
If the PR author is a package author (step 1), remind them to bump when pushing upstream after the merge; bioc-pkg-dev covers that push.
Add a prefix such as feat: or fix: to the title
only if the repository's history already uses them. Beyond the problem, the approach, and
Fixes #N, include what applies:
bench::mark())
for a performance change, including input sizes where the speed-up is negligible.Assisted-by: <AI name> or Code copied from: <source>), and confirm that the
provenance is also cited in the code and that the code can be redistributed under the package's
license.Show the pre-PR report, title, and description. Open or update the PR only after the user approves the text, and open it as a draft if a check is failing.
## Pre-PR report
- Focus: <ok | suggested splits>
- Whitespace-only changes: <none | files and lines to revert>
- Maintenance changes: <none | files to drop or move to a separate PR>
- Tests: <added/updated | missing for ...>
- Documentation: <roxygen2, regenerated | hand-written Rd, edited | no changes>
- R CMD check / BiocCheck: <no new issues | new: ...> (<run now | CI run for <commit>>)
- NEWS: <entry added | offered, not added | not user-facing>
- Version: <unchanged | bumped in branch, recommend reverting>
## Title
<title>
## Description
<description, in the repository's template if it has one>
The pre-PR report is for the user. Keep its bookkeeping, such as the version line, out of the PR description.
User: "Is this branch ready for a PR?"
Skill produces: a report that the branch adds a summarize_by() method, renames three internal
helpers across 14 files, bumps RoxygenNote (rewriting 40 .Rd files), and bumps Version:. It
recommends one PR for the rename, one for the new method with its tests, and reverting the roxygen
and version bumps, then drafts the title and description for the first.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/bioc-r-packages:draft-r-package-prfrom bioc-r-packages
npx claudepluginhub bioconductor/ai-agent-skills --plugin bioc-r-packages13 skills in this plugin
/analyze-r-packageAnalyze R/Bioconductor package structure to extract key information about its purpose, exports, and characteristics/bioc-howtoA consolidated index of Bioconductor how-to skills covering genomics, sequencing, and omics data analysis tasks/bioc-pkg-devGuide an R package or a set of analysis scripts through Bioconductor submission: the pre-submission gate, the Contributions tracker, and post-acceptance maintenance/bioc-pkg-finderFind the R / Bioconductor packages best suited to a task or workflow/bioc-pkg-reviewReview your own R package against the rubric and checklist Bioconductor's agent-assisted reviewer uses, before you submit, so the human review has less to say/build-check-bioccheckRun and interpret R CMD build, R CMD check, and both BiocCheck entry points against a Bioconductor package, separating real defects from environment gaps and known false positivesOther plugins' skills for the same job