Borrowing it
Nothing to install: this file belongs to leestott/generative-ui-foundry-hosted-agents. 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/leestott/generative-ui-foundry-hosted-agents/main/.copilot/skills/foundry-agent-deploy/SKILL.mdgit clone --depth 1 https://github.com/leestott/generative-ui-foundry-hosted-agentsWrote 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/leestott/generative-ui-foundry-hosted-agents/foundry-agent-deploy)<a href="https://agentmods.dev/skills/leestott/generative-ui-foundry-hosted-agents/foundry-agent-deploy"><img src="https://agentmods.dev/badge/skills/leestott/generative-ui-foundry-hosted-agents/foundry-agent-deploy.svg" alt="Measured on agentmods" 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.00147 | $0.01827 |
| Opus 5 | $0.00073 | $0.00914 |
| Sonnet 5 | $0.00029 | $0.00365 |
| Haiku 4.5 | $0.00015 | $0.00183 |
Grade A, and why
foundry-agent-deploy 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 8d 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.
curl.exe -sS -X POST $swa/api/copilotkit -H "Content-Type: application/json" --data-binary "@$env:TEMP\i.json" How it starts
The opening of the file, as written. The whole thing — 150 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Skill: Deploy a Foundry Hosted Agent + CopilotKit runtime + SWA
Validated, end-to-end deployment flow for the three-component generative-UI
solution (agent → runtime → frontend). Assumes infra is provisioned via azd
(azd up). Pair with the foundry-hosted-agent-maf skill for the agent code.
Deployment order (matters)
- Provision infra —
azd up(ACR, App Service, SWA, Foundry account + model, App Insights, managed identities). - Deploy runtime + frontend —
azd deploy runtime,azd deploy web(or viaazd up). The runtime boots even before the agent exists (lazy 503). - Build the agent image to ACR.
- Register a hosted-agent version and poll to
active. - Grant RBAC to the agent instance identity.
- Wire the runtime to the invocations endpoint (with
api-version). - Verify end-to-end through the SWA.
1–2. Provision + deploy
azd auth login
azd up
azd deploy runtime # redeploy after runtime/src/server.ts changes (npm run build first)
The
azure.ai.agentspostdeployhook logsAZURE_AI_PROJECT_ENDPOINT is not set— cosmetic, deploy succeeds. Node App Service cold start ≈100s.
3. Build the agent image
$acr = (azd env get-values | ConvertFrom-StringData).AZURE_CONTAINER_REGISTRY_NAME.Trim('"')
$tag = "maf-agui-$(Get-Date -Format yyyyMMddHHmmss)"
az acr build --registry $acr --image "analytics-agent:$tag" --image "analytics-agent:latest" ./agent
4. Register a hosted-agent version
Use the azure-ai-projects Python SDK (see scripts/register_agent.py — update
IMAGE to the new tag, then run it):
from azure.ai.projects import AIProjectClient
from azure.ai.projects.models import (
HostedAgentDefinition, ProtocolVersionRecord, AgentEndpointProtocol, ContainerConfiguration,
)
from azure.identity import DefaultAzureCredential
project = AIProjectClient(endpoint=PROJECT_ENDPOINT,
credential=DefaultAzureCredential(), allow_preview=True)
agent = project.agents.create_version(
agent_name="analytics-agent",
definition=HostedAgentDefinition(
container_configuration=ContainerConfiguration(image=IMAGE),
protocol_versions=[ProtocolVersionRecord(protocol=AgentEndpointProtocol.INVOCATIONS, version="1.0.0")],
cpu="1", memory="2Gi",
environment_variables={
"AZURE_OPENAI_ENDPOINT": "https://<account>.openai.azure.com/",
"MODEL_DEPLOYMENT_NAME": "model-router",
},
),
)
PROJECT_ENDPOINT=https://<account>.services.ai.azure.com/api/projects/<project>.- Poll
project.agents.get_version("analytics-agent", agent_version="N").statusuntil it equalsAgentVersionStatus.ACTIVE(usually near-instant). Compare to the enum, notstr(status)— under Python 3.11+str(status)is"AgentVersionStatus.ACTIVE". - The agent's Entra instance identity principal is on the create response at
agent.instance_identity.principal_id.
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.
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.
- 8d ago First seen · 150 lines · 147 tokens per session scan A 81a6ef80ac8b
foundry-agent-deploy is a skill published in the GitHub repository leestott/generative-ui-foundry-hosted-agents (5 stars, last pushed 1mo ago), licensed MIT. It adds 147 tokens to every session and 1,827 once invoked, about $0.0007 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.
Other skills, from other repositories
aspire
Use this skill when the user is working with an Aspire distributed application and needs to operate the AppHost or its resources through the Aspire CLI: start, restart, stop, or wait on the app; inspect resources, logs, traces, docs, or health; add integrations; manage secrets or config; publish, deploy, or rerun a…
tiered-memory
Three-tier agent memory model (hot/cold/wiki) for 20-55% context reduction per spawn.
release-process
Skill "release-process" from Azure-Samples/eShopLite, covering release process, scope, confidence: high, context and rules (non-negotiable).
ralph-two-pass-scan
Confidence: high Domain: work-monitoring Last validated: 2026-03-24.
dotnet-orleans
Build or review distributed .NET applications with Orleans grains, silos, persistence, streaming, reminders, placement, transactions, serialization, event sourcing, testing, and cloud-native hosting.
dotnet-aspire
Build, upgrade, and operate .NET Aspire application hosts with current CLI, AppHost, ServiceDefaults, integrations, dashboard, testing, and Azure deployment patterns for distributed apps.