Back to list
Michael0520

one-ui-migration

by Michael0520

0🍴 0📅 Jan 24, 2026

SKILL.md


name: one-ui-migration description: Migrating Angular 16 to 20 with DDD architecture and SignalStore patterns. Use when converting components, structuring features, or following One-UI migration standards. license: MIT compatibility: Requires Angular 20+ project with @ngrx/signals, @one-ui/shared dependencies allowed-tools: Read, Bash, Edit, Write, Glob, Grep

One-UI Migration Skill

Core Principle: MIGRATE, DON'T INNOVATE — 100% behavior parity with Legacy

Task Router

What tool do I need?

I need to...Check this
Add form validationrules/tools/one-validators.md
Create a formrules/tools/form-builder.md
Use shared helpersrules/tools/shared-helpers.md 🆕
Manage state (Store)rules/tools/signal-store.md
Handle loading statesrules/tools/loading-states.md
Create a tablerules/tools/common-table.md
Create a dialogrules/tools/ui/dialogs.md
Use MX componentsrules/tools/mx-components.md
Page structurerules/tools/ui/page-layout.md
Configure routesrules/tools/routing.md
Translate textrules/tools/transloco.md
Handle authenticationrules/tools/auth.md

⭐ Enhanced | 🆕 New

What do I need to build?

I need to...Check this guide
Create a complete pagerules/guides/create-page.md
Create a dialogrules/guides/create-dialog.md
Create a tablerules/guides/create-table.md

Reference

I need to...Check this
DDD layer rulesrules/reference/ddd-architecture.md
Common migration mistakesrules/reference/pitfalls.md 🆕
Angular 20 syntax transformsrules/reference/angular-20-syntax.md
Pre-PR checklistrules/reference/checklist.md

⭐ Enhanced | 🆕 New


Quick Reference

Essential Transforms

Angular 16Angular 20
*ngIf="x"@if (x) { }
*ngFor="let i of items"@for (i of items; track i.id) { }
constructor(private x)inject()
@Input()input() / input.required()
@Output()output()
BehaviorSubjectsignal()
get x()computed()
ValidatorsOneValidators

DDD 4-Layer Quick Decision

HTTP/Business logic?  → domain/
Injects Store?        → features/
Pure I/O?             → ui/
Route definitions?    → shell/

Critical Migration Rules (NEW)

Form Validation Error Display:

✅ Basic validators (required, maxLength, range) → Use oneUiFormError directive
❌ Pattern validators → MUST use @if/@else with custom messages
❌ Custom validators → MUST use @if/@else with custom messages

DDD Violations to Avoid (see rules/reference/pitfalls.md):

❌ Violation 0: Page form template in features/ (MOST COMMON!)
❌ Violation 1: UI component injecting Store
❌ Violation 2: Dialog in ui/ layer
❌ Violation 3: Business logic in features/
❌ Violation 4: UI form making HTTP calls

Forbidden Patterns

❌ Add features not in Legacy
❌ "Improve" Legacy behavior
❌ Create new API endpoints
❌ Use `any` type
❌ Use BehaviorSubject
❌ Use constructor injection
❌ Use mat-raised-button (use mat-flat-button)
❌ Use text icons (use svgIcon="icon:xxx")
❌ Add padding to page components
❌ Create new translation keys

Activation Triggers

  • "migrate this component"
  • "convert to standalone"
  • "how should I structure this"
  • "where should this go"
  • "what's the pattern for"
  • "check migration rules"

Rules Directory Structure

rules/
├── index.md                    # Router entry
├── tools/                      # Tool reference (9 files + 3 subdirs)
│   ├── one-validators.md
│   ├── form-builder.md
│   ├── signal-store.md
│   ├── loading-states.md
│   ├── common-table.md
│   ├── mx-components.md
│   ├── routing.md
│   ├── transloco.md
│   ├── auth.md
│   ├── forms/                  # Form patterns
│   ├── tables/                 # Table patterns
│   └── ui/                     # UI patterns (dialogs, page-layout, buttons)
├── guides/                     # Integration guides (3 files)
│   ├── create-page.md
│   ├── create-dialog.md
│   └── create-table.md
└── reference/                  # Reference (3 files)
    ├── ddd-architecture.md
    ├── angular-20-syntax.md
    └── checklist.md

Migration Planning

For complex migrations, use migration-planning skill:

/one-ui-migration:plan {feature-name}

This integrates superpowers:brainstorming and superpowers:writing-plans with tool reference checklists.

See: skills/migration-planning/SKILL.md


Post-Migration Validation

Use one-ui-migration-checker agent:

"check migration for libs/mxsecurity/{feature}"

Score

Total Score

60/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon