BlazorBindings.Maui AGENTS.md

BlazorBindings.Maui AGENTS.md is an instructions file for Codex, OpenCode from Dreamescaper/BlazorBindings.Maui. It costs 688 tokens per session, scanned A, original, MIT.

Project-specific coding instructions for a .NET MAUI mobile app that uses Blazor components written in Razor instead of XAML.

In plain words
What is it for?
Use it when creating or changing the app’s mobile screens, Razor components, styling, and generated Blazor bindings.
Why use it?
It prevents web-only or XAML-style code and keeps component properties, colors, layouts, and platform conventions consistent.

Instructions file for CodexOpenCode

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.

agentmods
npx agentmods add instructions/dreamescaper/blazorbindings.maui/agents-md
Clone the repo
git clone --depth 1 https://github.com/Dreamescaper/BlazorBindings.Maui

Made for: Codex, OpenCode.

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 BlazorBindings.Maui AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/dreamescaper/blazorbindings.maui/agents-md.svg)](https://agentmods.dev/instructions/dreamescaper/blazorbindings.maui/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/dreamescaper/blazorbindings.maui/agents-md"><img src="https://agentmods.dev/badge/instructions/dreamescaper/blazorbindings.maui/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 688 This file is loaded in full into every session.
When invoked 688 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00688 $0.00688
Opus 5 $0.00344 $0.00344
Sonnet 5 $0.00138 $0.00138
Haiku 4.5 $0.00069 $0.00069

Measured 5d ago against content hash 4ecfad8fdf61, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

BlazorBindings.Maui AGENTS.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.

AGENTS.md · 37 lines

How it starts

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

Mobile Guidelines

Platform

  • This project uses .NET MAUI with BlazorBindings.Maui and Razor syntax, not XAML.
  • Do not add web-specific concepts such as @page or URL navigation.
  • Avoid unnecessary StateHasChanged calls.

Razor And Component Conventions

  • Use fully qualified enum values such as FontAttributes="FontAttributes.Bold", LayoutOptions.Center, and Aspect.AspectFill.
  • Use constructor syntax for non-uniform Thickness values, for example new Thickness(0, 0, 0, 10).
  • Use Colors.Name for named colors, e.g. Colors.Red, Colors.Transparent.
  • Do not use XAML-style named content properties like <Control.Property>. Use Razor child content fragments such as <Header>, <Footer>, and explicit <ChildContent> when needed.
  • Define shadows as child <Shadow> elements, e.g. <Shadow Brush="Colors.Black" Opacity="0.3" />.
  • For Border rounding, prefer CornerRadius over an inline IShape fragment unless you need a non-rectangular clip shape (e.g. a star or custom path).
  • Use Color for solid Brush values and StrokeColor for solid Stroke values, e.g. Color="Colors.Blue", StrokeColor="Colors.Gray".
  • Prefix C# expressions passed to string properties with @, e.g. Text="@myVar".
  • Use INavigation from BlazorBindings.Maui for navigation. Inject it with [Inject] INavigation Navigation { get; set; }. For push navigation, pass a Razor component fragment: await Navigation.PushAsync(@<SecondPage SomeParameter="value" />).
  • Do not use obsolete controls such as Frame, ListView, TableView, or StackLayout.
  • Setting HorizontalOptions on HorizontalStackLayout or VerticalOptions on VerticalStackLayout has no effect; use Grid for those layouts.
  • Do not add using directives that are already provided by _Imports.razor.
  • DatePicker uses DateOnly? and TimePicker uses TimeOnly?.
  • Do not bind RefreshView.IsRefreshing only to reset it after refresh. BlazorBindings.Maui sets IsRefreshing to false after the OnRefreshing callback completes. Keep a separate refreshing flag only when the UI itself needs it, such as passing loading state to a child component.
  • It is acceptable to bind MAUI collection controls, such as CollectionView.ItemsSource, to a mutable List<T> and append items in place. BlazorBindings.Maui emits change notifications for non-observable collections, so do not require ObservableCollection<T> solely for UI refresh behavior.

Read the full file on GitHub · 37 lines

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. 5d ago First seen · 37 lines · 688 tokens per session scan A 4ecfad8fdf61

Subscribe to this mod's changes

BlazorBindings.Maui AGENTS.md is an instructions file published in the GitHub repository Dreamescaper/BlazorBindings.Maui (319 stars, last pushed yesterday), licensed MIT. It adds 688 tokens to every session, about $0.0034 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.