bwfc-ascx-migration

bwfc-ascx-migration is a skill for Claude Code, Codex from FritzAndFriends/BlazorWebFormsComponents. It costs 113 tokens per session (1,518 once invoked), scanned A, original, MIT.

A migration guide for turning ASP.NET Web Forms user controls, reusable .ascx markup files, into Blazor .razor components. It explains how to keep their code-behind files, properties, events, and base classes working.

In plain words
What is it for?
Use it to convert .ascx files into .razor and .razor.cs pairs, resolve tag prefixes, map properties and events, and align component base classes.
Why use it?
It helps preserve reusable controls and their business logic instead of rebuilding each one from scratch during a Web Forms migration.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to convert .ascx files into .razor and .razor.cs pairs, resolve tag prefixes, map properties and events, and align component base classes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fritzandfriends/blazorwebformscomponents/bwfc-ascx-migration
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.

Any agent
npx skills add FritzAndFriends/BlazorWebFormsComponents --skill bwfc-ascx-migration
Clone the repo
git clone --depth 1 https://github.com/FritzAndFriends/BlazorWebFormsComponents

Made for: Claude Code, Codex.

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 bwfc-ascx-migration

README.md
[![agentmods](https://agentmods.dev/badge/skills/fritzandfriends/blazorwebformscomponents/bwfc-ascx-migration/github.svg)](https://agentmods.dev/skills/fritzandfriends/blazorwebformscomponents/bwfc-ascx-migration)
Your own site
<a href="https://agentmods.dev/skills/fritzandfriends/blazorwebformscomponents/bwfc-ascx-migration"><img src="https://agentmods.dev/badge/skills/fritzandfriends/blazorwebformscomponents/bwfc-ascx-migration/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.

agentmods 80×15 button for bwfc-ascx-migration

Your own site · 80×15
<a href="https://agentmods.dev/skills/fritzandfriends/blazorwebformscomponents/bwfc-ascx-migration"><img src="https://agentmods.dev/badge/skills/fritzandfriends/blazorwebformscomponents/bwfc-ascx-migration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 113 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,518 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00113 $0.01518
Opus 5.5 $0.00045 $0.00607
Sonnet 5.5 $0.00023 $0.00304
Haiku 4.5 $0.00011 $0.00152

Measured 3mo ago against content hash 6dae47b98f48, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bwfc-ascx-migration 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 3mo 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.

migration-toolkit/skills/bwfc-ascx-migration/SKILL.md · 196 lines

How it starts

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

ASCX User Control → Blazor Component Migration

Overview

ASP.NET Web Forms User Controls (.ascx files) are reusable markup fragments with code-behind. They map directly to Blazor .razor components with .razor.cs code-behind files.

The webforms-to-blazor CLI tool handles L1 conversion automatically. This skill guides L2 repair for common patterns that require contextual understanding.

How the CLI Handles ASCX Files

Step What Happens
1. Directive removal <%@ Control ... %> is stripped
2. Markup transforms asp: prefixes removed, expressions converted
3. Code-behind preservation Base class remapped, usings updated
4. @inherits injection Added to .razor when code-behind inherits a CustomControls type
5. Output .razor + .razor.cs pair in the output project

Critical Rules

1. Preserve the Code-Behind

ASCX code-behind files contain business logic that should compile unchanged. The CLI:

  • Strips System.Web.UI.* usings
  • Adds using BlazorWebFormsComponents.CustomControls;
  • Preserves UserControl base class (now mapped to BWFC's UserControl)
  • Injects @inherits UserControl into the .razor file

Do NOT rewrite code-behind logic. Fix compile errors by adding missing shims or stubs.

2. Properties Become Parameters

Web Forms exposes ASCX properties to parent pages. In Blazor, these become [Parameter] properties:

// Web Forms (worked without attribute)
public string Title { get; set; }

// Blazor (requires [Parameter])
[Parameter]
public string Title { get; set; }

The CLI's ParameterAttributeTransform handles this automatically for public properties.

3. Events Become EventCallback

ASCX controls that raise events to parent pages:

// Web Forms
public event EventHandler ItemSelected;
protected void OnItemSelected(EventArgs e) => ItemSelected?.Invoke(this, e);

// Blazor
[Parameter]
public EventCallback<EventArgs> ItemSelected { get; set; }
protected async Task OnItemSelected(EventArgs e) => await ItemSelected.InvokeAsync(e);

Read the full file on GitHub · 196 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. 3mo ago First seen · 196 lines · 113 tokens per session scan A 6dae47b98f48

Subscribe to this mod's changes

bwfc-ascx-migration is a skill published in the GitHub repository FritzAndFriends/BlazorWebFormsComponents (454 stars, last pushed 5mo ago), licensed MIT. It adds 113 tokens to every session and 1,518 once invoked, about $0.0005 per session on Opus 5.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.

Related

bwfc-ascx-migration compared with skills from other repositories

bwfc-ascx-migration next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bwfc-ascx-migrationFritzAndFriends/BlazorWebFormsComponentsSkill4545mo agoMITA113Claude Code, Codex
lumeoBrain2k-0005/LumeoSkill248d agoMITA133Claude Code, Codex
vue-best-practicesTenon-Net/TenonAdminSkill47yesterdayApache-2.0A81Claude Code, Codex
create-adaptable-composableTenon-Net/TenonAdminSkill47yesterdayApache-2.0A80Claude Code, Codex
vue-options-api-best-practicesTenon-Net/TenonAdminSkill47yesterdayApache-2.0A30Claude Code, Codex
dotnet-vuln-scannerjinyimeng01/net-code-audit-skill-masterSkill77mo agoMulanPSL-2.0A58Codex
migrate-xunit-to-xunit-v3dotnet/skillsSkill6.4ktodayMITA149Claude Code