Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Guardrails for implementing Web Forms semantic page-pattern rewrites in the migration CLI
.claude/skills/fritzandfriends-semantic-pattern-guardrails/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 18% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -24% | 0% |
| case-04 | ✗→✓ | ▲ Improved | -37% | 0% |
| case-08 | ✗→✓ | ▲ Improved | -23% | 0% |
| case-10 | ✗→✓ | ▲ Improved | -24% | 0% |
Use this when adding semantic catalog entries to the Web Forms migration CLI. These rules apply to cross-file page-shape rewrites where the mechanical transforms have already converted raw syntax and the remaining work is contract normalization.
ChildContent<Content ContentPlaceHolderID="..."> blocks → ChildComponentsSafe matches:
SelectMethod/code-behind only filters by [QueryString] / [RouteData]Stop and emit TODO/manual review if:
Safe matches:
Anti-pattern:
Treat these as manual/TODO boundaries unless you have explicit HTTP endpoint/handler output:
Why:
Master shell
razor<MasterPage> <Head>...</Head> <ChildContent> ...chrome... <ContentPlaceHolder ID="MainContent" /> </ChildContent> <ChildComponents> @ChildComponents </ChildComponents> </MasterPage>
Child page
razor<Site> <ChildComponents> <Content ContentPlaceHolderID="MainContent"> ... </Content> </ChildComponents> </Site>
@BodyContentPlaceHolderID namesid pathOther measured skills in the registry, with their headline benchmark lift.