Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/Azure-Samples/claudenpx agentmods add skills/azure-samples/claude/claude-on-foundryWrote 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/azure-samples/claude/claude-on-foundry)<a href="https://agentmods.dev/skills/azure-samples/claude/claude-on-foundry"><img src="https://agentmods.dev/badge/skills/azure-samples/claude/claude-on-foundry/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/azure-samples/claude/claude-on-foundry"><img src="https://agentmods.dev/badge/skills/azure-samples/claude/claude-on-foundry.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.00239 | $0.05122 |
| Opus 5 | $0.00120 | $0.02561 |
| Sonnet 5 | $0.00048 | $0.01024 |
| Haiku 4.5 | $0.00024 | $0.00512 |
Grade B, and why
claude-on-foundry scanned grade B 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 9d 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.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
| `claude -p` says: `The model claude-<family>-... is not available on your foundry deployment` | User-global `~/.claude/settings.json` pins a family this workspace didn't deploy, overriding the workspace pin. | `cat .cl How it starts
The opening of the file, as written. The whole thing — 246 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Claude on Foundry — Starter Kit
This skill is the deep playbook for Azure-Samples/claude (aka.ms/claude/start). The always-on layer is .github/copilot-instructions.md in the same repo — read it first for repo shape, env-var contract, and hard rules. Use this skill when the customer's task falls into one of the five flows below.
Decision tree — where to start
| The customer says... | Jump to |
|---|---|
| "Help me deploy", "set this up", "get me started" | PLAN → DEPLOY |
| "It failed", "I'm getting an error", "azd up didn't work" | DIAGNOSE |
| "Is it working?", "did it actually deploy?", "test it" | VERIFY |
| "Add another family", "change the region", "switch from sonnet to opus" | MODIFY |
| "I'm done", "tear it down", "free the quota", "clean up" | TEARDOWN |
If the request doesn't fit any of these, fall back to the repo's README.md.
PLAN — before azd up
The most common failures come from skipping these four checks. Walk through them with the customer once, then move on:
-
Subscription eligibility. Claude on Foundry requires an Enterprise (EA) or MCA-E subscription. If the customer doesn't know, run:
az account show --query "{name:name, id:id, type:subscriptionPolicies.quotaId}" -o tablequotaIdcontainingEnterpriseAgreement_2014-09-01orMCAE_2024-07-01is the green light. -
Region choice. Honor what the customer asks for. If they have no preference:
eastus2— all three families (haiku, sonnet, opus). Default recommendation.swedencentral— all three families. Use if they're EU-data-residency-conscious.westus2— sonnet + opus only (no haiku). Use only if explicitly requested.
-
Model selection. Run the catalog tool first:
./Get-ClaudeCatalog.ps1 -LatestThis shows the newest version per family with regions and TPM limits. Quote the table back to the customer and let them pick.
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.
- 9d ago First seen · 246 lines · 239 tokens per session scan B 9339871f9515
claude-on-foundry is a skill published in the GitHub repository Azure-Samples/claude (37 stars, last pushed 15d ago), licensed MIT. It adds 239 tokens to every session and 5,122 once invoked, about $0.0012 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
modal
Serverless GPU cloud for ML jobs and model APIs.
torchtitan
Pretrain LLMs at scale with PyTorch 4D parallelism.
tensorrt-llm
High-throughput LLM inference on NVIDIA GPUs.
ray-train
Distributed training orchestration across clusters. Scales PyTorch/TensorFlow/HuggingFace from laptop to 1000s of nodes. Built-in hyperparameter tuning with Ray Tune, fault tolerance, elastic scaling. Use when training massive models across multiple machines or running distributed hyperparameter sweeps.
skypilot-multi-cloud-orchestration
Multi-cloud orchestration for ML workloads with automatic cost optimization. Use when you need to run training or batch jobs across multiple clouds, leverage spot instances with auto-recovery, or optimize GPU costs across providers.
deepspeed
Expert guidance for distributed training with DeepSpeed - ZeRO optimization stages, pipeline parallelism, FP16/BF16/FP8, 1-bit Adam, sparse attention.