ai4science-studio: Command for Claude Code

.claude/commands/add-model.md

add-model is a command for Claude Code from AMDResearch/ai4science-studio. It costs 0 tokens per session (1,255 once invoked), scanned A, original, MIT.

A repository command for adding a machine-learning model to AI4Science Studio. It places the model in the appropriate scientific area and records its source, task, license, documentation, and citation details.

In plain words
What is it for?
Use it when adding models for earth science, materials science, protein folding, healthcare, or physics simulation, including models whose weights come from sources other than Hugging Face.
Why use it?
It avoids inconsistent model folders and missing information about where a model came from or how it may be used.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

This is AMDResearch/ai4science-studio's own configuration. It tells Claude Code how to work on ai4science-studio itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ai4science-studio configures →

Reuse

Borrowing it

Nothing to install: this file belongs to AMDResearch/ai4science-studio. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/AMDResearch/ai4science-studio/main/.claude/commands/add-model.md
Clone the repo
git clone --depth 1 https://github.com/AMDResearch/ai4science-studio

Made for: Claude Code.

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 add-model

README.md
[![agentmods](https://agentmods.dev/badge/commands/amdresearch/ai4science-studio/add-model/github.svg)](https://agentmods.dev/commands/amdresearch/ai4science-studio/add-model)
Your own site
<a href="https://agentmods.dev/commands/amdresearch/ai4science-studio/add-model"><img src="https://agentmods.dev/badge/commands/amdresearch/ai4science-studio/add-model/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.

agentmods 80×15 button for add-model

Your own site · 80×15
<a href="https://agentmods.dev/commands/amdresearch/ai4science-studio/add-model"><img src="https://agentmods.dev/badge/commands/amdresearch/ai4science-studio/add-model.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,255 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00000 $0.01255
Opus 5.5 $0.00000 $0.00502
Sonnet 5.5 $0.00000 $0.00251
Haiku 4.5 $0.00000 $0.00126

Measured 1mo ago against content hash 7ef7b8f5f6f0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

add-model 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 1mo 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.

.claude/commands/add-model.md · 68 lines

How it starts

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

Add a new model to AI4Science Studio

Add a new model to this repository following all repo conventions.

Steps

  1. Identify domain — pick from earth_science/, material_science/, protein_folding/, healthcare/, or physics_simulation/. If the model clearly belongs to a new domain, create the domain folder with a README.md first.

  2. Derive the slug:

    • HF id org/model → directory name org__model (replace / with __).
    • If a well-known public name is used instead (e.g. StormCast, NeuralGCM), use that name and document the canonical HF id inside the model's README.md.
    • If weights are not on Hugging Face (e.g. GCS bucket, GitHub release, Google Drive), set the HF id field to N/A and add an "Obtaining model weights" section with a fetch snippet.
  3. Create the model folder by copying _template/ to <domain>/models/<slug>/.

  4. Fill in README.md with:

    • Hugging Face model id (or N/A with alternate source documented)
    • Task description
    • License (SPDX id or direct link)
    • Upstream code repo and paper links
    • Acknowledgements and citation section (required — see template):
      • Upstream repo URL
      • Paper citation (author, title, venue, DOI or arXiv id)
      • BibTeX or DOI-based "cite as" block copied from the upstream repo or model card
      • ROCm blog URL and author names (AMD Silo AI) if a blog post exists
      • Any named collaboration (e.g. AstraZeneca × AMD, ORNL × AMD)
  5. Add recipes under <slug>/recipes/. Use one subfolder per task (recipes/inference/, recipes/finetune/, etc.). Each recipe subfolder needs a README.md.

  6. Add an examples/ directory with ready-to-run scripts:

    • docker_run.sh — launches the container; auto-detects AMD Container Toolkit vs device passthrough; checks for existing container before launching; auto-clones the upstream repo if absent.
    • run_inference.sh / run_inference.py — runs the model; all key params overridable via env vars with sensible defaults; prints a config summary before running.
    • preflight_<slug>.py — smoke-test that verifies GPU access and imports before a full run.
    • sbatch_inference_amd.sh — SLURM batch script (use --rocm for AMD/Apptainer GPU passthrough, not --nv). Named _amd.sh (not _mi300x.sh) — the same script covers MI250X, MI300X, and MI350X with a rocm7.2.x image.
    • build_overlay_amd.sh — (for HPC models with heavy pip deps, e.g. >1 GB of packages) builds a persistent Apptainer ext3 overlay pre-loaded with pip deps; mount :ro in inference jobs to skip the install phase.
    • Add run_ensemble.py, run_finetune.sh, etc. as applicable.
    • All scripts must be chmod +x.

Read the full file on GitHub · 68 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. 1mo ago Changed · +2 lines 7ef7b8f5f6f0
  2. 2mo ago First seen · 66 lines · 0 tokens per session scan A 1f38cb1d77be

Subscribe to this mod's changes

add-model is a command published in the GitHub repository AMDResearch/ai4science-studio (4 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,255 tokens. 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.

Related

add-model compared with commands from other repositories

add-model next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
add-modelAMDResearch/ai4science-studioCommand4yesterdayMITA0Claude Code
ml-projectmxslr/mlcraftCommand84mo agoMITA52Claude Code
by:approve-lab001TMF/blatant-whyCommand11922d agoMITA21Claude Code
checklistgithub/spec-kitCommand148kyesterdayMITA13Claude Code
clarifygithub/spec-kitCommand148kyesterdayMITA27Claude Code
specifygithub/spec-kitCommand148kyesterdayMITA13Claude Code
analyzegithub/spec-kitCommand148kyesterdayMITA26Claude Code