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 running-statagit 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/running-stata)<a href="https://agentmods.dev/skills/yale-som-hpc/claude-code-marketplace/running-stata"><img src="https://agentmods.dev/badge/skills/yale-som-hpc/claude-code-marketplace/running-stata/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/running-stata"><img src="https://agentmods.dev/badge/skills/yale-som-hpc/claude-code-marketplace/running-stata.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.00063 | $0.01065 |
| Opus 5.5 | $0.00025 | $0.00426 |
| Sonnet 5.5 | $0.00013 | $0.00213 |
| Haiku 4.5 | $0.00006 | $0.00106 |
Grade C, and why
running-stata scanned grade C with 1 finding 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
trap 'rm -rf "$STATATMP"' EXIT How it starts
The opening of the file, as written. The whole thing — 112 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Running Stata
Rule: run Stata in batch jobs, write logs, put temp files on scratch, and request only the cores Stata will use.
What you get: the stata module is a complete MP install — no package-bootstrap step (unlike R, whose base module ships nothing). ssc install packages land in your personal ado directory.
Slurm template
#!/bin/bash
#SBATCH --job-name=stata-job
# default_queue caps at 4h; for long/large work use cpunormal or gpunormal (see managing-jobs)
#SBATCH --partition=default_queue
#SBATCH --time=01:00:00
#SBATCH --cpus-per-task=4
#SBATCH --mem=16G
#SBATCH --output=logs/%x_%j.out
set -euo pipefail
module purge
module load stata
# These only affect external BLAS calls; native Stata/MP threading is controlled
# by `set processors` (below), not by these. Harmless to keep for portability.
export OMP_NUM_THREADS=${SLURM_CPUS_PER_TASK:-1}
export OPENBLAS_NUM_THREADS=${SLURM_CPUS_PER_TASK:-1}
# The stata/19 module defaults STATATMP=/gpfs/scratch60; override for per-job isolation:
export STATATMP=/gpfs/scratch60/$USER/stata-tmp/${SLURM_JOB_ID}
mkdir -p "$STATATMP" logs
trap 'rm -rf "$STATATMP"' EXIT
cd /gpfs/project/myproject/code
stata-mp -b do src/main.do
Two log gotchas, both verified on the cluster:
- Read the
.log, not the.out. Understata-mp -b, Stata sends all output to its own log file; the Slurm--output.outfile ends up empty. Thelog usinginside your do-file (below) is what you read. stata-mp -b do src/main.doalso writesmain.login the working directory (named after the do-file), in addition to yourlog using. Either expect/clean up that stray file or name yourlog usingdifferently.- Check the log for errors — batch mode can exit 0 on a Stata error. Grep the
.logfor anr(###)return code;set -ewill not catch a do-file error on its own.
Do-file preamble
capture log close _all
local jobid : env SLURM_JOB_ID
if "`jobid'" == "" local jobid local
log using "logs/main_`jobid'.log", replace text
local ncpus : env SLURM_CPUS_PER_TASK
if "`ncpus'" == "" local ncpus 1
set processors `ncpus'
local statatmp : env STATATMP
di "STATATMP=`statatmp'"
set more off
version 19
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 · 112 lines · 63 tokens per session scan C 3a46b8c9dbab
running-stata is a skill published in the GitHub repository yale-som-hpc/claude-code-marketplace (5 stars, last pushed 3mo ago), licensed Unlicense. It adds 63 tokens to every session and 1,065 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
running-stata compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| running-statayale-som-hpc/claude-code-marketplace | Skill | 5 | 3mo ago | Unlicense | C | 63 | Claude Code |
| nextflowK-Dense-AI/scientific-agent-skills | Skill | 56k | 4d ago | MIT | A | 74 | Claude Code, Codex |
| latchbio-integrationK-Dense-AI/scientific-agent-skills | Skill | 56k | 4d ago | MIT | A | 78 | Claude Code |
| remote-compute-sshaipoch/open-science | Skill | 5.5k | yesterday | Apache-2.0 | A | 53 | Claude Code, Codex |
| modal-computecompanion-inc/feynman | Skill | 10k | 6d ago | MIT | A | 39 | Claude Code, Codex |
| dnanexus-integrationsynthetic-sciences/openscience | Skill | 4.3k | 2d ago | Apache-2.0 | A | 49 | Claude Code, Codex |
| latchbio-integrationsynthetic-sciences/openscience | Skill | 4.3k | 2d ago | Apache-2.0 | A | 45 | Claude Code, Codex |