agentleFS
jspergerjsperger/llm-r-skills/CLAUDE.md

llm-r-skills

CLAUDE.md13 starsChanged 5 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…

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
  1. Very specific:

    Use UPPERCASE placeholder names in .R template files (e.g.

    line 7
  2. Very specific:

    Run shellcheck <script> after writing or changing any .sh file.

    line 16

≈ “Common” is an estimate: at least 1 in 5 of the 29,248 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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 .sh file. 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 nor gtimeout. Detect, or run without.
  • Assume no jq. Check command -v jq at 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 pipefail fights 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.