semantic-pattern-authoring
Author isolated migration CLI semantic patterns without leaking behavior into Layer 1 transforms
适合你,如果需要在迁移中定义清晰的语义模式
/ 通过 npx 安装 校验哈希
npx oh-my-skill add fritzandfriends/blazorwebformscomponents/semantic-pattern-authoring/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- fritzandfriends/blazorwebformscomponents/semantic-pattern-authoring/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify fritzandfriends/blazorwebformscomponents/semantic-pattern-authoring安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
449GitHub stars
~283上下文体积 · 单文件
索引托管
怎么用
技能原文 SKILL.md
Semantic Pattern Authoring
Use when
- A recurring migrated page shape needs a post-transform rewrite.
- The change should stay in
src/BlazorWebFormsComponents.Cli/SemanticPatterns/. - You need targeted tests instead of broad pipeline edits.
Pattern
- Match on post-transform markup/code-behind, not original Web Forms syntax.
- Keep wrapper extraction and markup surgery in subsystem-local helpers.
- Preserve explicit TODO markers for app-specific behavior that the CLI cannot safely infer.
- Prefer compile-safe SSR output over preserving non-runnable validator/postback trees.
- Add isolated tests that assert both pattern IDs and rewritten markup shape.
- For query-bound data pages, prefer
SelectMethod→SelectItemsscaffolds plus[SupplyParameterFromQuery]/[Parameter]component properties when the original Web Forms method relied on model-binding attributes. - For blank action pages, generate an SSR handler scaffold (
NavigationManager, query-bound properties, redirect target,OnParametersSetTODO) instead of leaving inert migrated HTML.
Current examples
pattern-query-details— rewrites query-string / route-dataSelectMethodpages to query-boundSelectItemsstubs withTODO(bwfc-query-details).pattern-action-pages— rewrites action-only redirect pages to SSR handler scaffolds withTODO(bwfc-action-pages).
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →
评论
登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。
…