/skills:documentfrom skills
This skill should be used when documentation for R package functions is requested or required.
Ships in skills. 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.
Implement Roxygen2 documentation following these procedural standards.
@param, @returns, and @seealso as appropriate. Refer to references/roxygen2_syntax.md for detailed type notation and parameter formatting.@param definitions before any @inheritParams lines. Use @inheritParams .shared-params when using shared parameters defined in R/aaa-shared_params.R.@export, include @keywords internal). Still include title & @description, and describe all parameters. Avoid adding @examples to internal functions.@rdname tag to group them under a single help page. Refer to references/s3_methods.md for implementation details.air format .
devtools::document() after edits and formatting. Run it in Posit Assistant's live R session (its built-in R tool) so it reuses your active console — fall back to the terminal only when no live session is available:
devtools::document(roclets = c('rd', 'collate', 'namespace'))
Terminal fallback:
Rscript -e "devtools::document(roclets = c('rd', 'collate', 'namespace'))"
@export to make the function available to users.@examples section for user guidance.@keywords internal to prevent exporting.@examples.Follow specific grouping rules for S3 methods using @rdname, as detailed in references/s3_methods.md.
pkgdown)If a _pkgdown.yml file exists and contains a reference section, add any new non-internal topics to the reference index. Verify completeness by running:
pkgdown::check_pkgdown()
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub pbulsink/skills --plugin skills16 skills in this plugin
/agent-md-refactorRefactor bloated AGENTS.md, CLAUDE.md, or similar agent instruction files to follow progressive disclosure principles. Splits monolithic files into organized, linked documentation./app-screenshotThis skill should be used when capturing screenshots of R Shiny apps for documentation — vignettes, READMEs, and app tours. Covers driving a live app with shinytest2's AppDriver, isolating demo state from real data, and producing numbered PNGs ready to embed./generate-agents-mdGenerate a project-specific AGENTS.md file by analyzing the local R package structure. Reads DESCRIPTION, catalogs /R/, /.github/, tests/testthat/, and vignettes/ directories, reverse-engineers architecture from R/*.R roxygen docs, and produces a structured template emphasizing Standard Workflow for AI agents.