Fix 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.
Installation
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Fix 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 Bootstrap Parameters
Key Rules
ONLY modify the bootstrap <script> tag (identified by id="sap-ui-bootstrap" or src matching sap-ui-core.js). All other <script> tags — including inline scripts, config blocks, and non-UI5 script references — MUST be preserved exactly as-is. They will be handled by fix-csp-compliance in a later phase.
Do not delete, move, or rewrite any <script> block that is not the bootstrap tag. If the file has <script>window.config = {...}</script> before or after the bootstrap tag, leave it untouched.
This skill fixes HTML bootstrap parameter issues that the UI5 linter detects but cannot auto-fix because the changes may affect application behavior.
<!-- Before --><scriptid="sap-ui-bootstrap"src="resources/sap-ui-core.js"data-sap-ui-theme="sap_horizon"></script><!-- After --><scriptid="sap-ui-bootstrap"src="resources/sap-ui-core.js"data-sap-ui-async="true"data-sap-ui-compat-version="edge"data-sap-ui-theme="sap_horizon"></script>
no-deprecated-api - Deprecated Values
data-sap-ui-async="false": Change to "true"data-sap-ui-compat-version with non-edge value: Change to "edge"
Remove deprecated libraries from data-sap-ui-libs:
sap.ui.commons
sap.ui.ux3
sap.makit
sap.me
sap.ca.ui
sap.sac.grid
sap.ui.suite
sap.zen.commons
sap.zen.crosstab
sap.zen.dsh
Implementation Steps
Read the HTML file
Parse to find the bootstrap script tag
For each linter error (identified by rule ID and message):
If missing parameter: Add the parameter with recommended value
If deprecated value: Update to recommended value
If abandoned/redundant: Remove the parameter
If deprecated theme: Replace with modern theme
If deprecated library: Remove from libs list
Preserve formatting (indentation, line breaks) as much as possible
Write the updated file
Example Fix
Given linter output:
index.html:8:3 error Missing bootstrap parameter 'data-sap-ui-async' no-deprecated-api
index.html:8:3 error Missing bootstrap parameter 'data-sap-ui-compat-version' no-deprecated-api
index.html:12:3 error Abandoned bootstrap parameter 'data-sap-ui-no-duplicate-ids' should be removed no-deprecated-api
index.html:10:3 error Use of deprecated theme 'sap_bluecrystal' no-deprecated-theme
Transform:
<!-- Before --><scriptid="sap-ui-bootstrap"src="resources/sap-ui-core.js"data-sap-ui-theme="sap_bluecrystal"data-sap-ui-no-duplicate-ids="true"data-sap-ui-resource-roots='{"my.app": "./"}'></script><!-- After --><scriptid="sap-ui-bootstrap"src="resources/sap-ui-core.js"data-sap-ui-async="true"data-sap-ui-compat-version="edge"data-sap-ui-theme="sap_horizon"data-sap-ui-resource-roots='{"my.app": "./"}'></script>
Notes
Always add data-sap-ui-async="true" before other data attributes for consistency
Removed parameters should not leave trailing whitespace or empty lines
If the file has multiple script tags, only modify the bootstrap tag — leave all others intact (including inline <script> blocks that will be handled by CSP compliance in Phase 5)