Fixes deprecated UI5 controls, classes, interfaces, types, and properties that the UI5 linter detects but cannot auto-fix. Provides replacement guidance for deprecated APIs in JS and XML views.
Ships in ui5-modernization. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill fixes deprecated control/class/interface/type issues that the UI5 linter detects but cannot auto-fix because they require understanding the specific replacement APIs.
| Rule ID | Message Pattern | This Skill's Action |
|---|---|---|
no-deprecated-api | Use of deprecated class '...' | Replace with new class |
no-deprecated-api | Use of deprecated interface '...' | Replace with new interface |
no-deprecated-api | Use of deprecated type '...' | Replace with new type |
no-deprecated-api | Use of deprecated property '...' | Remove or replace property |
no-deprecated-api | Use of deprecated property '...' of class '...' | Replace with new property/API |
Apply this skill when you see linter output like:
MyController.js:15:5 error Use of deprecated class 'sap.ui.commons.Button' no-deprecated-api
MyController.js:20:5 error Use of deprecated property 'blocked' of class 'sap.m.Button' no-deprecated-api
MyView.view.xml:10:5 error Use of deprecated class 'sap.m.DateTimeInput' no-deprecated-api
Component.js:25:5 error Use of deprecated interface 'sap.ui.core.IFormContent' no-deprecated-api
Run the linter with --details flag to get links to API documentation with replacement guidance:
npx @ui5/linter --details
Use the UI5 MCP Server's get_api_reference tool to check deprecation status and find replacements:
sap.ui.commons.Button or sap.m.Button#blockednew ExpressionProblem: Using a deprecated control class.
// Before - triggers no-deprecated-api
sap.ui.define([
"sap/ui/core/mvc/Controller",
"sap/ui/commons/Button" // Deprecated library!
], function(Controller, Button) {
"use strict";
return Controller.extend("my.app.controller.Main", {
onInit: function() {
var oButton = new Button({
text: "Click me"
});
}
});
});
Fix Strategy: Replace with the modern equivalent class.
// After - use sap.m.Button instead
sap.ui.define([
"sap/ui/core/mvc/Controller",
"sap/m/Button"
], function(Controller, Button) {
"use strict";
return Controller.extend("my.app.controller.Main", {
onInit: function() {
var oButton = new Button({
text: "Click me"
});
}
});
});
Common Deprecated Class Replacements:
| Deprecated Class | Replacement |
|---|---|
sap.ui.commons.* | sap.m.* equivalents |
sap.ui.ux3.* | sap.m.* or sap.f.* |
sap.ui.commons.TextField | sap.m.Input |
sap.ui.commons.Button | sap.m.Button |
sap.ui.commons.Label | sap.m.Label |
sap.ui.commons.CheckBox | sap.m.CheckBox |
sap.ui.commons.DropdownBox | sap.m.Select or sap.m.ComboBox |
sap.ui.model.odata.ODataModel | sap.ui.model.odata.v2.ODataModel |
sap.m.MessagePage | sap.m.IllustratedMessage (see section 8) |
sap.viz.ui5.controls.VizFrame (old) | Check sap.viz documentation |
sap.m Deprecated Controls:
| Deprecated Class | Replacement | Notes |
|---|---|---|
sap.m.UploadCollection | sap.m.upload.UploadSet or sap.m.plugins.UploadSetwithTable | UploadSetwithTable for table-based layouts |
sap.m.TablePersoDialog | sap.m.p13n.* | Do not auto-modernize — report for manual modernization |
sap.m.TablePersoController | sap.m.p13n.* | Do not auto-modernize — report for manual modernization |
sap.m.TablePersoProvider | sap.m.p13n.* | Do not auto-modernize — report for manual modernization |
sap.m.P13nDialog | sap.m.p13n.Popup | Do not auto-modernize — report for manual modernization |
sap.m.P13nColumnsPanel | sap.m.p13n.SelectionPanel | Do not auto-modernize — report for manual modernization |
sap.m.P13nSortPanel | sap.m.p13n.SortPanel | Do not auto-modernize — report for manual modernization |
sap.m.P13nGroupPanel | sap.m.p13n.GroupPanel | Do not auto-modernize — report for manual modernization |
sap.m.P13nFilterPanel | sap.m.p13n.FilterPanel | Do not auto-modernize — report for manual modernization |
sap.m.DateTimeInput | sap.m.DatePicker + sap.m.TimePicker | Split into separate controls |
sap.m.MultiEditField | — | No direct replacement, custom implementation required |
sap.m.RouteMatchedHandler | sap.m.routing.RouteMatchedHandler | Use the routing module |
sap.f Deprecated Controls:
| Deprecated Class | Replacement | Notes |
|---|---|---|
sap.f.Avatar | sap.m.Avatar | Moved to sap.m |
sap.f.IllustratedMessage | sap.m.IllustratedMessage | Moved to sap.m |
sap.f.Illustration | sap.m.Illustration | Moved to sap.m |
sap.ui.table Deprecated Controls:
| Deprecated Class | Replacement | Notes |
|---|---|---|
sap.ui.table.ColumnMenu | sap.m.table.columnmenu.Menu | New column menu framework |
sap.ui.table.AnalyticalColumnMenu | sap.m.table.columnmenu.Menu | New column menu framework |
sap.ui.table.TablePersoController | sap.m.p13n.* | Do not auto-modernize — report for manual modernization |
sap.ui.unified Deprecated Controls:
| Deprecated Class | Replacement | Notes |
|---|---|---|
sap.ui.unified.Shell | — | No replacement — redesign using sap.f.ShellBar or sap.tnt.ToolPage |
sap.ui.unified.ShellOverlay | — | No replacement |
sap.ui.unified.ShellLayout | — | No replacement |
sap.ui.unified.SplitContainer | sap.m.SplitContainer or sap.f.FlexibleColumnLayout | Use responsive layout |
sap.ui.unified.ContentSwitcher | — | No replacement — use NavContainer or custom logic |
sap.ui.layout Deprecated Controls:
| Deprecated Class | Replacement | Notes |
|---|---|---|
sap.ui.layout.form.GridLayout | sap.ui.layout.form.ColumnLayout or sap.ui.layout.form.ResponsiveGridLayout | GridLayout was removed |
sap.ui.comp Deprecated Controls:
| Deprecated Class | Replacement | Notes |
|---|---|---|
sap.ui.comp.variants.VariantManagement | sap.m.VariantManagement | See section 9 for property mapping |
sap.ui.mdc Deprecated/Changed APIs:
| Deprecated | Replacement | Notes |
|---|---|---|
sap.ui.mdc.enum.* enums | sap.ui.mdc.enums.* | Namespace renamed (enum → enums) |
sap.ui.mdc.FilterBar old API | sap.ui.mdc.FilterBar refactored | Check API for changed properties |
sap.ui.mdc.Link FLP integration | Decoupled from FLP | Check new API for direct usage |
Problem: Using a deprecated property when creating a control.
// Before - 'blocked' property is deprecated
sap.ui.define([
"sap/ui/core/mvc/Controller",
"sap/m/Button"
], function(Controller, Button) {
"use strict";
return Controller.extend("my.app.controller.Main", {
onInit: function() {
var oButton = new Button({
text: "Submit",
blocked: true // Deprecated!
});
}
});
});
Fix Strategy: Use the replacement property or API.
// After - use 'enabled' instead
sap.ui.define([
"sap/ui/core/mvc/Controller",
"sap/m/Button"
], function(Controller, Button) {
"use strict";
return Controller.extend("my.app.controller.Main", {
onInit: function() {
var oButton = new Button({
text: "Submit",
enabled: false // Use enabled: false instead of blocked: true
});
}
});
});
Common Deprecated Property Replacements:
| Control | Deprecated Property | Replacement |
|---|---|---|
sap.m.Button | blocked | enabled (inverted logic) |
sap.m.Button | tap (event) | press |
sap.ui.table.Table | visibleRowCountMode | rowMode aggregation |
sap.ui.table.Table | visibleRowCount | rowMode aggregation |
sap.ui.table.Table | fixedRowCount | rowMode aggregation |
sap.ui.comp.smarttable.SmartTable | useExportToExcel | enableExport |
sap.ui.layout.form.SimpleForm | minWidth | Remove (only for ResponsiveLayout) |
Problem: Using a deprecated interface in control/component metadata.
// Before - deprecated interface
sap.ui.define([
"sap/ui/core/Control"
], function(Control) {
"use strict";
return Control.extend("my.app.control.MyControl", {
metadata: {
interfaces: ["sap.ui.core.IFormContent"] // Check if deprecated
}
});
});
Fix Strategy: Replace with the current interface or remove if no longer needed.
// After - use current interface
sap.ui.define([
"sap/ui/core/Control"
], function(Control) {
"use strict";
return Control.extend("my.app.control.MyControl", {
metadata: {
interfaces: ["sap.ui.core.ISemanticFormContent"] // Updated interface
}
});
});
Problem: Using a deprecated type in property definition.
// Before - deprecated type
metadata: {
properties: {
size: { type: "sap.ui.core.CSSSize" } // May be deprecated
}
}
Fix Strategy: Check the API reference and use the current type.
Problem: Using deprecated controls in XML views.
<!-- Before - DateTimeInput is deprecated -->
<mvc:View
xmlns:mvc="sap.ui.core.mvc"
xmlns="sap.m">
<DateTimeInput value="{/date}" />
</mvc:View>
Fix Strategy: Replace with the modern equivalent controls.
<!-- After - use DatePicker and TimePicker -->
<mvc:View
xmlns:mvc="sap.ui.core.mvc"
xmlns="sap.m">
<DatePicker value="{/date}" />
<TimePicker value="{/time}" />
</mvc:View>
Problem: Using deprecated properties on controls in XML.
<!-- Before - blocked property deprecated -->
<Button text="Submit" blocked="true" />
Fix Strategy: Replace with the current property.
<!-- After - use enabled with inverted logic -->
<Button text="Submit" enabled="false" />
Problem: Using deprecated aggregations.
<!-- Before - plugins aggregation may be deprecated in some contexts -->
<table:Table>
<table:plugins>
<table:MultiSelectionPlugin />
</table:plugins>
</table:Table>
Fix Strategy: Check API reference for the current aggregation name or approach.
sap.m.MessagePage is deprecated in favor of sap.m.IllustratedMessage. Key changes: text+description → single description, icon → illustrationType enum, showNavButton/navButtonPress → Button in additionalContent aggregation.
For the full property mapping table, XML/JS examples, and illustration type list, read references/control-modernization-details.md.
Key changes: variantItems → items, VariantItem.text → .title, showExecuteOnSelection → supportApplyAutomatically, showShare → supportPublic. The standard variant must be explicitly created with rename="false" and remove="false".
For the full property mapping table and standard variant XML example, read references/control-modernization-details.md.
Key replacements: MessageManager → sap/ui/core/Messaging, Export* → sap/ui/export/Spreadsheet, LocalBusyIndicator → Control.setBusy(true). SearchProvider, OpenSearchProvider, and ScrollBar have no replacement.
For the full table and MessageManager→Messaging code example, read references/control-modernization-details.md.
Run linter with --details to get replacement documentation links:
npx @ui5/linter --details
Identify the deprecated item from the error message (class, property, interface, type)
Check if this is a p13n/personalization control — if the deprecated class is any of:
sap.m.P13nDialog, sap.m.P13nColumnsPanel, sap.m.P13nSortPanel, sap.m.P13nGroupPanel, sap.m.P13nFilterPanelsap.m.TablePersoDialog, sap.m.TablePersoController, sap.m.TablePersoProvidersap.ui.table.TablePersoControllerDo NOT attempt to auto-modernize these. The p13n framework modernization requires significant architectural changes (different initialization patterns, state persistence models, and panel configurations) that cannot be reliably automated. Instead, report them to the user:
⚠️ Manual modernization required: <ClassName> at <file>:<line>
Replacement: sap.m.p13n.* framework
Reason: p13n modernization requires architectural changes — see UI5 documentation for sap.m.p13n
Look up the replacement (for non-p13n controls) in:
npx @ui5/linter --detailsget_api_reference toolApply the fix:
Verify by re-running the linter
Given linter output:
npx @ui5/linter --details
MyController.js:15:5 error Use of deprecated class 'sap.m.DateTimeInput' no-deprecated-api
Details: {@link sap.m.DateTimeInput}
MyController.js:25:5 error Use of deprecated property 'blocked' of class 'sap.m.Button' no-deprecated-api
Details: {@link sap.m.Button#blocked}
Before:
sap.ui.define([
"sap/ui/core/mvc/Controller",
"sap/m/DateTimeInput",
"sap/m/Button"
], function(Controller, DateTimeInput, Button) {
"use strict";
return Controller.extend("my.app.controller.Main", {
onInit: function() {
var oDateTimeInput = new DateTimeInput({
value: "{/date}"
});
var oButton = new Button({
text: "Submit",
blocked: true
});
}
});
});
After:
sap.ui.define([
"sap/ui/core/mvc/Controller",
"sap/m/DatePicker",
"sap/m/TimePicker",
"sap/m/Button"
], function(Controller, DatePicker, TimePicker, Button) {
"use strict";
return Controller.extend("my.app.controller.Main", {
onInit: function() {
// DateTimeInput replaced with separate DatePicker and TimePicker
var oDatePicker = new DatePicker({
value: "{/date}"
});
var oTimePicker = new TimePicker({
value: "{/time}"
});
var oButton = new Button({
text: "Submit",
enabled: false // blocked: true → enabled: false
});
}
});
});
blocked: true → enabled: false)npx @ui5/linter --details to get direct links to modernization documentationsap.f.IllustratedMessage and sap.f.Illustration are deprecated in favor of sap.m.IllustratedMessage and sap.m.Illustration — this is a simple namespace move with the same APIsap.ui.comp.variants.VariantManagement, the standard variant must be explicitly created (see section 9)sap.ui.table.Table (visibleRowCountMode, visibleRowCount, rowHeight, etc.), use fix-table-row-mode — it handles the modernization to the rowMode aggregationParameters.get, View.create), use fix-partially-deprecated-apis instead of this skillWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
19 skills in this plugin
/fix-bootstrap-paramsFix HTML bootstrap parameter issues that UI5 linter reports but cannot auto-fix. Use this skill when linter outputs these rules:
- `no-deprecated-api` - For missing/deprecated bootstrap parameters (async, compat-version, animation, binding-syntax, etc.)
- `no-deprecated-theme` - For deprecated theme values in data-sap-ui-theme
- `no-deprecated-library` - For deprecated libraries in data-sap-ui-libs
Trigger on error messages containing: "Missing bootstrap parameter", "Abandoned bootstrap parameter", "Redundant bootstrap parameter", "deprecated value", "bootstrap"
Automatically applies safe fixes to HTML files containing UI5 bootstrap script tags.
/fix-component-asyncFix Component.js async configuration issues that UI5 linter reports but cannot auto-fix. Use this skill when linter outputs these rules:
- `async-component-flags` - For missing IAsyncContentCreation interface, missing manifest declaration, redundant async flags, async:false errors
- `no-removed-manifest-property` - For async flags in inline manifest v2
Trigger on Component.js files with errors about async loading, IAsyncContentCreation, manifest declaration.
Automatically adds the IAsyncContentCreation interface and configures manifest properly.
/fix-control-rendererFix Control renderer issues that UI5 linter reports but cannot auto-fix. Use this skill when linter outputs these rules:
- `no-deprecated-control-renderer-declaration` - For missing renderer declaration, string-based renderer declaration, implicit renderer auto-discovery (removed in modern UI5)
- `no-deprecated-api` - For missing apiVersion:2 in renderer objects, missing IconPool import when using oRm.icon(), deprecated rerender() override. NOTE: For Library.init() apiVersion errors, use fix-library-init instead.
- `ui5-class-declaration` - For non-static renderer property in ES6 classes
Trigger on: "missing a renderer declaration", "Deprecated declaration of renderer", "deprecated renderer", "apiVersion" (in renderer context), "IconPool", "rerender", "renderer must be a static property"
Converts legacy renderer patterns to modern apiVersion: 2 format with proper module imports.
/fix-csp-complianceFix Content Security Policy (CSP) compliance issues that UI5 linter reports but cannot auto-fix. Use this skill when linter outputs:
- `csp-unsafe-inline-script` with message "Use of unsafe inline script"
Trigger on: inline JavaScript in HTML files, script tags without src attribute, onclick/onload handlers in HTML.
Also use when user mentions 'security headers', 'inline script warning', 'CSP policy', 'unsafe-inline', or 'Content-Security-Policy'.
Provides guidance on moving inline scripts to external files for CSP compliance.
/fix-cyclic-depsDetect and resolve cyclic module dependencies introduced during UI5 modernization.
Trigger when user mentions: "cyclic dependency", "circular import", "undefined module at runtime",
"lazy require", "sap.ui.require sync", "import cycle", or when a module returns undefined despite
a correct import path. Classic symptom: a module is `undefined` at runtime despite a correct
sap.ui.define import path.
Auto-fixes 2-node cycles (A↔B) by converting the lesser-used edge to lazy sap.ui.require().
Auto-fixes longer chains (3+ nodes) via hub-based approach. Reports unfixable chains to
MODERNIZATION-ISSUES.md. Runs as Phase 3, Step 3.3 (final step) after all other Phase 3 steps.
/fix-fiori-elements-extensionsHandle Fiori Elements V2 controller extensions during UI5 modernization. Use this skill when:
- Extension controllers use `sap.ui.controller()` AND the manifest has a matching `controllerName` entry (Case B → report only, do not modernize)
- Extension controllers use `Controller.extend()` with manifest `controllerName` registration (Case B → report only, do not modernize)
- Code contains `registerControllerExtensions` calls (Case A → ControllerExtension.extend + override)
- Manifest.json has `sap.ui5/extends/extensions/sap.ui.controllerExtensions` with `controllerName` entries
Case B (plain object) is by far the most common. For Case B, do NOT modify controller files — report them and move on. Case A requires actual code modernization.
For plain controller definitions in custom (non-Fiori-Elements) apps where `sap.ui.controller()` is just defining a standalone controller, use `fix-js-globals` (Case 9) instead.
/ui5-ui5-modernization-plugins-ui5-modernization:fix-deprecated-controlsfrom ui5-modernization
Generated from the plugin's indexed repository (ui5/plugins-coding-agents) — no native marketplace selected
npx claudepluginhub p/ui5-ui5-modernization-plugins-ui5-modernizationOther plugins' skills for the same job