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.
curl -O https://raw.githubusercontent.com/AMDResearch/ai4science-studio/main/.claude/commands/add-recipe.mdgit clone --depth 1 https://github.com/AMDResearch/ai4science-studioWrote 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/commands/amdresearch/ai4science-studio/add-recipe)<a href="https://agentmods.dev/commands/amdresearch/ai4science-studio/add-recipe"><img src="https://agentmods.dev/badge/commands/amdresearch/ai4science-studio/add-recipe/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/commands/amdresearch/ai4science-studio/add-recipe"><img src="https://agentmods.dev/badge/commands/amdresearch/ai4science-studio/add-recipe.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.00000 | $0.00876 |
| Opus 5.5 | $0.00000 | $0.00350 |
| Sonnet 5.5 | $0.00000 | $0.00175 |
| Haiku 4.5 | $0.00000 | $0.00088 |
Grade A, and why
add-recipe 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 — 58 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Add or update a recipe for an existing model
Create or improve a recipe (inference, fine-tune, eval, etc.) for a model already in AI4Science Studio.
Steps
-
Locate the model folder —
<domain>/models/<slug>/. -
Choose or create a recipe subfolder under
recipes/:recipes/inference/recipes/finetune/recipes/eval/- other task-specific names as needed
- Each subfolder needs a
README.mdwith a callout box at the top linking toexamples/.
-
Write or update example scripts under
<slug>/examples/:Script Purpose docker_run.shLaunch the container; auto-detect AMD Container Toolkit ( docker info | grep -qi amd) vs device passthrough (/dev/kfd+ all/dev/dri/renderD*nodes); check for existing container and exit with attach hint rather than error; auto-clone upstream repo if absent.run_<task>.sh/run_<task>.pyRun the model; all key params overridable via env vars with sensible defaults; print config summary before running; print error + fix instructions when required inputs are missing, then exit 1. preflight_<slug>.pySmoke-test: verify GPU access, imports, and a tiny forward pass. sbatch_<task>_amd.shSLURM batch script; use --rocm(not--nv) for AMD/Apptainer GPU passthrough. Named_amd.sh(not_mi300x.sh) — same script works on MI250X, MI300X, and MI350X withrocm7.2.x.build_overlay_amd.sh(HPC models with heavy pip deps) Builds a persistent Apptainer ext3 overlay. Install to NFS staging dir, strip torch/nvidia/triton, copy to overlay. Expose ROCM_WHL_TAGas the ROCm version knob.- All scripts must be
chmod +x. - Use a
tl_config.toml.templatealongside run scripts for config-file-driven models.
- All scripts must be
-
Recipe README content:
- Add a callout box at the top pointing to
examples/. - Pin Python/framework versions.
- Include ROCm/CUDA notes only for validated results; state what was tested and the outcome (e.g. speedup %).
- Reuse upstream scripts with minimal wrappers; avoid reimplementing full stacks.
- Add a callout box at the top pointing to
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 · 58 lines · 0 tokens per session scan A 720fa4e86fdb
add-recipe 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 876 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.
add-recipe compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| add-recipeAMDResearch/ai4science-studio | Command | 4 | yesterday | MIT | A | 0 | Claude Code |
| ml-projectmxslr/mlcraft | Command | 8 | 4mo ago | MIT | A | 52 | Claude Code |
| by:approve-lab001TMF/blatant-why | Command | 119 | 22d ago | MIT | A | 21 | Claude Code |
| checklistgithub/spec-kit | Command | 148k | yesterday | MIT | A | 13 | Claude Code |
| clarifygithub/spec-kit | Command | 148k | yesterday | MIT | A | 27 | Claude Code |
| specifygithub/spec-kit | Command | 148k | yesterday | MIT | A | 13 | Claude Code |
| analyzegithub/spec-kit | Command | 148k | yesterday | MIT | A | 26 | Claude Code |