running-python

running-python is a skill for Claude Code, Codex from yale-som-hpc/claude-code-marketplace. It costs 60 tokens per session (3,178 once invoked), scanned A, original, Unlicense.

Guidance for running Python projects on Yale SOM's shared high-performance computing cluster using uv, a tool that manages Python versions, packages, and project environments. It also covers Slurm jobs, thread limits, logs, and resumable results.

In plain words
What is it for?
Creating project environments, installing locked dependencies, writing Python Slurm scripts, controlling library threads, recording job output, and restarting incomplete work.
Why use it?
It keeps the same dependencies and interpreter available on your laptop, login node, and compute node, reducing failures caused by different installed software.

Skill for Claude CodeCodex

Part of the hpc plugin — 23 skills, 3 commands shipped together

Install

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.

agentmods
npx agentmods add skills/yale-som-hpc/claude-code-marketplace/running-python
Any agent
npx skills add yale-som-hpc/claude-code-marketplace --skill running-python
Clone the repo
git clone --depth 1 https://github.com/yale-som-hpc/claude-code-marketplace

Made for: Claude Code, Codex.

Or install hpc, the plugin that ships this one along with the rest of its 23 skills, 3 commands.

Wrote 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.

agentmods badge for running-python

README.md
[![agentmods](https://agentmods.dev/badge/skills/yale-som-hpc/claude-code-marketplace/running-python.svg)](https://agentmods.dev/skills/yale-som-hpc/claude-code-marketplace/running-python)
Your own site
<a href="https://agentmods.dev/skills/yale-som-hpc/claude-code-marketplace/running-python"><img src="https://agentmods.dev/badge/skills/yale-som-hpc/claude-code-marketplace/running-python.svg" alt="Measured on agentmods" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,178 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00060 $0.03178
Opus 5 $0.00030 $0.01589
Sonnet 5 $0.00012 $0.00636
Haiku 4.5 $0.00006 $0.00318

Measured 4d ago against content hash 71a90bebab68, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

running-python scanned grade A 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 4d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

How to install the tools themselves: see [installing software](../installing-software/SKILL.md) for `uv` (one curl command into `~/.local/bin`). Once `uv` is on your PATH, `ruff`, `pyrefly`, and `pytest` go in your proje
plugins/hpc/skills/running-python/SKILL.md · 226 lines

How it starts

The opening of the file, as written. The whole thing — 226 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Running Python

Rule: use a project environment, control threads, log clearly, and make outputs resumable.

What you get: with uv you control the interpreter and every package yourself, so nothing depends on what Python happens to be preinstalled on the cluster — no bootstrap step to worry about.

Tooling defaults

Use uv. It is the package manager for cluster Python work; everything below assumes it. Don't reach for conda, mamba, poetry, pipenv, pip-tools, or pip install --user — uv supersedes all of them. Why specifically uv on this cluster:

  • Single tool for dependencies, lockfile, virtualenv, and Python interpreter — no module/conda/pyenv stack to coordinate. The cluster's system python3 is old, and the python modules are a fixed set that changes between maintenance windows (check python3 --version and module spider python); uv downloads and pins whatever recent Python your project needs (pyproject.toml's requires-python).
  • Lockfile (uv.lock) is built-in and resolves identically on the login node, compute node, and your laptop — no conda env export games, no "works on my machine."
  • 10–100× faster than conda on GPFS. A uv sync --frozen is a few seconds; a conda env create is a multi-minute metadata storm because conda writes thousands of small files into one directory.
  • Single .venv directory in your project — easy to inspect, easy to nuke, easy to atomically swap.

These pair with uv:

  • ruff for lint + format. Catches mistakes locally before burning a Slurm allocation.
  • pyrefly for type checking. Same reason as ruff.
  • pytest for tests. Smoke tests on small inputs save many cluster reruns.
  • argparse for batch scripts (one-file entry points like run_task.py --task-id). click only when you grow into a reusable project CLI; the extra dependency is not worth it for a single sbatch script.
  • pathlib over os.path. Joining paths and checking parents is what you do most on the cluster.
  • logging as the baseline (configured below). loguru is fine when its structured output materially helps incident debugging.
  • pyproject.toml + uv.lock committed; .venv/ gitignored. The lockfile is what makes runs reproducible across login and compute nodes.

Read the full file on GitHub · 226 lines

Changes

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.

  1. 4d ago First seen · 226 lines · 60 tokens per session scan A 71a90bebab68

Subscribe to this mod's changes

running-python is a skill published in the GitHub repository yale-som-hpc/claude-code-marketplace (5 stars, last pushed 1mo ago), licensed Unlicense. It adds 60 tokens to every session and 3,178 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

jupyter-notebook

Use when the user asks to create, scaffold, or edit Jupyter notebooks (.ipynb) for experiments, explorations, or tutorials; prefer the bundled templates and run the helper script newnotebook.py to generate a clean starting notebook.

microsoft/ai-agents-for-beginners · 57 tokens

arxiv-search

Searches arXiv for preprints and academic papers, retrieves abstracts, and filters by topic. Use when the user asks to find research papers, search arXiv, look up preprints, find academic articles in physics, math, CS, biology, statistics, or related fields.

langchain-ai/deepagents · 62 tokens

quantum-qiskit

Reference qiskit 2.x patterns for variational quantum machine learning. Covers data-encoding feature maps, variational quantum classifier (VQC) training, variational quantum eigensolver (VQE) for chemistry, matrix-product-state circuits, and noise model integration. Use when writing Python code that imports qiskit…

aiming-lab/AutoResearchClaw · 102 tokens

biology-biopython

Bioinformatics with Biopython for sequence manipulation, file parsing, BLAST, and phylogenetics. Use when working with DNA/RNA/protein sequences or biological databases.

aiming-lab/AutoResearchClaw · 40 tokens

rocm-kernels

Provides guidance for writing and benchmarking optimized Triton kernels for AMD GPUs (MI355X, R9700) on ROCm, targeting HuggingFace diffusers (LTX-Video, SD3, FLUX) and transformers. Core kernels: RMSNorm, RoPE 3D, GEGLU, AdaLN. Includes XCD swizzle, autotune, diffusers integration patterns, and LTX-Video pipeline…

huggingface/kernels · 93 tokens

flydsl-kernel-code-cleanup

Modernize FlyDSL kernels: replace raw MLIR dialects (arith, scf, vector, llvm, memref, math), ArithValue, redundant fx. wrapping, fx.Index, bufferops, SmemPtr/SmemAllocator, copyatomcall/mmaatomcall (loop or single atom), and raw rocdl.mfma with the current fx. surface (fx types, Python control flow, makebuffertensor…

ROCm/aiter · 173 tokens