fix-library-init

fix-library-init is a skill for Claude Code, Codex from UI5/plugins-coding-agents. It costs 123 tokens per session (2,630 once invoked), scanned A, original, Apache-2.0.

A repair guide for UI5 library setup code and enum definitions. UI5 is a framework for building web applications, and a linter checks its code for outdated patterns.

In plain words
What is it for?
Updating `Library.init()` or `Lib.init()` calls to use API version 2 and changing enums to `DataType.registerEnum`.
Why use it?
It addresses linter warnings about old `Library.init()` calls and enum definitions that no longer match the newer API.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Updating Library.init() or Lib.init() calls to use API version 2 and changing enums to DataType.registerEnum.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ui5/plugins-coding-agents/fix-library-init
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add UI5/plugins-coding-agents --skill fix-library-init
Clone the repo
git clone --depth 1 https://github.com/UI5/plugins-coding-agents

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fix-library-init

README.md
[![agentmods](https://agentmods.dev/badge/skills/ui5/plugins-coding-agents/fix-library-init/github.svg)](https://agentmods.dev/skills/ui5/plugins-coding-agents/fix-library-init)
Your own site
<a href="https://agentmods.dev/skills/ui5/plugins-coding-agents/fix-library-init"><img src="https://agentmods.dev/badge/skills/ui5/plugins-coding-agents/fix-library-init/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fix-library-init

Your own site · 80×15
<a href="https://agentmods.dev/skills/ui5/plugins-coding-agents/fix-library-init"><img src="https://agentmods.dev/badge/skills/ui5/plugins-coding-agents/fix-library-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 123 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,630 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 309
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00123 $0.02630
Opus 5.5 $0.00049 $0.01052
Sonnet 5.5 $0.00025 $0.00526
Haiku 4.5 $0.00012 $0.00263

Measured 3mo ago against content hash bbfc909c7b2a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fix-library-init scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/ui5-modernization/skills/fix-library-init/SKILL.md · 345 lines

How it starts

The opening of the file, as written. The whole thing — 345 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Fix Library.init() Modernization

This skill fixes Library.init() / Lib.init() calls that the UI5 linter detects as missing apiVersion: 2, and modernizes enum definitions to use DataType.registerEnum — which is required when using apiVersion: 2.

Linter Rules Handled

Rule ID Message Pattern This Skill's Action
no-deprecated-api Deprecated call to Library.init(). Use the {apiVersion: 2} parameter instead Add apiVersion: 2 to the init call
no-deprecated-api Deprecated call to Lib.init(). Use the {apiVersion: 2} parameter instead Add apiVersion: 2 to the init call
no-deprecated-api Deprecated call to init(). Use the {apiVersion: 2} parameter instead Add apiVersion: 2 (destructured init)

When to Use

Apply this skill when you see linter output like:

library.js:9:2 error Deprecated call to Library.init(). Use the {apiVersion: 2} parameter instead  no-deprecated-api
library.js:11:2 error Deprecated call to Lib.init(). Use the {apiVersion: 2} parameter instead  no-deprecated-api
library.js:51:2 error Deprecated call to init(). Use the {apiVersion: 2} parameter instead  no-deprecated-api

Background: What Library.init() Does

sap/ui/core/Lib.init() registers a UI5 library with the framework, declaring its metadata: name, dependencies, controls, elements, types (enums), and interfaces. The apiVersion: 2 parameter signals that the library uses the modern initialization pattern.

Important: Only apiVersion: 2 is valid for Lib.init(). Unlike control renderers where apiVersion: 4 is also valid, library initialization only accepts 2.

Fix Strategy

1. No Arguments

Problem: Lib.init() called with no arguments at all.

// Before — triggers no-deprecated-api
sap.ui.define([
    "sap/ui/core/Lib"
], function(Library) {
    "use strict";

    Library.init();
});

Fix: Add an object argument with apiVersion: 2.

Read the full file on GitHub · 345 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 345 lines · 123 tokens per session scan A bbfc909c7b2a

Subscribe to this mod's changes

fix-library-init is a skill published in the GitHub repository UI5/plugins-coding-agents (48 stars, last pushed 3d ago), licensed Apache-2.0. It adds 123 tokens to every session and 2,630 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

fix-library-init compared with skills from other repositories

fix-library-init next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fix-library-initUI5/plugins-coding-agentsSkill483d agoApache-2.0A123Claude Code, Codex
agenttrace-session-auditsickn33/agentic-awesome-skillsSkill51kyesterdayMITA34Claude Code
octocode-researchbgauryy/octocodeSkill969todayMITA148Codex
root-cause-investigatorumputun/cc-thingzSkill50111d agoMITA53Claude Code
code-review-webrampstackco/claude-skillsSkill1.1k14d agoMITA121Claude Code
code-agentinitializ/forgeSkill2239d agoApache-2.0A21Claude Code, Codex
github-issue-managerexplyt/spring-pluginSkill1705d agoApache-2.0A100Claude Code, Codex