Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add yale-som-hpc/claude-code-marketplace --skill coding-in-rgit clone --depth 1 https://github.com/yale-som-hpc/claude-code-marketplaceWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/yale-som-hpc/claude-code-marketplace/coding-in-r)<a href="https://agentmods.dev/skills/yale-som-hpc/claude-code-marketplace/coding-in-r"><img src="https://agentmods.dev/badge/skills/yale-som-hpc/claude-code-marketplace/coding-in-r/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/yale-som-hpc/claude-code-marketplace/coding-in-r"><img src="https://agentmods.dev/badge/skills/yale-som-hpc/claude-code-marketplace/coding-in-r.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00069 | $0.00912 |
| Opus 5.5 | $0.00028 | $0.00365 |
| Sonnet 5.5 | $0.00014 | $0.00182 |
| Haiku 4.5 | $0.00007 | $0.00091 |
Grade A, and why
coding-in-r scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 120 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Coding in R
Rule: renv, portable paths, script as source of truth. Never rely on the global workspace.
For cluster execution, also load running R.
Defaults
renvfor package versions. Commitrenv.lockand.Rprofile.- On SOM HPC:
module load r; norigormisedefault. pakfor fast installs when available.stylerfor formatting.lintrfor linting.here::here()for paths. Nosetwd()in tracked scripts.readr::read_csv()over baseread.csv().
install.packages("renv")
renv::init()
renv::install(c("tidyverse", "data.table", "here", "fs", "styler", "lintr"))
renv::snapshot()
Restore with:
renv::restore()
On HPC, restore once before arrays. Do not let many workers install packages concurrently.
Layout
project/
├── renv.lock
├── .Rprofile
├── README.md
├── scripts/ # entry points
├── R/ # shared helpers
├── notebooks/ # .Rmd / .qmd
├── data/raw/ # immutable; usually ignored
├── data/derived/ # rebuildable
└── results/ # figures/tables/logs
Paths
Never commit setwd() or personal absolute paths.
library(here)
counts_path <- here("data", "raw", "counts.csv")
counts <- readr::read_csv(counts_path)
For machine-specific roots, read an environment variable from .Renviron or the shell.
Style
snake_casefor variables/functions.<-for assignment;=for arguments.- Native pipe
|>unless%>%materially helps. - 2-space indentation; aim for 80-char lines, max 120.
- Named arguments:
mean(x, na.rm = TRUE), notmean(x, T). library()at top.- Never
attach()or<<-. set.seed(42)before stochastic work.
Data
Default to tidyverse for clarity. Use data.table when data are large, joins/grouping dominate, or in-place mutation matters. Benchmark before rewriting clear code for speed.
CLI skeleton
#!/usr/bin/env Rscript
suppressPackageStartupMessages({
library(optparse)
})
option_list <- list(
make_option(c("-i", "--input"), type = "character"),
make_option(c("-o", "--output"), type = "character")
)
opt <- parse_args(OptionParser(option_list = option_list))
if (is.null(opt$input) || is.null(opt$output)) {
stop("--input and --output are required", call. = FALSE)
}
set.seed(42)
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 120 lines · 69 tokens per session scan A aaf47fb9f989
coding-in-r is a skill published in the GitHub repository yale-som-hpc/claude-code-marketplace (5 stars, last pushed 3mo ago), licensed Unlicense. It adds 69 tokens to every session and 912 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
coding-in-r compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| coding-in-ryale-som-hpc/claude-code-marketplace | Skill | 5 | 3mo ago | Unlicense | A | 69 | Claude Code |
| jupyter-notebookNousResearch/hermes-agent | Skill | 261k | yesterday | MIT | A | 18 | Claude Code, Codex |
| matlabK-Dense-AI/scientific-agent-skills | Skill | 56k | 4d ago | MIT | A | 44 | Claude Code |
| pennylaneK-Dense-AI/scientific-agent-skills | Skill | 56k | 4d ago | MIT | A | 74 | Claude Code |
| cuequivariance-jaxNVIDIA/skills | Skill | 3.9k | yesterday | Apache-2.0 | A | 38 | Claude Code, Codex |
| cuequivariance-torchNVIDIA/skills | Skill | 3.9k | yesterday | Apache-2.0 | A | 37 | Claude Code, Codex |
| cuopt-numerical-optimization-apiNVIDIA/skills | Skill | 3.9k | yesterday | Apache-2.0 | A | 51 | Claude Code, Codex |