ClaudeSuperPower

fix-xml-globals

Skill

Fix XML view/fragment issues that UI5 linter reports but cannot auto-fix. Use this skill when linter outputs these rules: - `no-globals` - For ALL global variable access in XML views — sap.*, jQuery.*, AND app-namespace globals (e.g., com.example.app.utils.Handler.onPress, my.app.formatter.method) -

Install

git clone https://github.com/UI5/plugins-coding-agents.git ~/.claude/skills/fix-xml-globals

What is fix-xml-globals?

Fix XML view/fragment issues that UI5 linter reports but cannot auto-fix. Use this skill when linter outputs these rules: - `no-globals` - For ALL global variable access in XML views — sap.*, jQuery.*, AND app-namespace globals (e.g., com.example.app.utils.Handler.onPress, my.app.formatter.method) - `no-ambiguous-event-handler` - For event handlers without dot prefix or local name - `no-deprecated-api` - For legacy template:require syntax (space-separated) Trigger on XML view/fragment files with errors about global variables, event handlers, formatters, type references in bindings, factory functions, or template:require. Automatically adds core:require declarations, fixes event handler prefixes, and handles .bind($control) for functions that use 'this'. IMPORTANT: The linter reports app-namespace globals in XML under `no-globals` — these MUST be fixed by this skill, NOT deferred to fix-linter-blind-spots. For native HTML or SVG in XML views, use the fix-xml-native-html skill instead.

What this can do

Capabilities declared in this component's own frontmatter — not inferred.

Inherit all session tools

Declares no tool restrictions — inherits every session tool

~250 tokens of context used while enabled, before you invoke anything

Documentation

README · ~13 min read

Fix XML Views/Fragments Global Access

This skill fixes XML view and fragment issues that the UI5 linter detects but cannot auto-fix because they require understanding of module paths and handler locations.

Linter Rules Handled

Rule IDMessage PatternThis Skill's Action
no-globalsAccess of global variable '...' (...)Add core:require and use local name
no-ambiguous-event-handlerEvent handler '...' must be prefixed by a dot '.' or refer to a local nameAdd . prefix for controller methods or add core:require for modules
no-deprecated-apiUsage of space-separated list '...' in template:requireConvert to object notation

When to Use

Apply this skill when you see linter output like:

Reviews

Log in to leave a review.

No reviews yet — be the first.

Explore related

Other things in this space — across every part of the ecosystem, not just skills.