Add the "reprexes" skill (.claude/skills/reprexes)#239
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a repository-level Claude Code skill definition for creating “reprexes” (minimal reproducible examples) to support faster, cleaner debugging workflows in this repo.
Changes:
- Introduces
.claude/skills/reprexes/SKILL.mddescribing when/how to build a minimal reproducible example and iterate fixes outside full-context runs. - Includes R/Quarto-specific guidance for using the
{reprex}package and clean-session execution patterns.
|
Claude finished @d-morrison's task in 1m 30s —— View job Code Review — PR #239: Add the "reprexes" skill
OverallThis is a well-crafted, high-signal skill. The structure is clear, the procedure is actionable, and the R/Quarto specifics are accurate and genuinely useful. The supporting changes ( Two issues worth fixing, one structural note, and a handful of minor nits below. Issues1. [ If you suspect *stale* packages are the cause,
`tidyverse::tidyverse_update()` outside the reprex can rule that out — but it
updates packages, it doesn't record versions, so don't put it in the reprex
itself.The SKILL.md does correctly note this shouldn't go in the reprex, but suggesting it to "rule out stale packages" is still misleading. It installs the latest tidyverse packages — a side-effectful operation that changes the environment being debugged. It also covers only tidyverse packages, not the broader set of dependencies. Better alternatives for version diagnostics:
Suggested replacement: When the bug might be **version-dependent**, capture versions via
`sessioninfo::session_info()` (or `session_info = TRUE` above). To check a
specific package's installed version: `packageVersion("pkg")`.2. [ - `session_info = TRUE` — append `sessionInfo()` / `sessioninfo::session_info()`,The slash notation implies both are used. In reality, the Suggested: Copilot's first comment — no action neededCopilot flagged a reference to Structural noteThe Minor nits
VerdictThe skill is ready to merge after addressing the |
Codecov Report✅ All modified and coverable lines are covered by tests. |
…ate/lintr accuracy fixes)
…ording, tempfile note)
|
@claude fix failing workflows; use .rbuildignore |
|
Claude finished @d-morrison's task in 6m 8s —— View job Fixing failing workflows — doneAll four failing checks diagnosed and fixed in commit
Notes:
These changes should clear all four workflows on the next run. I can't re-run CI myself, but the new commit will trigger it. |
Add ^\.claude$ to .Rbuildignore so R CMD check (error-on note) no longer flags the skills directory. Bump dev version for the version-increment gate, add a NEWS.md entry for the changelog check, and add UCD/SeRG to inst/WORDLIST to clear the pre-existing spellcheck failure on NEWS.md. Co-authored-by: Douglas Ezra Morrison <d-morrison@users.noreply.github.com>
Summary
Adds a project-level Claude Code skill at
.claude/skills/reprexes/SKILL.md.reprexes captures a debugging workflow: when a technical problem is hard to pin down, isolate it into a minimal reproducible example ("reprex") and iterate candidate fixes on that fast, clean loop instead of inside the full application — then port the fix back. Includes the R/Quarto
reprexpackage workflow (reprex::reprex(),venue/session_info/std_out_err).References: https://r4ds.hadley.nz/workflow-help.html#making-a-reprex, https://reprex.tidyverse.org/.
Vendoring it here makes it available to collaborators and the
@claudeCI bot in this repo (previously it lived only in a personal user-level config).🤖 Generated with Claude Code