‹ 首页

semantic-pattern-authoring

@fritzandfriends · 收录于 昨天 · 上游提交 1 个月前

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作者撰写 · MIT · 3154758

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
  1. Match on post-transform markup/code-behind, not original Web Forms syntax.
  2. Keep wrapper extraction and markup surgery in subsystem-local helpers.
  3. Preserve explicit TODO markers for app-specific behavior that the CLI cannot safely infer.
  4. Prefer compile-safe SSR output over preserving non-runnable validator/postback trees.
  5. Add isolated tests that assert both pattern IDs and rewritten markup shape.
  6. For query-bound data pages, prefer SelectMethodSelectItems scaffolds plus [SupplyParameterFromQuery] / [Parameter] component properties when the original Web Forms method relied on model-binding attributes.
  7. For blank action pages, generate an SSR handler scaffold (NavigationManager, query-bound properties, redirect target, OnParametersSet TODO) instead of leaving inert migrated HTML.
Current examples
  • pattern-query-details — rewrites query-string / route-data SelectMethod pages to query-bound SelectItems stubs with TODO(bwfc-query-details).
  • pattern-action-pages — rewrites action-only redirect pages to SSR handler scaffolds with TODO(bwfc-action-pages).
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。