foundry-cross-resource

foundry-cross-resource is a skill for Claude Code, Codex from aiappsgbb/awesome-gbb. It costs 208 tokens per session (10,106 once invoked), scanned A, original, MIT.

A configuration guide for calling an AI model in one Microsoft Foundry project from another Azure AI account through an Azure API Management gateway.

In plain words
What is it for?
Setting up cross-account model calls, configuring ApiKey or Project Managed Identity authentication, writing APIM inbound policies, and troubleshooting connection metadata.
Why use it?
It helps teams connect a central Foundry project to models hosted in a separate account while handling the required model names, connections, and authentication.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Setting up cross-account model calls, configuring ApiKey or Project Managed Identity authentication, writing APIM inbound policies, and troubleshooting connection metadata.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aiappsgbb/awesome-gbb/foundry-cross-resource
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.

Any agent
npx skills add aiappsgbb/awesome-gbb --skill foundry-cross-resource
Clone the repo
git clone --depth 1 https://github.com/aiappsgbb/awesome-gbb

Made for: Claude Code, Codex.

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 foundry-cross-resource

README.md
[![agentmods](https://agentmods.dev/badge/skills/aiappsgbb/awesome-gbb/foundry-cross-resource/github.svg)](https://agentmods.dev/skills/aiappsgbb/awesome-gbb/foundry-cross-resource)
Your own site
<a href="https://agentmods.dev/skills/aiappsgbb/awesome-gbb/foundry-cross-resource"><img src="https://agentmods.dev/badge/skills/aiappsgbb/awesome-gbb/foundry-cross-resource/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 foundry-cross-resource

Your own site · 80×15
<a href="https://agentmods.dev/skills/aiappsgbb/awesome-gbb/foundry-cross-resource"><img src="https://agentmods.dev/badge/skills/aiappsgbb/awesome-gbb/foundry-cross-resource.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 208 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 10,106 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00208 $0.10106
Opus 5 $0.00104 $0.05053
Sonnet 5 $0.00042 $0.02021
Haiku 4.5 $0.00021 $0.01011

Measured 9d ago against content hash ed2e052bacdc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

foundry-cross-resource 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 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.

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.

skills/foundry-cross-resource/SKILL.md · 723 lines

How it starts

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

Cross-Resource Model Invocation via Foundry AI Gateway

Status — verified live on 2026-04-23 with Foundry account xtest-foundry-mr5kfi / project xtest-proj-mr5kfi (Sweden Central) calling deployment gpt-4o-mini v2024-07-18 hosted on a different Azure OpenAI account (acme-aoai-shared) through APIM acme-ai-apim. Both ApiKey and ProjectManagedIdentity auth paths returned PONG on all three invocation patterns. See "Verified working configuration" at the end.

Default in worked examples below: gpt-5.4-mini (current Foundry-routable chat-mini family, May 2026). The original verification was on gpt-4o-mini; the gateway routes by deployment-name-in-path regardless of model family, so the recipe is mechanically identical for any deployment your APIM backend actually carries. The exact API version string in the connection metadata below is illustrative — use whatever your backend deployment is registered with (check az cognitiveservices account deployment show).


1. What this skill solves

You have a Foundry project ("consumer") that needs to invoke models deployed on a different Azure OpenAI / AI Services account ("backend"), fronted by an Azure API Management instance acting as the AI Gateway. You want to address those models via the Foundry-native string connectionName/deploymentName so the application code is identical to a local-deployment call.

┌────────────────────────┐                ┌──────────────────────────┐                ┌─────────────────────────────┐
│  Consumer Foundry      │                │  APIM AI Gateway         │                │  Backend AI/OpenAI account  │
│  project               │  Foundry MI    │  acme-ai-apim        │   APIM MI →    │  acme-aoai-shared       │
│  xtest-proj-mr5kfi     ├───or────────► │   /xtest-aoai            ├──Bearer───────►│  gpt-5.4-mini deployment    │
│  (Sweden Central)      │  ApiKey        │   /xtest-aoai-pmi        │  (msi token)   │  (East US 2)                │
│                        │                │                          │                │                             │
│  ApiManagement         │                │  validate token /        │                │  Cognitive Services User RBAC│
│  connection            │                │  enforce subscription    │                │  granted to APIM MI         │
│  category=ApiManagement│                │  set-backend-service     │                │                             │
│  target=APIM API URL   │                │  authentication-managed- │                │                             │
│  authType=ApiKey | PMI │                │   identity → backend     │                │                             │
└────────────────────────┘                └──────────────────────────┘                └─────────────────────────────┘

Read the full file on GitHub · 723 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago First seen · 723 lines · 208 tokens per session scan A ed2e052bacdc

Subscribe to this mod's changes

foundry-cross-resource is a skill published in the GitHub repository aiappsgbb/awesome-gbb (5 stars, last pushed 2d ago), licensed MIT. It adds 208 tokens to every session and 10,106 once invoked, about $0.0010 per session on Opus 5. 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

Other skills, from other repositories

gemini-api-agent-platform

Guides the usage of the Gemini API on Agent Platform with the Google Gen AI SDK for enterprise AI applications. Covers SDK usage (Python, JS/TS, Go, Java, C#), capabilities like Live API, tools, multimedia generation, caching, and batch prediction.

davila7/claude-code-templates · 61 tokens

open-source

Documentation reference for writing Python code using the browser-use open-source library. Use this skill whenever the user needs help with Agent, Browser, or Tools configuration, is writing code that imports from browseruse, asks about @sandbox deployment, supported LLM models, Actor API, custom tools, lifecycle…

browser-use/browser-use · 137 tokens

gemini-api-dev

Use this skill when writing code that calls the Gemini API for text generation, multi-turn chat, multimodal understanding, image generation, video generation, streaming responses, background research tasks, function calling, structured output, or migrating from the old generateContent API. Covers SDK usage and best…

google-gemini/gemini-skills · 73 tokens

deepstream-sop

Use this skill when building, deploying, evaluating, debugging, or measuring latency for the DeepStream SOP Inference Microservice — a GPU-accelerated FastAPI service that detects whether operators perform assembly-line steps in order via event boundary detection (GEBD) plus VLM classification. Trigger even if the…

NVIDIA/skills · 219 tokens

azure-search-documents-dotnet

Azure AI Search SDK for .NET (Azure.Search.Documents). Use for building search applications with full-text, vector, semantic, and hybrid search. Covers SearchClient (queries, document CRUD), SearchIndexClient (index management), and SearchIndexerClient (indexers, skillsets). Triggers: "Azure Search .NET"…

microsoft/skills · 102 tokens

azure-search-documents-ts

Build search applications using Azure AI Search SDK for JavaScript (@azure/search-documents). Use when creating/managing indexes, implementing vector/hybrid search, semantic ranking, or building agentic retrieval with knowledge bases.

microsoft/skills · 48 tokens