BlazorWebFormsComponents copilot-instructions.md

Project instructions for a Blazor component library that recreates ASP.NET Web Forms controls. Blazor is Microsoft's web UI framework, while Web Forms is an older .NET web framework; the library helps move applications between them with little markup rewriting.

In plain words
What is it for?
Use them when creating or updating Blazor replacements for Web Forms controls, including their names, attributes, properties, and generated HTML.
Why use it?
They define compatibility requirements so existing markup, styles, and JavaScript continue to work after migration.

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/fritzandfriends/blazorwebformscomponents/copilot-instructions
Clone the repo
git clone --depth 1 https://github.com/FritzAndFriends/BlazorWebFormsComponents

Made for: GitHub Copilot.

Per session 6,332 This file is loaded in full into every session.
When invoked 6,332 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.06332 $0.06332
Opus 5 $0.03166 $0.03166
Sonnet 5 $0.01266 $0.01266
Haiku 4.5 $0.00633 $0.00633

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

Security

Grade A, and why

BlazorWebFormsComponents copilot-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 2d 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.

.github/copilot-instructions.md · 606 lines

How it starts

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

Copilot Instructions for BlazorWebFormsComponents

Project Overview

BlazorWebFormsComponents is a library that provides Blazor components emulating ASP.NET Web Forms controls, enabling migration from Web Forms to Blazor with minimal markup changes. The project helps developers reuse their existing Web Forms markup in Blazor applications.

Core Requirements

ASP.NET Web Forms components that ship with .NET Framework 4.8 should be recreated as Blazor Components with:

  1. Same Name - The Blazor component must have the identical name as the original Web Forms control (e.g., <asp:Button> becomes <Button>, <asp:GridView> becomes <GridView>)

  2. Same Attributes and Properties - Support the same attribute names and property signatures as the original control wherever possible. This enables developers to migrate markup with minimal changes (removing only asp: prefix and runat="server")

  3. Identical HTML Output - The rendered HTML must match what the original Web Forms control produces. This ensures:

    • Existing CSS styles continue to work
    • JavaScript that targets the HTML structure remains functional
    • Visual appearance is preserved after migration

What This Means in Practice

<!-- Original Web Forms -->
<asp:Button ID="btnSubmit" Text="Submit" CssClass="btn-primary" OnClick="Submit_Click" runat="server" />

<!-- Blazor Equivalent (should render identical HTML) -->
<Button Text="Submit" CssClass="btn-primary" OnClick="Submit_Click" />

Both should render:

<button type="submit" class="btn-primary">Submit</button>

Reference Documentation

Technology Stack

  • .NET Version: .NET 10.0 (see global.json for SDK version)
  • Framework: Blazor (migration target is .NET 10 static SSR; samples also include Server-Side and WebAssembly)
  • Project Type: Razor Class Library (Microsoft.NET.Sdk.Razor)
  • Testing Framework: xUnit with bUnit for Blazor component testing
  • Assertion Library: Shouldly
  • Mocking: Moq
  • Build/Versioning: Nerdbank.GitVersioning
  • CSS Utilities: BlazorComponentUtilities

Read the full file on GitHub · 606 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. 2d ago First seen · 606 lines · 6,332 tokens per session scan A bbd30f8bb019

Subscribe to this mod's changes

BlazorWebFormsComponents copilot-instructions.md is an instructions file published in the GitHub repository FritzAndFriends/BlazorWebFormsComponents (449 stars, last pushed 2mo ago), licensed MIT. It adds 6,332 tokens to every session, about $0.0317 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.