/skills:vignettefrom skills
This skill should be used when creating or updating package vignettes. Vignettes are workflow-focused guides for users familiar with R but new to the package.
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; scripts run unread.
Write workflow-focused vignettes for users familiar with R but unfamiliar with the package. Style should resemble a technical blog post, not reference documentation. Vignettes support both learning and SEO.
Demonstrate:
Show how users solve problems with the package, not how individual functions work.
Vignettes must be .Rmd files in vignettes/.
Create with:
usethis::use_vignette(filename, title)
Rules:
Structure:
First chunk must be a named setup chunk containing configuration only.
All chunks:
Target roughly:
Prefer:
Avoid internet access when possible. When a workflow genuinely requires internet access or long-running computation, use the precompiled-vignette pattern below instead of removing the example.
Prefer plots over tables.
Mention internal functions only when essential.
When a vignette needs internet access or long-running computation, keep the documentation engine (and CRAN checks) away from that code using a two-file pattern:
vignettes/<name>.Rmd.orig — the source of truth with live chunks.vignettes/<name>.Rmd, a static twin with inert code
fences, inlined outputs, and committed PNG figures. The documentation engine
only ever builds the twin; .orig files are never built by R.Workflow:
.orig file per the content rules above; its setup chunk must set
fig.path = "<name>-" (equal to the vignette base name).scripts/precompile_vignettes.R from this skill into the package's
vignettes/ directory, then run from the package root:
Rscript vignettes/precompile_vignettes.R --build.orig edit..orig, the twin .Rmd, and all PNGs together; keep
vignettes/.gitignore containing *.html and *.R.scripts/check_precompiled_vignettes.R (exits non-zero on
missing twins, live chunks in a twin, or broken figure references).Never hand-edit a compiled .Rmd — fix the .orig and recompile. See
references/precompilation.md for setup-chunk conventions, determinism tips,
maintenance rules, and CRAN size considerations.
Verify:
vignettes/..Rmd..Rmd twin exists, contains no live chunks,
and every figure reference resolves to a committed PNG in vignettes/
(scripts/check_precompiled_vignettes.R automates these checks)Repeat verification of content on generated html file.
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./documentThis skill should be used when documentation for R package functions is requested or required.