跳至正文
OpenAgentSkill
浏览已开放 · 目录记录日期 2026-11-21 · 自动更新和账户服务暂时关闭。
浏览器与自动化

migration-migrate-module

Use when a complete module needs migration to the target architecture - runs 6 phases with approval gates.

herbert-julio-azion · 已有静态检查记录

安装与使用

运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。

npx skills add HerbertJulio/specialist-agent --skill migration-migrate-module

技能说明


name: migration-migrate-module description: "Use when a complete module needs migration to the target architecture - runs 6 phases with approval gates." user-invocable: true argument-hint: "[module-path]" allowed-tools: Read, Write, Edit, Bash, Glob, Grep

Migrate an entire module to the target architecture from docs/ARCHITECTURE.md.

Module/Path: $ARGUMENTS

Steps

Use @migrator to coordinate the full migration in phases:

  1. Phase 0 -- Analysis: Map the module (files, patterns, dependencies, NgModule vs standalone)
  2. Phase 1 -- Structure: Create src/modules/[name]/ and move files
  3. Phase 2 -- Types: Create .types.ts + .contracts.ts + adapter
  4. Phase 3 -- Services: Migrate to pure service (HttpClient only, inject(), no try/catch)
  5. Phase 4 -- State: BehaviorSubject -> signals, stores with WritableSignal + asReadonly()
  6. Phase 5 -- Components: NgModule -> standalone, @Input/@Output -> input()/output(), constructor -> inject(), OnPush
  7. Phase 6 -- Review: Validate conformance

Validate build/tsc/tests after each phase. Ask for approval before each phase.