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-hosted-agent-maf/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-hosted-agent-maf)<a href="https://agentmods.dev/skills/leestott/generative-ui-foundry-hosted-agents/foundry-hosted-agent-maf"><img src="https://agentmods.dev/badge/skills/leestott/generative-ui-foundry-hosted-agents/foundry-hosted-agent-maf/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/leestott/generative-ui-foundry-hosted-agents/foundry-hosted-agent-maf"><img src="https://agentmods.dev/badge/skills/leestott/generative-ui-foundry-hosted-agents/foundry-hosted-agent-maf.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.00126 | $0.01401 |
| Opus 5.5 | $0.00050 | $0.00560 |
| Sonnet 5.5 | $0.00025 | $0.00280 |
| Haiku 4.5 | $0.00013 | $0.00140 |
Grade A, and why
foundry-hosted-agent-maf 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 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl.exe -sS http://localhost:8088/readiness How it starts
The opening of the file, as written. The whole thing — 120 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Skill: Author a MAF agent for Foundry Hosted Agents (AG-UI)
This skill captures the validated best-practice pattern for building a
Microsoft Agent Framework (.NET) agent that runs as a Foundry Hosted Agent and
serves the AG-UI protocol over the platform's invocations endpoint.
When to use
- Creating a new .NET agent to host on Foundry that must drive a CopilotKit / AG-UI frontend (generative UI, shared state, human-in-the-loop).
- Refactoring an agent off the community
AGUI.Server/ rawIChatClient/ custom invocation handler onto the official MAF AG-UI hosting stack. - Reviewing such an agent for correctness before registering a hosted version.
The pattern (do exactly this)
1. Packages (.csproj, Microsoft.NET.Sdk.Web, net10.0)
<PackageReference Include="Microsoft.Agents.AI.OpenAI" Version="1.13.0" />
<PackageReference Include="Microsoft.Agents.AI.Hosting.AGUI.AspNetCore" Version="1.13.0-preview.260703.1" />
<PackageReference Include="Microsoft.Agents.AI.Hosting.AspNetCore" Version="1.13.0-preview.260703.1" />
<PackageReference Include="Azure.AI.OpenAI" Version="2.9.0-beta.1" />
<PackageReference Include="Azure.Identity" Version="1.13.1" />
Do not include AGUI.Server, AGUI.Abstractions,
Azure.AI.AgentServer.Invocations, or a standalone Microsoft.Extensions.AI
pin — the hosting packages bring what you need.
2. Program.cs
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddHttpClient();
builder.Services.AddAGUI();
var endpoint = new Uri(builder.Configuration["AZURE_OPENAI_ENDPOINT"]!);
var deployment = builder.Configuration["MODEL_DEPLOYMENT_NAME"] ?? "model-router";
AITool[] tools =
[
AIFunctionFactory.Create(dataTools.QueryData, "query_data"),
AIFunctionFactory.Create(dataTools.ManageTodos, "manage_todos"),
];
AIAgent agent = new AzureOpenAIClient(endpoint, new DefaultAzureCredential())
.GetChatClient(deployment)
.AsIChatClient() // REQUIRED: .AsAIAgent is an IChatClient extension
.AsAIAgent(instructions: SystemPrompt, name: "analytics-agent", tools: tools);
var app = builder.Build();
app.MapAGUI("/invocations", agent); // Foundry Hosted Agent path
app.MapAGUI("/", agent); // local / direct AG-UI clients
app.MapGet("/readiness", () => Results.Ok(new { status = "ready" }));
app.Run();
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.
- 2mo ago First seen · 120 lines · 126 tokens per session scan A 5c3f8ccb53a9
foundry-hosted-agent-maf is a skill published in the GitHub repository leestott/generative-ui-foundry-hosted-agents (6 stars, last pushed 3mo ago), licensed MIT. It adds 126 tokens to every session and 1,401 once invoked, about $0.0005 per session on Opus 5.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.
foundry-hosted-agent-maf compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| foundry-hosted-agent-mafleestott/generative-ui-foundry-hosted-agents | Skill | 6 | 3mo ago | MIT | A | 126 | Claude Code, Codex |
| add-sliceSSWConsulting/SSW.VerticalSliceArchitecture | Skill | 416 | 8d ago | MIT | A | 125 | Claude Code |
| nuget-updateCalabonga/Microservice-Template | Skill | 287 | 1mo ago | MIT | A | 119 | Claude Code |
| blazorAterDev/Perigon.CLI | Skill | 54 | 3d ago | Apache-2.0 | A | 45 | Claude Code, Codex |
| cliAterDev/Perigon.CLI | Skill | 54 | 3d ago | Apache-2.0 | A | 52 | Claude Code, Codex |
| codegenAterDev/Perigon.CLI | Skill | 54 | 3d ago | Apache-2.0 | A | 53 | Claude Code, Codex |
| dotnetAterDev/Perigon.CLI | Skill | 54 | 3d ago | Apache-2.0 | A | 61 | Claude Code, Codex |