소스 정보
- 저장소
- SAP/fundamental-ngx
- 최근 소스 활동
- 2026년 7월 16일 15:51
- 감지된 SKILL.md 언어
- 영어
- 스타
- 294
- 포크
- 147
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/SAP/fundamental-ngx --skill migrate명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
| name | migrate |
| description | Migrate a component or directive to Angular 22+ signal-based patterns |
| argument-hint | ["component-path-or-folder"] |
If $ARGUMENTS is empty, ask the user for a component path or folder before proceeding.
Read all files in the target path. For each component, directive, or service, scan for migration items below. If a folder is given, process all .ts and .html files within it.
Inputs / Outputs / Models:
@Input() → input() or input.required()@Input() with setter → input() + linkedSignal() (preferred) or effect() (only for DOM side effects)@Input() + @Output() pair (e.g. value / valueChange) → model()@Output() → output(){ transform: booleanAttribute }{ transform: numberAttribute }Host bindings:
@HostBinding('class.x') → host: { '[class.x]': 'expr()' }@HostBinding('attr.x') → host: { '[attr.x]': 'expr()' }@HostBinding('style.x') → host: { '[style.x]': 'expr()' }@HostListener('event') → host: { '(event)': 'handler($event)' }Queries:
@ViewChild() → viewChild() or viewChild.required()@ViewChildren() → viewChildren()@ContentChild() → contentChild()@ContentChildren() → contentChildren()Template syntax:
*ngIf → @if*ngFor → @for (requires track expression)*ngSwitch / *ngSwitchCase → @switch / @caseState management:
BehaviorSubject used for local component state → signal()BehaviorSubject + combineLatest → computed()Subject<void> used only to trigger side effects → effect()effect() that only calls signal.set() for derived state → computed() or linkedSignalmarkForCheck() after signal updates → removesignal.set() with same ref → immutable update with signal.update()CSS class building:
CssClassBuilder + @applyCssClass → computed() returning class string + host: { '[class]': '_cssClass()' }Cleanup patterns:
DestroyedService → DestroyRef + takeUntilDestroyed()ngOnDestroy only for destroy$.next() → remove entirely after migrationDecorator cleanup:
standalone: true (default since Angular 19)allowSignalWrites option in effect() (the option no longer exists)Imports:
*Module classes → individual component/directive importsMember ordering (ESLint enforced):
@Input, @Output, @ViewChild)input(), output(), model())Do NOT convert these — they should stay as-is:
switchMap, debounceTime, distinctUntilChanged, combineLatest with async sources → keep as RxJSsignal()The migration targets are recommendations, not mandatory fixes. Present all findings but let the user decide scope. Existing @Input() / @Output() decorators are valid — only migrate them if the user wants to or if the code is being substantially reworked.
Output a structured migration plan:
## Migration Plan: [component name]
### Files affected
- path/to/component.ts
- path/to/component.html
- path/to/component.spec.ts
### Inputs / Outputs
| Current | Migration | Notes |
|---------|-----------|-------|
| `@Input() label: string` | `readonly label = input<string>('')` | |
| `@Input() disabled: boolean` | `readonly disabled = input(false, { transform: booleanAttribute })` | |
| `@Input() value` + `@Output() valueChange` | `readonly value = model<T>()` | Two-way binding |
### Host Bindings
| Current | Migration |
|---------|-----------|
| `@HostBinding('class.is-open')` | `host: { '[class.is-open]': 'isOpen()' }` |
### Template Changes
| Current | Migration |
|---------|-----------|
| `*ngIf="condition"` | `@if (condition) { ... }` |
| `*ngFor="let item of items"` | `@for (item of items; track item.id) { ... }` |
### State Management
| Current | Migration | Reason |
|---------|-----------|--------|
| `BehaviorSubject<boolean>` | `signal(false)` | Local state, no async consumers |
### Skipped (intentionally not migrated)
| Item | Reason |
|------|--------|
| `httpData$` Observable | Async HTTP stream |
### Test Updates
- [ ] Replace `component.input = value` with `fixture.componentRef.setInput('input', value)`
- [ ] Update module imports to individual components
- [ ] Verify existing tests still pass after migration
### Docs Updates
- [ ] Update examples if public API changed (input names, usage patterns)
- [ ] Ensure examples use individual imports, not deprecated modules
### Breaking Changes
- [ ] List any renamed/removed inputs or outputs
- [ ] Draft BREAKING CHANGE footer if needed
Stop here and wait for approval before proceeding.
After approval:
yarn formatnx run <library>:buildnx run <library>:lintnx run <library>:test --testfile=<spec-file> --skip-nx-cacheAdd, rename, or remove i18n translation keys in fundamental-ngx (updates FdLanguage interface, .properties files, and generated types)
Audit existing code against project conventions and Angular 22+ best practices
Review a pull request against project conventions and Angular 22+ best practices
SOC 직업 분류 기준