llm-r-skills
CLAUDE.md15 starsChanged 11 months agoMITView on GitHub
Claude Code plugin for R development. main is protected — never commit there directly. Use UPPERCASE placeholder names in .R template files (e.g. STEPNAME, ACTIONDESC), not {{placeholder}}. The air formatter treats {{ as glue/curly-curly syntax and rewrites it, breaking the templates. Bash is required. The lowest supported version is 3.2.57, which ships as macOS /bin/bash and is what #!/bin/bash selects there. - Run shellcheck <script> after writing or changing any .sh file. Resolve every finding before committing. - Under set…
In this repository9 other files it gives its agents.
- designing-tidy-r-functionsSkill
- ggplot2Skill
- hardhatSkill
- metaprogrammingSkill
- rlang-conditionsSkill
- r-languageserverSkill
- targets-pipelinesSkill
- tidy-evaluationSkill
- tidymodels-overviewSkill
The file
We split this CLAUDE.md into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 7
Use UPPERCASE placeholder names in .R template files (e.g.
- Very specific: line 16
Run shellcheck <script> after writing or changing any .sh file.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
llm-r-skills
Claude Code plugin for R development. main is protected — never commit there directly.
R templates
Use UPPERCASE placeholder names in .R template files (e.g. STEPNAME, ACTIONDESC),
not {{placeholder}}. The air formatter treats {{ as glue/curly-curly syntax and
rewrites it, breaking the templates.
Shell scripts
Bash is required. The lowest supported version is 3.2.57, which ships as macOS
/bin/bash and is what #!/bin/bash selects there.
- Run
shellcheck <script>after writing or changing any.shfile. Resolve every finding before committing. - Under
set -u, bash 3.2 treats"${arr[@]}"on an empty array as an unbound variable. Use${arr[@]+"${arr[@]}"}. - Assume no
timeout— macOS ships neither it norgtimeout. Detect, or run without. - Assume no
jq. Checkcommand -v jqat the top of any script that uses it. - Diagnostic scripts must always print non-empty JSON and exit 0, especially when the
environment is broken.
set -euo pipefailfights this: a command substitution in an assignment propagates its exit status, and an unset var aborts even inside[[ ]]with stderr redirected.
Commands
!`cmd` in a command's .md runs unconditionally at prompt expansion, before the
model sees it. Never put a side-effecting or conditional command there — "if the user
confirms…" is prose the shell never reads. Have the model run it via Bash instead.
Testing
tests/diagnostics/test-lsp-harness.sh covers the shell tooling. Run it after touching
any script it covers.
A regression test that also passes against the pre-fix code proves nothing. Check:
LSP_HARNESS=/tmp/old.sh tests/diagnostics/test-lsp-harness.sh.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

