R style guide covering naming conventions, spacing, layout, and function design best practices.
SkillScore96Maintained
Automatic
◆Coding pack
Last verified 8/8/2026
What it changes
Passed 23 of 24 test cases with the skill, and 18 of 24 without it.
Without skill75%
With skill96%
Checks it passed that the model alone missed
Uses the native pipe operator `|>`.
Defines function using `na.rm = TRUE` inside `range()`.
Defines function using `finite = TRUE` inside `range()`.
and 4 more in the full report
5 fixed18 passed either way1 still failing0 broke
Pass-rate lift
+21 pp
Tokens
+92%
Agent turns
0%
Response time
-25%
Model gemini-3.6-flashMeasured 8/8/2026v123 of 24 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 5 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 5
Prompt
I am writing an R data pipeline script. Here is a snippet where I calculate summary stats:
```R
x = mean(df$score)
total_count = length(df$score)
```
Should I keep the equals sign `=` for assigning values to variables in R, or change it?
What was checked, without and with the skill
Checked
Without skill
With skill
Replaces `=` with `<-` for object assignment.
Passed
Passed
States that `=` should be reserved for passing function arguments.
Missed
Passed
case-05 · gemini-3.6-flash · 8/8/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md338 linessingle file
R Style Guide & Function Writing Best Practices
Consistent naming, spacing, structure, and function design for R code