.NET MAUI is a C# and XAML framework for building native mobile and desktop applications from one shared codebase. Developers use it to create apps for Android, iOS, iPadOS, macOS, and Windows. The catalogue entries provide skills, instructions, and agents for working with .NET MAUI.
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.
npx agentmods add instructions/dotnet/maui/ci-copilot-pipeline-securitygit clone --depth 1 https://github.com/dotnet/mauiWrote 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/instructions/dotnet/maui/ci-copilot-pipeline-security)<a href="https://agentmods.dev/instructions/dotnet/maui/ci-copilot-pipeline-security"><img src="https://agentmods.dev/badge/instructions/dotnet/maui/ci-copilot-pipeline-security.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 | $0.01393 | $0.01393 |
| Opus 5 | $0.00696 | $0.00696 |
| Sonnet 5 | $0.00279 | $0.00279 |
| Haiku 4.5 | $0.00139 | $0.00139 |
Grade A, and why
maui ci-copilot-pipeline-security.instructions.md 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 5d 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 — 53 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CI Copilot pipeline — security rules
This pipeline runs untrusted PR code on AzDO agents with these tokens in scope:
GH_COMMENT_TOKEN/GH_TOKEN—maui-botPAT (post comments, labels, reviews on any PR)COPILOT_GITHUB_TOKEN— Copilot CLI install token- AzDO GitHub service-connection PAT — repo contents, PRs, checks, workflows
Once the PR is merged into the worktree, the author controls every .csproj, Directory.Build.targets, source generator, analyzer, test, .ps1, and .yml the pipeline subsequently runs.
Rules
-
Per-task
env:scoping. Only put tokens a task needs. The Copilot-agent task getsCOPILOT_GITHUB_TOKENonly — neverGH_TOKEN. Pass--secret-env-vars=GH_TOKEN,GITHUB_TOKEN,COPILOT_GITHUB_TOKENto the Copilot CLI. -
persistCredentials: falseon everycheckout: selfunless the task pushes. Default checkout writes the service-connection PAT into.git/configasextraheader, readable by any subprocess. -
Trusted-copy scripts before merging the PR. Setup task (still on
main) copies.github/scripts,.github/skills,eng/scriptsto$(Build.ArtifactStagingDirectory)/trusted-github/, thenchmod -R a-w. Later tasks invoke scripts from$TRUSTED/..., never from the merged worktree. In PowerShell use$ScriptsDir/$SkillsDir/$EngScriptsDir(canonical impl inReview-PR.ps1). New post-merge scripts must be added to the Setup copy block. -
Strip tokens before invoking PR-controlled code. Wrap every
dotnet build|test|run|pack,msbuild,dotnet cake,BuildAndRun*.ps1,Run-DeviceTests.ps1,Invoke-UITestWithRetry.ps1inInvoke-WithoutGhTokens { ... }(defined inReview-PR.ps1andverify-tests-fail.ps1— saves/clears/restoresGH_TOKEN,GITHUB_TOKEN,COPILOT_GITHUB_TOKEN). Wrap as close to the subprocess as possible, not at the outer trusted-script boundary — a trusted script may itself needghfor metadata (e.g.,verify-tests-fail.ps1callsDetect-TestsInDiff.ps1which usesgh api), so wrapping the whole script breaks its detection path. Wrap only the line that launches the PR-controlled process. Exception: scripts that ONLY callghfor PR metadata (Detect-TestsInDiff.ps1,Find-RegressionRisks.ps1,detect-ui-test-categories.ps1) don't need wrapping at all — they keep the token.
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.
- 5d ago First seen · 53 lines · 1,393 tokens per session scan A 56bdaa3bc791
maui ci-copilot-pipeline-security.instructions.md is an instructions file published in the GitHub repository dotnet/maui (23,317 stars, last pushed 5d ago), licensed MIT. It adds 1,393 tokens to every session, about $0.0070 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-30.
Other instructions, from other repositories
azure-sdk-for-net AGENTS.md
AGENTS.md instructions for Azure/azure-sdk-for-net, covering azure sdk for .net - ai agent guidelines, repository overview, purpose and scope, repository structure and agent interaction guidelines.
azure-sdk-for-net copilot-instructions.md
Copilot instructions for Azure/azure-sdk-for-net, covering project overview, prerequisites, folder structure, azure generator and azure management generator.
BlazorBindings.Maui AGENTS.md
AGENTS.md instructions for Dreamescaper/BlazorBindings.Maui, covering mobile guidelines, platform, razor and component conventions and blazor bindings generation.
kbupdate AGENTS.md
AGENTS.md instructions for potatoqualitee/kbupdate, covering kbupdate agent guide, source layout, compatibility and style, safety contract and verification.
Enclave-Terminal-Breach CLAUDE.md
Instructions for Gwergilius/Enclave-Terminal-Breach, covering enclave terminal breach – claude code configuration, rules and quick reference.
azure-sdk-for-go go-code.instructions.md
Instructions for Azure/azure-sdk-for-go: All code should follow the guidelines from the Azure Go SDK Guidelines. This document is a summary of the most important guidelines to follow when contributing to the Azure Go SDK.