plan-forge blazor-fluent-ui.instructions.md

plan-forge blazor-fluent-ui.instructions.md is an instructions file for GitHub Copilot from srnichols/plan-forge. It costs 3,140 tokens per session, scanned A, original, MIT.

Blazor Server and Microsoft Fluent UI instructions for building web-interface components in .NET. Blazor components render the interface, while services handle application and database work.

In plain words
What is it for?
Editing .razor and .razor.cs files, structuring components, handling state and lifecycle, and applying accessibility practices.
Why use it?
They keep interface code separate from business rules and database queries, making the code easier to test and maintain.

Instructions file for GitHub Copilot

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/srnichols/plan-forge/blazor-fluent-ui
Clone the repo
git clone --depth 1 https://github.com/srnichols/plan-forge

Made for: GitHub Copilot.

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 plan-forge blazor-fluent-ui.instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/srnichols/plan-forge/blazor-fluent-ui.svg)](https://agentmods.dev/instructions/srnichols/plan-forge/blazor-fluent-ui)
Your own site
<a href="https://agentmods.dev/instructions/srnichols/plan-forge/blazor-fluent-ui"><img src="https://agentmods.dev/badge/instructions/srnichols/plan-forge/blazor-fluent-ui.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,140 This file is loaded in full into every session.
When invoked 3,140 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.03140 $0.03140
Opus 5 $0.01570 $0.01570
Sonnet 5 $0.00628 $0.00628
Haiku 4.5 $0.00314 $0.00314

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

Security

Grade A, and why

plan-forge blazor-fluent-ui.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 4d 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.

presets/dotnet/.github/instructions/blazor-fluent-ui.instructions.md · 313 lines

How it starts

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

Blazor + Fluent UI Patterns

Stack assumption: Blazor Server (interactive server rendering) on .NET 10 with Microsoft.FluentUI.AspNetCore.Components 4.x. Adapt selectively for Blazor WebAssembly or Blazor United.


The Layering Rule (Non-Negotiable)

A .razor component is Presentation. It does ONE thing: render UI and dispatch events. Everything else is delegated.

.razor / .razor.cs (Presentation)
   ↓ inject
Application service interface (IClientService, IBillingService, …)
   ↓ implementation
Repository / DbContext (Data Access)

Forbidden in .razor / .razor.cs

Anti-pattern Why Fix
@inject MyDbContext Db Components become untestable; couples UI to ORM Inject a service interface; service owns the DbContext
Inline LINQ over DbSet<T> Same — embeds query logic in presentation Move query into the service; component calls service.GetXAsync(ct)
Business rules (if (entry.Hours > 8) entry.IsOvertime = true) Logic that must hold across surfaces (UI, API, jobs) cannot live in one of them Move to a domain method or service
HttpClient instantiated with new No DI, no testability, leaks sockets Use IHttpClientFactory or a typed client registered in DI
Task.Run(() => …) to "make it async" Wastes a thread; doesn't make the call truly async If the underlying API is sync, leave it sync; otherwise call the real async API
.Result / .Wait() / .GetAwaiter().GetResult() in lifecycle methods Deadlocks Blazor Server's render loop await properly inside OnInitializedAsync / OnParametersSetAsync
Catch Exception and silently swallow Hides defects; user sees a half-rendered page with no signal Catch specific types, log structured, surface a MessageBar or Toast

Component Anatomy (Code-Behind Preferred)

For anything beyond a trivial display component, separate markup from code-behind. This makes the component reviewable and unit-testable with bUnit.

Read the full file on GitHub · 313 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. 4d ago First seen · 313 lines · 3,140 tokens per session scan A 4690f394b173

Subscribe to this mod's changes

plan-forge blazor-fluent-ui.instructions.md is an instructions file published in the GitHub repository srnichols/plan-forge (5 stars, last pushed yesterday), licensed MIT. It adds 3,140 tokens to every session, about $0.0157 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 instructions, from other repositories

arai CLAUDE.md

Instructions for taniwhaai/arai, covering claude.md — arai, commands, architecture, prompt-collector module (src/promptcollector.rs) and extending the match pipeline.

taniwhaai/arai · 3,491 tokens

ai-control-framework CLAUDE.md

Instructions for sgharlow/ai-control-framework, covering claude code configuration, framework status (v2.0) — verified 2026-07-18, ⚠️ critical: implementation required, mandatory session start procedure and hard stop conditions.

sgharlow/ai-control-framework · 1,577 tokens

arai AGENTS.md

Instructions for taniwhaai/arai, covering agents.md — arai, core discipline (non-negotiable), taniwha / subagent rules, work style and tool usage.

taniwhaai/arai · 1,340 tokens

packmind packmind-front-end-ui-and-design-systems.instructions.md

Instructions for PackmindHub/packmind: This standard establishes guidelines for using Chakra UI v3 through the @packmind/ui design system to ensure consistent UI implementation across the frontend application. The @packmind/ui package prov... .

PackmindHub/packmind · 290 tokens

skillfoundry copilot-instructions.md

Copilot instructions for samibs/skillfoundry, covering github copilot — skillfoundry project instructions, identity, non-negotiable rules, code quality and security.

samibs/skillfoundry · 1,341 tokens

skillfoundry AGENTS.md

AGENTS.md instructions for samibs/skillfoundry, covering what this is, philosophy, how to use skills, available skills by category and core workflow.

samibs/skillfoundry · 1,274 tokens